    /* ─── RESET & ROOT ─── */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #0a0b0e;
            --bg-secondary: #12141a;
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --text-muted: #52525b;
            --accent-cyan: #00d4ff;
            --accent-violet: #a855f7;
            --accent-orange: #f59e0b;
            --glass-bg: rgba(255, 255, 255, 0.02);
            --glass-border: rgba(255, 255, 255, 0.06);
            --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 24px;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'IBM Plex Mono', monospace;
            --font-display: 'Fraunces', 'Inter', serif;
            --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Snappy, fluid ease-out */
            --transition-spring: 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); /* Slight bounce for panels */
        }

        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            font-family: var(--font-sans);
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        ::selection {
            background: rgba(0, 212, 255, 0.2);
            color: var(--accent-cyan);
        }

        a {
            color: inherit;
            text-decoration: none;
        }
        .mono {
            font-family: var(--font-mono);
        }

        /* ─── 3D BACKGROUND ─── */
        #three-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            opacity: 0.4;
        }

        /* ─── MOUSE GLOW (Subtle) ─── */
        #mouse-glow {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
            background: radial-gradient(800px circle at 50% 50%, rgba(0, 212, 255, 0.04), transparent 70%);
            transition: background 0.1s linear;
        }
        
        /* ─── CINEMATIC FILM GRAIN ─── */
        body::before {
            content: "";
            position: fixed;
            top: 0; 
            left: 0; 
            width: 100vw; 
            height: 100vh;
            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");
            opacity: 0.03; 
            pointer-events: none;
            z-index: 9999;
        }
/* ─── BOOT SCREEN ─── */
        #boot-screen {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: var(--bg-primary);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            animation: fadeOutBoot 0.5s forwards;
            animation-delay: 1s; /* How long the screen stays up */
            pointer-events: none;
        }
        .boot-text {
            color: var(--text-secondary);
            font-size: 0.85rem;
            width: 300px;
        }
        .boot-text div {
            opacity: 0;
            animation: typeLine 0.1s forwards;
        }
        .boot-text div:nth-child(1) { animation-delay: 0.1s; }
        .boot-text div:nth-child(2) { animation-delay: 0.35s; }
        .boot-text div:nth-child(3) { animation-delay: 0.6s; }
        .boot-text div:nth-child(4) { animation-delay: 0.8s; }

        @keyframes typeLine {
            to { opacity: 1; }
        }
        @keyframes fadeOutBoot {
            to { opacity: 0; visibility: hidden; }
        }
        /* ─── NAV ─── */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 20px 5vw;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(10, 11, 14, 0.6);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 1px solid transparent;
            transition: border-color 0.3s ease, background 0.3s ease;
        }
        nav.scrolled {
            border-bottom-color: var(--glass-border);
            background: rgba(10, 11, 14, 0.85);
        }

        .nav-logo {
            font-weight: 700;
            font-size: 1.1rem;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }
        .nav-links a {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
            transition: color 0.25s;
            padding: 4px 0;
        }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 1.5px;
            border-radius: 2px;
            background: var(--accent-cyan);
            transition: width 0.3s ease;
        }
        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-primary);
        }
        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.4rem;
            cursor: pointer;
        }
/* ─── BIBLE DOM SCROLL SECTION ─── */
        .bible-section {
            height: 400vh;
            position: relative;
            z-index: 2;
            padding: 0;
            margin: 2rem 0 4rem;
        }
        .bible-pin {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .bible-anim-layer {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            z-index: 1;
        }
        
        .frag {
            position: absolute;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            color: var(--accent-cyan);
            background: rgba(0, 212, 255, 0.05);
            backdrop-filter: blur(4px); /* Frosted glass effect */
            border: 1px solid rgba(0, 212, 255, 0.2);
            padding: 0.4rem 0.8rem;
            border-radius: 4px;
            white-space: nowrap;
            will-change: transform, opacity;
        }

        .llm-core {
            position: absolute;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0 40px 20px rgba(168, 85, 247, 0.6), 0 0 80px 40px rgba(0, 212, 255, 0.4);
            opacity: 0;
            transform: scale(0.1);
            will-change: transform, opacity;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* New: Pulsing Processing Rings */
        .core-ring {
            position: absolute;
            inset: -30px;
            border: 1px solid var(--accent-cyan);
            border-radius: 50%;
            opacity: 0;
            animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        .core-ring.r2 {
            inset: -60px;
            border-color: var(--accent-violet);
            animation-delay: 1s;
        }
        @keyframes pulseRing {
            0% { transform: scale(0.3); opacity: 0; }
            50% { opacity: 0.6; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        .phone-fan {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .fan-item {
            position: absolute;
            width: 200px; 
            height: 400px;
            will-change: transform, opacity;
            opacity: 0;
            transform-origin: bottom center;
            border-radius: 24px;
            overflow: hidden; /* Keeps the scanline inside the phone */
        }

        .wireframe {
            position: absolute;
            inset: 0;
            border: 2px solid var(--accent-cyan);
            border-radius: 24px;
            box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.2);
            opacity: 1;
        }

        /* New: Render Scanline */
        .scanline {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 2px;
            background: #fff;
            box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
            opacity: 0;
            z-index: 2;
        }

        /* New: Glass Reflection */
        .glass-reflection {
            position: absolute;
            inset: 0;
            background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.15) 25%, transparent 30%);
            z-index: 3;
            opacity: 0;
        }

        .fan-item img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: 0; 
        }
        
        .bible-caption-stack {
            position: relative;
            z-index: 4;
            max-width: 600px;
            padding: 0 5vw;
            text-align: center;
            pointer-events: none;
            height: 1px;
        }
        /* ... Keep the rest of your bible-caption CSS exactly the same ... */
        .bible-caption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.6s ease; width: 100%; }
        .bible-caption.active { opacity: 1; }
        .bible-caption .bc-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); font-weight: 500; margin-bottom: 0.5rem; display: block; }
        .bible-caption h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }

        @media (max-width: 820px) {
            .fan-item { width: 140px; height: 280px; }
            .frag { font-size: 0.7rem; }
            .bible-section { height: 400vh; }

            /* Real mobile nav: hide the inline links, show the toggle button. */
            .nav-toggle { display: block; }
            .nav-links {
                position: fixed;
                top: 64px;
                left: 0;
                right: 0;
                flex-direction: column;
                align-items: flex-start;
                gap: 0;
                background: rgba(10, 11, 14, 0.97);
                backdrop-filter: blur(16px);
                border-bottom: 1px solid var(--glass-border);
                max-height: 0;
                overflow: hidden;
                padding: 0 6vw;
                transition: max-height 0.35s var(--transition-smooth), padding 0.35s var(--transition-smooth);
            }
            .nav-links.open {
                max-height: 320px;
                padding: 0.5rem 6vw 1.2rem;
            }
            .nav-links a {
                width: 100%;
                padding: 0.85rem 0;
                border-bottom: 1px solid var(--glass-border);
            }
            .nav-links a::after { display: none; }
        }

        @media (max-width: 520px) {
            /* Tighter section padding to maximize screen space */
            section {
                padding: 3rem 4vw 2rem;
            }
            .glass-card {
                padding: 1.4rem 1.2rem;
            }
            
            /* Typography adjustments */
            .hero-title {
                font-size: 2.2rem;
            }
            .hero-stats {
                gap: 0.6rem;
            }
            .hero-stat {
                font-size: 0.75rem;
                padding: 0.4rem 0.9rem;
            }
            
            /* Stack buttons for large thumb targets */
            .hero-cta {
                flex-direction: column;
                width: 100%;
                gap: 0.8rem;
            }
            .btn {
                width: 100%;
                text-align: center;
                padding: 1rem 2rem; /* Taller touch area */
            }
            
            /* Grid adjustments */
            .stat-row {
                gap: 0.4rem;
            }
            .biomarker-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .phone-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .phone-mockup {
                width: 120px;
            }
        }
        /* ─── MOBILE TOUCH FIXES ─── */
        @media (hover: none) and (pointer: coarse) {
            .btn-primary:hover, .btn-ghost:hover {
                transform: none; /* Disables the scale-up effect */
            }
            .glass-card:hover {
                transform: none;
                box-shadow: var(--glass-shadow); /* Prevents tilt sticking */
            }
            .biomarker-cell:hover:not(.active) {
                background: rgba(0, 0, 0, 0.2);
                border-color: var(--glass-border);
            }
        }

        /* ─── SECTIONS ─── */
        section {
            position: relative;
            z-index: 2;
            padding: 6rem 5vw 4rem;
        }
        .section-inner {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
        }
        .chapter-num {
    position: absolute;
    top: -1.2rem;
    right: 0;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08); /* This creates the outline */
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    user-select: none;
}
        @media (max-width: 820px) {
            .chapter-num { display: none; }
        }

        .eyebrow {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--accent-cyan);
            font-weight: 500;
            margin-bottom: 0.6rem;
            display: block;
        }

        .section-title {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: clamp(2rem, 4.5vw, 3rem);
            font-weight: 600;
            letter-spacing: -0.01em;
            line-height: 1.12;
            margin-bottom: 1rem;
        }

        .section-desc {
            color: var(--text-secondary);
            max-width: 60ch;
            font-size: 1.05rem;
            margin-bottom: 3rem;
            line-height: 1.7;
        }

        /* ─── REVEAL ─── */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
        }
        .reveal.in {
            opacity: 1;
            transform: translateY(0);
        }
        /* Card-grid children get a subtle scale-fade instead of a straight rise, staggered by position. */
        .reveal-stagger {
            opacity: 0;
            transform: translateY(18px) scale(0.98);
            transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
        }
        .reveal-stagger.in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        .reveal-stagger:nth-child(1) { transition-delay: 0s; }
        .reveal-stagger:nth-child(2) { transition-delay: 0.08s; }
        .reveal-stagger:nth-child(3) { transition-delay: 0.16s; }
        .reveal-stagger:nth-child(4) { transition-delay: 0.24s; }
        .reveal-stagger:nth-child(5) { transition-delay: 0.32s; }
        .reveal-stagger:nth-child(6) { transition-delay: 0.4s; }

        /* ─── HERO ─── */
        #home {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-top: 0;
            position: relative;
        }

        .hero-tagline {
            font-family: var(--font-mono);
            color: var(--accent-cyan);
            font-size: 0.85rem;
            margin-bottom: 1rem;
            letter-spacing: 0.04em;
            font-weight: 500;
            position: relative;
            z-index: 2;
            height: 2.2rem;
        }
        .hero-tagline .cursor {
            display: inline-block;
            width: 2px;
            height: 1.1em;
            background: var(--accent-cyan);
            margin-left: 4px;
            vertical-align: text-bottom;
            animation: blink 0.7s step-end infinite;
        }
        @keyframes blink {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }

        .hero-title {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: clamp(2.8rem, 8vw, 5.5rem);
            font-weight: 600;
            line-height: 1.04;
            letter-spacing: -0.015em;
            max-width: 14ch;
            position: relative;
            z-index: 2;
            color: var(--text-primary);
        }
        .hero-title .accent {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-sub {
            margin-top: 1.6rem;
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 50ch;
            position: relative;
            z-index: 2;
            line-height: 1.7;
        }

        .hero-stats {
            display: flex;
            gap: 1.5rem;
            margin-top: 2.5rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }
        .hero-stat {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--text-secondary);
            border: 1px solid var(--glass-border);
            padding: 0.5rem 1.2rem;
            border-radius: 980px;
            background: var(--glass-bg);
            backdrop-filter: blur(8px);
        }
        .hero-stat strong {
            color: var(--accent-cyan);
            font-weight: 600;
        }

        .hero-cta {
            display: flex;
            gap: 1rem;
            margin-top: 2.8rem;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }

        .btn {
            padding: 0.8rem 2rem;
            border-radius: 980px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: all var(--transition-smooth);
            border: none;
            cursor: pointer;
            display: inline-block;
            font-family: var(--font-sans);
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            color: var(--bg-primary);
            box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
            position: relative;
            overflow: hidden; /* Keeps the shimmer inside the button */
        }
        
        /* The Shimmer Element */
        .btn-primary::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transform: skewX(-20deg);
            transition: none;
        }

        .btn-primary:hover {
            transform: scale(1.04);
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.25);
        }

        /* Triggers the sweep on hover */
        .btn-primary:hover::after {
            left: 150%;
            transition: left 0.6s ease-in-out;
        }
        .btn-primary:hover {
            transform: scale(1.04);
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.25);
        }
        .btn-ghost {
            background: var(--glass-bg);
            color: var(--text-primary);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(8px);
        }
        .btn-ghost:hover {
            border-color: var(--accent-cyan);
            color: var(--accent-cyan);
            background: rgba(0, 212, 255, 0.05);
        }

        .scroll-cue {
            position: absolute;
            bottom: 2.5rem;
            left: 5vw;
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.6rem;
            z-index: 2;
            letter-spacing: 0.06em;
        }
        .scroll-cue .line {
            width: 28px;
            height: 1px;
            background: var(--text-muted);
            position: relative;
            overflow: hidden;
        }
        .scroll-cue .line::after {
            content: '';
            position: absolute;
            left: -100%;
            top: 0;
            width: 100%;
            height: 100%;
            background: var(--accent-cyan);
            animation: scrollline 2.4s ease-in-out infinite;
        }
        @keyframes scrollline {
            0% {
                left: -100%;
            }
            50% {
                left: 0;
            }
            100% {
                left: 100%;
            }
        }

        /* ─── GLASS CARDS (Minimal) ─── */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 2.4rem 2.8rem;
            box-shadow: var(--glass-shadow);
            transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
            margin-bottom: 2rem;
        }
        .glass-card:hover {
            border-color: rgba(0, 212, 255, 0.15);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        }
        .glass-card .title {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: 1.6rem;
            font-weight: 600;
            letter-spacing: -0.005em;
            margin-bottom: 0.2rem;
        }
        .glass-card .meta {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        .glass-card .body {
            color: var(--text-secondary);
            line-height: 1.7;
        }
        .glass-card .body strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        /* ─── PROOF STATS (oversized count-up numbers) ─── */
        .proof-stats {
            display: flex;
            gap: 2.5rem;
            flex-wrap: wrap;
            margin: 1.6rem 0 1.8rem;
        }
        .proof-stat {
            display: flex;
            flex-direction: column;
        }
        .proof-num {
            font-family: var(--font-mono);
            font-size: clamp(2.2rem, 5vw, 3.2rem);
            font-weight: 500;
            line-height: 1;
            letter-spacing: -0.01em;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .proof-label {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: 0.3rem;
            letter-spacing: 0.01em;
        }

        /* ─── WHY ME ─── */
        .why-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.2rem;
        }
        .why-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 1.8rem 1.6rem;
            transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
        }
        .why-card:hover {
            border-color: rgba(0, 212, 255, 0.25);
            transform: translateY(-4px);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
        }
        .why-icon {
            width: 40px;
            height: 40px;
            margin-bottom: 0.9rem;
        }
        .why-card h4 {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.35rem;
            color: var(--text-primary);
        }
        .why-card p {
            color: var(--text-secondary);
            font-size: 0.88rem;
            line-height: 1.55;
        }

        .stat-row {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            margin: 1rem 0;
        }
        .stat-pill {
            font-family: var(--font-mono);
            font-size: 0.75rem;
            padding: 0.3rem 1rem;
            border-radius: 980px;
            border: 1px solid var(--glass-border);
            color: var(--text-secondary);
            background: rgba(0, 0, 0, 0.3);
        }
        .stat-pill.cyan {
            border-color: rgba(0, 212, 255, 0.3);
            color: var(--accent-cyan);
        }
        .stat-pill.violet {
            border-color: rgba(168, 85, 247, 0.3);
            color: var(--accent-violet);
        }
        .stat-pill.orange {
            border-color: rgba(245, 158, 11, 0.3);
            color: var(--accent-orange);
        }

        .tag-row {
            display: flex;
            gap: 0.4rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }
        .tag {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            color: var(--text-secondary);
            border: 1px solid var(--glass-border);
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
        }
        .tag:hover {
            border-color: var(--accent-cyan);
            color: var(--accent-cyan);
        }

        .expand-btn {
            margin-top: 1.2rem;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent-cyan);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            padding: 0;
            transition: opacity 0.2s;
        }
        .expand-btn:hover {
            opacity: 0.7;
        }
        .expand-btn .arrow {
            transition: transform 0.35s ease;
            display: inline-block;
        }
        .expand-btn.open .arrow {
            transform: rotate(180deg);
        }

        .expand-panel {
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition-spring), opacity var(--transition-smooth);
            opacity: 0;
        }
        .expand-panel.open {
            max-height: 4000px;
            opacity: 1;
        }
        .expand-inner {
            padding-top: 1.6rem;
            border-top: 1px solid var(--glass-border);
            margin-top: 1.6rem;
        }
        .expand-inner img {
            width: 100%;
            border-radius: var(--radius-sm);
            margin: 1rem 0;
            border: 1px solid var(--glass-border);
            transition: filter 0.3s;
            background: var(--bg-secondary);
        }
        /* ─── NEXUS SVG ─── */
        .nexus-svg {
            width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            margin: 1rem 0;
            border: 1px solid var(--glass-border);
            background: rgba(0, 0, 0, 0.2);
            padding: 0.5rem;
            box-sizing: border-box;
        }
        .expand-inner img.shimmer {
            filter: blur(4px) brightness(0.6);
        }
        .expand-inner p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.7;
        }
        .expand-inner code {
            font-family: var(--font-mono);
            color: var(--accent-cyan);
            background: rgba(0, 212, 255, 0.06);
            padding: 0.1rem 0.4rem;
            border-radius: 4px;
            font-size: 0.85em;
        }

        /* ─── BIOMARKER GRID ─── */
        .biomarker-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 0.6rem;
            margin: 1rem 0;
        }
        .biomarker-cell {
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-sm);
            padding: 0.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
        }
        .biomarker-cell:hover,
        .biomarker-cell.active {
            border-color: var(--accent-cyan);
            background: rgba(0, 212, 255, 0.05);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
        }
        .biomarker-cell .bname {
            font-weight: 600;
            font-size: 0.85rem;
        }
        .biomarker-cell .bauc {
            font-family: var(--font-mono);
            color: var(--accent-cyan);
            font-size: 0.7rem;
            margin-top: 0.2rem;
        }

        /* ─── SIMULATOR ─── */
        .sim-box {
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 1.8rem 2rem;
            margin-top: 1rem;
            background: rgba(0, 0, 0, 0.3);
        }
        .sim-btn {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 600;
            padding: 0.7rem 1.6rem;
            border-radius: 980px;
            border: none;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            color: var(--bg-primary);
            cursor: pointer;
            transition: all var(--transition-smooth);
            box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
        }
        .sim-btn:hover {
            transform: scale(1.03);
            box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
        }
        .sim-result {
            margin-top: 1.4rem;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            min-height: 80px;
        }
        .sim-score-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 4px;
            overflow: hidden;
            margin: 0.8rem 0;
        }
        .sim-score-fill {
            height: 100%;
            width: 0%;
            border-radius: 4px;
            transition: width 1.1s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.4s ease;
        }
        .sim-route {
            display: inline-block;
            padding: 0.25rem 0.9rem;
            border-radius: 980px;
            font-weight: 600;
            font-size: 0.75rem;
            margin-top: 0.3rem;
        }
        .sim-route.auto {
            background: rgba(0, 212, 255, 0.15);
            color: var(--accent-cyan);
        }
        .sim-route.review {
            background: rgba(245, 158, 11, 0.15);
            color: var(--accent-orange);
        }
        .sim-route.manual {
            background: rgba(255, 69, 58, 0.15);
            color: #ff453a;
        }

        /* ─── PHONE MOCKUP ─── */
        .phone-mockup {
            position: relative;
            width: 200px;
            margin: 0 auto 1.5rem;
            border-radius: 28px;
            border: 2px solid var(--glass-border);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            overflow: hidden;
            background: #000;
        }
        .phone-mockup img {
            width: 100%;
            display: block;
        }
        .phone-mockup .notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 24px;
            background: #000;
            border-radius: 0 0 14px 14px;
            z-index: 2;
        }
        .phone-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.2rem;
            justify-items: center;
        }

        /* ─── RESEARCH GRID ─── */
        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1.2rem;
        }
        .research-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 1.6rem 1.8rem;
            transition: all var(--transition-smooth);
        }
        .research-card:hover {
            border-color: rgba(0, 212, 255, 0.15);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
            transform: translateY(-3px);
        }
        .rc-title {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: 1.15rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
        }
        .rc-meta {
            font-size: 0.72rem;
            color: var(--accent-cyan);
            margin-bottom: 0.6rem;
            font-weight: 500;
        }
        .rc-body {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
        }
        .rc-body strong {
            color: var(--text-primary);
            font-weight: 500;
        }

        /* ─── TIMELINE ─── */
        .timeline {
            position: relative;
            padding-left: 2.2rem;
        }
        .timeline::before {
            content: '';
            position: absolute;
            left: 5px;
            top: 8px;
            bottom: 8px;
            width: 1.5px;
            background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet));
            opacity: 0.4;
        }
        .timeline-fill {
            position: absolute;
            left: 5px;
            top: 8px;
            width: 1.5px;
            height: 0%;
            background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-violet));
            box-shadow: 0 0 8px var(--accent-cyan);
            transition: height 0.1s linear;
            z-index: 1;
        }
        .tl-dot.lit {
            border-color: var(--accent-violet);
            box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
            background: var(--accent-cyan);
        }
        .tl-item {
            position: relative;
            padding-bottom: 2.6rem;
        }
        .tl-item:last-child {
            padding-bottom: 0;
        }
        .tl-dot {
            position: absolute;
            left: -2.2rem;
            top: 4px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--bg-primary);
            border: 2px solid var(--accent-cyan);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
        }
        .tl-date {
            font-family: var(--font-mono);
            font-size: 0.72rem;
            color: var(--accent-cyan);
            font-weight: 500;
            margin-bottom: 0.2rem;
        }
        .tl-role {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.1rem;
        }
        .tl-org {
            color: var(--text-secondary);
            font-size: 0.88rem;
            margin-bottom: 0.4rem;
        }
        .tl-desc {
            color: var(--text-secondary);
            max-width: 65ch;
            font-size: 0.94rem;
            line-height: 1.6;
        }

        /* ─── SKILLS ─── */
        .stack-groups {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.2rem;
        }
        .stack-group {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 1.4rem 1.6rem;
            transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
        }
        .stack-group:hover {
            border-color: rgba(0, 212, 255, 0.2);
            transform: translateY(-3px);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
        }
        .stack-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--accent-cyan);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.45rem;
        }
        .stack-label::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent-cyan);
            box-shadow: 0 0 6px var(--accent-cyan);
            flex-shrink: 0;
        }
        /*.stack-tags .tag {
            font-size: 0.7rem;
        }*/
        .stack-tags {
            display: flex;
            flex-wrap: wrap; /* This forces the tags to drop to the next line instead of overflowing */
            gap: 0.5rem;
        }

        .tag {
            font-family: var(--font-mono);
            font-size: 0.68rem;
            color: var(--text-secondary);
            border: 1px solid var(--glass-border);
            padding: 0.2rem 0.8rem;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
            white-space: nowrap; /* This forces "Google ADK" to stay on a single line */
        }

        /* ─── EDUCATION ─── */
        .edu-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 0.4rem;
            padding: 1.2rem 0;
            border-bottom: 1px solid var(--glass-border);
        }
        .edu-degree {
            font-weight: 700;
            font-size: 1.05rem;
        }
        .edu-school {
            color: var(--text-secondary);
            font-size: 0.88rem;
        }
        .edu-grade {
            color: var(--accent-cyan);
            font-size: 0.82rem;
            font-weight: 500;
        }
        .cert-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1.4rem;
        }

        /* ─── CONTACT ─── */
        #contact {
            text-align: center;
            padding-bottom: 6rem;
        }
        .contact-title {
            font-family: var(--font-display);
            font-optical-sizing: auto;
            font-size: clamp(2.2rem, 5vw, 3.4rem);
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-bottom: 0.6rem;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .contact-sub {
            color: var(--text-secondary);
            max-width: 46ch;
            margin: 0 auto 2rem;
            font-size: 1.05rem;
        }
        .contact-links {
            display: flex;
            gap: 0.8rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ─── CONTACT TERMINAL ─── */
        .contact-terminal {
            max-width: 440px;
            margin: 0 auto 2.4rem;
            text-align: left;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 1.4rem 1.6rem;
            font-size: 0.82rem;
            line-height: 1.9;
        }
        .ct-line {
            color: var(--text-muted);
            opacity: 0;
            transform: translateY(4px);
            animation: ctReveal 0.4s ease forwards;
        }
        .ct-line[data-ct="0"] { animation-delay: 0.1s; }
        .ct-line[data-ct="1"] { animation-delay: 0.7s; }
        .ct-line[data-ct="2"] { animation-delay: 1.3s; }
        .ct-line[data-ct="3"] { animation-delay: 1.9s; }
        @keyframes ctReveal {
            to { opacity: 1; transform: translateY(0); }
        }
        .ct-open {
            color: var(--accent-cyan);
            font-weight: 600;
        }
        .ct-cursor {
            display: inline-block;
            margin-left: 2px;
            color: var(--accent-cyan);
            animation: blink 1s step-end infinite;
        }
        @keyframes blink {
            50% { opacity: 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .ct-line { animation: none; opacity: 1; transform: none; }
            .ct-cursor { animation: none; }
        }

        /* ─── FOOTER ─── */
        footer {
            text-align: center;
            padding: 2rem 5vw;
            color: var(--text-muted);
            font-size: 0.75rem;
            border-top: 1px solid var(--glass-border);
            position: relative;
            z-index: 2;
            font-family: var(--font-mono);
            background: rgba(10, 11, 14, 0.6);
            backdrop-filter: blur(12px);
        }

        /* ─── NEUROGRAPH 3D SCROLL ─── */
        .brain-section {
            height: 500vh;
            position: relative;
            z-index: 2;
            padding: 0;
            margin: 2rem 0 4rem;
        }
        .brain-pin {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #brain-canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }
        .brain-caption-stack {
            position: relative;
            z-index: 3;
            max-width: 600px;
            padding: 0 5vw;
            text-align: center;
            pointer-events: none;
            height: 1px;
        }
        .brain-caption {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: opacity 0.6s ease;
            width: 100%;
        }
        .brain-caption.active {
            opacity: 1;
        }
        .brain-caption .bc-eyebrow {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-cyan);
            font-weight: 500;
            margin-bottom: 0.5rem;
            display: block;
        }
        .brain-caption h3 {
            font-size: clamp(1.4rem, 3vw, 2.2rem);
            font-weight: 700;
            letter-spacing: -0.01em;
            margin-bottom: 0.5rem;
        }
        .brain-caption p {
            color: var(--text-secondary);
            font-size: 0.98rem;
            line-height: 1.6;
        }
        .brain-progress-track {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            width: 160px;
            height: 2px;
            background: var(--glass-border);
            z-index: 3;
            border-radius: 2px;
            overflow: hidden;
        }
        .brain-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
        }
        #gbm-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.gbm-image-stack {
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 3;
    pointer-events: none;
}
.gbm-image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transition: opacity 0.6s ease;
}
.gbm-image-stack img.active {
    opacity: 1;
}
        .agents-section {
            height: 500vh;
            position: relative;
            z-index: 2;
            padding: 0;
            margin: 2rem 0 4rem;
        }
        .agents-pin {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #agents-canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }
        .agents-caption-stack {
            position: relative;
            z-index: 3;
            max-width: 600px;
            padding: 0 5vw;
            text-align: center;
            pointer-events: none;
            height: 1px;
        }
        .agents-caption {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: opacity 0.6s ease;
            width: 100%;
        }
        .agents-caption.active {
            opacity: 1;
        }
        .agents-caption .bc-eyebrow {
            font-family: var(--font-mono);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-cyan);
            font-weight: 500;
            margin-bottom: 0.5rem;
            display: block;
        }
        .agents-caption h3 {
            font-size: clamp(1.4rem, 3vw, 2.2rem);
            font-weight: 700;
            letter-spacing: -0.01em;
            margin-bottom: 0.5rem;
        }
        .agents-caption p {
            color: var(--text-secondary);
            font-size: 0.98rem;
            line-height: 1.6;
        }

        .agents-section.static-fallback {
            height: auto;
            padding: 4rem 5vw;
        }
        .agents-section.static-fallback .agents-pin {
            position: static;
            height: auto;
            display: block;
            background: none;
            overflow: visible;
        }
        .agents-section.static-fallback #agents-canvas {
            display: none;
        }
        .agents-section.static-fallback .agents-caption-stack {
            position: static;
            max-width: 700px;
            margin: 0 auto;
            height: auto;
        }
        .agents-section.static-fallback .agents-caption {
            position: static;
            transform: none;
            opacity: 1;
            margin-bottom: 2.5rem;
            transition: none;
            text-align: left;
        }
        .agents-section.static-fallback .brain-progress-track {
            display: none;
        }

        .brain-section.static-fallback {
            height: auto;
            padding: 4rem 5vw;
        }
        .brain-section.static-fallback .brain-pin {
            position: static;
            height: auto;
            display: block;
            background: none;
            overflow: visible;
        }
        .brain-section.static-fallback #brain-canvas {
            display: none;
        }
        .brain-section.static-fallback .brain-caption-stack {
            position: static;
            max-width: 700px;
            margin: 0 auto;
            height: auto;
        }
        .brain-section.static-fallback .brain-caption {
            position: static;
            transform: none;
            opacity: 1;
            margin-bottom: 2.5rem;
            transition: none;
            text-align: left;
        }
        .brain-section.static-fallback .brain-progress-track {
            display: none;
        }

        /* ─── RESPONSIVE ─── */
        @media (max-width: 820px) {
            section {
                padding: 4rem 4vw 3rem;
            }
            .glass-card {
                padding: 1.6rem 1.4rem;
            }
            .brain-section {
                height: 400vh;
            }
            .brain-caption h3 {
                font-size: 1.3rem;
            }
            .phone-mockup {
                width: 150px;
            }
        }

        @media (max-width: 520px) {
            .hero-title {
                font-size: 2.2rem;
            }
            .hero-stats {
                gap: 0.8rem;
            }
            .hero-stat {
                font-size: 0.7rem;
                padding: 0.3rem 0.8rem;
            }
            .stat-row {
                gap: 0.4rem;
            }
            .biomarker-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .phone-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .phone-mockup {
                width: 120px;
            }
        }
        /* ─── CUSTOM CURSOR: BLEND-MODE INVERTER ─── */
        @media (pointer: fine) {
            body { cursor: none; }
            a, button, .biomarker-cell { cursor: none; }

            #custom-cursor {
                position: fixed; top: 0; left: 0;
                width: 16px; height: 16px;
                background: #fff;
                border-radius: 50%;
                pointer-events: none;
                z-index: 10000;
                transform: translate(-50%, -50%);
                mix-blend-mode: difference;
                transition: width 0.25s var(--transition-smooth), height 0.25s var(--transition-smooth);
                will-change: left, top, width, height;
            }
            /* Hover state: the dot swells, like it's absorbing the element underneath. */
            body.hovering #custom-cursor {
                width: 44px;
                height: 44px;
            }
        }

        /* ─── REDUCED MOTION ─── */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
            .reveal, .reveal-stagger {
                opacity: 1 !important;
                transform: none !important;
            }
            .brain-section {
                height: auto !important;
                padding: 4rem 5vw !important;
            }
            .brain-section .brain-pin {
                position: static !important;
                height: auto !important;
                display: block !important;
                background: none !important;
                overflow: visible !important;
            }
            .brain-section #brain-canvas {
                display: none !important;
            }
            .brain-section .brain-caption-stack {
                position: static !important;
                height: auto !important;
                max-width: 700px !important;
                margin: 0 auto !important;
            }
            .brain-section .brain-caption {
                position: static !important;
                transform: none !important;
                opacity: 1 !important;
                margin-bottom: 2rem !important;
                transition: none !important;
                text-align: left !important;
            }
            .brain-section .brain-progress-track {
                display: none !important;
            }
            #mouse-glow,
            #three-container {
                display: none !important;
            }
            .scroll-cue {
                display: none !important;
            }
            .hero-tagline .cursor {
                animation: none !important;
                opacity: 1 !important;
            }
            /* ─── DOT MATRIX GRID ─── */
            .bg-grid {
                position: fixed;
                top: 0; 
                left: 0; 
                width: 100vw; 
                height: 100vh;
                /* Creates a 24px by 24px repeating dot pattern */
                background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
                background-size: 24px 24px;
                pointer-events: none;
                z-index: 0;
            }
        }