/* ============================================
           THEME SYSTEM
        ============================================ */
        :root {
            /* Monochrome system: no color accent. Emphasis comes from type
               weight, scale, and surface contrast. The --accent token still
               exists for component-level references, but resolves to the
               theme's text color — so what was "amber" before is now
               whatever the current foreground is. */
            --transition: cubic-bezier(0.76, 0, 0.24, 1);
            --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="light"] {
            --bg: #F5F2EC;
            --bg-secondary: #EBE7DF;
            --bg-tertiary: #DDD7CC;
            --bg-dark: #0A0908;
            --text: #0A0908;
            --text-muted: #5C5851;
            --text-subtle: #948E83;
            --border: rgba(10, 9, 8, 0.08);
            --border-strong: rgba(10, 9, 8, 0.18);
            --accent: #0A0908;
            --accent-bright: #2A2722;
            --accent-deep: #000000;
            --accent-soft: rgba(10, 9, 8, 0.08);
            --blue: var(--accent);
            --blue-bright: var(--accent-bright);
            --blue-hover: var(--accent-deep);
            --light-blue: var(--accent-soft);
            --glass-bg: rgba(255, 253, 248, 0.55);
            --glass-bg-strong: rgba(255, 253, 248, 0.85);
            --glass-border: rgba(10, 9, 8, 0.08);
            --glass-shadow: rgba(10, 9, 8, 0.06);
            --mesh-1: #0A0908;
            --mesh-2: #948E83;
            --mesh-3: #2A2722;
            --mesh-4: #5C5851;
            --noise-opacity: 0.04;
            --card-bg: #FFFDF8;
            --marquee-bg: #0A0908;
            --marquee-text: #F5F2EC;
        }

        [data-theme="dark"] {
            --bg: #0A0908;
            --bg-secondary: #131210;
            --bg-tertiary: #1C1A17;
            --bg-dark: #000000;
            --text: #F5F2EC;
            --text-muted: #A19D94;
            --text-subtle: #6E6A62;
            --border: rgba(245, 242, 236, 0.08);
            --border-strong: rgba(245, 242, 236, 0.20);
            --accent: #F5F2EC;
            --accent-bright: #FFFFFF;
            --accent-deep: #C9C5BC;
            --accent-soft: rgba(245, 242, 236, 0.08);
            --blue: var(--accent);
            --blue-bright: var(--accent-bright);
            --blue-hover: var(--accent-deep);
            --light-blue: var(--accent-soft);
            --glass-bg: rgba(245, 242, 236, 0.04);
            --glass-bg-strong: rgba(245, 242, 236, 0.07);
            --glass-border: rgba(245, 242, 236, 0.10);
            --glass-shadow: rgba(0, 0, 0, 0.45);
            --mesh-1: #F5F2EC;
            --mesh-2: #6E6A62;
            --mesh-3: #1C1A17;
            --mesh-4: #131210;
            --noise-opacity: 0.06;
            --card-bg: #131210;
            --marquee-bg: #000000;
            --marquee-text: #F5F2EC;
        }

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

        .skip-link {
            position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
            z-index: 10001;
            background: var(--blue); color: #fff;
            padding: 0.7rem 1.4rem; border-radius: 0 0 12px 12px;
            font-family: 'Geist', sans-serif; font-weight: 600; font-size: 0.9rem;
            text-decoration: none;
            transition: transform 0.25s var(--transition-smooth);
        }
        .skip-link:focus { transform: translate(-50%, 0); outline: 2px solid #fff; outline-offset: 2px; }
        
        /* Lenis drives smooth scroll from JS — native CSS smooth-scroll would race
           with it on hash clicks and window.scrollTo, causing stutter. */
        html {
            scroll-behavior: auto;
        }

        html, body {
            font-family: 'Geist', system-ui, -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            font-feature-settings: 'ss01', 'ss02', 'cv11';
            transition: background 0.6s var(--transition-smooth), color 0.6s var(--transition-smooth);
        }

        h1, h2, h3, h4 {
            font-family: 'Geist', system-ui, sans-serif;
            font-weight: 600;
            letter-spacing: -0.035em;
        }

        .display-font { font-family: 'Geist', sans-serif; font-weight: 600; }
        .mono-font { font-family: 'JetBrains Mono', monospace; }
        .editorial { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
        .tabular { font-variant-numeric: tabular-nums; }

        /* ============================================
           GRADIENT TEXT
        ============================================ */
        /* The one editorial moment: a serif italic in the hero. Same neutral
           color — the typography itself carries the weight, no color pop. */
        .gradient-text {
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic;
            font-weight: 500;
            color: var(--text);
            letter-spacing: -0.04em;
        }

        .accent {
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic;
            font-weight: 500;
            color: var(--text);
            letter-spacing: -0.02em;
        }

        /* ============================================
           NOISE OVERLAY
        ============================================ */
        .noise {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 9990; opacity: var(--noise-opacity);
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        /* Custom cursor removed: accessibility- and performance-hostile, and a known AI tell. */
        
        /* ============================================
           LOADING SCREEN — editorial four-corner layout
        ============================================ */
        /* The loader is a full-screen grid: top-left "LOADING" tag, top-right
           giant counter, center logo/divider/wordmark, bottom-left location
           datum, bottom-right italic greeting, hairline progress at the very
           bottom edge. Theme-aware — no hardcoded blacks. */
        .loader {
            position: fixed; inset: 0; z-index: 10000;
            background: var(--bg);
            color: var(--text);
            display: grid;
            grid-template-rows: auto 1fr auto;
            grid-template-columns: 1fr 1fr;
            padding: 2.5rem 3rem;
            overflow: hidden;
            transition: opacity 0.8s var(--transition-smooth) 0.15s,
                        visibility 0.8s var(--transition-smooth) 0.15s,
                        transform 0.8s var(--transition-smooth) 0.15s,
                        filter 0.8s var(--transition-smooth) 0.15s;
        }
        .loader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-2vh);
            filter: blur(12px);
        }
        /* Subtle grain across the entire loader so the flat bg has texture */
        .loader::before {
            content: '';
            position: absolute; inset: 0;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            opacity: var(--noise-opacity);
            mix-blend-mode: overlay;
        }

        .loader-tl, .loader-tr, .loader-bl, .loader-br {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; font-weight: 500;
            text-transform: uppercase; letter-spacing: 0.18em;
            color: var(--text-muted);
            display: inline-flex; align-items: center; gap: 0.6rem;
            z-index: 1;
        }
        .loader-tl { grid-row: 1; grid-column: 1; justify-self: start; align-self: start; }
        .loader-tr { grid-row: 1; grid-column: 2; justify-self: end;   align-self: start; }
        .loader-bl { grid-row: 3; grid-column: 1; justify-self: start; align-self: end; }
        .loader-br { grid-row: 3; grid-column: 2; justify-self: end;   align-self: end; }

        .loader-tl-dot {
            width: 6px; height: 6px;
            background: #10B981;
            border-radius: 50%;
            animation: loader-tl-pulse 1.4s ease-in-out infinite;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        }
        @keyframes loader-tl-pulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
        }

        /* Top-right counter: huge tabular numerals, /100 underneath */
        .loader-tr {
            flex-direction: column;
            align-items: flex-end;
            gap: 0.2rem;
            color: var(--text);
        }
        #loaderCounter {
            font-family: 'Geist', sans-serif;
            font-size: clamp(3.5rem, 7vw, 6rem);
            font-weight: 500;
            line-height: 0.82;
            letter-spacing: -0.07em;
            font-variant-numeric: tabular-nums;
            color: var(--text);
        }
        .loader-tr-max {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; font-weight: 500;
            letter-spacing: 0.16em;
            color: var(--text-subtle);
        }

        /* Center stage: logo, animated divider, wordmark */
        .loader-stage {
            grid-row: 2; grid-column: 1 / -1;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 1.5rem;
            z-index: 1;
        }
        .loader-logo-img {
            width: clamp(96px, 14vw, 140px); height: auto;
            opacity: 0;
            animation: loader-logo-in 0.9s var(--transition) 0.15s forwards;
        }
        /* Swap to white logo in dark theme */
        [data-theme="dark"] .loader-logo-img { content: url("logo-white.png"); }
        [data-theme="light"] .loader-logo-img { content: url("logo.png"); }
        @keyframes loader-logo-in {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 0.95; transform: translateY(0); }
        }
        .loader-divider {
            width: 0; height: 1px;
            background: var(--text);
            opacity: 0.35;
            animation: loader-divider-grow 1.2s var(--transition) 0.5s forwards;
        }
        @keyframes loader-divider-grow {
            from { width: 0; }
            to   { width: 240px; }
        }
        .loader-mark {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem; font-weight: 500;
            text-transform: uppercase; letter-spacing: 0.32em;
            color: var(--text-muted);
            opacity: 0;
            animation: loader-fade-in 0.7s var(--transition) 0.9s forwards;
        }
        @keyframes loader-fade-in {
            from { opacity: 0; transform: translateY(4px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Bottom-right: italic editorial greeting (time-aware via JS) */
        .loader-br {
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic;
            font-weight: 500;
            font-size: 1.05rem;
            letter-spacing: -0.015em;
            text-transform: none;
            color: var(--text);
            opacity: 0.65;
        }

        /* Hairline progress bar pinned to the bottom edge of the viewport */
        .loader-bar {
            position: fixed; left: 0; bottom: 0;
            width: 100%; height: 1px;
            background: var(--border);
            overflow: hidden;
            z-index: 2;
        }
        .loader-bar-inner {
            width: 0%; height: 100%;
            background: var(--text);
            transition: width 0.12s linear;
        }

        @media (max-width: 640px) {
            .loader { padding: 1.5rem; }
            #loaderCounter { font-size: 3.4rem; }
            .loader-divider { animation-name: loader-divider-grow-mobile; }
            @keyframes loader-divider-grow-mobile {
                from { width: 0; }
                to   { width: 140px; }
            }
            .loader-br { font-size: 0.95rem; }
        }
        @media (prefers-reduced-motion: reduce) {
            .loader-logo-img, .loader-divider, .loader-mark { animation: none; opacity: 0.9; width: auto; }
            .loader-divider { width: 240px; }
            .loader-tl-dot { animation: none; }
        }

        /* ============================================
           CINEMATIC OVERLAY
        ============================================ */
        .cinematic-overlay {
            position: fixed; inset: 0; z-index: 9995;
            background: var(--blue);
            opacity: 0;
            pointer-events: none;
        }
        .cinematic-overlay.active { pointer-events: all; }

        /* ============================================
           NAVIGATION
        ============================================ */
        nav {
            position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
            width: calc(100% - 2rem); max-width: 1200px;
            padding: 0.8rem 1.5rem;
            display: flex; justify-content: space-between; align-items: center;
            z-index: 9000;
            background: var(--glass-bg-strong);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: 100px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            transition: all 0.4s var(--transition);
        }
        nav.scrolled {
            top: 0.5rem;
            width: calc(100% - 1rem);
        }

        .logo {
            display: flex; align-items: center; gap: 0.6rem;
            text-decoration: none; color: var(--text);
            cursor: pointer;
        }
        .logo-mark {
            width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
        }
        .logo-text {
            font-family: 'Geist', sans-serif; font-size: 1.05rem; font-weight: 600;
            letter-spacing: -0.04em;
        }
        .logo-img { height: 50px; width: auto; display: block; }
        /* Dark theme: swap to the white logo (transparent bg) so it blends, no white box */
        [data-theme="dark"] .logo-img { content: url("logo-white.png"); }
        .footer-brand .logo-img { height: 64px; }

        .nav-links { display: flex; gap: 0.3rem; list-style: none; align-items: center; }
        .nav-links a {
            color: var(--text-muted); text-decoration: none;
            font-size: 0.85rem; font-weight: 500;
            padding: 0.55rem 0.9rem;
            border-radius: 100px;
            transition: color 0.25s, background 0.25s;
            cursor: pointer;
            position: relative;
        }
        .nav-links a:hover {
            color: var(--text);
            background: var(--glass-bg);
        }
        /* Active page indicator for multi-page nav. Subtle underline. */
        .nav-links a[aria-current="page"] { color: var(--text); }
        .nav-links a[aria-current="page"]::after {
            content: '';
            position: absolute;
            left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
            height: 1px;
            background: var(--text);
            opacity: 0.6;
        }

        .theme-toggle {
            width: 34px; height: 34px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: all 0.3s var(--transition);
            color: var(--text);
        }
        .theme-toggle:hover {
            background: var(--text);
            border-color: var(--text);
            color: var(--bg);
            transform: rotate(12deg);
        }
        .theme-toggle svg { width: 16px; height: 16px; transition: transform 0.4s; }
        [data-theme="light"] .theme-toggle .icon-moon { display: block; }
        [data-theme="light"] .theme-toggle .icon-sun { display: none; }
        [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
        [data-theme="dark"] .theme-toggle .icon-sun { display: block; }

        /* First-visit nudge toward the theme toggle */
        .theme-toggle-li { position: relative; }
        .theme-hint {
            position: absolute;
            top: calc(100% + 14px); right: -6px;
            width: max-content; max-width: 240px;
            background: var(--text); color: var(--bg);
            padding: 0.7rem 1rem; border-radius: 12px;
            font-family: 'Geist', sans-serif;
            font-size: 0.82rem; font-weight: 500; line-height: 1.3;
            white-space: nowrap;
            box-shadow: 0 12px 32px rgba(22, 20, 18, 0.32);
            opacity: 0; transform: translateY(-8px) scale(0.95);
            pointer-events: none; z-index: 9100;
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        .theme-hint::before {
            content: ''; position: absolute;
            top: -5px; right: 16px;
            width: 11px; height: 11px;
            background: var(--text); border-radius: 2px;
            transform: rotate(45deg);
        }
        .theme-hint.show {
            opacity: 1; transform: translateY(0) scale(1);
            animation: theme-hint-bounce 1.6s ease-in-out 0.5s infinite;
        }
        @keyframes theme-hint-bounce {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(5px) scale(1); }
        }
        .theme-toggle.attention { animation: theme-pulse 1.6s ease-in-out infinite; }
        @keyframes theme-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(10, 9, 8, 0.45); }
            50% { box-shadow: 0 0 0 9px rgba(10, 9, 8, 0); }
        }
        @media (max-width: 768px) { .theme-hint { display: none; } }

        .menu-toggle { 
            display: none; background: var(--glass-bg); 
            border: 1px solid var(--glass-border);
            width: 36px; height: 36px; border-radius: 50%;
            cursor: pointer; z-index: 9999;
            align-items: center; justify-content: center;
        }
        .menu-toggle span { 
            display: block; width: 14px; height: 1.5px; 
            background: var(--text); margin: 2px 0; transition: 0.3s;
        }
        .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
        .menu-toggle.active span:nth-child(2) { opacity: 0; }
        .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }

        @media (max-width: 900px) {
            nav { padding: 0.7rem 1rem; }
            .nav-links {
                position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px;
                height: 100dvh;
                background: var(--bg);
                border-left: 1px solid var(--border);
                flex-direction: column; justify-content: center;
                align-items: flex-start; gap: 0.5rem; 
                transition: right 0.5s var(--transition);
                z-index: 9500; padding: 2rem;
            }
            .nav-links.open { right: 0; }
            .nav-links a { color: var(--text); font-size: 1.3rem; font-weight: 600; }
            .menu-toggle { display: flex; }
            .logo-text { display: none; }
        }

        /* ============================================
           MAIN WRAPPER
        ============================================ */
        .main-wrapper {
            transition: transform 0.5s var(--transition), filter 0.5s var(--transition), opacity 0.5s var(--transition);
            transform-origin: center center;
        }
        .main-wrapper.exit {
            transform: scale(1.08);
            filter: blur(20px) saturate(0.5);
            opacity: 0;
        }
        .main-wrapper.enter {
            transform: scale(0.95);
            opacity: 0;
        }

        /* ============================================
           GLASS CARD BASE
        ============================================ */
        /* True glassmorphism: blur + tinted shadow + 1px inset highlight to
           simulate edge refraction. Lower border-radius for a more editorial
           feel. */
        .glass {
            background: var(--glass-bg-strong);
            backdrop-filter: blur(24px) saturate(160%);
            -webkit-backdrop-filter: blur(24px) saturate(160%);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow:
                0 1px 0 rgba(255, 252, 247, 0.6) inset,
                0 -1px 0 rgba(22, 20, 18, 0.04) inset,
                0 24px 48px -20px var(--glass-shadow);
            position: relative;
            overflow: hidden;
        }
        [data-theme="dark"] .glass {
            box-shadow:
                0 1px 0 rgba(245, 239, 229, 0.06) inset,
                0 -1px 0 rgba(0, 0, 0, 0.3) inset,
                0 24px 48px -20px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .glass::before {
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        }

        /* ============================================
           HERO SECTION
        ============================================ */
        .hero {
            min-height: 100vh; /* fallback */
            min-height: 100dvh;
            display: flex; flex-direction: column; justify-content: center;
            padding: 9rem 4rem 5rem;
            position: relative; overflow: hidden;
        }
        .hero::after {
            content: '◆';
            position: absolute;
            bottom: 3rem; right: 4rem;
            color: var(--text);
            font-size: 0.7rem;
            opacity: 0.45;
        }

        /* Animated mesh gradient background */
        .mesh-bg {
            position: absolute; inset: 0;
            overflow: hidden;
            filter: blur(80px);
            opacity: 0.6;
            z-index: 0;
        }
        .blob {
            position: absolute;
            border-radius: 50%;
            animation: float 20s ease-in-out infinite;
        }
        .blob-1 {
            background: var(--mesh-1);
            width: 500px; height: 500px;
            top: -10%; left: -10%;
            animation-delay: 0s;
        }
        .blob-2 {
            background: var(--mesh-2);
            width: 400px; height: 400px;
            top: 20%; right: -5%;
            animation-delay: -7s;
            animation-duration: 25s;
        }
        .blob-3 {
            background: var(--mesh-3);
            width: 450px; height: 450px;
            bottom: -15%; left: 30%;
            animation-delay: -14s;
            animation-duration: 22s;
        }
        .blob-4 {
            background: var(--mesh-4);
            width: 300px; height: 300px;
            top: 50%; left: 50%;
            animation-delay: -3s;
            animation-duration: 18s;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(80px, -60px) scale(1.1); }
            50% { transform: translate(-60px, 80px) scale(0.95); }
            75% { transform: translate(60px, 60px) scale(1.05); }
        }

        .hero-content { 
            position: relative; z-index: 2; 
            max-width: 1100px; margin: 0 auto; width: 100%;
        }

        /* Hero label as an editorial dateline, not a chip. */
        .hero-label {
            display: inline-flex; align-items: center; gap: 0.7rem;
            padding: 0;
            background: none;
            backdrop-filter: none;
            border: none;
            border-radius: 0;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            margin-bottom: 2.5rem;
            color: var(--text-muted);
        }
        .hero-label .pulse-dot {
            width: 7px; height: 7px;
            background: #10B981;
            border-radius: 50%;
            animation: pulse-dot 2.4s infinite;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
        }
        @keyframes pulse-dot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(1.2); }
        }

        .hero h1 {
            font-size: clamp(3rem, 8.5vw, 7.5rem);
            font-weight: 600;
            line-height: 0.95;
            margin-bottom: 2.5rem;
            letter-spacing: -0.055em;
        }
        .hero h1 .line { display: block; overflow: hidden; }
        .hero h1 .line > span {
            display: inline-block;
            transform: translateY(100%);
            transition: transform 1s var(--transition);
        }
        .hero h1.revealed .line > span { transform: translateY(0); }
        .hero h1 .line:nth-child(2) > span { transition-delay: 0.1s; }
        .hero h1 .line:nth-child(3) > span { transition-delay: 0.2s; }
        .hero h1 .line:nth-child(4) > span { transition-delay: 0.3s; }

        .hero-description {
            font-size: clamp(1rem, 1.2vw, 1.15rem);
            color: var(--text-muted);
            max-width: 56ch;
            margin-bottom: 3rem;
            line-height: 1.65;
            text-wrap: pretty;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.8s ease 0.5s;
        }
        .hero-description strong { color: var(--text); font-weight: 500; }
        .hero.revealed .hero-description { opacity: 1; transform: translateY(0); }

        .hero-cta {
            display: flex; gap: 1rem; flex-wrap: wrap;
            opacity: 0; transform: translateY(20px);
            transition: all 0.8s ease 0.7s;
        }
        .hero.revealed .hero-cta { opacity: 1; transform: translateY(0); }

        /* Hero stats: asymmetric — the first stat sets the type scale,
           the rest fall in line. Tabular figures keep numbers calm. */
        .hero-stats {
            display: grid; grid-template-columns: 1.2fr 1fr 1fr;
            gap: 2.5rem; max-width: 640px;
            margin-top: 4rem; padding-top: 2.5rem;
            border-top: 1px solid var(--border);
            opacity: 0; transform: translateY(20px);
            transition: all 0.8s ease 0.9s;
        }
        .hero.revealed .hero-stats { opacity: 1; transform: translateY(0); }
        .hero-stat-item h4 {
            font-family: 'Geist', sans-serif;
            font-size: 2.2rem; font-weight: 500;
            color: var(--text); letter-spacing: -0.05em;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .hero-stat-item p {
            font-size: 0.72rem; color: var(--text-subtle);
            margin-top: 0.5rem; text-transform: uppercase;
            letter-spacing: 0.14em;
            font-family: 'JetBrains Mono', monospace;
        }

        /* ============================================
           BUTTONS
        ============================================ */
        /* Confident solid button: no color accent. Press states use shadow
           depth and a subtle Y-translate — the form itself signals weight. */
        .btn-magnetic {
            display: inline-flex; align-items: center; gap: 0.65rem;
            padding: 0.95rem 1.6rem;
            background: var(--text); color: var(--bg);
            text-decoration: none; font-weight: 500;
            border-radius: 100px;
            transition: background 0.25s var(--transition-smooth),
                        transform 0.2s var(--transition-smooth),
                        box-shadow 0.25s var(--transition-smooth);
            border: 1px solid var(--text);
            cursor: pointer;
            font-size: 0.92rem;
            letter-spacing: -0.01em;
            position: relative;
            box-shadow: 0 1px 0 rgba(10, 9, 8, 0.08), 0 12px 24px -8px rgba(10, 9, 8, 0.18);
        }
        .btn-magnetic:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 0 rgba(10, 9, 8, 0.12), 0 18px 32px -8px rgba(10, 9, 8, 0.28);
        }
        .btn-magnetic:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(10, 9, 8, 0.06), 0 4px 10px -4px rgba(10, 9, 8, 0.18); }
        .btn-magnetic svg { transition: transform 0.25s var(--transition-smooth); }
        .btn-magnetic:hover svg { transform: translateX(3px); }

        .btn-secondary {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border-strong);
            box-shadow: none;
        }
        .btn-secondary:hover {
            background: var(--text);
            color: var(--bg);
            border-color: var(--text);
        }

        /* ============================================
           MARQUEE
        ============================================ */
        .marquee {
            padding: 1.5rem 0; 
            background: var(--marquee-bg); 
            overflow: hidden; white-space: nowrap;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        .marquee-inner {
            display: inline-flex; 
            animation: marquee 30s linear infinite;
        }
        .marquee-inner > span {
            display: inline-flex; align-items: center; gap: 2rem;
            padding: 0 2rem;
            font-family: 'Geist', sans-serif;
            font-size: 1.35rem; font-weight: 500;
            color: var(--marquee-text);
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }
        .marquee-inner > span.dot {
            color: var(--marquee-text);
            opacity: 0.4;
            font-size: 0.7rem;
            padding: 0;
        }
        .tech-marquee .marquee-inner > span { color: var(--text); }
        @keyframes marquee { 
            0% { transform: translateX(0); } 
            100% { transform: translateX(-50%); } 
        }

        /* ============================================
           TRUST BADGES
        ============================================ */
        .trust-badges {
            padding: 3rem 2rem;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
        }
        .trust-badges-inner {
            max-width: 1200px; margin: 0 auto;
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }
        .badge-item {
            display: flex; align-items: center; gap: 1rem;
            padding: 1rem;
        }
        .badge-icon {
            width: 40px; height: 40px;
            background: none;
            border: 1px solid var(--border-strong);
            border-radius: 0;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: background 0.3s, border-color 0.3s;
        }
        .badge-item:hover .badge-icon { background: var(--text); border-color: var(--text); }
        .badge-icon svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.5; transition: stroke 0.3s; }
        .badge-item:hover .badge-icon svg { stroke: var(--bg); }
        .badge-item h4 {
            font-family: 'Geist', sans-serif;
            font-size: 0.95rem; font-weight: 600;
            margin-bottom: 0.2rem; color: var(--text);
        }
        .badge-item p {
            font-size: 0.8rem; color: var(--text-muted); line-height: 1.4;
        }

        @media (max-width: 768px) {
            .trust-badges-inner { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
            .badge-item { padding: 0.5rem; }
            .badge-item h4 { font-size: 0.85rem; }
            .badge-item p { font-size: 0.75rem; }
        }

        /* ============================================
           SECTION COMMON
        ============================================ */
        .section { padding: 8rem 4rem; overflow: hidden; }
        .section-header { margin-bottom: 4rem; max-width: 900px; }
        .section-header.center { margin: 0 auto 4rem; text-align: center; }
        
        /* Editorial section label: numbered, low-contrast, with a thin rule
           leading into the title. Replaces the generic AI pill chip. */
        .section-label {
            display: inline-flex; align-items: center; gap: 0.75rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem; font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 0.18em;
            margin-bottom: 1.5rem;
            padding: 0;
            background: none;
            border-radius: 0;
        }
        .section-label::before {
            content: '';
            width: 28px; height: 1px;
            background: var(--text);
            border-radius: 0;
        }
        .section-header.center .section-label { justify-content: center; }

        .section-title {
            font-size: clamp(2.4rem, 5.2vw, 4rem);
            font-weight: 600;
            line-height: 1.02;
            margin-bottom: 1.5rem;
            letter-spacing: -0.045em;
            text-wrap: balance;
        }
        .section-title em {
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic;
            font-weight: 500;
            color: var(--text);
            letter-spacing: -0.04em;
        }
        .section-subtitle {
            font-size: 1.05rem;
            color: var(--text-muted);
            line-height: 1.65;
            max-width: 60ch;
            text-wrap: pretty;
        }
        .section-header.center .section-subtitle { margin: 0 auto; }

        @media (max-width: 768px) {
            .section { padding: 5rem 1.5rem; }
        }

        /* ============================================
           BENTO GRID (FEATURES)
        ============================================ */
        .features-section {
            padding: 8rem 4rem;
            background: var(--bg);
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 180px;
            gap: 1.2rem;
            max-width: 1300px;
            margin: 0 auto;
        }

        .bento-item {
            padding: 2rem;
            display: flex; flex-direction: column; justify-content: space-between;
            position: relative;
            transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
            cursor: pointer;
            overflow: hidden;
        }

        .bento-item:hover {
            transform: translateY(-6px);
        }

        /* Editorial icon container: solid neutral with a hairline border —
           no gradient, no shadow lift. Lets the icon do the talking. */
        .bento-item .icon-wrap {
            width: 48px; height: 48px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            position: relative; z-index: 2;
            transition: background 0.3s var(--transition-smooth), border-color 0.3s;
        }
        .bento-item:hover .icon-wrap {
            background: var(--text);
            border-color: var(--text);
        }
        .bento-item .icon-wrap svg {
            width: 22px; height: 22px;
            stroke: var(--text); fill: none; stroke-width: 1.5;
            stroke-linecap: round; stroke-linejoin: round;
            transition: stroke 0.3s;
        }
        .bento-item:hover .icon-wrap svg { stroke: var(--bg); }

        .bento-item h3 {
            font-size: 1.5rem; 
            margin-bottom: 0.6rem;
            color: var(--text);
            position: relative; z-index: 2;
        }
        .bento-item p { 
            color: var(--text-muted); 
            line-height: 1.6; 
            font-size: 0.9rem;
            position: relative; z-index: 2;
        }

        .bento-item .corner-number {
            position: absolute;
            top: 1.5rem; right: 1.5rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--text-subtle);
            letter-spacing: 0.1em;
        }

        /* Big card - Custom Design.
           Solid charcoal with a soft top-light wash. Hierarchy comes from
           type weight and surface contrast, not color. */
        .bento-item-1 {
            grid-column: span 2;
            grid-row: span 2;
            background:
                radial-gradient(120% 80% at 50% 0%, rgba(245, 242, 236, 0.06), transparent 60%),
                #0A0908;
            color: #F5F2EC;
            justify-content: flex-start;
            border: 1px solid rgba(245, 242, 236, 0.08);
        }
        /* subtle highlight in the upper-left, breaks the flatness */
        .bento-item-1::before {
            content: '';
            position: absolute;
            top: -40%; left: -10%;
            width: 80%; height: 90%;
            background: radial-gradient(circle, rgba(245, 242, 236, 0.04), transparent 60%);
            pointer-events: none;
            z-index: 1;
        }
        .bento-1-content {
            position: relative; z-index: 3;
            display: flex; flex-direction: column;
            gap: 1.1rem;
            max-width: 58%;
        }
        .bento-item-1 h3 { color: white; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
        .bento-item-1 p { color: rgba(255,255,255,0.88); font-size: 0.98rem; }
        .bento-item-1 .corner-number { color: rgba(255,255,255,0.6); z-index: 3; }
        .bento-item-1 .icon-wrap {
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: none;
        }

        /* Browser-window mockup that fills the lower area and bleeds off the corner */
        .bento-item-1 .mockup-preview {
            position: absolute;
            bottom: -28px; right: -24px;
            width: 300px; height: 215px;
            background: rgba(255,255,255,0.14);
            border-radius: 16px 16px 0 0;
            border: 1px solid rgba(255,255,255,0.22);
            box-shadow: 0 -18px 50px rgba(0,0,0,0.2);
            transform: rotate(-6deg);
            transform-origin: bottom right;
            transition: transform 0.5s var(--transition);
            overflow: hidden;
            z-index: 2;
        }
        .bento-item-1:hover .mockup-preview {
            transform: rotate(-3deg) translateY(-6px);
        }
        .mockup-bar {
            display: flex; align-items: center; gap: 6px;
            padding: 11px 14px;
            background: rgba(255,255,255,0.12);
            border-bottom: 1px solid rgba(255,255,255,0.12);
        }
        .mockup-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); }
        .mockup-bar span:nth-child(1) { background: rgba(255,255,255,0.7); }
        .mockup-screen { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
        .mockup-hero {
            height: 54px; border-radius: 10px;
            background: linear-gradient(120deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
            margin-bottom: 4px;
        }
        .mockup-line { height: 9px; border-radius: 100px; background: rgba(255,255,255,0.32); }
        .mockup-line.w-90 { width: 90%; }
        .mockup-line.w-70 { width: 70%; }
        .mockup-line.w-50 { width: 50%; }
        .mockup-chip {
            margin-top: 6px; width: 78px; height: 24px; border-radius: 100px;
            background: rgba(255,255,255,0.6);
        }

        /* Wide card - SEO */
        .bento-item-2 {
            grid-column: span 2;
            grid-row: span 1;
        }

        /* Small card - Mobile */
        .bento-item-3 {
            grid-column: span 1;
            grid-row: span 1;
        }

        /* Small card - Speed */
        .bento-item-4 {
            grid-column: span 1;
            grid-row: span 1;
        }

        /* Wide card - Support */
        .bento-item-5 {
            grid-column: span 2;
            grid-row: span 1;
        }

        /* Small card - CMS */
        .bento-item-6 {
            grid-column: span 2;
            grid-row: span 1;
        }

        @media (max-width: 968px) {
            .bento-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: 180px;
            }
            .bento-item-1 { grid-column: span 2; grid-row: span 2; }
            .bento-item-2, .bento-item-5, .bento-item-6 { grid-column: span 2; }
            .bento-item-3, .bento-item-4 { grid-column: span 1; }
            .features-section { padding: 5rem 1.5rem; }
        }

        @media (max-width: 520px) {
            .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
            .bento-item {
                grid-column: span 1 !important;
                grid-row: span 1 !important;
                min-height: 220px;
            }
            .bento-item-1 { min-height: 340px; }
            .bento-1-content { max-width: 100%; }
            .bento-item-1 .mockup-preview {
                width: 210px; height: 150px;
                bottom: -32px; right: -28px;
                opacity: 0.9;
            }
        }

        /* ============================================
           STATS SECTION
        ============================================ */
        .stats-section {
            padding: 6rem 4rem;
            background: var(--bg-secondary);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        .stats-grid {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            max-width: 1200px; margin: 0 auto;
            text-align: center;
        }
        .stat-item {
            position: relative;
        }
        .stat-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -1.5rem; top: 50%;
            transform: translateY(-50%);
            width: 1px; height: 60%;
            background: var(--border);
        }
        .stat-number {
            font-family: 'Geist', sans-serif;
            font-size: clamp(2.8rem, 5.5vw, 4.5rem);
            font-weight: 500;
            line-height: 1;
            margin-bottom: 0.6rem;
            letter-spacing: -0.06em;
            font-variant-numeric: tabular-nums;
        }
        .stat-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            color: var(--text-subtle);
            text-transform: uppercase;
            letter-spacing: 0.16em;
        }

        @media (max-width: 768px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
            .stat-item::after { display: none; }
            .stats-section { padding: 4rem 1.5rem; }
        }

        /* ============================================
           PROCESS TIMELINE
        ============================================ */
        .process-section { 
            background: var(--bg); 
        }
        .process-timeline {
            max-width: 1000px; margin: 0 auto; 
            position: relative; padding-left: 3rem;
        }
        .process-timeline::before {
            content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px;
            background: linear-gradient(to bottom, var(--border-strong) 0%, var(--border-strong) 70%, transparent 100%);
        }
        .process-step {
            position: relative; margin-bottom: 4rem; padding-left: 2rem;
        }
        .process-step:last-child { margin-bottom: 0; }
        .step-number {
            position: absolute; left: -3rem; top: 0;
            width: 32px; height: 32px;
            background: var(--bg); color: var(--text);
            border: 1px solid var(--border-strong);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500; font-size: 0.78rem;
            font-variant-numeric: tabular-nums;
            transition: background 0.3s, color 0.3s, border-color 0.3s;
        }
        .process-step:hover .step-number {
            background: var(--text);
            color: var(--bg);
            border-color: var(--text);
        }
        .process-step h3 {
            font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text);
        }
        .process-step p { color: var(--text-muted); line-height: 1.7; max-width: 600px; }
        .process-step .step-tag {
            display: inline-block;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 0.16em;
            margin-bottom: 0.6rem;
            padding: 0;
            background: none;
            border-radius: 0;
        }
        .process-step .step-tag::before {
            content: '◆'; color: var(--text); margin-right: 0.55rem; font-size: 0.55rem; vertical-align: middle;
        }

        @media (max-width: 768px) {
            .process-timeline { padding-left: 2rem; }
            .process-step { padding-left: 1rem; }
            .step-number { left: -2rem; }
        }

        /* ============================================
           SEO EDUCATION
        ============================================ */
        .seo-section { background: var(--bg-secondary); }
        .seo-grid {
            display: grid; grid-template-columns: 1fr 1fr; 
            gap: 4rem; align-items: center;
            max-width: 1200px; margin: 0 auto;
        }
        .seo-visual {
            aspect-ratio: 1; 
            padding: 2rem;
            display: flex; align-items: center; justify-content: center;
            position: relative;
        }
        .seo-search {
            width: 100%;
            background: var(--card-bg);
            border-radius: 20px;
            padding: 1.2rem;
            box-shadow: 0 30px 60px -20px rgba(22, 20, 18, 0.25);
            border: 1px solid var(--border);
        }
        .seo-search-bar {
            display: flex; align-items: center; gap: 0.8rem;
            padding: 0.8rem 1rem; background: var(--bg-secondary); 
            border-radius: 100px;
            margin-bottom: 1.5rem;
            font-size: 0.85rem; color: var(--text-muted);
        }
        .seo-search-bar::before { content: '🔍'; }
        .seo-result {
            padding: 1rem 0; border-bottom: 1px solid var(--border);
        }
        .seo-result.highlighted {
            background: linear-gradient(90deg, var(--accent-soft), transparent);
            padding: 1rem 0.8rem;
            border-left: 2px solid var(--text);
            margin: 0 -0.8rem;
        }
        .seo-result .position {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
            margin-bottom: 0.3rem; letter-spacing: 0.05em;
        }
        .seo-result .position.top { color: var(--blue-bright); }
        .seo-result .title {
            font-size: 0.95rem; color: var(--blue-bright); font-weight: 600; margin-bottom: 0.3rem;
        }
        .seo-result .desc {
            font-size: 0.8rem; color: var(--text-muted);
        }
        
        .seo-stats {
            display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
        }
        .stat-box {
            padding: 1.2rem;
        }
        /* The .accent class is editorial italic by default; these stat
           numbers want Geist tabular instead — override here. */
        .stat-box h4 {
            font-size: 2.2rem; color: var(--text); margin-bottom: 0.3rem;
            font-family: 'Geist', sans-serif !important;
            font-style: normal !important;
            font-weight: 500 !important;
            letter-spacing: -0.05em;
            font-variant-numeric: tabular-nums;
        }
        .stat-box p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

        @media (max-width: 968px) {
            .seo-grid { grid-template-columns: 1fr; gap: 3rem; }
        }

        /* ============================================
           PORTFOLIO
        ============================================ */
        .portfolio-section {
            background: var(--bg);
        }
        .portfolio-grid {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
            max-width: 1200px; margin: 0 auto;
        }
        .portfolio-item {
            position: relative; border-radius: 24px; overflow: hidden; 
            aspect-ratio: 16/10;
            background: var(--bg-secondary); cursor: pointer;
            border: 1px solid var(--border);
        }
        .portfolio-item img {
            width: 100%; height: 100%; object-fit: cover; 
            transition: transform 0.8s var(--transition);
        }
        .portfolio-item:hover img { transform: scale(1.05); }
        .portfolio-overlay {
            position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
            background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white;
            transform: translateY(20px); opacity: 0; transition: 0.5s var(--transition);
        }
        .portfolio-item:hover .portfolio-overlay { transform: translateY(0); opacity: 1; }
        .portfolio-overlay h3 { 
            font-size: 1.5rem; margin-bottom: 0.3rem;
        }
        .portfolio-overlay p { font-size: 0.9rem; opacity: 0.8; }
        .portfolio-overlay .tag {
            display: inline-block;
            margin-top: 0.5rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            padding: 0.3rem 0.7rem;
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(10px);
            border-radius: 100px;
        }
        
        @media (max-width: 768px) {
            .portfolio-grid { grid-template-columns: 1fr; }
        }

        /* ============================================
           TESTIMONIALS
        ============================================ */
        .testimonials-section {
            background: var(--bg-secondary);
            overflow: hidden;
        }

        .testimonials-wrapper {
            max-width: 1300px; margin: 0 auto;
            position: relative;
        }

        .testimonials-track {
            display: flex;
            gap: 1.5rem;
            width: max-content;
            padding: 1rem 0 2rem;
            animation: testimonial-marquee 50s linear infinite;
        }
        .testimonials-wrapper:hover .testimonials-track { animation-play-state: paused; }
        @keyframes testimonial-marquee {
            from { transform: translateX(0); }
            to { transform: translateX(-50%); }
        }

        .testimonial-card {
            flex: 0 0 380px;
            padding: 2rem;
        }

        .testimonial-stars {
            display: flex; gap: 0.2rem; margin-bottom: 1.2rem;
        }
        .testimonial-stars svg {
            width: 18px; height: 18px;
            fill: #FBBF24;
        }

        .testimonial-quote {
            font-size: 1.02rem;
            line-height: 1.65;
            color: var(--text);
            margin-bottom: 1.5rem;
            font-style: normal;
            text-wrap: pretty;
        }
        .testimonial-quote::before {
            content: '"';
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic;
            font-size: 3.5rem;
            color: var(--text);
            line-height: 0;
            display: block;
            margin-bottom: 0.8rem;
            opacity: 0.75;
        }

        .testimonial-author {
            display: flex; align-items: center; gap: 1rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }
        .author-avatar { display: none; }
        .author-info h5 {
            font-family: 'Geist', sans-serif;
            font-size: 0.92rem; font-weight: 500;
            color: var(--text);
            margin-bottom: 0.2rem;
            letter-spacing: -0.01em;
        }
        .author-info p { display: none; }

        .testimonial-nav {
            display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem;
        }
        .testimonial-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--border-strong);
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            padding: 0;
        }
        .testimonial-dot.active {
            background: var(--text);
            width: 24px;
            border-radius: 100px;
        }

        @media (max-width: 768px) {
            .testimonial-card { flex: 0 0 82vw; }
        }

        /* ============================================
           PRICING
        ============================================ */
        .pricing-section { 
            background: var(--bg);
        }
        .pricing-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); 
            gap: 1.5rem; max-width: 1200px; margin: 0 auto;
        }
        .pricing-card {
            padding: 2.5rem 2rem;
            position: relative;
            display: flex; flex-direction: column;
            background: var(--card-bg);
            border: 1px solid var(--border);
            box-shadow: 0 1px 0 var(--border);
            transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition), border-color 0.3s;
            transform-style: preserve-3d;
        }
        .pricing-card:hover {
            transform: translateY(-6px);
            border-color: var(--border-strong);
            box-shadow: 0 30px 60px -20px rgba(22, 20, 18, 0.18);
        }

        /* Featured tier: dark inverse panel — same content, opposite surface.
           Emphasis from contrast alone. */
        .pricing-card.featured {
            background: #0A0908;
            color: #F5F2EC;
            border: 1px solid #0A0908;
            box-shadow: 0 30px 60px -20px rgba(10, 9, 8, 0.5), inset 0 1px 0 rgba(245, 242, 236, 0.06);
            transform: scale(1.03);
        }
        .pricing-card.featured h3 { color: rgba(245, 242, 236, 0.6); }
        .pricing-card.featured .price { color: #F5F2EC; }
        .pricing-card.featured .price span { color: rgba(245, 242, 236, 0.55); }
        .pricing-card.featured .tier-desc { color: rgba(245, 242, 236, 0.5); }
        .pricing-card.featured .feature-list li {
            color: rgba(245, 242, 236, 0.85);
            border-bottom-color: rgba(245, 242, 236, 0.10);
        }
        .pricing-card.featured .feature-list li::before { background: #F5F2EC; }
        .pricing-card.featured .btn-magnetic {
            background: #F5F2EC; color: #0A0908;
            border-color: #F5F2EC;
            box-shadow: 0 1px 0 rgba(245, 242, 236, 0.18), 0 12px 24px -8px rgba(245, 242, 236, 0.18);
        }
        .pricing-card.featured .btn-magnetic:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 0 rgba(245, 242, 236, 0.18), 0 18px 32px -8px rgba(245, 242, 236, 0.28);
        }
        .pricing-card.featured:hover {
            transform: scale(1.03) translateY(-8px);
        }
        
        /* Square editorial badge sitting on the card edge, not a floating pill. */
        .badge {
            position: absolute; top: 1.5rem; right: 1.5rem;
            background: var(--text); color: var(--bg);
            padding: 0.3rem 0.7rem;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.66rem; font-weight: 500;
            white-space: nowrap;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }
        .pricing-card.featured .badge { background: var(--bg); color: var(--text); }
        .pricing-card h3 {
            font-size: 1.15rem; font-weight: 500; margin-bottom: 0.4rem;
            color: var(--text-muted); letter-spacing: 0;
        }
        .pricing-card .tier-desc {
            font-size: 0.85rem; color: var(--text-subtle); line-height: 1.5;
            margin-bottom: 1.8rem; min-height: 2.5rem;
        }
        .price {
            font-size: 2.6rem; font-weight: 500;
            color: var(--text);
            margin-bottom: 0.3rem;
            font-family: 'Geist', sans-serif;
            letter-spacing: -0.045em;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        .price span { font-size: 0.85rem; color: var(--text-subtle); font-weight: 400; margin-left: 0.2rem; }

        .feature-list { list-style: none; margin: 2rem 0; }
        .feature-list li {
            padding: 0.7rem 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.88rem;
            display: flex; align-items: flex-start; gap: 0.65rem;
            color: var(--text);
            line-height: 1.5;
        }
        .feature-list li::before {
            content: '';
            width: 6px; height: 6px;
            background: var(--text);
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 0.5rem;
        }

        .pricing-card .btn-magnetic {
            width: 100%; justify-content: center; margin-top: auto;
        }

        /* Cursor-following spotlight glow — neutral, low opacity */
        .pricing-card { --spot: rgba(10, 9, 8, 0.06); border-radius: 16px; }
        .pricing-card.featured { --spot: rgba(245, 242, 236, 0.10); }
        .pricing-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 55%);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
            z-index: 0;
        }
        .pricing-card:hover::after { opacity: 1; }
        /* keep card content above the glow layer (badge keeps its absolute position) */
        .pricing-card > *:not(.badge) { position: relative; z-index: 1; }
        .pricing-card .badge { z-index: 2; }

        @media (max-width: 1024px) {
            .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
            .pricing-card.featured { transform: scale(1); }
            .pricing-card.featured:hover { transform: translateY(-8px); }
        }

        /* ============================================
           CHATBOT ADD-ON (separate product line)
        ============================================ */
        .chatbot-aside {
            max-width: 1200px; margin: 6rem auto 0;
            padding-top: 4rem;
            border-top: 1px solid var(--border);
        }
        .chatbot-aside-header {
            display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
            align-items: end;
            margin-bottom: 3rem;
        }
        .chatbot-dateline {
            display: inline-flex; align-items: center; gap: 0.75rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 0.18em;
            margin-bottom: 1.25rem;
        }
        .chatbot-dateline::before {
            content: ''; width: 28px; height: 1px; background: var(--text);
        }
        .chatbot-aside h3 {
            font-size: clamp(1.8rem, 3.4vw, 2.6rem);
            font-weight: 500;
            line-height: 1.05;
            letter-spacing: -0.045em;
            margin-bottom: 0;
        }
        .chatbot-aside h3 em {
            font-family: 'Fraunces', Georgia, serif;
            font-style: italic; font-weight: 500;
        }
        .chatbot-aside-lede {
            font-size: 1rem; color: var(--text-muted);
            line-height: 1.65; max-width: 50ch;
            text-wrap: pretty;
        }

        .chatbot-grid {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }
        .chatbot-card {
            padding: 1.75rem 1.75rem 1.5rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex; flex-direction: column;
            transition: border-color 0.3s, transform 0.4s var(--transition);
            position: relative;
        }
        .chatbot-card:hover {
            border-color: var(--text);
            transform: translateY(-3px);
        }
        .chatbot-card-row {
            display: flex; align-items: baseline; justify-content: space-between;
            gap: 1rem; margin-bottom: 0.5rem;
        }
        .chatbot-card h4 {
            font-size: 1.05rem; font-weight: 500;
            color: var(--text); letter-spacing: -0.01em;
        }
        .chatbot-card-id {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; color: var(--text-subtle);
            letter-spacing: 0.1em;
        }
        /* Honest status note shown above the CTA: signals limited availability
           or "scoped engagement" without hiding the rest of the card. */
        .chatbot-note {
            display: inline-flex; align-items: center; gap: 0.5rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.65rem; font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 0.14em;
            padding: 0.45rem 0;
            margin-bottom: 0.25rem;
        }
        .chatbot-note::before {
            content: ''; width: 5px; height: 5px; border-radius: 50%;
            background: var(--text);
            animation: chatbot-note-pulse 2.2s ease-in-out infinite;
        }
        @keyframes chatbot-note-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.45; transform: scale(0.85); }
        }
        .chatbot-card .chatbot-tagline {
            font-size: 0.84rem; color: var(--text-muted);
            margin-bottom: 1.25rem; line-height: 1.55;
            min-height: 2.6rem;
        }
        .chatbot-card .chatbot-price {
            font-size: 1.8rem; font-weight: 500;
            color: var(--text);
            font-family: 'Geist', sans-serif;
            letter-spacing: -0.045em;
            font-variant-numeric: tabular-nums;
            line-height: 1;
            margin-bottom: 0.3rem;
        }
        .chatbot-card .chatbot-price span {
            font-size: 0.8rem; color: var(--text-subtle);
            font-weight: 400; margin-left: 0.25rem;
        }
        .chatbot-card .chatbot-once {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.66rem; color: var(--text-subtle);
            letter-spacing: 0.14em; text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        .chatbot-card ul {
            list-style: none; margin: 0 0 1.5rem;
            display: flex; flex-direction: column; gap: 0.45rem;
        }
        .chatbot-card ul li {
            font-size: 0.85rem; line-height: 1.5;
            color: var(--text);
            display: flex; align-items: flex-start; gap: 0.55rem;
        }
        .chatbot-card ul li::before {
            content: ''; width: 5px; height: 5px;
            background: var(--text); border-radius: 50%;
            flex-shrink: 0; margin-top: 0.5rem;
        }
        .chatbot-card .chatbot-cta {
            margin-top: auto;
            display: inline-flex; align-items: center; gap: 0.5rem;
            color: var(--text); text-decoration: none;
            font-size: 0.85rem; font-weight: 500;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
            transition: color 0.25s, gap 0.25s var(--transition-smooth);
        }
        .chatbot-card .chatbot-cta:hover {
            color: var(--text-muted);
            gap: 0.75rem;
        }
        .chatbot-card .chatbot-cta svg { width: 14px; height: 14px; }

        @media (max-width: 968px) {
            .chatbot-aside-header { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
            .chatbot-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
        }

        /* ============================================
           FAQ
        ============================================ */
        .faq-section { 
            background: var(--bg-secondary);
        }
        
        .faq-container {
            max-width: 900px; margin: 0 auto;
        }
        .faq-item {
            border-top: 1px solid var(--border);
            overflow: hidden;
            transition: background 0.3s;
        }
        .faq-item:last-child { border-bottom: 1px solid var(--border); }
        .faq-question {
            width: 100%;
            background: none; border: none;
            color: var(--text);
            padding: 1.75rem 0;
            font-size: 1.05rem; font-weight: 500;
            display: flex; justify-content: space-between; align-items: center;
            cursor: pointer; text-align: left;
            font-family: 'Geist', sans-serif;
            letter-spacing: -0.015em;
            gap: 1rem;
            transition: color 0.25s;
        }
        .faq-question:hover { color: var(--text-muted); }
        .faq-icon {
            width: 28px; height: 28px; min-width: 28px;
            border-radius: 0;
            background: none;
            border: none;
            display: flex; align-items: center;
            justify-content: center;
            position: relative;
            transition: transform 0.4s var(--transition);
            color: var(--text-muted);
        }
        .faq-item.active .faq-icon {
            transform: rotate(45deg);
            color: var(--text);
        }
        .faq-icon::before, .faq-icon::after {
            content: ''; position: absolute; background: currentColor;
            transition: 0.3s;
        }
        .faq-icon::before { width: 14px; height: 1.5px; }
        .faq-icon::after { width: 1.5px; height: 14px; }
        
        .faq-answer {
            max-height: 0; overflow: hidden; 
            transition: max-height 0.5s var(--transition);
        }
        .faq-answer-inner {
            padding: 0 0 2rem 0; 
            color: var(--text-muted); 
            line-height: 1.7; 
            font-size: 0.95rem;
        }
        .faq-item.active .faq-answer { max-height: 400px; }

        @media (max-width: 768px) {
            .faq-question { font-size: 1rem; padding: 1.3rem 0; }
            .faq-icon { width: 32px; height: 32px; min-width: 32px; }
        }

        /* ============================================
           CONTACT + NEWSLETTER
        ============================================ */
        .contact-section {
            padding: 8rem 4rem;
            position: relative; overflow: hidden;
            background: var(--bg);
        }
        .contact-bg-text {
            position: absolute; top: 50%; left: 50%; 
            transform: translate(-50%, -50%);
            font-family: 'Geist', sans-serif; 
            font-size: 20vw; font-weight: 800;
            color: var(--bg-secondary); 
            z-index: 0; pointer-events: none; user-select: none;
            white-space: nowrap;
            letter-spacing: -0.05em;
        }
        .contact-content { 
            position: relative; z-index: 2; 
            max-width: 800px; margin: 0 auto;
            text-align: center;
        }
        .contact-section h1 { 
            font-size: clamp(2.5rem, 7vw, 5rem); 
            margin-bottom: 1.5rem;
            letter-spacing: -0.04em;
        }
        .contact-section p { 
            font-size: 1.1rem; 
            color: var(--text-muted); 
            max-width: 600px; 
            margin: 0 auto 3rem; 
            line-height: 1.7; 
        }
        
        .contact-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
            margin-top: 4rem; text-align: left;
        }
        .contact-card {
            padding: 2rem;
        }
        .contact-card h4 {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--blue-bright);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.8rem;
        }
        .contact-card p {
            font-size: 0.95rem;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.6;
        }
        .contact-card a {
            color: var(--text);
            text-decoration: none;
            transition: color 0.3s;
        }
        .contact-card a:hover { color: var(--blue-bright); }

        .contact-or {
            display: flex; align-items: center; gap: 1rem;
            max-width: 560px; margin: 2.5rem auto 2rem;
            color: var(--text-subtle);
            font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
            letter-spacing: 0.15em; text-transform: uppercase;
        }
        .contact-or::before, .contact-or::after {
            content: ''; flex: 1; height: 1px; background: var(--border);
        }
        .contact-form {
            max-width: 560px; margin: 0 auto; text-align: left;
            display: grid; gap: 1rem;
        }
        .contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .contact-form label {
            display: block;
            font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-muted); margin-bottom: 0.5rem;
        }
        .contact-form input, .contact-form textarea, .contact-form select {
            width: 100%;
            padding: 0.9rem 1rem;
            background: var(--glass-bg);
            border: 1px solid var(--border-strong);
            border-radius: 12px;
            color: var(--text);
            font-family: inherit; font-size: 0.95rem;
            outline: none;
            transition: border-color 0.25s, background 0.25s;
        }
        .contact-form textarea { resize: vertical; min-height: 120px; }
        /* Native select styled to match — custom caret via inline SVG bg image
           so it picks up the current text color via currentColor isn't possible;
           we draw a chevron on the right and hide the OS one. */
        .contact-form select {
            appearance: none; -webkit-appearance: none; -moz-appearance: none;
            padding-right: 2.5rem;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 12px 12px;
            cursor: pointer;
        }
        [data-theme="dark"] .contact-form select {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A39A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        }
        .contact-form select:invalid { color: var(--text-subtle); }
        .contact-form select option { color: var(--text); background: var(--card-bg); }
        .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
            border-color: var(--text);
            background: var(--glass-bg-strong);
        }
        .contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"], .contact-form select[aria-invalid="true"] {
            border-color: #e0564f;
        }
        /* Themed contact submit — matches the rest of the button system:
           text-on-bg by default, inverse colors so the label always reads. */
        .contact-form button {
            justify-self: start;
            display: inline-flex; align-items: center; gap: 0.6rem;
            padding: 0.95rem 1.8rem;
            background: var(--text); color: var(--bg);
            border: 1px solid var(--text); border-radius: 100px;
            font-family: 'Geist', sans-serif; font-weight: 500; font-size: 0.92rem;
            letter-spacing: -0.01em;
            cursor: pointer;
            box-shadow: 0 1px 0 rgba(10, 9, 8, 0.08), 0 12px 24px -8px rgba(10, 9, 8, 0.18);
            transition: transform 0.2s var(--transition-smooth),
                        box-shadow 0.25s var(--transition-smooth);
        }
        .contact-form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 0 rgba(10, 9, 8, 0.12), 0 18px 32px -8px rgba(10, 9, 8, 0.28);
        }
        .contact-form button:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(10, 9, 8, 0.06), 0 4px 10px -4px rgba(10, 9, 8, 0.18); }
        .contact-form button svg { transition: transform 0.25s var(--transition-smooth); }
        .contact-form button:hover svg { transform: translateX(3px); }
        .contact-form button:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
        .contact-status {
            font-size: 0.85rem; min-height: 1.1rem;
            opacity: 0; transform: translateY(-3px);
            transition: opacity 0.3s, transform 0.3s;
        }
        .contact-status.show { opacity: 1; transform: translateY(0); }
        .contact-status.is-success { color: #1f9d57; }
        [data-theme="dark"] .contact-status.is-success { color: #4ade80; }
        .contact-status.is-error { color: #e0564f; }

        @media (max-width: 768px) {
            .contact-grid { grid-template-columns: 1fr; }
            .contact-section { padding: 5rem 1.5rem; }
            .contact-form .row { grid-template-columns: 1fr; }
            .contact-form button { justify-self: stretch; justify-content: center; }
        }

        /* ============================================
           FOOTER
        ============================================ */
        footer {
            background: var(--bg-dark); 
            color: white; 
            padding: 4rem 4rem 2rem;
        }

        [data-theme="dark"] footer {
            background: #000000;
            border-top: 1px solid var(--border);
        }
        
        .footer-main {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 3rem;
            max-width: 1300px;
            margin: 0 auto;
            padding-bottom: 3rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .footer-brand .logo-text { color: white; font-size: 1.3rem; }
        .footer-brand .logo { margin-bottom: 1rem; }
        .footer-brand p {
            color: rgba(255,255,255,0.6);
            font-size: 0.9rem;
            line-height: 1.6;
            max-width: 300px;
        }

        .footer-col h5 {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1.2rem;
        }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 0.7rem; }
        .footer-col a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
            cursor: pointer;
        }
        .footer-col a:hover { color: var(--blue-bright); }

        /* Audit form — stacked layout instead of a flat single-line newsletter
           because we now collect two fields (URL + email) and a value prop. */
        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .newsletter-form input {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            color: white;
            font-size: 0.85rem;
            font-family: inherit;
            outline: none;
            transition: border-color 0.25s, background 0.25s;
        }
        .newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
        .newsletter-form input:focus {
            border-color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.08);
        }
        .newsletter-form button {
            padding: 0.8rem 1.2rem;
            background: #fff;
            color: #0A0908;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.25s, transform 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-family: inherit;
            font-weight: 500;
            font-size: 0.85rem;
        }
        .newsletter-form button:hover {
            background: rgba(255,255,255,0.85);
        }
        .newsletter-form button:active { transform: translateY(1px); }
        .newsletter-form button svg { width: 14px; height: 14px; }
        .newsletter-form input[aria-invalid="true"] { border-color: #ff6b6b; }

        /* Tiny perks list under the audit form headline */
        .audit-perks {
            display: flex; flex-direction: column; gap: 0.35rem;
            margin: 0.85rem 0 1rem;
            list-style: none;
        }
        .audit-perks li {
            font-size: 0.78rem;
            color: rgba(255,255,255,0.6);
            display: flex; align-items: center; gap: 0.5rem;
            line-height: 1.4;
        }
        .audit-perks li::before {
            content: '';
            width: 4px; height: 4px;
            background: rgba(255,255,255,0.6);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .newsletter-status {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-top: 0.7rem;
            min-height: 1.1rem;
            opacity: 0;
            transform: translateY(-3px);
            transition: opacity 0.3s, transform 0.3s;
        }
        .newsletter-status.show { opacity: 1; transform: translateY(0); }
        .newsletter-status.is-success { color: #7Cffb0; }
        .newsletter-status.is-error { color: #ff8585; }

        .footer-bottom {
            max-width: 1300px;
            margin: 2rem auto 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .footer-bottom p {
            color: rgba(255,255,255,0.5);
            font-size: 0.85rem;
        }
        .footer-legal { display: flex; gap: 1.5rem; }
        .footer-legal a {
            color: rgba(255,255,255,0.5);
            font-size: 0.85rem; text-decoration: none;
            transition: color 0.25s;
        }
        .footer-legal a:hover { color: #fff; }

        @media (max-width: 768px) {
            footer { padding: 3rem 1.5rem 2rem; }
            .footer-main { grid-template-columns: 1fr; gap: 2rem; }
        }

        /* ============================================
           BACK TO TOP
        ============================================ */
        .back-to-top {
            position: fixed;
            bottom: 6.75rem;
            right: 2.2rem;
            width: 50px; height: 50px;
            background: var(--text);
            color: var(--bg);
            border: 1px solid var(--text);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 8999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.4s var(--transition);
            box-shadow: 0 8px 24px rgba(22, 20, 18, 0.22);
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 14px 30px rgba(10, 9, 8, 0.32);
        }
        .back-to-top svg { width: 20px; height: 20px; }

        /* ============================================
           SCROLL PROGRESS
        ============================================ */
        .scroll-progress {
            position: fixed; top: 0; left: 0; height: 2px; width: 0%;
            background: var(--accent);
            z-index: 9500;
            /* No CSS transition: GSAP scrub writes width every frame; a CSS
               transition would queue on each write and visibly lag the bar. */
        }

        /* ============================================
           REVEAL ANIMATIONS
        ============================================ */
        .reveal-text { overflow: hidden; display: block; }
        .reveal-text > span { 
            display: inline-block; 
            transform: translateY(100%); 
            transition: transform 0.8s var(--transition); 
        }
        .reveal-text.revealed > span { transform: translateY(0); }
        
        .fade-up { 
            opacity: 0; 
            transform: translateY(40px); 
            transition: opacity 0.8s ease, transform 0.8s ease; 
        }
        .fade-up.visible { opacity: 1; transform: translateY(0); }

        .fade-in {
            opacity: 0;
            transition: opacity 0.8s ease;
        }
        .fade-in.visible { opacity: 1; }

        /* Staggered fade-up */
        .stagger-1 { transition-delay: 0.1s; }
        .stagger-2 { transition-delay: 0.2s; }
        .stagger-3 { transition-delay: 0.3s; }
        .stagger-4 { transition-delay: 0.4s; }
        .stagger-5 { transition-delay: 0.5s; }

        /* ===== FULL-PAGE VIDEO BACKGROUND (DARK MODE ONLY) ===== */
        .page-video-bg {
            position: fixed; inset: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            z-index: -2; pointer-events: none;
        }
        .page-video-scrim {
            position: fixed; inset: 0;
            z-index: -1; pointer-events: none;
            /* Warm-tinted dark scrim — matches the new charcoal palette so the
               video doesn't visually disconnect from the page body. */
            background: rgba(14, 12, 10, 0.78);
        }
        /* Cream scrim for light mode — tinted to match the warm-neutral bg. */
        [data-theme="light"] .page-video-scrim { background: rgba(250, 247, 242, 0.86); }

        /* Make the page + sections transparent so the video shows through (both themes) */
        html[data-theme="dark"], html[data-theme="light"],
        [data-theme="dark"] body, [data-theme="light"] body,
        [data-theme="dark"] .main-wrapper, [data-theme="light"] .main-wrapper,
        [data-theme="dark"] .hero, [data-theme="light"] .hero,
        [data-theme="dark"] .features-section, [data-theme="light"] .features-section,
        [data-theme="dark"] .stats-section, [data-theme="light"] .stats-section,
        [data-theme="dark"] .process-section, [data-theme="light"] .process-section,
        [data-theme="dark"] .seo-section, [data-theme="light"] .seo-section,
        [data-theme="dark"] .portfolio-section, [data-theme="light"] .portfolio-section,
        [data-theme="dark"] .testimonials-section, [data-theme="light"] .testimonials-section,
        [data-theme="dark"] .pricing-section, [data-theme="light"] .pricing-section,
        [data-theme="dark"] .faq-section, [data-theme="light"] .faq-section,
        [data-theme="dark"] .contact-section, [data-theme="light"] .contact-section { background: transparent !important; }
        /* Hide the hero's animated blobs in both themes (video replaces them) */
        .mesh-bg { display: none; }
        /* Hide the film-grain overlay so the video looks crisp */
        .noise { display: none; }

        /* RESEARCH: how a website boosts sales */
        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            max-width: 1300px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        .research-card { padding: 2.25rem 2rem; border-radius: 24px; }
        .research-card .research-stat {
            font-family: 'Geist', sans-serif;
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 800; line-height: 1; margin-bottom: 0.85rem;
        }
        .research-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
        .research-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
        .research-source {
            display: block; margin-top: 1.1rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem; letter-spacing: 0.05em;
            color: var(--text-subtle); text-transform: uppercase;
        }

        /* ===== CHAT WIDGET ===== */
        .chat-fab {
            position: fixed; bottom: 2rem; right: 2rem; z-index: 9000;
            width: 56px; height: 56px; border-radius: 50%; border: none;
            background: var(--text); color: var(--bg);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 10px 26px rgba(10, 9, 8, 0.32);
            transition: transform 0.25s var(--transition), box-shadow 0.25s ease;
        }
        .chat-fab:hover { transform: scale(1.08); }
        .chat-fab svg { width: 28px; height: 28px; }
        .chat-fab .icon-close { display: none; }
        .chat-fab.open .icon-chat { display: none; }
        .chat-fab.open .icon-close { display: block; }

        .chat-panel {
            position: fixed; bottom: 7rem; right: 2rem; z-index: 9000;
            width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 150px));
            background: var(--card-bg); color: var(--text);
            border: 1px solid var(--border-strong); border-radius: 22px;
            box-shadow: 0 24px 60px rgba(0,0,0,0.35);
            display: flex; flex-direction: column; overflow: hidden;
            opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
            transition: opacity 0.25s ease, transform 0.25s var(--transition);
        }
        .chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

        .chat-header {
            display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem;
            background: var(--text); color: var(--bg);
        }
        .chat-header .chat-avatar {
            width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18);
            display: flex; align-items: center; justify-content: center; font-weight: 800;
            font-family: 'Geist', sans-serif; font-size: 0.85rem; flex-shrink: 0;
        }
        .chat-header h4 { font-size: 0.98rem; margin: 0; line-height: 1.15; }
        .chat-header p { font-size: 0.72rem; opacity: 0.9; margin: 0; }
        .chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; margin-right: 4px; vertical-align: middle; }

        .chat-body {
            flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem;
            background: var(--bg-secondary);
        }
        .chat-msg { max-width: 84%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
        .chat-msg.bot { align-self: flex-start; background: var(--card-bg); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
        .chat-msg.user { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 5px; }
        .chat-msg a { color: var(--text); text-decoration: underline; }
        .chat-msg.user a { color: var(--bg); text-decoration: underline; }

        /* Typing indicator — three dots that wave, sized to match a small bot
           message bubble so the reply lands in place. */
        .chat-typing {
            align-self: flex-start;
            display: none;
            gap: 0.32rem;
            padding: 0.85rem 1rem;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 16px;
            border-bottom-left-radius: 5px;
        }
        .chat-typing.show { display: inline-flex; }
        .chat-typing span {
            width: 6px; height: 6px;
            background: var(--text-muted);
            border-radius: 50%;
            animation: chat-typing-dot 1.1s ease-in-out infinite;
        }
        .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
        .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
        @keyframes chat-typing-dot {
            0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
            30% { transform: translateY(-4px); opacity: 1; }
        }

        /* Hint chip the bot can drop after an answer — clickable suggestion */
        .chat-hint {
            align-self: flex-start;
            max-width: 84%;
            font-size: 0.8rem; color: var(--text-muted);
            padding: 0.5rem 0.8rem;
            background: transparent;
            border: 1px dashed var(--border-strong);
            border-radius: 12px;
            cursor: pointer;
            font-family: inherit;
            text-align: left;
            line-height: 1.4;
            transition: border-color 0.25s, color 0.25s, background 0.25s;
        }
        .chat-hint:hover { border-color: var(--text); color: var(--text); background: var(--glass-bg); }

        /* Header clear button — small icon-only, right of subtitle */
        .chat-header .chat-clear {
            margin-left: auto;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.18);
            color: inherit;
            width: 28px; height: 28px;
            border-radius: 50%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            opacity: 0.7;
            transition: opacity 0.2s, background 0.2s;
        }
        .chat-header .chat-clear:hover { opacity: 1; background: rgba(255,255,255,0.08); }
        .chat-header .chat-clear svg { width: 14px; height: 14px; }

        .chat-quick { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.2rem 1.1rem 0.7rem; background: var(--bg-secondary); }
        .chat-quick button {
            font-family: inherit; font-size: 0.78rem; cursor: pointer;
            padding: 0.45rem 0.8rem; border-radius: 999px;
            border: 1px solid var(--border-strong); background: var(--card-bg); color: var(--text);
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }
        .chat-quick button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

        .chat-input { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--border); background: var(--card-bg); }
        .chat-input input {
            flex: 1; font-family: inherit; font-size: 0.9rem; padding: 0.65rem 0.9rem;
            border-radius: 999px; border: 1px solid var(--border-strong);
            background: var(--bg-secondary); color: var(--text); outline: none;
        }
        .chat-input input:focus { border-color: var(--text); }
        .chat-input button {
            border: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%;
            background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .chat-input button svg { width: 18px; height: 18px; }
        @media (max-width: 480px) {
            .chat-fab { bottom: 1.2rem; right: 1.2rem; }
            .chat-panel { bottom: 6rem; right: 1.2rem; }
        }

        /* ============================================
           SHOP / eBook STORE
        ============================================ */
        .shop-product-grid {
            display: grid;
            grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
            gap: clamp(2rem, 5vw, 5rem);
            max-width: 1100px; margin: 0 auto;
            align-items: center;
        }
        @media (max-width: 900px) {
            .shop-product-grid { grid-template-columns: 1fr; gap: 2.5rem; max-width: 540px; }
        }

        /* Cover — the render already has its own 3D/shadow on white, so we present
           it as a clean product card (no extra perspective) that lifts on hover. */
        .shop-cover { position: relative; display: flex; justify-content: center; }
        .shop-cover-visual {
            position: relative;
            width: 100%; max-width: 400px;
            border-radius: 16px;
            overflow: hidden;
            background: #fff;
            transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
            box-shadow: 0 26px 60px -24px rgba(0,0,0,0.5);
        }
        .shop-cover-visual:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -28px rgba(0,0,0,0.6); }
        .shop-cover-visual img { width: 100%; height: auto; display: block; }
        .shop-cover-placeholder {
            aspect-ratio: 3 / 4;
            width: 100%; height: 100%;
            display: flex; flex-direction: column; justify-content: space-between;
            padding: 1.8rem 1.5rem; color: var(--text); text-align: left;
            background:
                radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.07), transparent 60%),
                linear-gradient(155deg, var(--bg-tertiary), var(--bg-dark));
        }
        .shop-cover-kicker { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-subtle); }
        .shop-cover-title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 2rem; line-height: 1.05; letter-spacing: -0.04em; }
        .shop-cover-foot { font-size: 0.72rem; color: var(--text-subtle); letter-spacing: 0.04em; }
        .shop-cover-glow { position: absolute; inset: 12% 6%; z-index: -1; background: var(--text); filter: blur(70px); opacity: 0.10; border-radius: 50%; }

        /* Product info column */
        .shop-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
        .shop-tag {
            font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em;
            text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 100px;
            border: 1px solid var(--border-strong); color: var(--text-muted);
        }
        .shop-tag-sale { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
        .shop-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.08; margin-bottom: 0.5rem; }
        .shop-byline { font-size: 0.78rem; color: var(--text-subtle); letter-spacing: 0.04em; margin-bottom: 1.4rem; }
        .shop-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.65; max-width: 52ch; }
        .shop-learn { margin: 1.5rem 0 2rem; }
        .shop-learn li { font-size: 0.92rem; }

        .shop-price-row { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
        .shop-price-old { font-size: 1.1rem; color: var(--text-subtle); text-decoration: line-through; }
        .shop-price-now { font-size: 2.8rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
        .shop-price-save {
            font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em;
            padding: 0.3rem 0.6rem; border-radius: 6px;
            background: var(--accent-soft); color: var(--text); border: 1px solid var(--border);
        }
        .shop-buy-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
        .shop-buy-row .btn-magnetic { font-size: 1rem; padding: 1.05rem 1.8rem; }
        .shop-assurance { display: flex; flex-direction: column; gap: 0.5rem; }
        .shop-assurance span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); }
        .shop-assurance svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text); }

        /* Chapters / what's inside */
        .shop-chapters {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem; max-width: 1100px; margin: 0 auto 3rem;
        }
        .shop-chapter { display: flex; gap: 1rem; padding: 1.5rem; align-items: flex-start; }
        .shop-chapter-num { font-size: 0.85rem; color: var(--text-subtle); flex-shrink: 0; padding-top: 0.15rem; }
        .shop-chapter h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
        .shop-chapter p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

        /* Spec strip */
        .shop-specs {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
            max-width: 800px; margin: 0 auto; background: var(--border);
            border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
        }
        @media (max-width: 600px) { .shop-specs { grid-template-columns: repeat(2, 1fr); } }
        .shop-spec { background: var(--card-bg); padding: 1.2rem 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem; }
        .shop-spec-k { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-subtle); }
        .shop-spec-v { font-size: 1rem; font-weight: 500; }

        /* Book preview gallery — peek inside the eBook */
        .shop-preview { max-width: 1100px; margin: 4rem auto 0; text-align: center; }
        .shop-preview-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
        .shop-preview-sub { color: var(--text-muted); margin-bottom: 2rem; }
        .shop-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
        @media (max-width: 760px) { .shop-preview-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
        .shop-preview-item {
            position: relative; display: block; overflow: hidden;
            border: 1px solid var(--border); border-radius: 12px;
            background: #fff; aspect-ratio: 16 / 9;
            transition: transform 0.35s var(--transition), box-shadow 0.35s var(--transition);
        }
        .shop-preview-item:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.5); }
        .shop-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .shop-preview-zoom {
            position: absolute; bottom: 0.6rem; right: 0.6rem;
            width: 30px; height: 30px; border-radius: 50%;
            background: rgba(0,0,0,0.6); color: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
            opacity: 0; transition: opacity 0.25s;
        }
        .shop-preview-item:hover .shop-preview-zoom { opacity: 1; }

        /* ============================================
           PAYMENT MODAL (QPay / bank → manual delivery)
        ============================================ */
        .pay-modal {
            position: fixed; inset: 0; z-index: 10050;
            display: none; align-items: center; justify-content: center;
            padding: 1.2rem;
        }
        .pay-modal.open { display: flex; }
        .pay-backdrop {
            position: absolute; inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        }
        /* Keyframes (not transitions) so the reveal fires from display:none. */
        .pay-modal.open .pay-backdrop { animation: pay-fade 0.3s var(--transition-smooth) both; }
        .pay-dialog {
            position: relative; z-index: 1;
            width: 100%; max-width: 460px;
            max-height: 90vh; overflow-y: auto;
            background: var(--card-bg);
            border: 1px solid var(--border-strong);
            border-radius: 18px;
            padding: 2rem 1.8rem;
            box-shadow: 0 40px 80px -24px rgba(0,0,0,0.6);
        }
        .pay-modal.open .pay-dialog { animation: pay-pop 0.4s var(--transition) both; }
        @keyframes pay-fade { from { opacity: 0; } to { opacity: 1; } }
        @keyframes pay-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
        .pay-close {
            position: absolute; top: 1rem; right: 1rem;
            width: 36px; height: 36px; border-radius: 50%;
            border: 1px solid var(--border); background: var(--bg-secondary);
            color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: background 0.2s, color 0.2s;
        }
        .pay-close:hover { background: var(--text); color: var(--bg); }
        .pay-close svg { width: 16px; height: 16px; }
        .pay-head { margin-bottom: 1.5rem; padding-right: 2.5rem; }
        .pay-kicker { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-subtle); }
        .pay-head h3 { font-size: 1.35rem; margin: 0.3rem 0 0.6rem; }
        .pay-amount-line { font-size: 0.9rem; color: var(--text-muted); }
        .pay-trust { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.7rem auto 0; padding: 0.4rem 0.8rem; border-radius: 100px; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.28); font-size: 0.78rem; color: var(--text-muted); }
        .pay-trust svg { width: 14px; height: 14px; flex-shrink: 0; color: #4ade80; }
        .pay-amount { font-size: 1.05rem; color: var(--text); }
        .pay-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
        .pay-step-h { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
        .pay-step-n {
            width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
            background: var(--text); color: var(--bg);
            display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
        }
        .pay-step-h h4 { font-size: 1rem; font-weight: 500; }
        .pay-qr-wrap { display: flex; justify-content: center; margin-bottom: 1.2rem; }
        .pay-qr-wrap img {
            width: 180px; height: 180px; border-radius: 12px;
            object-fit: contain; background: #fff; padding: 8px; border: 1px solid var(--border);
        }
        .pay-qr-placeholder {
            width: 180px; height: 180px; border-radius: 12px;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
            border: 2px dashed var(--border-strong); color: var(--text-subtle);
            text-align: center; font-size: 0.8rem;
        }
        .pay-qr-placeholder svg { width: 40px; height: 40px; opacity: 0.6; }
        .pay-bank { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
        .pay-bank-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
        .pay-bank-row:last-child { border-bottom: none; }
        .pay-bank-k { color: var(--text-subtle); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }
        .pay-bank-v { text-align: right; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
        .pay-copy {
            border: 1px solid var(--border-strong); background: transparent; color: var(--text);
            font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; cursor: pointer;
            padding: 0.25rem 0.5rem; border-radius: 6px; transition: background 0.2s, color 0.2s;
        }
        .pay-copy:hover, .pay-copy.copied { background: var(--text); color: var(--bg); border-color: var(--text); }
        .pay-step-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem; }
        .pay-fb { width: 100%; justify-content: center; }
        .pay-tg { width: 100%; justify-content: center; margin-top: 0.6rem; }
        .pay-wa { width: 100%; justify-content: center; margin-top: 0.6rem; }
        .pay-wa svg { color: #25D366; }
        .pay-foot { margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-subtle); text-align: center; }
        .pay-foot a { color: var(--text); }
        body.pay-open { overflow: hidden; }

        /* Mobile: keep the SAME centered, rounded box as desktop — just make it
           fit the phone and scroll inside itself. The overlay scrolls (block
           layout, universal — no flex centering that clips, no vh/dvh units that
           break on some Android browsers); the box sits in the middle with a
           margin all around and grows no taller than the screen. */
        @media (max-width: 600px) {
            .pay-modal.open { display: block; }
            .pay-modal {
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                padding: 0;
            }
            .pay-backdrop { position: fixed; inset: 0; }
            .pay-dialog {
                width: auto;
                max-width: none;
                max-height: none;          /* the overlay scrolls, not the box */
                overflow: visible;
                margin: 1.25rem;           /* the "box" gap on all sides */
                padding: 1.6rem 1.4rem;
                border-radius: 16px;
            }
        }

        /* ============================================
           REDUCED MOTION (accessibility, mandatory above MOTION 3)
        ============================================ */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
            }
            html { scroll-behavior: auto !important; }
            /* Scroll/entry-revealed content stays visible without motion */
            .fade-up, .fade-in, .reveal-text { opacity: 1 !important; transform: none !important; }
            .hero h1 .line > span,
            .reveal-text > span { transform: none !important; }
            /* Stop perpetual marquees */
            .marquee-inner, .testimonials-track { animation: none !important; transform: none !important; }
        }
    
