/* ========================================
   CSS VARIABLES & RESET
   Material Lab Brand Kit - "Void" Theme
======================================== */
:root {
    /* ===== Color Tokens (Material Lab Brand Kit) ===== */
    --background: #050505;              /* Void Black - Deepest void */
    --foreground: #f5f5f0;              /* Warm Off-White - Human warmth */
    --card: #090909;                    /* OLED Black - Slightly elevated */
    --primary: #17f7f7;                 /* Laser Cyan - Primary accent */
    --primary-foreground: #000000;      /* Black text on cyan */
    --secondary: #1a1d21;               /* Dark Metal */
    --muted-foreground: #d5dada;        /* Alabaster - Structure text */
    --destructive: #ff2a6d;             /* Neon Red */
    --success: #05f7a5;                 /* Neon Green */
    --border: rgba(255, 255, 255, 0.08); /* Subtle Frost */

    /* Legacy color mappings for compatibility */
    --color-primary: #000000;
    --color-secondary: #fefefe;
    --color-accent: #17f7f7;            /* Updated to Laser Cyan */
    --color-text-light: rgba(254, 254, 254, 0.9);
    --color-text-muted: rgba(254, 254, 254, 0.7);
    --color-overlay: rgba(0, 0, 0, 0.3);

    /* ===== Animation Tokens ===== */
    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    --duration-slowest: 1000ms;

    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ===== Opacity Scale ===== */
    --opacity-full: 1;
    --opacity-muted: 0.6;
    --opacity-subtle: 0.4;
    --opacity-faint: 0.2;
    --opacity-ghost: 0.1;
    --opacity-whisper: 0.05;

    /* ===== Glow Effects ===== */
    --glow-primary: 0 0 60px rgba(23, 247, 247, 0.1);
    --glow-subtle: 0 0 30px rgba(23, 247, 247, 0.05);
    --glow-intense: 0 0 80px rgba(23, 247, 247, 0.15);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* ===== Design System Spacing (px-14 / gap-y-10) ===== */
    --spacing-container: 56px;     /* px-14 horizontal padding (desktop) */
    --spacing-container-tablet: 40px;
    --spacing-container-mobile: 24px;
    --spacing-gap: 40px;           /* gap-y-10 vertical gap */
    --spacing-gap-tablet: 24px;

    /* ===== Section Padding (Consistent vertical rhythm) ===== */
    --section-padding-desktop: 80px;   /* Reduced from 120px */
    --section-padding-tablet: 64px;    /* Reduced from 80px */
    --section-padding-mobile: 48px;    /* Reduced from 56px */

    /* ===== Typography (Material Lab Brand Kit) ===== */
    --font-serif: 'Merriweather', Georgia, serif;      /* Headings */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* Body */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Consolas', monospace; /* Technical labels */
    --font-primary: var(--font-sans);

    /* ===== New Typography System (6 Styles) ===== */
    /* Display - Merriweather Bold - Large hero text */
    --type-display-size: clamp(3rem, 8vw + 1rem, 7.5rem);
    --type-display-weight: 700;
    --type-display-lh: 1.05;
    --type-display-tracking: -0.02em;

    /* Heading 1 - Merriweather Bold 48px */
    --type-h1-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    --type-h1-weight: 700;
    --type-h1-lh: 1.1;
    --type-h1-tracking: -0.01em;

    /* Heading 2 - Merriweather Regular 32px */
    --type-h2-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    --type-h2-weight: 400;
    --type-h2-lh: 1.2;
    --type-h2-tracking: 0;

    /* Body Large - Inter Light 20px */
    --type-body-lg-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
    --type-body-lg-weight: 300;
    --type-body-lg-lh: 1.6;
    --type-body-lg-tracking: 0;

    /* Body - Inter Regular 16px */
    --type-body-size: 1rem;
    --type-body-weight: 400;
    --type-body-lh: 1.7;  /* Increased for warmth/readability */
    --type-body-tracking: 0;

    /* Body Small - Inter Regular 14px */
    --type-body-sm-size: 0.875rem;
    --type-body-sm-weight: 400;
    --type-body-sm-lh: 1.5;
    --type-body-sm-tracking: 0;

    /* Mono Label - Inter Medium 11px uppercase */
    --type-label-size: 0.6875rem;
    --type-label-weight: 500;
    --type-label-lh: 1.4;
    --type-label-tracking: 0.2em;

    /* Blur Effects */
    --blur-background: 18px;
    --blur-header: 16px;

    /* Layout */
    --header-height: 80px;
    --max-content-width: 1200px;

    /* ===== Border Radius (Brutalist = 0px for certain elements) ===== */
    --radius: 0px;                      /* Brutalist base */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --radius-section: 40px;             /* rounded-[2.5rem] for sections */
    --radius-card: 24px;                /* rounded-3xl for cards */

    /* ===== Shadows (Deeper, darker for void aesthetic) ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.8);

    /* ===== Card Elevation Shadows (for depth system) ===== */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.25);
    --shadow-card-strong: 0 16px 60px rgba(0, 0, 0, 0.3);

    /* ===== Z-Index Layers (Formalized hierarchy) ===== */
    --z-background: -1;
    --z-content: 1;
    --z-card: 10;
    --z-card-hover: 20;
    --z-sticky: 50;
    --z-header: 100;
    --z-dropdown: 101;
    --z-modal: 500;
    --z-overlay: 9999;

    /* ===== Reduced Section Padding (audit recommendation) ===== */
    --section-padding-reduced: 100px;
    --section-padding-reduced-tablet: 70px;
    --section-padding-reduced-mobile: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;  /* Changed from smooth - heavy scroll animations handled by GSAP instead */
}

body {
    font-family: var(--font-primary);
    color: var(--foreground);
    overflow-x: hidden;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Global Noise Texture - Tactile Materiality */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: overlay;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Global Text Selection (Material Lab Brand) */
::selection {
    background: rgba(23, 247, 247, 0.2);
    color: var(--primary);
}

/* ========================================
   SECTION STAR BACKGROUNDS
   Subtle star fields for depth
======================================== */
.section-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Ensure content is above stars */
.services-container-grid,
.methodology-header-grid,
.methodology-cards-container,
.methodology-vertical-label,
.lab-archive-section,
.manifesto-grid-20 {
    position: relative;
    z-index: 1;
}

/* ========================================
   ACCESSIBILITY STYLES
======================================== */

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--type-body-sm-size);
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 16px;
    outline: none;
}

/* Screen Reader Only (visually hidden but accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible Styles - WCAG 2.4.7 (Enhanced for visibility) */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(23, 247, 247, 0.15);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(23, 247, 247, 0.12);
}

.nav-link:focus-visible,
.btn-cta:focus-visible,
.magnetic-badge:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
    box-shadow: 0 0 0 8px rgba(23, 247, 247, 0.1);
}

/* ========================================
   20-COLUMN GRID SYSTEM
   High Density - Fine-tuned layouts
   Asymmetry - 8/12, 9/11, 6/14 ratios
   Collapse - Single column on mobile
======================================== */

/* Grid Container */
.grid-20 {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: var(--spacing-gap);      /* 40px vertical gap */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);  /* 56px horizontal padding */
}

/* Common span classes for desktop (lg:) */
@media (min-width: 1024px) {
    /* Text content spans */
    .col-span-6 { grid-column: span 6; }
    .col-span-7 { grid-column: span 7; }
    .col-span-8 { grid-column: span 8; }
    .col-span-9 { grid-column: span 9; }
    .col-span-10 { grid-column: span 10; }
    .col-span-11 { grid-column: span 11; }
    .col-span-12 { grid-column: span 12; }
    .col-span-13 { grid-column: span 13; }
    .col-span-14 { grid-column: span 14; }
    .col-span-20 { grid-column: span 20; }

    /* Start positions */
    .col-start-1 { grid-column-start: 1; }
    .col-start-2 { grid-column-start: 2; }
    .col-start-3 { grid-column-start: 3; }
    .col-start-7 { grid-column-start: 7; }
    .col-start-8 { grid-column-start: 8; }
    .col-start-9 { grid-column-start: 9; }
    .col-start-10 { grid-column-start: 10; }

    /* Asymmetric layout helpers */
    /* 8/12 split (text/media) */
    .grid-8-12 > :first-child { grid-column: 1 / span 8; }
    .grid-8-12 > :last-child { grid-column: 9 / span 12; }

    /* 12/8 split (media/text) */
    .grid-12-8 > :first-child { grid-column: 1 / span 12; }
    .grid-12-8 > :last-child { grid-column: 13 / span 8; }

    /* 9/11 split */
    .grid-9-11 > :first-child { grid-column: 1 / span 9; }
    .grid-9-11 > :last-child { grid-column: 10 / span 11; }

    /* 11/9 split */
    .grid-11-9 > :first-child { grid-column: 1 / span 11; }
    .grid-11-9 > :last-child { grid-column: 12 / span 9; }

    /* 6/14 split */
    .grid-6-14 > :first-child { grid-column: 1 / span 6; }
    .grid-6-14 > :last-child { grid-column: 7 / span 14; }

    /* 14/6 split */
    .grid-14-6 > :first-child { grid-column: 1 / span 14; }
    .grid-14-6 > :last-child { grid-column: 15 / span 6; }
}

/* Tablet - 12 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-20 {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--spacing-gap-tablet);   /* 24px */
        padding: 0 var(--spacing-container-tablet);  /* 40px */
    }

    .col-span-6, .col-span-7, .col-span-8, .col-span-9 { grid-column: span 6; }
    .col-span-10, .col-span-11, .col-span-12 { grid-column: span 12; }
    .col-span-13, .col-span-14, .col-span-20 { grid-column: span 12; }

    /* Asymmetric layouts preserve hierarchy on tablet (not 50/50) */
    /* 8/12 → 5/7 (media-heavy right preserved) */
    .grid-8-12 > :first-child { grid-column: span 5; }
    .grid-8-12 > :last-child { grid-column: span 7; }

    /* 12/8 → 7/5 (media-heavy left preserved) */
    .grid-12-8 > :first-child { grid-column: span 7; }
    .grid-12-8 > :last-child { grid-column: span 5; }

    /* 9/11 → 5/7 (slight asymmetry preserved) */
    .grid-9-11 > :first-child { grid-column: span 5; }
    .grid-9-11 > :last-child { grid-column: span 7; }

    /* 11/9 → 7/5 */
    .grid-11-9 > :first-child { grid-column: span 7; }
    .grid-11-9 > :last-child { grid-column: span 5; }

    /* 6/14 → 4/8 (much larger right preserved) */
    .grid-6-14 > :first-child { grid-column: span 4; }
    .grid-6-14 > :last-child { grid-column: span 8; }

    /* 14/6 → 8/4 */
    .grid-14-6 > :first-child { grid-column: span 8; }
    .grid-14-6 > :last-child { grid-column: span 4; }
}

/* Mobile - Single column collapse */
@media (max-width: 767px) {
    .grid-20 {
        grid-template-columns: 1fr;
        gap: var(--spacing-gap-tablet);   /* 24px */
        padding: 0 var(--spacing-container-mobile);  /* 24px */
    }

    .col-span-6, .col-span-7, .col-span-8, .col-span-9,
    .col-span-10, .col-span-11, .col-span-12, .col-span-13,
    .col-span-14, .col-span-20,
    .col-start-1, .col-start-2, .col-start-3, .col-start-7,
    .col-start-8, .col-start-9, .col-start-10 {
        grid-column: 1 / -1;
    }

    /* All asymmetric layouts collapse to full width */
    .grid-8-12 > *,
    .grid-12-8 > *,
    .grid-9-11 > *,
    .grid-11-9 > *,
    .grid-6-14 > *,
    .grid-14-6 > * {
        grid-column: 1 / -1;
    }
}

/* ========================================
   CUSTOM CURSOR (Two-Element System)
======================================== */

/* Outer Ring - Filled circle with invert effect */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: none;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    mix-blend-mode: difference;  /* Inverts colors beneath */
    transition: transform 0.3s ease;  /* No opacity transition - instant hide/show */
}

/* Ring hover state - fills white with mix-blend-difference */
.cursor-ring.hovering {
    background-color: #ffffff;
    border: none;
    mix-blend-mode: difference;
}

/* Inner Dot - Hidden (keeping element for potential future use) */
.cursor-dot {
    display: none;
}

/* Dot disappears on hover */
.cursor-dot.hovering {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Hide default cursor on desktop */
@media (min-width: 768px) {
    body {
        cursor: none;
    }

    a, button, input, textarea, select, [role="button"], .interactive, .cursor-pointer, .cursor-hover {
        cursor: none;
    }
}

/* Hide custom cursor on mobile and tablets (including iPad) */
@media (max-width: 1023px) {
    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }

    body,
    a, button, input, textarea, select, [role="button"], .interactive, .cursor-pointer, .cursor-hover {
        cursor: auto;
    }
}

/* Also hide cursor on any touch device regardless of screen size */
@media (pointer: coarse) {
    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }
}

/* ========================================
   HEADER NAVIGATION
======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-header);
    /* Glassmorphism - subtle glass effect */
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    height: 100%;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Logo */
.nav-logo a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-left: 10px;
    letter-spacing: 0.02em;
}

/* Hide logo text on smaller screens */
@media (max-width: 900px) {
    .nav-logo-text {
        display: none;
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 500;
    line-height: var(--type-body-lh);
    color: var(--color-secondary);
    transition: color 0.2s ease;
    z-index: 2;
}

.nav-link svg {
    transition: transform 0.2s ease;
}

.nav-item.has-dropdown.active .nav-link svg {
    transform: rotate(180deg);
}

/* Nav Hover Background (Bounding Box Pill) */
.nav-hover-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    will-change: transform, opacity;
}

.nav-item:hover .nav-hover-bg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item:hover > .nav-link {
    color: var(--color-primary);
}

/* CTA Button */
.btn-cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 600;
    line-height: var(--type-body-lh);
    border-radius: var(--radius-pill);
    transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease;
    box-shadow: var(--shadow-sm);
    will-change: transform;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-cta:active {
    transform: scale(0.98);
}

/* ========================================
   MAGNETIC BADGE CTA
======================================== */
.magnetic-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
    will-change: transform;
}

.magnetic-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.magnetic-badge:hover::before {
    transform: scaleX(1);
}

.magnetic-badge:hover {
    border-color: var(--primary);
}

.badge-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.magnetic-badge:hover .badge-text {
    color: var(--primary-foreground);
}

.badge-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.badge-icon i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.magnetic-badge:hover .badge-icon {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(45deg);
}

.magnetic-badge:hover .badge-icon i {
    transform: rotate(-45deg);
}

/* Magnetic field indicator (subtle glow when attracted) */
.magnetic-badge.attracted {
    box-shadow: 0 0 30px rgba(23, 247, 247, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   MEGA DROPDOWN
======================================== */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 320px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: var(--z-dropdown);
    will-change: transform, opacity;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
}

.nav-item.has-dropdown.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown arrow icon rotation */
.dropdown-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown content container */
.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Individual dropdown item */
.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.dropdown-item-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

.dropdown-item-desc {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75); /* WCAG AA contrast fix */
    line-height: 1.4;
}

.dropdown-item:hover .dropdown-item-title {
    color: var(--primary);
}

/* ========================================
   MOBILE MENU
======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: none;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 100px 24px 40px;
    gap: 40px;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--foreground);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-link {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 16px 24px;
    text-align: center;
    width: 100%;
    border-radius: 16px;
    transition: background 0.2s ease, color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.mobile-nav-item.has-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    width: 100%;
}

.mobile-nav-item.has-dropdown.active .mobile-dropdown {
    display: flex;
}

.mobile-dropdown-item {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85); /* WCAG AA contrast fix */
    padding: 12px 32px;
    text-align: center;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.mobile-menu-cta {
    padding-top: 24px;
}

.mobile-cta {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Show mobile menu toggle and hide desktop nav on mobile */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }
}

/* Hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    height: 98vh;
    margin: 1vh auto;
    max-width: calc(100% - 2vh);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-section);  /* 40px */
}

/* 3D City Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius-section);  /* 40px */
    contain: strict;  /* Isolate layout/paint - prevents affecting outside elements */
}

/* Hero Poster Image - instant paint before video loads */
#hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#hero-poster.hidden {
    display: none;
}

/* Hero Loading Video - plays over poster */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#hero-video.playing {
    opacity: 1;
}

#hero-video.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Prism Scene Canvas - starts hidden, fades in when ready */
#prism-canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    touch-action: none;
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    contain: strict;  /* Isolate paint operations for performance */
}

#prism-canvas.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ready indicator - tiny icon at bottom center */
.ready-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 24px;
    height: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.ready-indicator svg {
    width: 100%;
    height: 100%;
    color: rgba(23, 247, 247, 0.7);
}

.ready-indicator.visible {
    animation: readyPulse 0.4s ease-out forwards, readyBreathe 1.5s ease-in-out infinite 0.4s;
}

.ready-indicator.hiding {
    animation: readyFadeOut 0.3s ease-out forwards;
}

@keyframes readyPulse {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes readyBreathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes readyFadeOut {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Reduced motion preference - static background fallback */
@media (prefers-reduced-motion: reduce) {
    #prism-canvas,
    .inline-primitive {
        opacity: 0.3 !important;
    }
    .hero-background {
        background: radial-gradient(ellipse at center, #0a0a0a 0%, #050505 50%, #000000 100%);
    }
    /* Stop logo scroller animation */
    .logo-track {
        animation: none !important;
    }
    /* Disable smooth scroll */
    html {
        scroll-behavior: auto !important;
    }
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 10vh) var(--spacing-md) var(--spacing-lg);
}

.hero-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    text-align: center;
    will-change: opacity, transform;
}

/* Awards Badge */
.awards-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.awards-badge span {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--color-secondary);
}

/* Main Heading */
.hero-heading {
    font-family: var(--font-serif);
    font-size: var(--type-display-size);
    font-weight: var(--type-display-weight);
    line-height: var(--type-display-lh);
    letter-spacing: var(--type-display-tracking);
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    will-change: opacity, transform;
}

/* AI + Human messaging section */
.ai-human-section {
    background: #0e0e0e;  /* Elevated for visual break */
    padding: 3rem 0;  /* Reduced from 4rem */
    text-align: center;
}

.ai-human-line {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--foreground);
    opacity: 0.6;
    margin: 0;
    letter-spacing: 0.02em;
}

.heading-line {
    display: block;
}

/* Mobile LCP optimization: Show heading immediately before JS loads */
@media (max-width: 767px) {
    .heading-line {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ===== Identity Primitives (Inline Canvases) ===== */
.inline-primitive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    pointer-events: none;
    margin-left: 0.25em;
    flex-shrink: 0;
    /* No background - just the 3D object */
    background: transparent;
    /* Size set dynamically by JavaScript */
}

/* Hero Footer (Bottom Info) - Centered Layout */
.hero-footer {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 4rem;
    z-index: 2;
    color: white;
    text-align: center;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Human Proof Badge */
.human-proof {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--foreground);
    opacity: 0.5;
    letter-spacing: 0.03em;
}

/* Human Proof Badges - trust indicators */
.human-proof-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.proof-badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--foreground);
    opacity: 0.5;
    letter-spacing: 0.03em;
    padding: 0.25rem 0;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .studio-note {
        margin-top: 1.5rem;
        max-width: 300px;
    }

    .studio-note p {
        font-size: 1rem;
    }

    .hero-footer {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        bottom: 2rem;
        padding: 0 2rem;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        max-width: 100%;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .hero-book-cta {
        justify-content: center;
    }
}

/* ========================================
   ABOUT + CLIENT SHOWCASE SECTION
======================================== */
.about-client-section {
    background: var(--background);  /* Black background (#050505) */
    padding: 40px 0 20px 0;  /* Top padding for "Trusted By" label, small bottom padding */
    position: relative;
    overflow: hidden;
}

/* Trusted By Label */
.trusted-by-label {
    text-align: center;
    padding-bottom: 24px;
}

.trusted-by-label span {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--primary);
}

/* Logo Scroller Wrapper */
.logo-scroller-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;  /* Removed bottom margin since content below is commented out */
    overflow: hidden;
}

/* Logo Scroller */
.logo-scroller {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;  /* Reduced from 40px to fit tightly around the scrolling line */
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 64px;  /* Spacing between company logos */
    animation: scroll 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.logo-scroller:hover .logo-track {
    animation-play-state: paused;
}

/* Client Logo Items */
.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Circular letter logo */
.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Company name text */
.client-logo span {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
    color: var(--foreground);
    white-space: nowrap;
}

/* Responsive styling for client logos */
@media (max-width: 767px) {
    .logo-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .logo-track {
        gap: 48px;
    }
}

/* Blur Fade Edges */
.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, var(--background), rgba(5, 5, 5, 0));
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, var(--background), rgba(5, 5, 5, 0));
}

/* Scroll Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ========================================
   SERVICES SECTION (20-Column Grid)
======================================== */
.services-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: var(--background);  /* Consistent Void Black #050505 */
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);  /* Visible texture */
}

/* Uses grid-20 from global grid system */
.services-container-grid {
    row-gap: 0;
}

/* Services Header - spans 14 cols via col-span-14 */
.services-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-gap);  /* 40px */
    opacity: 0;
}

.services-header-left {
    margin-bottom: 0;
}

.services-title {
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-lh);
    letter-spacing: var(--type-h1-tracking);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--foreground);  /* Ghost White */
    margin: 0;
}

.services-title span {
    display: inline-block;
}

.services-title-image-container {
    width: clamp(70px, 7vw, 90px);
    height: clamp(70px, 7vw, 90px);
    overflow: hidden;
    border-radius: 16px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 24px;
    position: relative;
    top: -4px;
}

.services-title-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-pill-button {
    background: transparent;
    padding: 16px 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 600;
    line-height: var(--type-body-lh);
    border: 1px solid var(--border);
    color: var(--foreground);  /* Ghost White */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-pill-button:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-subtle);
    border-color: var(--primary);  /* Laser Cyan */
}

.services-pill-button:active {
    transform: scale(0.98);
}

.services-pill-button i {
    font-size: 1.25rem;
}

/* Services Separator */
.services-separator-line {
    height: 1px;
    background-color: var(--border);  /* Subtle border */
    width: 100%;
    margin-bottom: 0;
    opacity: 0;
}

/* Services Grid - single column layout */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Service Item */
.service-item {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    border-radius: 0px;
    transition: border-radius 0.4s ease, padding 0.4s ease, background-color 0.3s ease;
}

/* Service Item Hover - subtle visual feedback */
.service-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* The Separator Line (Pseudo-element) */
.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border);  /* Subtle border */
    transition: opacity 0.2s ease;
    z-index: 0;
}

/* Hide separator when hovered */
.service-item.is-hovered::after {
    opacity: 0;
}

/* Service Background and Overlay */
.service-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.1);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease-out;
    height: 100%;
    width: 100%;
}

.service-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.65);  /* Darker for better text readability */
}

/* Service Content */
.service-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    pointer-events: none;
}

.service-arrow-container {
    width: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.service-arrow-container i {
    font-size: 2.5rem;
    color: var(--foreground);  /* Ghost White */
    white-space: nowrap;
}

.service-text {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);  /* Ghost White */
    margin: 0;
    transition: color 0.3s ease;
}

/* Service Header (collapsed state wrapper) */
.service-header {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Learn more hint - indicates card is expandable */
.service-expand-hint {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    padding-right: 16px;
}

.service-item:hover .service-expand-hint,
.service-item:focus-visible .service-expand-hint {
    color: var(--primary);
}

.service-item.is-expanded .service-expand-hint {
    opacity: 0;
    visibility: hidden;
}

/* Service Details (expanded content) */
.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    width: 100%;
}

/* Tagline styling */
.service-tagline {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0 0 16px 0;
    font-style: italic;
    line-height: 1.4;
}

/* Description styling */
.service-description {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--foreground);
    margin: 0 0 20px 0;
    opacity: 0.9;
    max-width: 65ch;  /* Optimal line length for readability */
}

/* Keyword tags container */
.service-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual keyword tag - Monospace style */
.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: rgba(23, 247, 247, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Arrow rotation transition */
.service-arrow-container i {
    transition: transform 0.3s ease;
}

/* Expanded state styles */
.service-item.is-expanded {
    align-items: flex-start;
    border-radius: 24px;
}

.service-item.is-expanded::after {
    opacity: 0;
}

.service-item.is-expanded .service-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.service-item.is-expanded .service-header {
    margin-bottom: 0;
}

.service-item.is-expanded .service-arrow-container i {
    transform: rotate(180deg);
}

/* Responsive - Services Section */
@media (max-width: 767px) {
    .service-header {
        gap: 8px;
        justify-content: flex-start;
    }

    .service-text {
        font-size: clamp(1.15rem, 4vw, 1.4rem);
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .service-expand-hint {
        display: none;
    }

    .service-arrow-container {
        width: auto;
        overflow: visible;
        opacity: 1;
        margin-right: 8px;
    }

    .service-arrow-container svg {
        width: 1.5rem;
        height: 1.5rem;
        transition: transform 0.3s ease;
    }

    .service-item.is-expanded .service-arrow-container svg {
        transform: rotate(180deg);
    }

    .service-content {
        padding: 0 12px;
    }

    .service-item.is-expanded .service-content {
        padding: 12px;
    }

    .service-details {
        padding: 0;
        width: 100%;
    }

    .service-description {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .service-tagline {
        font-size: 1.1rem;
    }

    .service-keywords {
        gap: 6px;
    }

    .keyword-tag {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* ========================================
   METHODOLOGY SECTION (How We Work)
======================================== */
.methodology-section {
    position: relative;
    background: linear-gradient(180deg,
        rgba(23, 247, 247, 0.05) 0%,
        #0c0c0c 30%,
        var(--background) 100%
    );  /* Cyan wash at top transitioning to slightly elevated black */
    width: 100%;
    padding: var(--section-padding-desktop) 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);  /* Visible texture */
}

/* Section Header - Uses grid-20 */
.methodology-header-grid {
    padding-bottom: 64px;  /* Reduced from 96px */
}

.methodology-header-content {
    /* Spans 10 cols via col-span-10 class */
}

.methodology-section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.methodology-main-heading {
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-lh);
    letter-spacing: var(--type-h1-tracking);
    color: var(--foreground);
    margin: 0 0 24px 0;
}

.methodology-subheading {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: var(--muted-foreground);  /* Alabaster */
    margin: 0;
}

/* Vertical Section Label (Left Side) - Hidden for cleaner layout */
.methodology-vertical-label {
    display: none;  /* Hidden - was causing floating visual issues */
}

.methodology-vertical-label span {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5); /* WCAG AA contrast fix */
}

/* Cards Container */
.methodology-cards-container {
    position: relative;
    width: 100%;
    padding: 0 24px;  /* Reduced from 56px for tighter layout */
}

/* Individual Card */
.methodology-card {
    position: sticky;
    top: 0;
    height: 85vh;  /* Restored for smooth scroll animation */
    min-height: 600px;  /* Restored for smooth scroll animation */
    display: flex;
    align-items: center;
    padding: 0;
    transform-origin: top center;
    cursor: pointer;
}

/* Stacking offset for each card */
.methodology-card[data-card="1"] {
    top: 0;
}

.methodology-card[data-card="2"] {
    top: 25px;
}

.methodology-card[data-card="3"] {
    top: 50px;
}

.methodology-card[data-card="4"] {
    top: 75px;
}

.methodology-card[data-card="5"] {
    top: 100px;
}

.methodology-card[data-card="6"] {
    top: 125px;
}

.methodology-card[data-card="7"] {
    top: 150px;
}

.methodology-card[data-card="8"] {
    top: 175px;
}

.methodology-card[data-card="9"] {
    top: 200px;
}

/* Card Grid - 8/12 asymmetric split (20-col based) */
.methodology-card-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;  /* Balanced ratio */
    gap: 32px;
    align-items: center;
    background: var(--card);
    border-radius: var(--radius-card);  /* 24px */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--primary);
    position: relative;
}

/* Text Card (Left) */
.methodology-card-text {
    position: relative;
    max-width: 600px;
}

.methodology-card-number {
    position: absolute;
    top: 32px;
    left: 32px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted-foreground);  /* Restrained - cyan reserved for interactions */
    letter-spacing: 0.1em;
    z-index: 10;
}

.methodology-card-title {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);
    margin: 0 0 20px 0;
}

.methodology-card-description {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
    max-width: 65ch;  /* Optimal line length for readability */
}

/* Client Name */
.methodology-card-client {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
    color: var(--muted-foreground);  /* Restrained - cyan reserved for interactions */
    transition: color 0.3s ease;
    margin-top: 48px;  /* Space for absolute positioned number */
    margin-bottom: 16px;
}

/* Tech Stack Tags */
.methodology-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.methodology-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.methodology-tag:hover {
    background: rgba(23, 247, 247, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* View Case Study Button */
.methodology-card-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.methodology-card-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.02);
    opacity: 0.95;
}

/* Visualization Card (Right) */
.methodology-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.9);
}

.methodology-viz-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    cursor: crosshair;
}

/* ========================================
   LAB ARCHIVE SECTION (Compact Project List)
======================================== */
.lab-archive-section {
    padding: 60px 0 100px 0;  /* Reduced from 80px/120px */
    background: var(--background);
}

.lab-archive-header {
    margin-bottom: 48px;
}

.lab-archive-title {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    color: var(--foreground);
    margin: 0 0 12px 0;
}

.lab-archive-subtitle {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    color: var(--muted-foreground);
    margin: 0;
}

.lab-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}

.lab-archive-item {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.lab-archive-item-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0 0 4px 0;
}

.lab-archive-item-tagline {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--muted-foreground);  /* Restrained - cyan reserved for interactions */
    margin: 0 0 12px 0;
}

.lab-archive-item-desc {
    font-family: var(--font-sans);
    font-size: var(--type-body-sm-size);
    line-height: var(--type-body-sm-lh);
    color: var(--muted-foreground);
    margin: 0 0 16px 0;
}

.lab-archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lab-archive-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.lab-archive-tag:hover {
    background: rgba(23, 247, 247, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Tablet */
@media (max-width: 1023px) {
    .lab-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }

    .lab-archive-section {
        padding: 48px 0 70px 0;  /* Reduced */
    }
}

/* Mobile */
@media (max-width: 767px) {
    .lab-archive-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lab-archive-section {
        padding: 40px 0 50px 0;  /* Reduced */
    }

    .lab-archive-item {
        padding: 20px 0;
    }

    .lab-archive-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - METHODOLOGY SECTION
======================================== */

/* Tablet */
@media (max-width: 1023px) {
    .methodology-section {
        padding: var(--section-padding-tablet) 0 0 0;
    }

    .methodology-header-grid {
        padding-bottom: 60px;
    }

    .methodology-vertical-label {
        display: none;
    }

    .methodology-card {
        position: relative;
        height: auto;
        padding: 60px 0;
        margin-bottom: 40px;
    }

    .methodology-card[data-card="1"],
    .methodology-card[data-card="2"],
    .methodology-card[data-card="3"],
    .methodology-card[data-card="4"],
    .methodology-card[data-card="5"],
    .methodology-card[data-card="6"],
    .methodology-card[data-card="7"],
    .methodology-card[data-card="8"],
    .methodology-card[data-card="9"] {
        top: 0;
    }

    .methodology-card:last-child {
        margin-bottom: 0;
    }

    .methodology-card-grid {
        grid-template-columns: 1fr 1fr;  /* Even split on tablet */
        padding: 40px;
        gap: 40px;
    }

    .methodology-card-number {
        top: 28px;
        left: 28px;
        font-size: 13px;
    }

    .methodology-card-image-wrapper {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .methodology-section {
        padding: var(--section-padding-mobile) 0 0 0;
    }

    .methodology-header-grid {
        padding-bottom: 48px;
    }


    .methodology-card {
        position: relative;
        height: auto;
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .methodology-card[data-card="1"],
    .methodology-card[data-card="2"],
    .methodology-card[data-card="3"],
    .methodology-card[data-card="4"],
    .methodology-card[data-card="5"],
    .methodology-card[data-card="6"],
    .methodology-card[data-card="7"],
    .methodology-card[data-card="8"],
    .methodology-card[data-card="9"] {
        top: 0;
    }

    .methodology-card:last-child {
        margin-bottom: 0;
    }

    .methodology-card-grid {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }

    .methodology-card-text {
        max-width: 100%;
    }

    .methodology-card-number {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .methodology-card-title {
        margin-bottom: 16px;
    }

    .methodology-card-description {
        margin-bottom: 20px;
    }

    .methodology-card-number {
        top: 24px;
        left: 24px;
        font-size: 12px;
    }

    .methodology-card-tags {
        gap: 6px;
        margin-bottom: 20px;
    }

    .methodology-tag {
        padding: 5px 10px;
    }

    .methodology-card-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .methodology-card-image-wrapper {
        height: 300px;
    }

    .methodology-card-image-inner {
        border-radius: 16px;
    }
}

/* ========================================
   MANIFESTO SECTION (20-Column Grid)
======================================== */
.manifesto-section {
    position: relative;
    background: #111111;  /* Elevated from void black for visual rhythm */
    color: var(--foreground);
    padding: var(--section-padding-desktop) 0;
    min-height: auto;
}

/* Uses grid-20 grid-8-12 from global grid system */
.manifesto-grid-20 {
    align-items: start;
}

/* Left Column - Sticky Title (8 cols) */
.manifesto-left {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.manifesto-title {
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-lh);
    letter-spacing: var(--type-h1-tracking);
    color: var(--foreground);
    margin: 0;
}

/* Right Column - Content */
.manifesto-right {
    padding-top: 0;
}

.manifesto-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Intro Section */
.manifesto-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.manifesto-subtitle {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--primary);
    margin: 0;
}

.manifesto-description {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Core Values Grid */
.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.core-value-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.core-value-title {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);
    margin: 0;
}

.core-value-desc {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design - Manifesto */
@media (max-width: 1024px) {
    /* Grid collapse handled by global grid-20 system */
    .manifesto-left {
        position: relative;
        top: 0;
    }

}

@media (max-width: 767px) {
    .manifesto-section {
        padding: var(--section-padding-mobile) 0;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   QUOTE SECTION - A NOTE FROM THE TEAM
======================================== */
.quote-section-wrapper {
    position: relative;
    background: var(--background);
    padding: 40px 0;
}

.quote-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);  /* 56px */
}

.quote-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-section);  /* 40px */
    position: relative;
    overflow: hidden;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Gentle gradient background - reduced effect */
.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(23, 247, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(23, 247, 247, 0.06) 0%, transparent 50%);
    mix-blend-mode: screen;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

/* Content Layer */
.quote-card > * {
    position: relative;
    z-index: 2;
}

.quote-card:hover {
    border-color: rgba(23, 247, 247, 0.3);
    box-shadow: var(--glow-subtle);
}

.quote-label {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 32px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);
    margin: 0;
    quotes: """ """ "'" "'";
}

.quote-text::before {
    content: open-quote;
}

.quote-text::after {
    content: close-quote;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quote-section-wrapper {
        padding: var(--section-padding-tablet) 0;
    }

    .quote-card {
        padding: 48px 60px;
    }

}

@media (max-width: 767px) {
    .quote-section-wrapper {
        padding: var(--section-padding-mobile) 0;
    }

    .quote-container {
        padding: 0 var(--spacing-container-mobile);  /* 24px */
    }

    .quote-card {
        padding: 40px 32px;
        border-radius: var(--radius-section);  /* 40px - consistent with desktop */
    }

}


/* ========================================
   FALLING TEXT SECTION (Above Footer)
======================================== */
.falling-text-section {
    position: relative;
    width: 100%;
    background: var(--background);  /* Void Black */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 80px var(--spacing-container) 100px;  /* Reduced from 160px/200px */
    min-height: 35vh;  /* Reduced from 50vh */
}

.falling-text-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    padding: 0 24px;
}

.falling-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4.5rem);  /* Conservative sizing to fit on 2 lines */
    font-weight: var(--type-display-weight);
    line-height: 1.2;
    letter-spacing: var(--type-display-tracking);
    color: var(--foreground);
    margin: 0;
    position: relative;
    will-change: transform;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Individual character styling (will be added via JavaScript) */
.falling-text .word-wrapper {
    display: inline-block;
    white-space: nowrap;  /* Prevent word breaking within words */
    margin: 0 0.15em;  /* Space between words */
}

.falling-text .char {
    display: inline-block;
    white-space: pre;  /* Preserve spaces */
    will-change: transform, opacity;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .falling-text-section {
        padding: 120px var(--spacing-container) 160px;
        min-height: 40vh;
    }

    .falling-text {
        font-size: clamp(1.75rem, 6vw, 3.5rem);
    }
}

@media (max-width: 767px) {
    .falling-text-section {
        padding: 80px var(--spacing-container-mobile) 120px;
        min-height: 35vh;
    }

    .falling-text {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .falling-text-container {
        padding: 0 16px;
        text-align: center;
    }
}

/* ========================================
   FOOTER SECTION (Material Lab Design)
======================================== */
.ml-footer {
    background: var(--foreground);  /* White background */
    color: var(--background);       /* Black text */
    padding: 48px 0 24px;  /* Compact padding */
    position: relative;
    overflow: hidden;
}

/* Kinetic Grid Canvas */
#kinetic-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 0;
}

.ml-footer > *:not(#kinetic-grid-canvas) {
    position: relative;
    z-index: 1;
}

/* ========================================
   MATERIAL LAB FOOTER (20-Column Grid)
======================================== */

/* Uses grid-20 from global grid system */
.ml-footer-grid-20 {
    row-gap: 24px;  /* Compact spacing */
}

/* LEFT COLUMN (6 cols via col-span-6) */
.ml-footer-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 0;
}

/* CTA Section */
.ml-footer-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ml-footer-cta-title {
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-lh);
    letter-spacing: var(--type-h1-tracking);
    color: var(--background);
    margin: 0;
}

.ml-footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--background);
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 600;
    line-height: var(--type-body-lh);
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: 0 4px 12px rgba(23, 247, 247, 0.3);
    width: fit-content;
}

.ml-footer-cta-button:hover {
    background: var(--background);
    color: var(--foreground);
    box-shadow: 0 8px 24px rgba(23, 247, 247, 0.5), var(--glow-primary);
    transform: scale(1.02);
    opacity: 0.95;
}

.ml-footer-cta-button i {
    font-size: 18px;
}

/* Response Promise - Human touch */
.response-promise {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--foreground);
    opacity: 0.5;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
}

/* Social Pills */
.ml-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ml-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background);
    color: var(--foreground);
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all var(--duration-fast) var(--ease-out);
}

.ml-social-pill:hover {
    border-radius: 4px;
}

.ml-social-pill i {
    font-size: 14px;
}

.ml-social-pill i:last-child {
    transition: transform var(--duration-fast) var(--ease-out);
}

.ml-social-pill:hover i:last-child {
    transform: rotate(45deg);
}

/* Founders Section */
.ml-footer-founders {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ml-footer-section-label {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    margin: 0 0 16px 0;
}

/* Founders bio line */
.founders-bio {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
}

.ml-founders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ml-founder-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    transition: color var(--duration-normal) var(--ease-out);
}

.ml-founder-item:hover {
    color: var(--background);
}

.ml-founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.ml-founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.ml-founder-item:hover .ml-founder-avatar img {
    transform: scale(1.05);
}

.ml-founder-name {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
}

.ml-founder-linkedin-icon {
    display: block;
    margin-top: 4px;
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.2s ease;
}

.ml-founder-item:hover .ml-founder-linkedin-icon {
    color: rgba(0, 0, 0, 0.7);
}

/* RIGHT COLUMNS (14 cols via col-span-14) */
.ml-footer-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ml-footer-nav-column {
    padding-left: 16px;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.ml-footer-nav-column .ml-footer-section-label {
    margin-bottom: 12px;
}

.ml-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-footer-link {
    display: inline-block;
    position: relative;
    color: var(--background);
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
    text-decoration: none;
}

/* Simple underline animation */
.ml-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--background);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease;
}

.ml-footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hide duplicate span (keep first, hide second) */
.ml-footer-link span:last-child {
    display: none;
}

/* Hero Book CTA (centered below description) */
.hero-book-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.8;
    transition: opacity 200ms ease;
    align-self: center;
}

.hero-book-cta:hover {
    opacity: 1;
}

.hero-book-cta i {
    font-size: 0.9em;
    transition: transform 200ms ease;
}

.hero-book-cta:hover i {
    transform: translate(2px, -2px);
}

@media (max-width: 767px) {
    .hero-book-cta {
        font-size: var(--type-body-lg-size);
        align-self: center;
    }
}

/* Brand Wordmark - Compact scale (uses col-span-20) */
.ml-footer-wordmark {
    margin-top: 24px;
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
}

.ml-wordmark-text {
    font-family: var(--font-serif);
    font-size: clamp(36px, 8vw, 120px);
    font-weight: 700;
    line-height: 0.9;
    color: rgba(0, 0, 0, 0.12);
    margin: 0;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.03em;
    user-select: none;
    pointer-events: none;
}

/* Legal Bar (uses col-span-20) */
.ml-footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.ml-legal-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
}

.ml-legal-dot {
    width: 3px;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.ml-legal-link {
    position: relative;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-out);
}

.ml-legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease;
}

.ml-legal-link:hover {
    color: var(--primary);
}

.ml-legal-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ml-legal-right {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   RESPONSIVE - MOBILE (<768px)
======================================== */
@media (max-width: 767px) {
    .ml-footer {
        padding: 32px 0 16px;
    }

    .ml-footer-container {
        padding: 0 24px;
    }

    .ml-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ml-footer-left,
    .ml-footer-right {
        grid-column: 1;
    }

    .ml-footer-left {
        gap: 20px;
        margin-bottom: 0;
    }

    .ml-footer-cta-button {
        width: 100%;
        justify-content: center;
    }

    .ml-footer-social {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ml-social-pill {
        justify-content: center;
    }

    .ml-footer-right {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ml-footer-nav-column {
        padding-left: 0;
        border-left: none;
    }

    .ml-footer-wordmark {
        margin-top: 16px;
    }

    .ml-wordmark-text {
        font-size: clamp(28px, 10vw, 60px);
    }

    .ml-footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .ml-legal-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ml-legal-dot {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - TABLET (768px - 1023px)
======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .ml-footer-container {
        padding: 0 40px;
    }

    .ml-footer-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .ml-footer-left {
        grid-column: span 8;
    }

    .ml-footer-right {
        grid-column: span 8;
        grid-template-columns: repeat(2, 1fr);
    }

    .ml-footer-social {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (>1440px) */
@media (min-width: 1440px) {
    :root {
        --max-content-width: 1400px;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */
.hero-bg-image,
.hero-container,
.awards-badge,
.hero-heading,
.hero-subheading,
.brand-logos,
.hero-footer,
.nav-hover-bg,
.mega-dropdown,
.btn-cta {
    will-change: transform, opacity;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   ABOUT STACKED SECTION (20-Column Grid)
======================================== */
.about-stacked-section {
    position: relative;
    background: #111111;  /* Elevated from void black for visual rhythm */
    padding: 48px 0 64px;  /* Reduced from 64px 0 96px */
    overflow: clip;
}

/* Uses grid-20 from global grid system */
.about-container-grid {
    position: relative;
    z-index: 0;
}

/* Section Header - spans 14 cols via col-span-14 class */
.about-header {
    text-align: left;
    margin-bottom: 48px;
}

.about-label {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-main-title {
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-h1-weight);
    line-height: var(--type-h1-lh);
    letter-spacing: var(--type-h1-tracking);
    color: var(--foreground);
    margin-bottom: 16px;
}

.about-title-break {
    display: none;
}

.about-description {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: rgba(255, 255, 255, 0.7);
    max-width: 900px;
    margin: 0 auto;
}

/* Cards Wrapper */
.about-cards-wrapper {
    position: relative;
}

/* Individual Card */
.about-card {
    position: relative; /* Default: normal cards on mobile/tablet */
    pointer-events: none;
}

/* Desktop only: Enable stacking effect */
@media (min-width: 1024px) {
    .about-card {
        position: sticky;
        top: clamp(80px, calc(64px + 4vmax), 120px);
    }
}

/* Card inner grid - 4/16 asymmetric split (20-col based) */
.about-card-inner {
    display: grid;
    grid-template-columns: 4fr 16fr;  /* 4/16 ratio = 20% / 80% */
    gap: 0 24px;
    padding: 0 48px;
    background: var(--card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);  /* 24px */
    pointer-events: auto;
}

/* Number Column (4 cols = 20%) */
.about-card-number-col {
    padding-top: 48px;
}

.about-card-number {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--muted-foreground);  /* Restrained - cyan reserved for interactions */
}

/* Content Column - Default stacks vertically */
.about-card-content-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-card-title-wrapper {
    padding-top: 48px;
    padding-bottom: 16px;
}

.about-card-title {
    font-family: var(--font-serif);
    font-size: var(--type-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);
    white-space: nowrap;  /* Prevent awkward line breaks */
}

.about-card-description-wrapper {
    padding-top: 0;
    padding-bottom: 48px;
}

.about-card-description {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    letter-spacing: var(--type-body-lg-tracking);
    color: rgba(255, 255, 255, 0.7);
    max-width: 65ch;  /* Optimal line length for readability */
}

/* About Card Keywords */
.about-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 48px;
}

.about-card-keyword {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(23, 247, 247, 0.08);
    border: 1px solid rgba(23, 247, 247, 0.25);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--font-sans);
}

/* Tablet+ Breakpoint (768px+) */
@media (min-width: 768px) {
    .about-stacked-section {
        padding: 96px 0 128px;
    }

    .about-header {
        margin-bottom: 64px;
    }

    .about-title-break {
        display: block;
    }

    .about-card-number-col {
        padding-top: 40px;
    }

    .about-card-title-wrapper {
        padding-top: 48px;
        padding-bottom: 20px;
    }

    .about-card-description-wrapper {
        padding-bottom: 48px;
    }

    .about-card-keywords {
        padding-bottom: 64px;
    }
}

/* Tablet only (768px - 1023px): Normal card spacing */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-card {
        margin-bottom: 32px; /* Space between cards on tablet */
    }
}

/* Mobile - About section */
@media (max-width: 767px) {
    .about-header {
        text-align: center;
    }

    .about-card {
        margin-bottom: 24px; /* Space between cards */
    }

    .about-card-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }

    .about-card-number-col {
        padding-top: 32px;
    }

    .about-card-title-wrapper {
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .about-card-title {
        white-space: normal;  /* Allow wrapping on mobile */
    }

    .about-card-description-wrapper {
        padding-bottom: 32px;
    }

    .about-card-keywords {
        padding-bottom: 32px;
    }

    .about-card-keyword {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
======================================== */
@media (max-width: 767px) {
    /* Remove backdrop-filter on mobile for better performance */
    .main-header,
    .main-header.scrolled,
    .mega-dropdown,
    .awards-badge,
    .quote-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Use solid backgrounds instead of glassmorphism on mobile */
    .main-header {
        background: rgba(5, 5, 5, 0.95);
    }

    .main-header.scrolled {
        background: rgba(5, 5, 5, 0.98);
    }

    .quote-card {
        background: rgba(5, 5, 5, 0.95);
    }

    .awards-badge {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Reduce animation complexity on mobile */
    .methodology-card,
    .about-card {
        will-change: auto;
    }

    /* Simplify service cards */
    .service-card::before {
        display: none;
    }
}

/* ========================================
   REDUCED MOTION PREFERENCES
   (Accessibility + Battery Saving)
======================================== */
@media (prefers-reduced-motion: reduce) {
    /* Disable all backdrop filters */
    .main-header,
    .main-header.scrolled,
    .mega-dropdown,
    .awards-badge,
    .quote-card,
    .modal-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Disable all transitions and animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Hide purely decorative canvases */
    .section-stars,
    #prism-canvas {
        opacity: 0.3 !important;
    }

    /* Remove will-change (causes layer promotion) */
    .hero-heading,
    .hero-subheading,
    .awards-badge,
    .hero-footer,
    .methodology-card,
    .about-card {
        will-change: auto !important;
    }
}

/* ========================================
   LOW POWER MODE DETECTION
   (Safari-specific)
======================================== */
@media (prefers-reduced-motion: reduce), (update: slow) {
    /* Further reduce visual complexity */
    .hero-background::after {
        background: rgba(0, 0, 0, 0.5);
    }

    /* Disable complex gradients */
    .service-card-gradient {
        opacity: 0;
    }
}
