/* ========================================
   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;

    /* ===== Gymbo card treatment (Kaushik 2026-09-18: cards follow Gymbo, no coloured side bars) =====
       Source: Gymbo ios ClientStackCardView.swift + Color+Theme.swift.
       rest     cardFloating fill, 24px corners, gBorder (foreground) @ 12% 1px stroke,
                gShadow = black 50% SwiftUI radius 25 / y 25 (CSS 0 25px 50px),
                top-edge specular white 5% radius 1 / y -1.
       lit      the 'selected' state: white sheen from the top-left corner to the centre
                (10% -> 3% -> clear), stroke @ 30%, extra lift black 28% radius 14 / y 10. */
    --gcard-fill: var(--card-floating);
    --gcard-stroke: rgba(245, 245, 240, 0.12);
    --gcard-stroke-lit: rgba(245, 245, 240, 0.30);
    --gcard-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 -1px 2px rgba(255, 255, 255, 0.05);
    --gcard-shadow-lit: 0 25px 50px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(0, 0, 0, 0.28), 0 -1px 2px rgba(255, 255, 255, 0.05);
    --gcard-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0) 50%);

    /* ===== 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(2.5rem, 3.4vw, 4.25rem);
    --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 */
    --card-floating: #1c1c1e;           /* Gymbo neutralDark2 - elevated/floating card */

    /* ===== 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 */
.methodology-header-grid,
.methodology-cards-container,
.methodology-vertical-label {
    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;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.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;
    }
}

/* ========================================
   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: none; /* full-bleed nav at every width (Kaushik 2026-09-18: no side padding on wide screens) */
    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;
    min-width: 44px;
    min-height: 44px;
    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 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);
}

/* ========================================
   HEADER BOOK-A-CALL BADGE (static; the magnetic rAF effect was removed)
======================================== */
.magnetic-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    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;
}

.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);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

/* ========================================
   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-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);
}

/* ========================================
   PAGE-LOAD INTRO MASK (mw-gfm)
   The white SVG mask exists only while script.js can remove it. No JS: never shown.
   GSAP or script.js failed to load: a CSS fail-safe hides it after 3s.
======================================== */
#transition-overlay {
    display: none;
}

html.intro-pending #transition-overlay,
html.intro-running #transition-overlay {
    display: block;
}

html.intro-pending #transition-overlay {
    animation: intro-failsafe 0.2s linear 3s forwards;
}

@keyframes intro-failsafe {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   HERO SECTION (SPEC v2)
   One sentence + two CTAs. Not full height, so Work starts above the fold.
======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 60% at 10% 12%, rgba(23, 247, 247, 0.07) 0%, rgba(5, 5, 5, 0) 60%),
        var(--background);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: calc(var(--header-height) + 64px) var(--spacing-container) 56px;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    will-change: opacity, transform;
}

/* Main Heading */
.hero-heading {
    max-width: 30ch;
    margin-inline: auto;
    font-family: var(--font-serif);
    font-size: var(--type-h1-size);
    font-weight: var(--type-display-weight);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--foreground);
    margin-bottom: 32px;
    will-change: opacity, transform;
}

/* Only hidden while script.js runs the intro, so the heading is visible without JS/GSAP */
html.intro-running .hero-heading {
    opacity: 0;
}

.heading-line {
    display: inline;  /* lines wrap naturally; the GSAP entrance fades them in */
}

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

.nowrap {
    white-space: nowrap;
}

/* ===== 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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-book-cta,
.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 600;
    transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.hero-book-cta {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 16px rgba(23, 247, 247, 0.25);
}

.hero-book-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(23, 247, 247, 0.4);
}

.hero-secondary-cta {
    color: var(--foreground);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-secondary-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* WhatsApp: a round icon button in WhatsApp green beside Book a call, so it is recognisable at a
   glance and the hero needs one row of buttons, not two (Kaushik 2026-09-18). */
.hero-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease;
}

.hero-whatsapp-cta:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

.hero-whatsapp-cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .hero-content {
        padding: calc(var(--header-height) + 48px) var(--spacing-container-tablet) 48px;
    }
}

@media (max-width: 767px) {
    .hero-content {
        padding: calc(var(--header-height) + 32px) var(--spacing-container-mobile) 32px;
    }

    .hero-heading {
        margin-bottom: 28px;
    }

    .hero-footer,
    .hero-cta-group {
        width: 100%;
    }

    .hero-cta-group { flex-wrap: nowrap; }

    .hero-book-cta,
    .hero-secondary-cta {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inline-primitive {
        opacity: 0.3 !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}

/* ========================================
   CLIENTS: partner logo carousel + Clutch testimonial
   Logos: light-monochrome WebP from tools/logo-mono.py
======================================== */
.clients-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clients-header {
    max-width: none;
}

.clients-header .section-title {
    margin-bottom: 0;
}

.partner-marquee {
    --partner-gap: 96px;
    margin: 48px 0 64px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.partner-track {
    display: flex;
    width: max-content;
    animation: partner-scroll 40s linear infinite;
}

.partner-marquee:hover .partner-track {
    animation-play-state: paused;
}

.partner-group {
    display: flex;
    align-items: center;
    gap: var(--partner-gap);
    padding-right: var(--partner-gap);
    margin: 0;
    list-style: none;
}

.partner {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 56px;
}

.partner-logo {
    display: block;
    width: auto;
    opacity: 0.75;
}

.partner-logo--wordmark { height: 36px; }
.partner-logo--emblem { height: 52px; }
.partner-logo--mark { height: 40px; }

.partner-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.75;
}

.partner-lockup .partner-logo { opacity: 1; }

.partner-lockup-name {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--foreground);
    white-space: nowrap;
}

.partner-lockup-name--stacked {
    display: flex;
    flex-direction: column;
}

.partner-lockup-sub {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
}

@keyframes partner-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        padding: 0 var(--grid-margin, 24px);
    }
    .partner-track {
        width: auto;
        animation: none;
    }
    .partner-group {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 32px;
        padding-right: 0;
        width: 100%;
    }
    .partner-group[aria-hidden="true"],
    .partner-group .partner:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 1023px) {
    .clients-section {
        padding: var(--section-padding-tablet) 0;
    }
}

@media (max-width: 767px) {
    .clients-section {
        padding: var(--section-padding-mobile) 0;
    }
    .partner-marquee {
        --partner-gap: 56px;
        margin: 32px 0 40px;
    }
    .partner { height: 40px; }
    .partner-logo--wordmark { height: 26px; }
    .partner-logo--emblem { height: 38px; }
    .partner-logo--mark { height: 28px; }
    .partner-lockup-name { font-size: 0.9rem; }
    .partner-lockup-sub { font-size: 0.6rem; }
}

/* ========================================
   PEOPLE
======================================== */
.people-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1023px) {
    .people-section {
        padding: var(--section-padding-tablet) 0;
    }
}

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

}


/* ========================================
   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-top: 0;
    margin-bottom: 16px;
}

.methodology-main-heading {
    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 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;
}

/* 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 - text 5fr / media 7fr (SPEC v2: shorter text, media takes more width) */
.methodology-card-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0 40px 40px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
    /* Work-card surface ported from Gymbo's floating-card treatment
       (ios/Gymbo Views/Clients/ClientStackCardView.swift + Color+Theme.swift):
         fill      cardFloating = neutralDark2 #1C1C1E  (was var(--card) #090909,
                   only 4 values off the #050505 page, so the card never separated)
         radius    24px continuous  -- the site already matched this
         hairline  foreground @ 0.08, 1px  -- Gymbo's most common card stroke
         shadow    gShadow dark = black 50%, SwiftUI radius 25 / y 25
         highlight white 5%, 1px, y -1  -- the top-edge specular line
       SwiftUI shadow radius ~= half a CSS blur, so 25 -> 50px blur.
       The cards are sticky-stacked and overlap each other on scroll, which is
       the same situation Gymbo's card stack is in, so the backdrop blur earns
       its cost here rather than being decoration. */
    background: color-mix(in srgb, var(--card-floating) 82%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border-radius: var(--radius-card);  /* 24px */
    border: 1px solid var(--gcard-stroke);
    box-shadow: var(--gcard-shadow);
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
    position: relative;
    overflow: hidden;
}

/* CargoSphere sets the single portfolio-media proportion. Every card uses this
   same stage; each supplied render is then fitted whole inside it. */
@media (min-width: 768px) {
    .methodology-card-grid > .methodology-card-image-wrapper.work-media {
        align-self: start;
        height: auto;
        aspect-ratio: 6000 / 4171;
        margin: -40px 0;
    }

    /* CargoSphere uses the same flush media-box geometry as the video cards.
       Its supplied frame is contained by the embed itself, so its 6000:4171
       composition stays whole even when the box is taller or wider. */
    .methodology-card-grid > .work-composite {
        align-self: start;
        height: auto;
        min-height: 0;
        aspect-ratio: 6000 / 4171;
        margin: -40px 0;
        position: relative;
        overflow: hidden;
        background: var(--card);
    }

    .methodology-card-grid > .work-composite iframe {
        height: 100%;
        aspect-ratio: auto;
    }

    .methodology-card-grid > .work-composite .work-composite-caption {
        position: absolute;
        right: 16px;
        bottom: 16px;
        left: 16px;
        margin: 0;
        padding: 8px 10px;
        background: rgba(9, 9, 9, 0.78);
        border-radius: 8px;
    }
}

/* Gymbo 'selected' treatment on hover: sheen + brighter stroke + lift shadow. No transform, because
   script.js scales these cards in the sticky stack. */
@media (hover: hover) {
    .methodology-card-grid:hover {
        background-image: var(--gcard-sheen);
        border-color: var(--gcard-stroke-lit);
        box-shadow: var(--gcard-shadow-lit);
    }
}

/* No backdrop-filter support: fall back to the opaque Gymbo tone. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .methodology-card-grid { background: var(--card-floating); }
}

/* Text Card (Left): tag, Client | services, meaning, human line, credit, link */
.methodology-card-text {
    position: relative;
    max-width: 600px;
}

.work-card-tag {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.work-card-client {
    margin: 20px 0 10px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--muted-foreground);
}

.work-card-client strong {
    font-weight: 600;
    color: var(--foreground);
}

.work-card-sep {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.4);
}

.methodology-card-title {
    font-family: var(--font-serif);
    font-size: clamp(1.625rem, 1rem + 1.4vw, 2.375rem);
    font-weight: var(--type-h2-weight);
    line-height: 1.15;
    letter-spacing: var(--type-h2-tracking);
    color: var(--foreground);
    margin: 0 0 16px 0;
}

.work-card-human {
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--muted-foreground);
}

.work-card-credit {
    margin: -12px 0 20px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(245, 245, 240, 0.6);
}

/* 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);
}

/* ========================================
   WORK SHOWCASE MEDIA (inside methodology cards)
   16:9 slots: laptop mockup loops, Gymbo phone tiles, placeholder
======================================== */
.methodology-card-image-wrapper.work-media {
    height: auto;
    aspect-ratio: 6000 / 4171;
    /* Laptop loops are keyed onto the card colour (media/ build: keybg.py 090909): no box, no frame */
    background: var(--card);
    border: none;
}

.work-media .work-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Supplied portfolio media keeps its complete frame. The consistent 16:9
       media box can letterbox it, but it must never crop a supplied mockup. */
    object-fit: contain;
    background: var(--card);
    display: block;
}

.methodology-card-image-wrapper.work-media--gymbo {
    display: block;
    /* The owned Gymbo motion mockup deliberately has breathing room only on
       its left; it meets the card's other three edges. */
    padding: 0;
}

.gymbo-tile {
    position: relative;
    aspect-ratio: 400 / 786;
    border-radius: 12% / 6%;
    overflow: hidden;
    background: var(--card);
}

.work-media--gymbo .gymbo-tile:not(.gymbo-tile--video) {
    display: none;
}

.gymbo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gymbo-tile--video {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
    background: var(--card);
}

.work-media--gymbo .work-video {
    /* Keep the supplied angled-phone frame complete. */
    object-fit: contain;
    object-position: center;
}

.methodology-card-image-wrapper.work-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
        #0b0b0b;
    border: 2px dashed rgba(255, 209, 102, 0.7);
}

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
}

.placeholder-flag {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.7);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
}

.placeholder-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 500;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(23, 247, 247, 0.35);
    text-underline-offset: 4px;
    transition: text-decoration-color var(--duration-fast) ease;
}

.work-link:hover {
    text-decoration-color: currentColor;
}

@media (max-width: 767px) {
    .methodology-card-image-wrapper.work-media--gymbo {
        aspect-ratio: 6000 / 4171;
        padding: 0;
    }

    .gymbo-tile--wide-only {
        display: none;
    }
}

/* ========================================
   SHARED SECTION SCAFFOLD (pricing, process, why us, FAQ)
======================================== */
.section-inner {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.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;
}

.section-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-bottom: 16px;
}

.section-sub {
    font-family: var(--font-sans);
    font-size: var(--type-body-lg-size);
    line-height: var(--type-body-lg-lh);
    color: var(--muted-foreground);
}

@media (max-width: 1023px) {
    .section-inner {
        padding: 0 var(--spacing-container-tablet);
    }
}

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

    .section-header {
        margin-bottom: 32px;
    }
}

/* ========================================
   SERVICES & PRICING
======================================== */
.pricing-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.pricing-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
    margin-bottom: 0;
}

.currency-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.currency-btn {
    min-height: 44px;
    min-width: 92px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.currency-btn.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.currency-btn:focus-visible,
.price-cta:focus-visible,
.price-row-summary:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.pricing-header {
    margin-bottom: 40px;
}

/* Flagship: Launch bundle */
.price-flagship {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 56px;
    padding: 36px 40px;
    /* The featured offer is the Gymbo 'selected' card at rest: sheen, brighter stroke, lift. */
    background: var(--gcard-sheen), var(--gcard-fill);
    border: 1px solid var(--gcard-stroke-lit);
    border-radius: var(--radius-card);
    box-shadow: var(--gcard-shadow-lit);
}

.price-flagship-kicker {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: 600;
    line-height: var(--type-label-lh);
    letter-spacing: var(--type-label-tracking);
    text-transform: uppercase;
    color: var(--primary);
}

.price-flagship-line {
    margin-top: 10px;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--foreground);
}

.price-flagship-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.price-flagship-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: var(--foreground);
}

.price-from,
.price-unit {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.price-flagship-price .price-from {
    font-size: 0.875rem;
}

/* Launch / Stay on lists */
.price-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
}

.price-list-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--foreground);
}

.price-list-desc {
    font-family: var(--font-sans);
    font-size: var(--type-body-sm-size);
    font-weight: 400;
    color: var(--muted-foreground);
}

/* Row = native details/summary (same pattern as the FAQ, no JS) */
.price-row {
    border-bottom: 1px solid var(--border);
}

.price-row-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    column-gap: 16px;
    row-gap: 4px;
    align-items: baseline;
    min-height: 44px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
}

.price-row-summary::-webkit-details-marker {
    display: none;
}

.price-row-name {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--foreground);
}

.price-row-price {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: var(--foreground);
}

.price-row-price .price-unit {
    margin-left: -2px;
}

.price-row-desc {
    grid-column: 1 / 3;
    grid-row: 2;
    font-family: var(--font-sans);
    font-size: var(--type-body-sm-size);
    line-height: 1.4;
    color: var(--muted-foreground);
}

.price-row-chevron {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    transition: transform var(--duration-normal) ease;
}

.price-row[open] .price-row-chevron {
    transform: rotate(180deg);
}

.price-row-summary:hover .price-row-name {
    color: var(--primary);
}

.price-includes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.price-includes li {
    position: relative;
    padding-left: 18px;
}

.price-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.price-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-normal) ease;
}

.price-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.price-cta--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

.price-cta--primary:hover {
    color: var(--primary-foreground);
    box-shadow: 0 8px 24px rgba(23, 247, 247, 0.35);
}

.price-list-cta {
    margin-top: 20px;
}

/* Priced per project: one line, no quote cards */
.price-quote-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.price-quote-text {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: 1.5;
    color: var(--foreground);
}

.price-quote-muted {
    color: var(--muted-foreground);
}

@media (max-width: 1023px) {
    .pricing-section {
        padding: var(--section-padding-tablet) 0;
    }

    .price-lists {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    .pricing-header {
        margin-bottom: 24px;
    }

    .price-flagship {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 32px;
        padding: 22px 20px;
    }

    .price-flagship-line {
        font-size: 1.25rem;
    }

    .price-flagship-action {
        align-items: stretch;
        gap: 12px;
    }

    .price-flagship-price {
        font-size: 2rem;
    }

    .price-lists {
        gap: 32px;
    }

    .price-list-heading {
        font-size: 1.375rem;
    }

    .price-row-summary {
        column-gap: 12px;
        padding: 14px 0;
    }

    .price-row-name {
        font-size: 1rem;
    }

    .price-row-desc {
        font-size: 0.8125rem;
    }

    .price-row-price {
        font-size: 1.1875rem;
    }

    .price-list-cta {
        display: flex;
        margin-top: 14px;
    }

    .price-quote-line {
        margin-top: 32px;
    }

    .price-quote-line .price-cta {
        width: 100%;
    }
}

/* ========================================
   HOW WE WORK (Process steps)
======================================== */
.process-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-carousel-controls { display: none; }

.process-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0 0;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.process-step:first-child {
    border-top-color: var(--primary);
}

.process-step-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.process-step-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);
}

.process-step-desc {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    color: rgba(255, 255, 255, 0.75);
    max-width: 40ch;
}

@media (max-width: 1023px) {
    .process-section {
        padding: var(--section-padding-tablet) 0;
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }
}

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

    .process-steps {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 0 8px;
    }
    .process-steps::-webkit-scrollbar { display: none; }
    .process-step { flex: 0 0 calc(100% - 12px); scroll-snap-align: start; min-height: 270px; }
    .process-carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--muted-foreground); }
    .process-carousel-button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--foreground); font-size: 1.25rem; }
    .process-carousel-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
}

/* ========================================
   WHY US (merged manifesto block)
======================================== */
.why-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.why-grid,
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
}

.why-header {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.why-item {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.why-item:last-child {
    border-bottom: 1px solid var(--border);
}

.why-item-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-bottom: 8px;
}

.why-item-desc {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   FAQ
======================================== */
.faq-section {
    position: relative;
    padding: var(--section-padding-desktop) 0;
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 24px 0;
    list-style: none;
    cursor: pointer;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--primary);
    transition: transform var(--duration-normal) ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-question-text {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--foreground);
}

.faq-answer {
    max-width: 65ch;
    padding-bottom: 24px;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1023px) {
    .why-section,
    .faq-section {
        padding: var(--section-padding-tablet) 0;
    }

    .why-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .why-header {
        position: static;
    }
}

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

    .faq-question-text {
        font-size: 1rem;
    }
}

/* ========================================
   HEADER CTAs, MOBILE MENU CTAs, FOOTER CTAs
======================================== */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--foreground);
    transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.nav-whatsapp:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 1100px) {
    .nav-whatsapp {
        display: none;
    }

    .nav-link {
        padding: 10px 12px;
    }
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.btn-ghost {
    display: inline-block;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-weight: 600;
}

.mobile-cta {
    text-align: center;
}

.ml-footer-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ml-footer-cta-button.ml-footer-cta-button--ghost {
    background: transparent;
    color: var(--background);
    border: 1.5px solid var(--background);
    box-shadow: none;
}

/* ========================================
   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-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;
    }

    /* 390px: media on top, then text; card padding 16px */
    .methodology-card-grid {
        grid-template-columns: 1fr;
        padding: 16px 16px 24px;
        gap: 20px;
    }

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

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

    .work-card-client {
        margin: 14px 0 8px;
    }

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

    .work-card-human {
        margin-bottom: 16px;
    }

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

/* ========================================
   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-h2-size);
    font-weight: var(--type-h2-weight);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-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;
    min-height: 44px;
    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;
    min-height: 44px;
    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-flex;
    align-items: center;
    min-height: 44px;
    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;
}


/* 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;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    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-container,
.hero-heading,
.hero-footer,
.nav-hover-bg,
.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;
    }
}

/* ========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
======================================== */
@media (max-width: 767px) {
    /* Remove backdrop-filter on mobile for better performance */
    .main-header,
    .main-header.scrolled {
        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);
    }

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

/* ========================================
   REDUCED MOTION PREFERENCES
   (Accessibility + Battery Saving)
======================================== */
@media (prefers-reduced-motion: reduce) {
    /* Disable all backdrop filters */
    .main-header,
    .main-header.scrolled {
        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 {
        opacity: 0.3 !important;
    }

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

/* ========================================
   LOW POWER MODE DETECTION
   (Safari-specific)
======================================== */
@media (prefers-reduced-motion: reduce), (update: slow) {
    /* Further reduce visual complexity */
    .hero-book-cta {
        box-shadow: none;
    }
}

/* ========================================
   CASE STUDY PAGES (mw-52q.1): /work/<slug>/
   Scoped to .case-page / .case-*; reuses tokens, .btn-cta, .placeholder-*, .work-video.
   Static layout: no GSAP, readable with JavaScript off.
======================================== */
.case-main {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
    background: var(--background);
    color: var(--foreground);
}

.case-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.case-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.case-client,
.case-label {
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.case-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--type-h1-size);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin: 0;
}

.case-summary {
    font-size: clamp(1.125rem, 1vw + 0.8rem, 1.375rem);
    line-height: 1.5;
    color: var(--muted-foreground);
    max-width: 44em;
    margin: var(--spacing-md) 0 0;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.case-meta dt {
    font-size: var(--type-label-size);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.case-meta dd {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.case-meta a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.case-hero-media {
    margin: var(--spacing-lg) 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
}

.case-hero-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-media--cargosphere,
.work-composite iframe {
    border: 0;
}

.case-hero-media--cargosphere iframe,
.case-hero-media--cargosphere noscript img {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .case-hero-media--perhitsiksha-loop {
        background: center / cover no-repeat url('/media/perhitsiksha-laptop-poster.jpg');
    }

    .case-hero-media--perhitsiksha-loop video {
        display: none;
    }
}

/* Portrait phone recording: centred on a dark stage instead of cropped to 16:9 */
.case-hero-media--phone {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md) 0;
}

.case-hero-media--phone video {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    mix-blend-mode: lighten;   /* the video's near-black (2,0,3) is darker than the --card stage: lift it to the stage, keep the phone */
}

.case-section {
    margin-top: var(--spacing-xl);
}

.case-h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--type-h2-size);
    line-height: 1.2;
    margin: 0 0 var(--spacing-md);
}

.case-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    max-width: 42em;
    margin: 0;
}

.case-source {
    margin: var(--spacing-sm) 0 0;
    color: rgba(255, 255, 255, 0.55);
}

/* The quote is a Gymbo card (Kaushik 13:10Z: no coloured side bars) */
.case-quote {
    margin: var(--spacing-lg) 0 0;
    padding: 32px;
    background: var(--gcard-fill);
    border: 1px solid var(--gcard-stroke);
    border-radius: var(--radius-card);
    box-shadow: var(--gcard-shadow);
    max-width: 46em;
}

.case-quote blockquote {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
    line-height: 1.5;
}

.case-quote blockquote p:first-child::before { content: '\201C'; }   /* one pair of marks per quote, however many paragraphs */
.case-quote blockquote p:last-child::after { content: '\201D'; }
.case-quote blockquote p + p { margin-top: 1em; }

/* A full client testimonial (100+ words, several paragraphs) reads at body-serif size, not pull-quote size */
.case-quote--long blockquote {
    font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
    line-height: 1.6;
}

.case-quote figcaption {
    margin-top: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.case-quote figcaption a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}


.case-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    border-radius: var(--radius-md);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
        #0b0b0b;
    border: 2px dashed rgba(255, 209, 102, 0.7);
}

.case-placeholder--hero {
    height: 100%;
}

.case-placeholder .placeholder-text {
    font-size: 1.0625rem;
    max-width: 30em;
}

.case-subs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.case-sub {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--spacing-lg);
    align-items: center;
}

.case-sub-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.case-sub h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--type-h2-size);
    line-height: 1.25;
    margin: 0 0 var(--spacing-sm);
}

.case-sub p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0;
}

.case-visual {
    margin: 0;
}

.case-visual:not(.case-visual--phone) .case-placeholder {
    aspect-ratio: 16 / 10;
}

.case-visual--phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
}

.case-visual--phone img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
}

.case-visual--wide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.case-visual-caption {
    margin-top: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.case-visual--phone .case-visual-caption {
    text-align: center;
}

/* Hero screenshot of a phone page (no video): same stage as the phone recording */
.case-hero-figure {
    margin: 0;
}

.case-hero-figure .case-visual-caption {
    text-align: center;
}

.case-hero-media--phone img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.case-shipped-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.case-shipped-list li {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
}

.case-close {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-md);
}

.case-cta,
.case-next {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card);
}

.case-cta-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--type-h2-size);
    line-height: 1.25;
    margin: 0 0 var(--spacing-md);
}

.case-cta-button {
    min-height: 44px;
}

.case-next {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--foreground);
    text-decoration: none;
    transition: border-color var(--duration-fast) ease;
}

.case-next:hover,
.case-next:focus-visible {
    border-color: rgba(23, 247, 247, 0.5);
}

.case-next .case-label {
    margin: 0;
}

.case-next-client {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.case-next-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: var(--type-h2-size);
    line-height: 1.25;
    padding-right: 32px;
}

.case-next-arrow {
    position: absolute;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    font-size: 1.5rem;
    color: var(--primary);
}

@media (max-width: 1023px) {
    .case-wrap {
        padding: 0 var(--spacing-container-tablet);
    }

    .case-sub {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .case-close {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .case-main {
        padding-top: calc(var(--header-height) + var(--spacing-md));
    }

    .case-wrap {
        padding: 0 var(--spacing-container-mobile);
    }

    .case-section {
        margin-top: var(--spacing-lg);
    }

    .case-subs {
        gap: var(--spacing-lg);
    }

    .case-hero-media--phone {
        aspect-ratio: 4 / 5;
    }

    .case-cta,
    .case-next {
        padding: var(--spacing-md);
    }

    .case-next-arrow {
        right: var(--spacing-md);
        bottom: var(--spacing-md);
    }
}

/* ========================================================================
   Case pages: device frames + unified stat cards   (mw-52q.2, designer)
   Append to style.css AFTER the existing .case-* block (order matters: the
   --device hero stage and the .case-stats rules below override earlier ones).

   Rules of the road
   - Pure CSS. No image overlays, no JS, no new dependency, no build step.
   - The <img> IS the screen. The frame is drawn around it with border,
     radius, box-shadow and two pseudo-elements, so any aspect ratio works
     and nothing costs a network round trip.
   - Hardware colour is theme-independent (a phone does not turn white in
     light mode). Only the STAGE behind it reads the site tokens, so a future
     light theme changes --card / --border and nothing here.
   - Tokens reused: --card, --border, --primary, --radius-lg, --spacing-*,
     --gcard-shadow, --glow-subtle, --font-*. No new colour is introduced
     except the two hardware neutrals below.
   ======================================================================== */

/* ---------- Stage: the card every framed visual sits on ---------- */
.case-visual--device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(23, 247, 247, 0.07), rgba(23, 247, 247, 0) 60%),
        var(--card);
}

.case-visual--device .case-visual-caption {
    margin: 0;
    text-align: center;
    max-width: 34em;
}

/* Hero stage for a still (not a video): same look, sized by its content */
.case-hero-media--device {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
    padding: var(--spacing-lg) var(--spacing-md);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(23, 247, 247, 0.07), rgba(23, 247, 247, 0) 60%),
        var(--card);
}

/* ---------- Device base ---------- */
.device {
    --device-body: #0f1013;                       /* hardware: neutral dark metal */
    --device-edge: rgba(245, 245, 240, 0.16);     /* 1px rim light */
    --device-bezel: clamp(6px, 1.1vw, 10px);
    position: relative;
    width: 100%;
    max-width: var(--device-max, 720px);
    margin-inline: auto;
}

.device__screen {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    border: var(--device-bezel) solid var(--device-body);
    box-shadow: 0 0 0 1px var(--device-edge), var(--gcard-shadow), var(--glow-subtle);
}

.device__screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* A dashboard/page taller than a real display: show the top of it, 16:10 */
.device__screen--crop img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

/* ---------- Laptop: web app and marketing-site screenshots ---------- */
.device--laptop {
    --device-max: 760px;
    padding-inline: 4%;                           /* room for the wider base, no overflow */
}

.device--laptop .device__screen {
    border-radius: 12px 12px 0 0;
}

.device--laptop::before {                         /* camera */
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(var(--device-bezel) / 2 - 2px);
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2a2c31;
    transform: translateX(-50%);
}

.device--laptop::after {                          /* base with the finger notch */
    content: "";
    display: block;
    height: 14px;
    margin-inline: -4%;
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)) top center / 14% 4px no-repeat,
        linear-gradient(#2b2d33, #121317);
    box-shadow: inset 0 1px 0 var(--device-edge), 0 18px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Monitor: deck slides and wide desktop views ---------- */
.device--monitor {
    --device-max: 720px;
    padding-bottom: clamp(30px, 5vw, 46px);       /* neck + foot */
}

.device--monitor .device__screen {
    border-radius: 10px;
    border-bottom-width: clamp(12px, 2.2vw, 22px); /* the chin */
}

.device--monitor::before {                        /* foot */
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 28%;
    height: 8px;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(#2b2d33, #121317);
    box-shadow: inset 0 1px 0 var(--device-edge);
    transform: translateX(-50%);
}

.device--monitor::after {                         /* neck */
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 11%;
    height: calc(clamp(30px, 5vw, 46px) - 8px);
    background: linear-gradient(90deg, #15161a, #33353b 50%, #15161a);
    transform: translateX(-50%);
}

/* ---------- Phone ---------- */
.device--phone {
    --device-max: 260px;
    --device-bezel: 9px;
}

.device--phone .device__screen {
    border-radius: 38px;
}

/* Only for screenshots that have NO status bar of their own: thicker top
   bezel holding a drawn island, and a chin. Assets that already contain a
   status bar + island (the cropped Gymbo screens) must NOT use this modifier,
   or the island is doubled. */
.device--phone-island .device__screen {
    border-top-width: 30px;
    border-bottom-width: 18px;
}

.device--phone-island::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 9px;
    left: 50%;
    width: 30%;
    height: 14px;
    border-radius: 8px;
    background: #000;
    transform: translateX(-50%);
}

/* The hero stage is 4:5 on mobile; the phone must fit it */
.case-hero-media--device .device--phone { --device-max: min(260px, 64vw); }

/* ---------- Panel: evidence and composites that are not a device ---------- */
.case-visual--panel img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--gcard-shadow);
}

.case-visual--panel .case-visual-caption {        /* same measure and alignment as a device caption */
    max-width: 34em;
    margin-inline: auto;
    text-align: center;
}

/* ---------- A sub-section with no visual: text runs a readable measure ---------- */
.case-sub--text-only {
    grid-template-columns: minmax(0, 1fr);
    max-width: 44em;
}

/* ========================================================================
   Stat card: ONE spec, used by every case page. Replaces the earlier
   .case-stats / .case-stat / .case-stat-* rules (delete those, keep this).
   Card width is fixed by the column count, never by how many cards a page
   has, so a page with 1 card and a page with 4 cards show the same card.
   ======================================================================== */
.case-stats {
    --cols: 4;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;                       /* a row of 1-3 cards is centred, not left-heavy */
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.case-stats--3 { --cols: 3; }                      /* 5-6 cards */

.case-stat {
    /* width comes from the column count only, so 1 card and 4 cards show the same card */
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--spacing-md)) / var(--cols));
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
}

.case-stat-figure {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2rem, 1.4vw + 1.4rem, 3rem);
    line-height: 1;
    color: var(--primary);
    overflow-wrap: anywhere;
}

/* No number to show: the figure slot becomes a mono kicker, same colour, same rhythm */
.case-stat--text .case-stat-figure {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.case-stat-label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--foreground);
}

/* Explicit so the earlier serif rule for text-only labels cannot win if it is left in place */
.case-stat--text .case-stat-label {
    font-family: var(--font-sans);
    font-size: 1rem;
}

.case-stat-note {                                  /* the qualifier: window, basis, estimate */
    margin-top: auto;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
}

.case-stats + .case-source { margin-top: var(--spacing-sm); }

@media (max-width: 1023px) {
    .case-stats,
    .case-stats--3 { --cols: 2; }
}

/* A text-only card wraps to 6-7 lines in a half-width column: full width from 480 down (mw-52q.2, pm 10:1xZ) */
@media (max-width: 480px) {
    .case-stat--text { flex-basis: 100%; }
}

@media (max-width: 359px) {
    .case-stats,
    .case-stats--3 { --cols: 1; }
}

@media (max-width: 767px) {
    .case-stat { padding: var(--spacing-sm); }
    .case-visual--device,
    .case-hero-media--device { padding: var(--spacing-md) var(--spacing-sm); }
}

/* Prose that carries facts which are not stat tiles (max 4 tiles per page) */
.case-stats + .case-lede { margin-top: var(--spacing-md); }

/* ---------- Work cards: the case study is the primary action, the client's site is secondary (mw-52q.4) ---------- */
.work-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.work-case-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 24px;
}

.work-case-cta svg {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    transition: transform var(--duration-fast) ease;
}

.work-case-cta:hover svg { transform: translateX(3px); }

/* demoted: it is proof the work shipped, not where the visitor should go first */
.work-link--client {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
    text-decoration-color: rgba(255, 255, 255, 0.25);
}

.work-link--client:hover {
    color: var(--foreground);
    text-decoration-color: currentColor;
}

/* ---------- CargoSphere composite in the home card (mw-52q.10): one static, privacy-checked image, never cropped ---------- */
.work-composite {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    aspect-ratio: 6000 / 4171;
    overflow: hidden;
    background: var(--card);
}

.work-composite iframe,
.work-composite noscript img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.methodology-card-image-wrapper.work-media--composite {
    aspect-ratio: 16 / 10;   /* the asset's own ratio: nothing is cropped */
}

.work-media--composite picture,
.work-media--composite img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.work-composite-caption {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
    .work-composite { order: -1; }   /* media above the text, like the other cards */
}

/* ---------- People (mw-1qu.15) ---------- */
.people-intro {
    max-width: 34em;
    margin: 0 0 var(--spacing-lg);
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 0.8vw + 1rem, 1.75rem);
    line-height: 1.45;
    color: var(--foreground);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
    max-width: 1100px;
}

.person {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: var(--spacing-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.person-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.person-photo {
    flex: none;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.person-name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 0.6vw + 1.2rem, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

.person-role {
    display: block;
    margin-top: 0.25em;
    font-family: var(--font-sans);
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    letter-spacing: var(--type-label-tracking);
    text-transform: none;
    color: var(--primary);
}

.person p {
    margin: 0;
    font-size: var(--type-body-size);
    line-height: 1.65;
    color: var(--muted-foreground);
}

@media (max-width: 1023px) {
    .people-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .person-head { flex-direction: column; align-items: flex-start; }
}

/* Home work cards: each card links as one unit to its case page; "Visit site" stays a separate link above it */
.work-card-case-link {
    color: inherit;
    text-decoration: none;
}

/* The whole card is clickable (script.js forwards card clicks to the title link); without JS the title link works alone */
.methodology-card[data-case-href] {
    cursor: pointer;
}

.work-card-case-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.methodology-card .work-link {
    position: relative;
    z-index: 2;
}


/* Removing the Work h2 + subheading exposed the sticky stack's own centering
   gap: each .methodology-card is height 85vh with align-items:center, so the
   first card's visible surface starts ~133px into its scroll runway. The
   heading used to occupy that space. Pull the container up rather than
   shortening the runway, which is what drives the stack animation. */
@media (min-width: 768px) {
    .methodology-cards-container {
        margin-top: -104px;
    }
}

/* Hero sub-line. SPEC v2 shipped the hero as a single H1 with no sub; Kaushik
   reinstated one (2026-09-16) to carry the service list out of the headline.
   Measure capped at 52ch so it breaks to at most two lines at 1440. */
.hero-sub {
    max-width: 52ch;
    margin: -12px auto 32px;
    font-family: var(--font-primary);
    font-size: var(--type-body-lg-size);
    font-weight: var(--type-body-lg-weight);
    line-height: var(--type-body-lg-lh);
    color: var(--color-text-muted);
}

@media (max-width: 767px) {
    .hero-sub { margin: -4px auto 28px; }
}

/* Why us: tightened (Kaushik 2026-09-16 -- "reduce the real estate, tighten it
   to what the user really needs"). Three changes, none of them to the titles:

   1. .why-item-title was --type-h2-size, i.e. the SAME size as the section's
      own <h2>. Four supporting facts were rendering as four headlines and
      competing with "Built like it's our own money." Dropped to body-lg while
      keeping the serif, so the hierarchy reads title > items.
   2. The list was a 4-row stack in the right-hand column while the left column
      sat empty below the heading. 2x2 grid halves the height and uses width
      that was already paid for.
   3. Item padding 28px -> 20px. */
@media (min-width: 768px) {
    .why-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }
    /* In two columns a bottom rule on the last child would hang off one side,
       so every item carries only its top rule. */
    .why-item:last-child { border-bottom: 0; }
}

.why-item {
    padding: 20px 0;
}

.why-item-title {
    font-size: var(--type-body-lg-size);
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Testimonial: a verified client quote, attributed by Clutch's wordmark */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.testimonial {
    max-width: none;
    margin: 0;
    padding: 32px;
    background: color-mix(in srgb, var(--card-floating) 82%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--gcard-stroke);
    border-radius: var(--radius-card);
    box-shadow: var(--gcard-shadow);
}

.testimonial--featured {
    grid-column: 1 / -1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .testimonial { background: var(--card-floating); }
}

.testimonial-quote {
    margin: 0 0 24px;
    position: relative;
    padding-top: 22px;
}

.testimonial-quote::before { content: "“"; position: absolute; top: -22px; left: -4px; color: var(--primary); font-family: var(--font-serif); font-size: 5rem; line-height: 1; opacity: .85; }

.testimonial-quote p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--type-body-lg-size);
    line-height: 1.5;
    color: var(--foreground);
}

.testimonial-attribution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: auto;
}

@media (max-width: 767px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial--featured { grid-column: auto; }
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-clutch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.testimonial-clutch:hover { opacity: 1; }

.testimonial-clutch:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.testimonial-clutch img {
    display: block;
    width: 88px;
    height: 25px;
}

.testimonial-stars {
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

@media (max-width: 767px) {
    .testimonial { padding: 24px; }
    .partner-marquee::after { content: "Swipe to see more partners →"; display: block; margin-top: 12px; color: var(--muted-foreground); font-size: .8125rem; text-align: center; }
}

/* ========================================
   COMPACT FOOTER (Kaushik 2026-09-16: reduce footer height)
   One-line CTA title, buttons side by side, smaller avatars, DPIIT in the legal bar.
======================================== */
.ml-footer { padding: 40px 0 20px; }

.ml-footer-cta { gap: 20px; }

.ml-footer-cta-title { font-size: var(--type-h2-size); }

.ml-footer-cta-buttons { flex-wrap: nowrap; }

.ml-footer-cta-button { padding: 12px 22px; white-space: nowrap; }

.ml-founders-list { gap: 8px; }

.ml-founder-avatar { width: 36px; height: 36px; }

.ml-footer-section-label--spaced { margin-top: 16px; }

.ml-footer-legal { margin-top: 8px; }

a.ml-legal-right { text-decoration: none; }

a.ml-legal-right:hover { color: var(--background); }

@media (max-width: 767px) {
    .ml-footer { padding: 32px 0 16px; }
    .ml-footer-cta-button { flex: 1 1 0; padding: 12px 14px; }
    .ml-footer-social { grid-template-columns: repeat(3, 1fr); }
    .ml-footer-right { gap: 16px; }
}

/* ========================================
   SCROLL HERO (Kaushik 2026-09-16; pattern: sonsanddaughters.xyz)
   Default = static stack, image fully visible (no JS, GSAP blocked, reduced motion).
   html.scroll-hero-on (script.js) = 220svh pinned hero. At rest the whole mosaic sits under the
   header as a smaller landscape picture; scrolling zooms it up until it fills the viewport, then
   the pin ends and the page carries on down (Kaushik 2026-09-18: no clipped band).
   Only transforms and opacity animate; script.js sets the rest box once per refresh.
======================================== */

/* .hero-section sets overflow:hidden, which makes it a scroll container and silently
   disables position:sticky inside it. clip hides overflow without that side effect. */
.scroll-hero { overflow: clip; }

/* 1504 / 1046 = 6000 / 4171 within 0.1%: the final product mosaic's ratio.
   The image is partly translucent, so the frame carries the page background. */
.scroll-hero__frame {
    position: relative;
    margin: 0 var(--spacing-container) 56px;
    aspect-ratio: 10 / 9;
    overflow: hidden;
}

/* The frame has the image's ratio, so cover shows the whole image, uncropped. */
.scroll-hero__image {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-hero__cue { display: none; }

html.scroll-hero-on .scroll-hero { height: 220svh; }

@media (max-width: 1099px) {
    html.scroll-hero-on .scroll-hero { height: auto; }
    html.scroll-hero-on .scroll-hero__sticky { position: relative; height: auto; overflow: visible; }
    html.scroll-hero-on .scroll-hero__top, html.scroll-hero-on .scroll-hero__frame { position: relative; inset: auto; left: auto; top: auto; width: auto; transform: none !important; }
}

html.scroll-hero-on .scroll-hero__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
}

html.scroll-hero-on .scroll-hero__top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
}

/* Rest box (--hero-x/y/w) is measured by script.js; the zoom is a transform from the top-left
   corner, so the box itself never changes while scrolling. */
html.scroll-hero-on .scroll-hero__frame {
    position: absolute;
    left: var(--hero-x, 6vw);
    top: var(--hero-y, 60svh);
    width: var(--hero-w, 50vw);
    margin: 0;
    aspect-ratio: 10 / 9;
    transform-origin: 0 0;
    will-change: transform;
}

html.scroll-hero-on .scroll-hero__cue {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 3%;
    z-index: 2;
    transform: translateX(-50%);
    font-size: 20px;
    color: var(--color-text-muted);
}

@media (max-width: 767px) {
    .scroll-hero__frame { margin-bottom: 40px; }
}

/* Phones and tablets: the copy is a drawer over the top of the picture, bottom corners rounded
   like the site's cards (Kaushik 2026-09-18). script.js tucks the picture 48px under it. */
@media (max-width: 1099px) {
    html.scroll-hero-on .scroll-hero__top {
        z-index: 3;
        /* Gymbo floating-card surface, as on the Work cards: cardFloating fill, 8% hairline,
           gShadow (black 50%, SwiftUI radius 25 / y 25 = CSS 0 25px 50px). */
        background: var(--card-floating);
        border: 1px solid rgba(245, 245, 240, 0.08);
        border-top: 0;
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
    /* Half the old space under the buttons (was 32 + 28 = 60px on phones). */
    html.scroll-hero-on .scroll-hero .hero-content { padding-bottom: 30px; }
}

/* Desktop: two columns, copy left and picture right (Kaushik 2026-09-18). Narrower screens keep
   the stack. The animated rest box comes from script.js; the static stack uses the grid. */
@media (min-width: 1100px) {
    .scroll-hero .hero-container { max-width: none; text-align: left; }
    .scroll-hero .hero-heading {
        max-width: 13ch;
        margin-inline: 0;
        font-size: clamp(2.5rem, 3.4vw, 4.25rem);
    }
    .scroll-hero .hero-sub { max-width: 40ch; margin-inline: 0; }
    .scroll-hero .hero-footer { align-items: flex-start; }
    .scroll-hero .hero-cta-group { justify-content: flex-start; }
    .scroll-hero .hero-content { padding-right: 0; }

    .scroll-hero__sticky {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: center;
        min-height: 100svh;
    }
    .scroll-hero__frame { margin: var(--header-height) 0 0 0; }

    html.scroll-hero-on .scroll-hero__top {
        inset: 0 auto 0 0;
        width: 33.333%;
        display: flex;
        align-items: center;
    }
    html.scroll-hero-on .scroll-hero .hero-content { padding-bottom: 0; }
}
