    /* =============================================================
   PIYUSH PROJECTS 2026 — ULTRA MODERN GLASSMORPHIC 3D
   ============================================================= */

    /* ── Google Fonts are loaded via HTML <link> ── */

    :root {
        /* Core Palette */
        --black: #04050a;
        --dark: #080a12;
        --surface: #0d1020;
        --white: #ffffff;
        --off-white: #e2e8f0;
        --muted: #64748b;
        --subtle: #94a3b8;

        /* Brand Colors */
        --coral: #ff3b60;
        --violet: #8b5cf6;
        --purple: #a855f7;
        --blue: #3b82f6;
        --cyan: #06b6d4;
        --emerald: #10b981;
        --amber: #f59e0b;

        /* Gradients */
        --grad-brand: linear-gradient(135deg, #ff3b60 0%, #a855f7 50%, #3b82f6 100%);
        --grad-glow: linear-gradient(135deg, rgba(255, 59, 96, .4) 0%, rgba(139, 92, 246, .4) 50%, rgba(59, 130, 246, .4) 100%);
        --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .06) 100%);
        --grad-glass-h: linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .1) 100%);

        /* Glass Tokens */
        --glass-bg: rgba(10, 12, 20, 0.55);
        --glass-border: rgba(255, 255, 255, 0.10);
        --glass-border-t: rgba(255, 255, 255, 0.38);
        --glass-blur: blur(28px) saturate(200%);
        --glass-blur-sm: blur(14px) saturate(180%);
        --glass-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
        --glass-shadow-h: 0 32px 80px rgba(0, 0, 0, .75);
        --glass-spec: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(255, 255, 255, .05);

        /* Typography */
        --font-heading: 'Outfit', system-ui, sans-serif;
        --font-body: 'Inter', system-ui, sans-serif;
        --font-mono: 'JetBrains Mono', monospace;

        /* Easing */
        --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

        /* Transitions */
        --t-fast: all 0.2s var(--ease-out-expo);
        --t-smooth: all 0.4s var(--ease-out-expo);
    }

    /* Dynamic Theme Overrides */
    body[data-theme="matrix-emerald"] {
        --coral: #10b981;
        --violet: #06b6d4;
        --purple: #14b8a6;
    }

    body[data-theme="electric-sapphire"] {
        --coral: #3b82f6;
        --violet: #6366f1;
        --purple: #818cf8;
    }

    body[data-theme="titanium-mono"] {
        --coral: #94a3b8;
        --violet: #64748b;
        --purple: #cbd5e1;
    }

    /* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
    *,
    *::before,
    *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 100px;
        font-size: 16px;
    }

    body {
        background-color: var(--black);
        color: var(--off-white);
        font-family: var(--font-body);
        line-height: 1.7;
        overflow-x: hidden;
        position: relative;
    }

    h1,
    h2,
    h3,
    h4 {
        font-family: var(--font-heading);
        line-height: 1.15;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    img {
        max-width: 100%;
    }

    /* ═══════════════════════════════════════════════════════════════
   PARTICLE CANVAS
═══════════════════════════════════════════════════════════════ */
    #particle-canvas {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.5;
    }

    /* ═══════════════════════════════════════════════════════════════
   AURORA ANIMATED BACKGROUND
═══════════════════════════════════════════════════════════════ */
    .aurora-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .aurora-layer {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.6;
        animation: auroraFloat 20s ease-in-out infinite alternate;
    }

    .a1 {
        width: 60vw;
        height: 60vw;
        background: radial-gradient(circle, rgba(255, 59, 96, .3) 0%, transparent 70%);
        top: -20%;
        left: -15%;
        animation-delay: 0s;
        animation-duration: 18s;
    }

    .a2 {
        width: 55vw;
        height: 55vw;
        background: radial-gradient(circle, rgba(139, 92, 246, .28) 0%, transparent 70%);
        top: 30%;
        right: -15%;
        animation-delay: -6s;
        animation-duration: 22s;
    }

    .a3 {
        width: 50vw;
        height: 50vw;
        background: radial-gradient(circle, rgba(59, 130, 246, .22) 0%, transparent 70%);
        bottom: -10%;
        left: 20%;
        animation-delay: -12s;
        animation-duration: 26s;
    }

    .a4 {
        width: 40vw;
        height: 40vw;
        background: radial-gradient(circle, rgba(16, 185, 129, .18) 0%, transparent 70%);
        top: 60%;
        left: 60%;
        animation-delay: -8s;
        animation-duration: 20s;
    }

    @keyframes auroraFloat {
        0% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(40px, 60px) scale(1.12);
        }

        66% {
            transform: translate(-30px, 30px) scale(0.9);
        }

        100% {
            transform: translate(20px, -40px) scale(1.05);
        }
    }

    /* ═══════════════════════════════════════════════════════════════
   CURSOR ORB
═══════════════════════════════════════════════════════════════ */
    .cursor-orb {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 59, 96, .18) 0%, rgba(139, 92, 246, .12) 40%, transparent 70%);
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: opacity 0.4s ease;
        opacity: 0;
        mix-blend-mode: screen;
    }

    /* ═══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════════════════════════ */
    .scroll-progress-rail {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        z-index: 10000;
        background: rgba(255, 255, 255, .06);
    }

    .scroll-progress-fill {
        height: 100%;
        width: 0%;
        background: var(--grad-brand);
        border-radius: 0 2px 2px 0;
        transition: width 0.05s linear;
        box-shadow: 0 0 8px rgba(255, 59, 96, .6);
    }

    /* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
    .navbar {
        position: fixed;
        top: 1.2rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 3rem);
        max-width: 1100px;
        z-index: 1000;
        border-radius: 24px;
        background: rgba(8, 10, 18, 0.6);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        border-top-color: var(--glass-border-t);
        box-shadow: var(--glass-shadow), var(--glass-spec);
        transition: var(--t-smooth);
    }

    .navbar.scrolled {
        background: rgba(5, 6, 12, 0.82);
        border-color: rgba(255, 255, 255, .18);
        top: 0.7rem;
    }

    .nav-inner,
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.6rem;
        width: 100%;
    }

    .nav-logo {
        display: flex;
        align-items: center;
        transition: var(--t-fast);
    }

    .nav-logo:hover {
        filter: drop-shadow(0 0 14px rgba(255, 59, 96, .55));
        transform: translateY(-1px);
    }

    .nav-logo-img {
        height: 38px;
        width: auto;
        display: block;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 0.4rem;
        align-items: center;
    }

    .nav-link {
        color: var(--subtle);
        font-size: 0.94rem;
        font-weight: 500;
        padding: 0.45rem 1.1rem;
        border-radius: 14px;
        border: 1px solid transparent;
        transition: var(--t-fast);
        position: relative;
        letter-spacing: 0.01em;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff;
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .18);
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .12);
        color: var(--subtle);
        cursor: pointer;
        transition: var(--t-fast);
        font-size: 0.95rem;
    }

    .nav-icon-btn:hover {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .28);
        color: #fff;
        transform: translateY(-2px);
    }

    .nav-cmd-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .12);
        color: var(--subtle);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
        font-family: var(--font-mono);
    }

    .nav-cmd-btn:hover {
        background: rgba(255, 59, 96, .12);
        border-color: rgba(255, 59, 96, .35);
        color: #fff;
        transform: translateY(-2px);
    }

    /* ═══════════════════════════════════════════════════════════════
   SECTION LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════ */
    .section {
        position: relative;
        padding: 8rem 2rem;
        z-index: 1;
    }

    .section-label {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--coral);
        text-align: center;
        margin-bottom: 1rem;
    }

    .section-heading {
        font-size: clamp(2.2rem, 5vw, 3.6rem);
        font-weight: 800;
        text-align: center;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .section-sub {
        text-align: center;
        color: var(--subtle);
        font-size: 1.1rem;
        max-width: 580px;
        margin: 0 auto 5rem;
    }

    .text-gradient {
        background: var(--grad-brand);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(100px);
        pointer-events: none;
        z-index: 0;
    }

    .glow-coral {
        width: 500px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 59, 96, .25) 0%, transparent 70%);
        top: 10%;
        left: -5%;
        animation: auroraFloat 15s ease-in-out infinite alternate;
    }

    .glow-violet {
        width: 500px;
        height: 400px;
        background: radial-gradient(circle, rgba(139, 92, 246, .22) 0%, transparent 70%);
        top: 40%;
        right: -5%;
        animation: auroraFloat 18s ease-in-out infinite alternate;
        animation-delay: -7s;
    }

    /* Reveal animations */
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    }

    .reveal-up.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-3d {
        opacity: 0;
        transform: translateY(60px) rotateX(15deg);
        transform-origin: 50% 100%;
        transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
    }

    .reveal-3d.in-view {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }

    /* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
    .hero-section {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
        padding: 10rem 4rem 6rem;
        max-width: 1280px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    /* Grid overlay effect */
    .hero-grid-overlay {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
        background-size: 60px 60px;
        mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
        pointer-events: none;
    }

    .hero-container {
        position: relative;
        z-index: 2;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur-sm);
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--off-white);
        margin-bottom: 2.5rem;
        animation: badgeFly 0.8s var(--ease-out-expo) 0.3s both;
    }

    .badge-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 12px var(--emerald);
        animation: pulseDot 2.2s infinite;
    }

    @keyframes pulseDot {

        0%,
        100% {
            box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
        }

        50% {
            box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
        }
    }

    @keyframes badgeFly {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-headline-wrap {
        margin-bottom: 2.5rem;
    }

    .hero-subtitle {
        font-family: var(--font-mono);
        font-size: 1rem;
        font-weight: 500;
        color: var(--subtle);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(3.2rem, 5.5vw, 5.5rem);
        font-weight: 900;
        letter-spacing: -2px;
        line-height: 1.05;
        margin-bottom: 1.5rem;
    }

    .title-line {
        display: block;
        overflow: hidden;
    }

    .title-line.gradient-outline {
        /* Gradient fill text */
        background: var(--grad-brand);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-desc {
        font-size: 1.15rem;
        color: var(--subtle);
        max-width: 520px;
        line-height: 1.75;
        margin-bottom: 0;
    }

    .hero-cta,
    .hero-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 3rem;
    }

    /* Primary glowing button */
    .btn-primary-glow,
    .btn.btn-primary,
    .btn-primary {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 0.9rem 2.2rem;
        border-radius: 50px;
        background: var(--grad-brand);
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .25);
        transition: var(--t-smooth);
        cursor: pointer;
    }

    .btn-primary-glow::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .btn-primary-glow:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(255, 59, 96, .45), 0 0 0 1px rgba(255, 255, 255, .2);
    }

    .btn-primary-glow:hover::before {
        opacity: 1;
    }

    .btn-shimmer {
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
        transform: translateX(-100%);
        animation: shimmerSlide 3s ease-in-out 1.5s infinite;
    }

    @keyframes shimmerSlide {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(200%);
        }
    }

    /* Glass outline button */
    .btn-glass-outline,
    .btn.btn-secondary,
    .btn-secondary {
        display: inline-flex;
        align-items: center;
        padding: 0.9rem 2.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .06);
        color: var(--off-white);
        font-weight: 600;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur-sm);
        transition: var(--t-smooth);
        cursor: pointer;
    }

    .btn-glass-outline:hover {
        background: rgba(255, 255, 255, .12);
        border-color: rgba(255, 255, 255, .32);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    }

    /* Floating stats row */
    .hero-stats {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .08);
        backdrop-filter: var(--glass-blur-sm);
        width: fit-content;
    }

    .stat-pill {
        text-align: center;
    }

    .stat-val {
        display: block;
        font-family: var(--font-mono);
        font-size: 1.3rem;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }

    .stat-lbl {
        display: block;
        font-size: 0.75rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 0.2rem;
    }

    .stat-divider {
        width: 1px;
        height: 36px;
        background: rgba(255, 255, 255, .1);
    }

    /* 3D Hero Card */
    .hero-3d-card-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        perspective: 1200px;
    }

    .hero-3d-card {
        width: 360px;
        height: 220px;
        border-radius: 28px;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.1s linear;
        cursor: pointer;
    }

    .card-glass-inner {
        width: 100%;
        height: 100%;
        border-radius: 28px;
        background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .07) 100%);
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .45);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(139, 92, 246, .2), inset 0 1px 0 rgba(255, 255, 255, .4);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .card-glow-top {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--grad-brand);
        border-radius: 28px 28px 0 0;
        opacity: 0.8;
    }

    .hero-card-logo {
        width: 70%;
        max-width: 200px;
        height: auto;
        filter: drop-shadow(0 8px 24px rgba(255, 59, 96, .4));
        position: relative;
        z-index: 2;
    }

    .card-grid-lines {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
        background-size: 30px 30px;
        border-radius: 28px;
    }

    .card-reflection {
        position: absolute;
        bottom: -20px;
        left: 10%;
        right: 10%;
        height: 40px;
        background: radial-gradient(ellipse, rgba(139, 92, 246, .35) 0%, transparent 70%);
        filter: blur(12px);
        z-index: -1;
    }

    /* Orbital rings */
    .orbit {
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .06);
        animation: orbitSpin linear infinite;
        pointer-events: none;
    }

    .orbit::before {
        content: '';
        position: absolute;
        top: -3px;
        left: 50%;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--coral);
        transform: translateX(-50%);
        box-shadow: 0 0 10px var(--coral);
    }

    .orbit-1 {
        width: 480px;
        height: 480px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation-duration: 12s;
    }

    .orbit-2 {
        width: 580px;
        height: 580px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation-duration: 20s;
        animation-direction: reverse;
    }

    .orbit-2::before {
        background: var(--violet);
        box-shadow: 0 0 10px var(--violet);
        top: auto;
        bottom: -3px;
    }

    .orbit-3 {
        width: 680px;
        height: 680px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation-duration: 30s;
    }

    .orbit-3::before {
        background: var(--blue);
        box-shadow: 0 0 10px var(--blue);
        left: -3px;
        top: 50%;
    }

    @keyframes orbitSpin {
        from {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        to {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    /* Scroll indicator */
    .scroll-indicator {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.7rem;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--muted);
        z-index: 5;
    }

    .scroll-line {
        width: 1px;
        height: 50px;
        background: linear-gradient(180deg, transparent, var(--coral), transparent);
        animation: scrollPulse 2s ease-in-out infinite;
    }

    @keyframes scrollPulse {

        0%,
        100% {
            transform: scaleY(0.5);
            opacity: 0.5;
        }

        50% {
            transform: scaleY(1);
            opacity: 1;
        }
    }

    /* ═══════════════════════════════════════════════════════════════
   MARQUEE STRIP
═══════════════════════════════════════════════════════════════ */
    .marquee-strip {
        position: relative;
        overflow: hidden;
        padding: 1.5rem 0 2rem;
        mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
        z-index: 1;
    }

    .marquee-inner {
        display: flex;
        width: max-content;
        animation: marqueeLoop 30s linear infinite;
    }

    .marquee-strip:hover .marquee-inner {
        animation-play-state: paused;
    }

    .marquee-row {
        display: flex;
        gap: 1rem;
        padding-right: 1rem;
    }

    .mpill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .1);
        border-top-color: rgba(255, 255, 255, .22);
        backdrop-filter: var(--glass-blur-sm);
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--off-white);
        white-space: nowrap;
        transition: var(--t-fast);
    }

    .mpill:hover {
        background: rgba(255, 255, 255, .11);
        transform: translateY(-2px);
    }

    @keyframes marqueeLoop {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-50%);
        }
    }

    /* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════════════════════════ */
    .projects-section {
        max-width: 1300px;
        margin: 0 auto;
        padding-top: 5rem;
        padding-bottom: 7rem;
        scroll-margin-top: 85px;
    }

    .projects-section .section-sub {
        margin-bottom: 2rem;
    }

    /* Quick Project Switcher Pills */
    .projects-nav-pills {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin: 0 auto 3.5rem;
        padding: 0.4rem;
        width: fit-content;
        max-width: 90vw;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top-color: rgba(255, 255, 255, 0.25);
        border-radius: 50px;
        backdrop-filter: var(--glass-blur-sm);
        -webkit-backdrop-filter: var(--glass-blur-sm);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .projects-nav-pills::-webkit-scrollbar {
        display: none;
    }

    .proj-pill-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.55rem 1.15rem;
        border-radius: 30px;
        background: transparent;
        border: 1px solid transparent;
        color: var(--muted);
        font-size: 0.84rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-smooth);
        white-space: nowrap;
        user-select: none;
    }

    .proj-pill-btn .pill-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .proj-pill-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .proj-pill-btn.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .proj-pill-btn.active .pill-dot {
        transform: scale(1.35);
        box-shadow: 0 0 10px currentColor;
    }

    .projects-3d-stage {
        display: flex;
        flex-direction: column;
        gap: 4.5rem;
        position: relative;
        z-index: 1;
    }

    /* Main project card — Clean, high contrast, crisp glass */
    .proj-card {
        position: relative;
        border-radius: 32px;
        will-change: transform, opacity;
        transition: box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
        opacity: 1 !important;
        transform: none;
        scroll-margin-top: 105px;
    }

    .proj-glass-surface {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2.5rem;
        align-items: center;
        padding: 2.6rem;
        border-radius: 32px;
        background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .05) 100%);
        border: 1px solid rgba(255, 255, 255, .1);
        border-top-color: rgba(255, 255, 255, .32);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-shadow), var(--glass-spec);
        transition: box-shadow 0.4s ease, border-color 0.4s ease;
        position: relative;
        overflow: hidden;
    }

    /* Scrim is disabled to ensure projects are 100% crystal clear */
    .proj-card-scrim {
        display: none !important;
    }

    .proj-glass-surface::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle 600px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .055), transparent);
        pointer-events: none;
        z-index: 0;
        opacity: 0;
        transition: opacity 0.4s;
        border-radius: 32px;
    }

    .proj-card:hover .proj-glass-surface::before {
        opacity: 1;
    }

    .proj-card:hover .proj-glass-surface {
        border-color: rgba(255, 255, 255, .22);
        box-shadow: var(--glass-shadow-h), var(--glass-spec);
    }

    /* Per-card colored glow */
    .proj-card-glow {
        position: absolute;
        top: -60px;
        right: -60px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, color-mix(in srgb, var(--glow-color) 30%, transparent) 0%, transparent 70%);
        filter: blur(60px);
        z-index: 0;
        pointer-events: none;
        border-radius: 50%;
        transition: opacity 0.5s;
    }

    .proj-number {
        position: absolute;
        top: 2rem;
        right: 2.5rem;
        font-family: var(--font-mono);
        font-size: 5rem;
        font-weight: 900;
        color: rgba(255, 255, 255, .04);
        line-height: 1;
        user-select: none;
        pointer-events: none;
    }

    /* ── Mockup areas ── */
    .proj-mockup-area {
        position: relative;
        z-index: 1;
    }

    /* macOS Window mockup */
    .window-mockup {
        border-radius: 16px;
        background: rgba(10, 12, 20, 0.9);
        border: 1px solid rgba(255, 255, 255, .18);
        border-top-color: rgba(255, 255, 255, .4);
        box-shadow: 0 16px 50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
        overflow: hidden;
    }

    .window-bar {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.7rem 1rem;
        background: rgba(255, 255, 255, .04);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .dot.red {
        background: #ff5f56;
    }

    .dot.yellow {
        background: #ffbd2e;
    }

    .dot.green {
        background: #27c93f;
    }

    .window-url {
        font-size: 0.72rem;
        color: var(--muted);
        background: rgba(0, 0, 0, .4);
        padding: 0.15rem 0.7rem;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, .08);
        margin-left: auto;
        flex: 1;
        max-width: 200px;
        text-align: center;
    }

    .window-body {
        padding: 0.8rem;
        position: relative;
        min-height: 160px;
    }

    .pdf-preview {
        min-height: 180px;
    }

    /* Split slider */
    .split-container {
        position: relative;
        display: flex;
        overflow: hidden;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, .1);
        height: 140px;
        cursor: col-resize;
    }

    .split-before,
    .split-after {
        flex: 1;
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .split-before {
        background: rgba(255, 59, 96, .08);
        border-right: none;
    }

    .split-after {
        background: rgba(16, 185, 129, .08);
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 50%;
        overflow: hidden;
        border-left: none;
        transition: width 0.1s;
    }

    .raw-badge {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--coral);
        background: rgba(255, 59, 96, .12);
        border: 1px solid rgba(255, 59, 96, .3);
        padding: 0.15rem 0.5rem;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .raw-slide {
        width: 80%;
    }

    .raw-line {
        height: 4px;
        background: rgba(255, 255, 255, .15);
        border-radius: 2px;
        margin: 5px 0;
    }

    .raw-line.thick {
        height: 8px;
        background: rgba(255, 255, 255, .22);
    }

    .raw-line.short {
        width: 60%;
    }

    .waste-txt {
        font-size: 0.6rem;
        color: var(--muted);
        display: block;
        margin-top: 4px;
        text-align: center;
    }

    .slide-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
    }

    .stile {
        background: rgba(255, 255, 255, .1);
        border-radius: 4px;
        height: 45px;
        display: flex;
        align-items: flex-start;
        padding: 4px;
    }

    .stile span {
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--emerald);
        font-family: var(--font-mono);
    }

    .split-handle {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        background: rgba(255, 255, 255, .5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: col-resize;
    }

    .handle-btn {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        color: #000;
        font-size: 0.65rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    }

    .neon-scan-bar {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--emerald), transparent);
        top: 0;
        opacity: 0;
        box-shadow: 0 0 10px var(--emerald);
    }

    .window-footer,
    .terminal-footer,
    .phone-action-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 0.8rem;
        background: rgba(255, 255, 255, .03);
        border-top: 1px solid rgba(255, 255, 255, .06);
        flex-wrap: wrap;
    }

    .action-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.3rem 0.8rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, .1);
        border: 1px solid rgba(255, 255, 255, .16);
        color: var(--off-white);
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .action-pill:hover {
        background: rgba(255, 255, 255, .18);
        transform: translateY(-1px);
    }

    .status-badge {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--emerald);
        background: rgba(16, 185, 129, .12);
        border: 1px solid rgba(16, 185, 129, .3);
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
        margin-left: auto;
    }

    .status-badge.active-red {
        color: var(--coral);
        background: rgba(255, 59, 96, .12);
        border-color: rgba(255, 59, 96, .3);
    }

    /* Phone mockup */
    .phone-mockup {
        width: 180px;
        margin: 0 auto;
        border-radius: 36px;
        background: rgba(10, 12, 20, 0.95);
        border: 2px solid rgba(255, 255, 255, .22);
        border-top-color: rgba(255, 255, 255, .5);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 30px rgba(168, 85, 247, .2);
        overflow: hidden;
        position: relative;
    }

    .phone-notch {
        width: 70px;
        height: 22px;
        background: rgba(0, 0, 0, .9);
        border-radius: 0 0 14px 14px;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, .12);
        border-top: none;
    }

    .phone-screen {
        padding: 0.6rem 0.7rem;
    }

    .alarm-widget {
        text-align: center;
        padding: 0.6rem 0.4rem;
        border-radius: 12px;
        background: rgba(168, 85, 247, .1);
        border: 1px solid rgba(168, 85, 247, .2);
        margin-bottom: 0.5rem;
    }

    .alarm-time {
        display: block;
        font-family: var(--font-mono);
        font-size: 1.5rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
    }

    .alarm-time small {
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--muted);
    }

    .alarm-mode {
        display: block;
        font-family: var(--font-mono);
        font-size: 0.55rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--coral);
        background: rgba(255, 59, 96, .15);
        border-radius: 4px;
        padding: 0.1rem 0.4rem;
        margin-top: 0.3rem;
    }

    .qr-scanner-box {
        position: relative;
        border-radius: 10px;
        background: rgba(0, 0, 0, .5);
        border: 1px solid rgba(255, 255, 255, .12);
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    .qr-corner {
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: var(--violet);
        border-style: solid;
        border-width: 0;
    }

    .qr-corner.tl {
        top: 5px;
        left: 5px;
        border-top-width: 2px;
        border-left-width: 2px;
        border-radius: 3px 0 0 0;
    }

    .qr-corner.tr {
        top: 5px;
        right: 5px;
        border-top-width: 2px;
        border-right-width: 2px;
        border-radius: 0 3px 0 0;
    }

    .qr-corner.bl {
        bottom: 5px;
        left: 5px;
        border-bottom-width: 2px;
        border-left-width: 2px;
        border-radius: 0 0 0 3px;
    }

    .qr-corner.br {
        bottom: 5px;
        right: 5px;
        border-bottom-width: 2px;
        border-right-width: 2px;
        border-radius: 0 0 3px 0;
    }

    .qr-laser {
        position: absolute;
        left: 8px;
        right: 8px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--violet), transparent);
        box-shadow: 0 0 8px var(--violet);
        top: 10%;
        animation: qrScan 2s ease-in-out infinite;
    }

    @keyframes qrScan {

        0%,
        100% {
            top: 10%;
        }

        50% {
            top: 85%;
        }
    }

    .qr-hint {
        font-size: 0.55rem;
        color: var(--muted);
        text-align: center;
        padding: 0 0.5rem;
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
    }

    .streak-bar {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--amber);
        text-align: center;
        padding: 0.3rem;
        border-radius: 6px;
        background: rgba(245, 158, 11, .08);
        border: 1px solid rgba(245, 158, 11, .2);
    }

    /* Terminal mockup */
    .terminal-mockup {
        border-radius: 16px;
        background: rgba(5, 8, 16, 0.95);
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .38);
        box-shadow: 0 16px 50px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
        overflow: hidden;
    }

    .terminal-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
        background: rgba(255, 255, 255, .04);
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .terminal-title-text {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--muted);
        margin-left: auto;
        margin-right: auto;
    }

    .terminal-body {
        padding: 1rem;
        min-height: 120px;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        line-height: 1.8;
    }

    .tline {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .prompt {
        color: var(--emerald);
        flex-shrink: 0;
    }

    .kw {
        color: #c792ea;
    }

    .va {
        color: #82aaff;
    }

    .fn {
        color: #ffcb6b;
    }

    .cm {
        color: #546e7a;
    }

    .pr {
        color: #f07178;
    }

    .st {
        color: #c3e88d;
    }

    .status-line {
        margin-top: 0.3rem;
        color: var(--subtle);
    }

    .tcursor {
        color: var(--emerald);
        animation: cursorBlink 1s step-end infinite;
    }

    .building-text {
        color: var(--subtle);
    }

    @keyframes cursorBlink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    /* Project info block */
    .proj-info {
        position: relative;
        z-index: 1;
    }

    .proj-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }

    .tag {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 600;
        padding: 0.3rem 0.8rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .12);
        color: var(--subtle);
        letter-spacing: 0.04em;
    }

    .tag-glow {
        color: var(--coral);
        background: rgba(255, 59, 96, .1);
        border-color: rgba(255, 59, 96, .3);
        box-shadow: 0 0 12px rgba(255, 59, 96, .2);
        animation: tagGlowPulse 2s ease-in-out infinite;
    }

    @keyframes tagGlowPulse {

        0%,
        100% {
            box-shadow: 0 0 12px rgba(255, 59, 96, .2);
        }

        50% {
            box-shadow: 0 0 20px rgba(255, 59, 96, .5);
        }
    }

    .proj-title {
        font-size: 1.9rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 0.9rem;
        color: #fff;
    }

    .proj-desc {
        font-size: 1rem;
        color: var(--subtle);
        line-height: 1.7;
        margin-bottom: 1.8rem;
    }

    .proj-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        align-items: center;
    }

    .proj-link-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.7rem 1.5rem;
        border-radius: 50px;
        background: var(--grad-brand);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        transition: var(--t-fast);
        border: 1px solid rgba(255, 255, 255, .2);
    }

    .proj-link-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(255, 59, 96, .4);
    }

    .proj-link-ghost {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.7rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .15);
        color: var(--off-white);
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .proj-link-ghost:hover {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .3);
        transform: translateY(-2px);
    }

    .proj-link-disabled {
        display: inline-flex;
        align-items: center;
        padding: 0.7rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .03);
        border: 1px solid rgba(255, 255, 255, .08);
        color: var(--muted);
        font-size: 0.88rem;
        cursor: not-allowed;
    }

    /* ═══════════════════════════════════════════════════════════════
   "HOW I BUILD" — PINNED DUAL-COLUMN SCROLLYTELLING STAGE
═══════════════════════════════════════════════════════════════ */
    .scrolly-section {
        max-width: 1300px;
        margin: 0 auto;
        position: relative;
        padding: 7rem 2rem 10rem;
    }

    .scrolly-container {
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: 4.5rem;
        align-items: flex-start;
        position: relative;
        margin-top: 3rem;
    }

    /* Left column steps */
    .scrolly-steps {
        display: flex;
        flex-direction: column;
        gap: 32vh;
        padding: 6vh 0 25vh;
    }

    .scrolly-step {
        padding: 2.5rem;
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top-color: rgba(255, 255, 255, 0.16);
        backdrop-filter: var(--glass-blur-sm);
        -webkit-backdrop-filter: var(--glass-blur-sm);
        transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
        opacity: 0.35;
        transform: scale(0.96) translateX(-10px);
        will-change: transform, opacity;
    }

    .scrolly-step.active {
        opacity: 1;
        transform: scale(1) translateX(0);
        background: rgba(255, 255, 255, 0.065);
        border-color: rgba(255, 255, 255, 0.22);
        border-top-color: rgba(255, 255, 255, 0.45);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .step-badge {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .step-num {
        font-family: var(--font-mono);
        font-size: 1.6rem;
        font-weight: 800;
        background: var(--grad-brand);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1;
    }

    .step-tag {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        font-weight: 700;
        color: var(--coral);
        background: rgba(255, 59, 96, .1);
        border: 1px solid rgba(255, 59, 96, .25);
        padding: 0.22rem 0.65rem;
        border-radius: 6px;
    }

    .step-title {
        font-size: 1.85rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .step-desc {
        color: var(--subtle);
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.8rem;
    }

    .step-desc strong {
        color: #fff;
        font-weight: 600;
    }

    .step-code {
        font-family: var(--font-mono);
        font-size: 0.88rem;
        color: var(--coral);
        background: rgba(255, 59, 96, .08);
        padding: 0.1rem 0.4rem;
        border-radius: 4px;
        border: 1px solid rgba(255, 59, 96, .18);
    }

    .step-metrics {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .step-metric-pill {
        padding: 0.6rem 1.1rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .08);
        text-align: center;
        min-width: 95px;
    }

    .step-metric-pill .val {
        display: block;
        font-family: var(--font-mono);
        font-size: 1.15rem;
        font-weight: 700;
        color: #fff;
    }

    .step-metric-pill .lbl {
        display: block;
        font-size: 0.68rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-top: 0.2rem;
    }

    /* Right column sticky frame */
    .scrolly-stage-col {
        position: sticky;
        top: 120px;
        height: calc(100vh - 180px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .scrolly-sticky-frame {
        width: 100%;
        max-width: 620px;
    }

    .scrolly-cockpit-window {
        border-radius: 24px;
        background: rgba(8, 11, 20, 0.92);
        border: 1px solid rgba(255, 255, 255, .14);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 35px 90px rgba(0, 0, 0, .85), var(--glass-spec);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .cockpit-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.9rem 1.4rem;
        background: rgba(255, 255, 255, .04);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .cockpit-dots {
        display: flex;
        gap: 0.5rem;
    }

    .cockpit-title-bar {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--off-white);
        letter-spacing: 0.06em;
        flex: 1;
    }

    .cockpit-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 10px var(--emerald);
        animation: radarBlink 1.5s infinite;
    }

    @keyframes radarBlink {

        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.4;
            transform: scale(0.85);
        }
    }

    .cockpit-badge {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        color: var(--coral);
        background: rgba(255, 59, 96, .15);
        border: 1px solid rgba(255, 59, 96, .3);
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
    }

    .cockpit-body {
        padding: 1.8rem;
        position: relative;
        min-height: 380px;
        overflow: hidden;
    }

    .scrolly-panel {
        position: absolute;
        inset: 1.8rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px) scale(0.97);
        transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .scrolly-panel.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0) scale(1);
    }

    /* Panel 1 styles */
    .pipeline-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.2rem;
    }

    .pipe-label {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--subtle);
        letter-spacing: 0.08em;
    }

    .privacy-lock-badge {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--emerald);
        background: rgba(16, 185, 129, .12);
        border: 1px solid rgba(16, 185, 129, .3);
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
    }

    .pipeline-flow {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        align-items: center;
        position: relative;
        margin-bottom: 1.2rem;
    }

    .flow-node {
        padding: 0.8rem 0.4rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .1);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .flow-node.node-active {
        background: rgba(139, 92, 246, .12);
        border-color: rgba(139, 92, 246, .35);
        box-shadow: 0 0 20px rgba(139, 92, 246, .2);
    }

    .node-icon {
        font-size: 1.3rem;
    }

    .node-name {
        font-size: 0.75rem;
        font-weight: 700;
        color: #fff;
    }

    .node-sub {
        font-size: 0.62rem;
        color: var(--muted);
    }

    .flow-connector {
        display: none;
    }

    .pipeline-terminal {
        border-radius: 12px;
        background: rgba(0, 0, 0, .6);
        border: 1px solid rgba(255, 255, 255, .08);
        padding: 0.9rem 1.1rem;
        font-family: var(--font-mono);
        font-size: 0.73rem;
        line-height: 1.8;
        color: var(--subtle);
    }

    .t-prompt {
        color: var(--emerald);
        margin-right: 0.3rem;
    }

    .t-fn {
        color: #ffcb6b;
    }

    .t-ok {
        color: var(--emerald);
        font-weight: 700;
    }

    .t-data {
        color: var(--cyan);
    }

    /* Panel 2 styles */
    .telemetry-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .gauge-card {
        padding: 0.9rem 1.1rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .09);
    }

    .gauge-title {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        color: var(--muted);
        letter-spacing: 0.08em;
    }

    .gauge-number {
        font-family: var(--font-mono);
        font-size: 1.45rem;
        font-weight: 800;
        color: #fff;
        margin: 0.2rem 0;
    }

    .gauge-number small {
        font-size: 0.72rem;
        color: var(--coral);
    }

    .gauge-bar-wrap {
        height: 4px;
        background: rgba(255, 255, 255, .1);
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 0.3rem;
    }

    .gauge-bar-fill {
        height: 100%;
        background: var(--grad-brand);
        border-radius: 2px;
    }

    .gauge-note {
        font-size: 0.68rem;
        color: var(--subtle);
    }

    .telemetry-chart {
        padding: 0.8rem 1rem;
        border-radius: 12px;
        background: rgba(0, 0, 0, .45);
        border: 1px solid rgba(255, 255, 255, .06);
    }

    .chart-label {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        color: var(--muted);
        margin-bottom: 0.5rem;
        letter-spacing: 0.06em;
    }

    .chart-bars {
        display: flex;
        gap: 0.4rem;
        align-items: flex-end;
        height: 38px;
    }

    .cbar {
        flex: 1;
        background: var(--emerald);
        border-radius: 2px;
        opacity: 0.85;
        animation: eqPulse 1.8s ease-in-out infinite alternate;
    }

    .cbar:nth-child(2n) {
        animation-delay: -0.4s;
        background: var(--cyan);
    }

    .cbar:nth-child(3n) {
        animation-delay: -0.9s;
        background: var(--violet);
    }

    @keyframes eqPulse {
        0% {
            transform: scaleY(0.7);
        }

        100% {
            transform: scaleY(1);
        }
    }

    /* Panel 3 styles */
    .micro-ux-demo {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .demo-interactive-glass {
        padding: 1.4rem;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 100%);
        border: 1px solid rgba(255, 255, 255, .18);
        border-top-color: rgba(255, 255, 255, .45);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
        position: relative;
        overflow: hidden;
    }

    .glass-demo-label {
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.08em;
        display: block;
        margin-bottom: 0.3rem;
    }

    .glass-demo-sub {
        font-size: 0.84rem;
        color: var(--off-white);
        margin-bottom: 1.1rem;
        opacity: 0.85;
    }

    .demo-controls-row {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .tokens-preview-list {
        display: grid;
        gap: 0.5rem;
    }

    .token-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.55rem 0.9rem;
        border-radius: 8px;
        background: rgba(0, 0, 0, .4);
        border: 1px solid rgba(255, 255, 255, .06);
        font-family: var(--font-mono);
        font-size: 0.72rem;
    }

    .token-k {
        color: var(--violet);
    }

    .token-v {
        color: var(--off-white);
    }

    /* Cockpit Footer */
    .cockpit-footer {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.9rem 1.4rem;
        background: rgba(255, 255, 255, .03);
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .cockpit-steps-nav {
        display: flex;
        gap: 0.5rem;
    }

    .cockpit-step-btn {
        flex: 1;
        padding: 0.45rem 0.6rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .08);
        color: var(--muted);
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 700;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .cockpit-step-btn:hover {
        background: rgba(255, 255, 255, .08);
        color: var(--off-white);
    }

    .cockpit-step-btn.active {
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .25);
        color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
    }

    .cockpit-scrub-rail {
        height: 3px;
        background: rgba(255, 255, 255, .08);
        border-radius: 2px;
        overflow: hidden;
    }

    .cockpit-scrub-fill {
        height: 100%;
        width: 33.33%;
        background: var(--grad-brand);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    /* ═══════════════════════════════════════════════════════════════
   LAB SECTION — HORIZONTAL SCROLL
═══════════════════════════════════════════════════════════════ */
    .lab-section {
        overflow: hidden;
    }

    .lab-scene-glow {
        position: absolute;
        width: 700px;
        height: 500px;
        background: radial-gradient(circle, rgba(59, 130, 246, .2) 0%, rgba(168, 85, 247, .15) 50%, transparent 70%);
        filter: blur(80px);
        top: 20%;
        right: -10%;
        pointer-events: none;
        z-index: 0;
    }

    .h-scroll-wrapper {
        width: 100%;
        overflow: hidden;
        position: relative;
        z-index: 1;
        padding-bottom: 3rem;
    }

    .h-scroll-track {
        display: flex;
        gap: 2rem;
        width: max-content;
        padding: 2rem 4rem 2rem 4rem;
        will-change: transform;
    }

    /* Horizontal capability card */
    .h-card {
        width: 380px;
        min-height: 440px;
        flex-shrink: 0;
        border-radius: 28px;
        padding: 2.5rem 2.2rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 60%, rgba(255, 255, 255, .05) 100%);
        border: 1px solid rgba(255, 255, 255, .1);
        border-top-color: rgba(255, 255, 255, .32);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-shadow), var(--glass-spec);
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .h-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--glass-shadow-h), var(--glass-spec);
        border-color: rgba(255, 255, 255, .22);
    }

    .h-card-accent {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent, #3b82f6);
        border-radius: 28px 28px 0 0;
        opacity: 0.9;
        box-shadow: 0 0 15px var(--accent, #3b82f6);
    }

    .h-card-num {
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-family: var(--font-mono);
        font-size: 4rem;
        font-weight: 900;
        color: rgba(255, 255, 255, .04);
        line-height: 1;
        user-select: none;
    }

    .h-icon {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
        display: inline-block;
    }

    .h-label {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--muted);
        display: block;
        margin-bottom: 0.8rem;
    }

    .h-card h3 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .h-card p {
        font-size: 0.95rem;
        color: var(--subtle);
        line-height: 1.7;
        flex: 1;
        margin-bottom: 2rem;
    }

    .h-stats {
        display: flex;
        gap: 2rem;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .h-stats div {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .h-stats strong {
        font-family: var(--font-mono);
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        display: block;
    }

    .h-stats span {
        font-size: 0.75rem;
        color: var(--muted);
    }

    /* H-scroll progress track */
    .h-scroll-progress-wrap {
        width: calc(100% - 8rem);
        max-width: 1200px;
        margin: 0 auto;
        height: 2px;
        background: rgba(255, 255, 255, .07);
        border-radius: 2px;
        position: relative;
        z-index: 2;
    }

    .h-scroll-progress-bar {
        height: 100%;
        width: 20%;
        background: var(--grad-brand);
        border-radius: 2px;
        transition: width 0.1s linear;
        box-shadow: 0 0 8px rgba(139, 92, 246, .5);
    }

    /* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION — BENTO GRID
═══════════════════════════════════════════════════════════════ */
    .about-section {
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-glow {
        position: absolute;
        width: 600px;
        height: 500px;
        background: radial-gradient(circle, rgba(168, 85, 247, .2) 0%, transparent 70%);
        filter: blur(90px);
        top: 10%;
        left: -5%;
        z-index: 0;
        pointer-events: none;
    }

    .bento-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;
        position: relative;
        z-index: 1;
    }

    /* Glass card base */
    .glass-card {
        border-radius: 26px;
        background: var(--grad-glass);
        border: 1px solid var(--glass-border);
        border-top-color: rgba(255, 255, 255, .28);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-shadow), var(--glass-spec);
        transition: var(--t-smooth);
        position: relative;
        overflow: hidden;
        cursor: default;
    }

    .glass-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle 350px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent);
        opacity: 0;
        transition: opacity 0.4s;
        pointer-events: none;
        border-radius: 26px;
    }

    .glass-card:hover::before {
        opacity: 1;
    }

    .glass-card:hover {
        border-color: rgba(255, 255, 255, .2);
    }

    /* Bento layout */
    .bento-bio {
        grid-column: span 7;
        padding: 2.5rem;
    }

    .bento-time {
        grid-column: span 5;
        padding: 2.5rem;
    }

    .bento-contact {
        grid-column: span 5;
        padding: 2.5rem;
    }

    .bento-skills {
        grid-column: span 7;
        padding: 2.5rem;
    }

    .bento-metrics {
        grid-column: span 4;
        padding: 2.5rem;
    }

    .bento-github {
        grid-column: span 8;
        padding: 2.5rem;
    }

    .bento-label {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--muted);
        margin-bottom: 0.8rem;
    }

    .bento-bio h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .bio-text {
        font-size: 1rem;
        color: var(--subtle);
        line-height: 1.8;
        margin-bottom: 1rem;
    }

    .bento-sub {
        font-size: 0.9rem;
        color: var(--muted);
    }

    /* Scroll-scrub words */
    .scroll-word {
        display: inline-block;
        opacity: 0.3;
        transition: opacity 0.3s ease, color 0.3s ease;
        margin-right: 0.3em;
    }

    .scroll-word.lit {
        opacity: 1;
        color: #fff;
    }

    /* Time bento */
    .loc-badge {
        font-size: 0.85rem;
        color: var(--muted);
        margin-bottom: 1.5rem;
    }

    .clock-display {
        margin-bottom: 1.5rem;
    }

    .live-time {
        display: block;
        font-family: var(--font-mono);
        font-size: 2.5rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        letter-spacing: -1px;
    }

    .tz {
        display: block;
        font-size: 0.8rem;
        color: var(--muted);
        margin-top: 0.4rem;
    }

    .avail-status {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: var(--emerald);
    }

    .pulse-green {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 12px var(--emerald);
        animation: pulseDot 2s infinite;
        flex-shrink: 0;
    }

    /* Contact bento */
    .bento-contact h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.7rem;
    }

    .email-display {
        font-family: var(--font-mono);
        font-size: 0.85rem;
        color: var(--subtle);
        margin-bottom: 1.5rem;
    }

    .contact-btns {
        display: flex;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .contact-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.65rem 1.3rem;
        border-radius: 50px;
        background: var(--grad-brand);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        border: 1px solid rgba(255, 255, 255, .2);
        cursor: pointer;
        transition: var(--t-fast);
    }

    .contact-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 59, 96, .35);
    }

    .contact-btn-ghost {
        display: inline-flex;
        align-items: center;
        padding: 0.65rem 1.3rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .14);
        color: var(--off-white);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .contact-btn-ghost:hover {
        background: rgba(255, 255, 255, .14);
        transform: translateY(-2px);
    }

    /* Skills */
    .skill-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 0.8rem;
    }

    .skill-chip {
        padding: 0.4rem 1rem;
        border-radius: 50px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .12);
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--off-white);
        transition: var(--t-fast);
    }

    .skill-chip:hover {
        background: rgba(255, 255, 255, .14);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, .25);
    }

    /* Metrics */
    .metrics-row {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        justify-content: space-around;
        height: 100%;
    }

    .metric {
        text-align: center;
    }

    .mval {
        display: block;
        font-family: var(--font-mono);
        font-size: 2rem;
        font-weight: 900;
        color: #fff;
        line-height: 1;
    }

    .mlbl {
        display: block;
        font-size: 0.78rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 0.4rem;
    }

    /* GitHub */
    .gh-header {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: var(--emerald);
        margin-bottom: 1.5rem;
    }

    .gh-stats {
        display: flex;
        gap: 3rem;
        margin-bottom: 1.5rem;
    }

    .gh-stat {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .gh-val {
        font-family: var(--font-mono);
        font-size: 1.8rem;
        font-weight: 800;
        color: #fff;
    }

    .gh-lbl {
        font-size: 0.78rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .gh-link {
        display: inline-flex;
        align-items: center;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        color: var(--violet);
        transition: var(--t-fast);
    }

    .gh-link:hover {
        color: var(--purple);
        text-decoration: underline;
    }

    /* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
    .site-footer {
        padding: 3rem 2rem;
        border-top: 1px solid rgba(255, 255, 255, .06);
        position: relative;
        z-index: 1;
    }

    .footer-inner {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-text {
        font-size: 0.9rem;
        color: var(--muted);
    }

    .footer-socials {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .footer-socials a {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .1);
        color: var(--subtle);
        font-size: 0.9rem;
        transition: var(--t-fast);
    }

    .footer-socials a:hover {
        background: rgba(255, 255, 255, .14);
        color: #fff;
        transform: translateY(-2px);
    }

    /* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════════════ */
    .glass-toast {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%) translateY(120%);
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        background: rgba(10, 14, 22, 0.85);
        border: 1px solid rgba(255, 255, 255, .16);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .6), var(--glass-spec);
        font-weight: 600;
        font-size: 0.9rem;
        z-index: 9998;
        transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
        pointer-events: none;
        opacity: 0;
    }

    .glass-toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .toast-icon {
        font-size: 1.1rem;
    }

    /* ═══════════════════════════════════════════════════════════════
   COMMAND PALETTE
═══════════════════════════════════════════════════════════════ */
    .cmd-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .7);
        backdrop-filter: blur(8px);
        z-index: 9000;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 15vh;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .cmd-backdrop[aria-hidden="false"] {
        opacity: 1;
        pointer-events: all;
    }

    .cmd-box {
        width: 100%;
        max-width: 620px;
        border-radius: 20px;
        background: rgba(8, 10, 20, 0.92);
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 40px 100px rgba(0, 0, 0, .9), var(--glass-spec);
        overflow: hidden;
        transform: translateY(-20px) scale(0.97);
        transition: transform 0.3s var(--ease-out-expo);
    }

    .cmd-backdrop[aria-hidden="false"] .cmd-box {
        transform: translateY(0) scale(1);
    }

    .cmd-search-row {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 1.1rem 1.3rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        color: var(--muted);
    }

    .cmd-input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: #fff;
        font-size: 1rem;
        font-family: var(--font-body);
    }

    .cmd-input::placeholder {
        color: var(--muted);
    }

    .cmd-results {
        max-height: 420px;
        overflow-y: auto;
        padding: 0.5rem;
    }

    .cmd-results::-webkit-scrollbar {
        width: 4px;
    }

    .cmd-results::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .15);
        border-radius: 2px;
    }

    .cmd-group {
        font-size: 0.7rem;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--muted);
        padding: 0.7rem 0.8rem 0.4rem;
    }

    .cmd-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .cmd-item:hover {
        background: rgba(255, 255, 255, .07);
    }

    .cmd-item.selected {
        background: rgba(255, 255, 255, .1);
    }

    .cmd-ico {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .cmd-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--off-white);
    }

    .cmd-sub {
        font-size: 0.8rem;
        color: var(--muted);
        margin-top: 0.1rem;
    }

    .cmd-badge {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 0.72rem;
        font-family: var(--font-mono);
        color: var(--violet);
        background: rgba(139, 92, 246, .12);
        border: 1px solid rgba(139, 92, 246, .25);
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
    }

    /* ═══════════════════════════════════════════════════════════════
   ARCH & CONTACT MODAL
═══════════════════════════════════════════════════════════════ */
    .arch-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .75);
        backdrop-filter: blur(10px);
        z-index: 8000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .arch-backdrop[aria-hidden="false"] {
        opacity: 1;
        pointer-events: all;
    }

    .arch-box {
        width: 100%;
        max-width: 700px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px;
        background: rgba(8, 10, 20, 0.94);
        border: 1px solid rgba(255, 255, 255, .15);
        border-top-color: rgba(255, 255, 255, .35);
        backdrop-filter: var(--glass-blur);
        box-shadow: 0 40px 100px rgba(0, 0, 0, .9), var(--glass-spec);
        padding: 2.5rem;
        position: relative;
        transform: translateY(30px) scale(0.96);
        transition: transform 0.35s var(--ease-out-expo);
    }

    .arch-backdrop[aria-hidden="false"] .arch-box {
        transform: translateY(0) scale(1);
    }

    .arch-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .15);
        color: var(--subtle);
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--t-fast);
    }

    .arch-close:hover {
        background: rgba(255, 59, 96, .2);
        color: var(--coral);
    }

    .contact-box {
        max-width: 480px;
    }

    .contact-box h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .contact-box p {
        color: var(--subtle);
        margin-bottom: 2rem;
    }

    .email-link {
        color: var(--coral);
        transition: var(--t-fast);
    }

    .email-link:hover {
        color: var(--purple);
    }

    .contact-links {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    /* ═══════════════════════════════════════════════════════════════
   404 ERROR PAGE — ULTRA MODERN CYBERSPACE ANOMALY
   ═══════════════════════════════════════════════════════════════ */

    .error-page-wrapper {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        z-index: 1;
        padding-top: 6.5rem;
    }

    .error-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem 5rem;
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
    }

    /* 404 Hero Anomaly Glass Card */
    .error-hero-card {
        position: relative;
        width: 100%;
        max-width: 920px;
        margin: 0 auto 3.5rem;
        background: rgba(8, 10, 18, 0.65);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        border-top-color: var(--glass-border-t);
        border-radius: 36px;
        box-shadow: var(--glass-shadow), var(--glass-spec);
        padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
        text-align: center;
        overflow: hidden;
        transition: var(--t-smooth);
    }

    .error-hero-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15%;
        right: 15%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--coral), var(--purple), var(--cyan), transparent);
        filter: blur(1px);
    }

    /* Monumental 404 Display & Aura Glow */
    .error-display-anchor {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
        user-select: none;
    }

    .error-num-glow {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: clamp(260px, 45vw, 460px);
        height: clamp(140px, 22vw, 220px);
        background: radial-gradient(ellipse, rgba(255, 59, 96, 0.32) 0%, rgba(168, 85, 247, 0.22) 45%, rgba(59, 130, 246, 0.12) 70%, transparent 80%);
        filter: blur(52px);
        pointer-events: none;
        z-index: 0;
        animation: pulseNumGlow 5s ease-in-out infinite alternate;
    }

    body[data-theme="matrix-emerald"] .error-num-glow {
        background: radial-gradient(ellipse, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.22) 50%, transparent 75%);
    }

    body[data-theme="electric-sapphire"] .error-num-glow {
        background: radial-gradient(ellipse, rgba(59, 130, 246, 0.35) 0%, rgba(99, 102, 241, 0.22) 50%, transparent 75%);
    }

    body[data-theme="titanium-mono"] .error-num-glow {
        background: radial-gradient(ellipse, rgba(203, 213, 225, 0.22) 0%, rgba(148, 163, 184, 0.12) 50%, transparent 75%);
    }

    @keyframes pulseNumGlow {
        0% {
            transform: translate(-50%, -50%) scale(0.92);
            opacity: 0.7;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.08);
            opacity: 1;
        }
    }

    .error-num {
        position: relative;
        z-index: 1;
        font-family: var(--font-heading);
        font-size: clamp(6.5rem, 18vw, 11.5rem);
        font-weight: 900;
        line-height: 0.92;
        letter-spacing: -0.05em;
        background: linear-gradient(180deg, #ffffff 15%, #cbd5e1 65%, rgba(148, 163, 184, 0.7) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
        margin-bottom: 1rem;
        transition: filter 0.3s ease;
    }

    .error-num:hover {
        filter: drop-shadow(0 20px 40px rgba(255, 59, 96, 0.35));
    }

    .error-num.glitching {
        animation: glitchShake 0.4s ease-in-out;
    }

    @keyframes glitchShake {
        0% { transform: translate(0, 0); }
        20% { transform: translate(-3px, 2px); filter: drop-shadow(3px -2px 0 rgba(255, 59, 96, 0.7)) drop-shadow(-3px 2px 0 rgba(6, 182, 212, 0.7)); }
        40% { transform: translate(3px, -1px); filter: drop-shadow(-3px 1px 0 rgba(255, 59, 96, 0.7)) drop-shadow(3px -1px 0 rgba(6, 182, 212, 0.7)); }
        60% { transform: translate(-2px, -2px); filter: drop-shadow(2px 2px 0 rgba(255, 59, 96, 0.7)); }
        80% { transform: translate(2px, 1px); }
        100% { transform: translate(0, 0); }
    }

    /* Status Pill */
    .error-status-pill {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.45rem 1.2rem;
        border-radius: 50px;
        background: rgba(255, 59, 96, 0.12);
        border: 1px solid rgba(255, 59, 96, 0.32);
        color: #ff6b8b;
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 1.4rem;
        backdrop-filter: var(--glass-blur-sm);
        box-shadow: 0 4px 15px rgba(255, 59, 96, 0.15);
    }

    body[data-theme="matrix-emerald"] .error-status-pill {
        background: rgba(16, 185, 129, 0.12);
        border-color: rgba(16, 185, 129, 0.35);
        color: #34d399;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
    }

    body[data-theme="electric-sapphire"] .error-status-pill {
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.35);
        color: #60a5fa;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    }

    body[data-theme="titanium-mono"] .error-status-pill {
        background: rgba(148, 163, 184, 0.12);
        border-color: rgba(148, 163, 184, 0.35);
        color: #e2e8f0;
        box-shadow: 0 4px 15px rgba(148, 163, 184, 0.1);
    }

    .status-pulse-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--coral);
        box-shadow: 0 0 10px var(--coral);
        animation: statusDotBlink 1.4s ease-in-out infinite;
    }

    @keyframes statusDotBlink {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.4;
            transform: scale(0.75);
        }
    }

    /* Titles */
    .error-title {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 4.5vw, 3.2rem);
        font-weight: 800;
        letter-spacing: -0.03em;
        color: #ffffff;
        margin-bottom: 0.85rem;
        line-height: 1.15;
    }

    .error-subtitle {
        font-size: clamp(1rem, 1.8vw, 1.15rem);
        color: var(--subtle);
        max-width: 620px;
        margin: 0 auto 2.2rem;
        line-height: 1.65;
    }

    /* Route Pill */
    .error-route-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.25rem 0.75rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #ff859d;
        font-family: var(--font-mono);
        font-size: 0.9em;
        font-weight: 600;
        cursor: pointer;
        vertical-align: middle;
        transition: var(--t-fast);
        outline: none;
    }

    .error-route-pill:hover {
        background: rgba(255, 59, 96, 0.18);
        border-color: rgba(255, 59, 96, 0.4);
        color: #fff;
        transform: translateY(-1px);
    }

    .error-route-pill svg {
        opacity: 0.75;
        transition: opacity 0.2s;
    }

    .error-route-pill:hover svg {
        opacity: 1;
    }

    /* ═══════════════════════════════════════════════════════════════
       DIAGNOSTIC RADAR & CLI CONSOLE
       ═══════════════════════════════════════════════════════════════ */
    .diagnostic-console {
        margin: 0 auto 2.5rem;
        max-width: 760px;
        width: 100%;
        background: rgba(6, 8, 15, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        backdrop-filter: var(--glass-blur-sm);
        text-align: left;
    }

    .console-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1.4rem;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-family: var(--font-mono);
        font-size: 0.78rem;
        gap: 0.8rem;
    }

    .console-controls {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
    }

    .ctl-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        opacity: 0.85;
        transition: opacity 0.2s;
    }

    .ctl-dot:hover {
        opacity: 1;
    }

    .ctl-dot.red { background: #ff5f56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.5); }
    .ctl-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.5); }
    .ctl-dot.green { background: #27c93f; box-shadow: 0 0 6px rgba(39, 201, 63, 0.5); }

    .console-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--subtle);
        font-weight: 600;
        letter-spacing: 0.04em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .console-timestamp {
        color: var(--muted);
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .console-body {
        display: grid;
        grid-template-columns: 190px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        align-items: center;
    }

    /* Radar Scope Component */
    .radar-module {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        cursor: pointer;
        user-select: none;
        outline: none;
        padding: 0.6rem;
        border-radius: 18px;
        transition: var(--t-fast);
    }

    .radar-module:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .radar-module:focus-visible {
        outline: 2px solid var(--coral);
    }

    .radar-scope {
        position: relative;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.03) 60%, rgba(0, 0, 0, 0.6) 100%);
        border: 2px solid rgba(16, 185, 129, 0.35);
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.1);
        overflow: hidden;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    body[data-theme="electric-sapphire"] .radar-scope {
        background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 60%, rgba(0, 0, 0, 0.6) 100%);
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.18), inset 0 0 20px rgba(59, 130, 246, 0.1);
    }

    body[data-theme="titanium-mono"] .radar-scope {
        background: radial-gradient(circle, rgba(203, 213, 225, 0.06) 0%, rgba(0, 0, 0, 0.6) 100%);
        border-color: rgba(203, 213, 225, 0.3);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.05);
    }

    .radar-ring {
        position: absolute;
        border-radius: 50%;
        border: 1px dashed rgba(16, 185, 129, 0.28);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .radar-ring.r1 { width: 34%; height: 34%; }
    .radar-ring.r2 { width: 66%; height: 66%; }
    .radar-ring.r3 { width: 94%; height: 94%; }

    .radar-crosshair-h {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(16, 185, 129, 0.22);
    }

    .radar-crosshair-v {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: rgba(16, 185, 129, 0.22);
    }

    .radar-sweep {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.48) 0deg, rgba(16, 185, 129, 0.05) 50deg, transparent 90deg, transparent 360deg);
        animation: radarSweepSpin 3.2s linear infinite;
        pointer-events: none;
    }

    body[data-theme="electric-sapphire"] .radar-sweep {
        background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.5) 0deg, rgba(59, 130, 246, 0.05) 50deg, transparent 90deg, transparent 360deg);
    }

    body[data-theme="titanium-mono"] .radar-sweep {
        background: conic-gradient(from 0deg, rgba(203, 213, 225, 0.4) 0deg, rgba(203, 213, 225, 0.04) 50deg, transparent 90deg, transparent 360deg);
    }

    @keyframes radarSweepSpin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .radar-target {
        position: absolute;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #ff3b60;
        top: 32%;
        left: 68%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 12px #ff3b60;
        animation: radarBlip 1.6s ease-in-out infinite;
    }

    @keyframes radarBlip {
        0%, 100% {
            opacity: 0.25;
            transform: translate(-50%, -50%) scale(0.85);
        }
        50% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.25);
        }
    }

    .radar-ping-ripple {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 140px;
        height: 140px;
        border-radius: 50%;
        border: 2px solid #06b6d4;
        opacity: 0;
        pointer-events: none;
    }

    .radar-ping-ripple.active {
        animation: radarRippleWave 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    }

    @keyframes radarRippleWave {
        0% {
            transform: translate(-50%, -50%) scale(0.1);
            opacity: 0.9;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.35);
            opacity: 0;
        }
    }

    .radar-caption {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        color: #10b981;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
    }

    .radar-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 6px #10b981;
        animation: statusDotBlink 1.2s infinite;
    }

    /* Terminal Module */
    .terminal-module {
        font-family: var(--font-mono);
        font-size: 0.82rem;
        line-height: 1.7;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        color: var(--off-white);
    }

    .term-line {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .term-prompt {
        color: var(--coral);
        font-weight: 700;
        user-select: none;
    }

    .term-cmd {
        color: #f1f5f9;
        font-weight: 500;
    }

    .term-path {
        color: var(--cyan);
    }

    .term-warn { color: #fbbf24; }
    .term-err { color: #f87171; }
    .term-success { color: #34d399; }

    .term-flag {
        font-weight: 700;
        padding: 0.1rem 0.4rem;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.06);
        font-size: 0.74rem;
    }

    /* Terminal Action Chips */
    .terminal-chips {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .term-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.3rem 0.75rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--subtle);
        font-family: var(--font-mono);
        font-size: 0.74rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .term-chip:hover {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.28);
        color: #fff;
        transform: translateY(-1px);
    }

    .chip-pulse {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 6px var(--cyan);
    }

    /* ═══════════════════════════════════════════════════════════════
       404 ACTION BUTTONS & AUTO-REDIRECT
       ═══════════════════════════════════════════════════════════════ */
    .error-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 2.2rem;
    }

    .error-actions a,
    .error-actions button {
        gap: 0.6rem;
    }

    /* Countdown Capsule */
    .countdown-capsule {
        max-width: 560px;
        margin: 0 auto 1.8rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 0.85rem 1.3rem;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        backdrop-filter: var(--glass-blur-sm);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    }

    .countdown-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        font-size: 0.9rem;
        color: var(--subtle);
    }

    .countdown-pulse-icon {
        color: var(--cyan);
        display: flex;
        align-items: center;
        flex-shrink: 0;
        animation: pulseIcon 2s ease-in-out infinite;
    }

    @keyframes pulseIcon {
        0%, 100% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.15); opacity: 1; }
    }

    .countdown-info {
        flex: 1;
        text-align: left;
    }

    .countdown-info strong {
        color: #ffffff;
        font-family: var(--font-mono);
        font-size: 1.05em;
        padding: 0 0.15rem;
    }

    .countdown-toggle-btn {
        padding: 0.35rem 0.9rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: var(--off-white);
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
    }

    .countdown-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .countdown-toggle-btn.paused {
        background: rgba(255, 59, 96, 0.2);
        border-color: rgba(255, 59, 96, 0.45);
        color: #ff859d;
    }

    .countdown-progress-bar {
        width: 100%;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }

    .countdown-progress-fill {
        height: 100%;
        width: 100%;
        background: linear-gradient(90deg, var(--coral), var(--purple), var(--cyan));
        border-radius: 4px;
        transition: width 1s linear;
    }

    /* Keyboard Hints Bar */
    .error-keyboard-hints {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
        font-size: 0.78rem;
        color: var(--muted);
    }

    .kbd-hint {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .kbd-hint kbd {
        display: inline-block;
        padding: 0.15rem 0.45rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: var(--off-white);
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    }

    /* ═══════════════════════════════════════════════════════════════
       VERIFIED COORDINATES / QUICK DESTINATIONS SECTION
       ═══════════════════════════════════════════════════════════════ */
    .destinations-section {
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        text-align: left;
    }

    .destinations-header {
        margin-bottom: 1.6rem;
        text-align: center;
    }

    .destinations-badge {
        display: inline-block;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--cyan);
        background: rgba(6, 182, 212, 0.1);
        border: 1px solid rgba(6, 182, 212, 0.25);
        padding: 0.25rem 0.8rem;
        border-radius: 50px;
        margin-bottom: 0.6rem;
    }

    .destinations-heading {
        font-size: clamp(1.4rem, 3vw, 1.9rem);
        font-weight: 800;
        color: #fff;
        margin-bottom: 0.4rem;
        letter-spacing: -0.02em;
    }

    .destinations-sub {
        font-size: 0.95rem;
        color: var(--muted);
    }

    .destinations-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.3rem;
    }

    .dest-card {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 1.6rem;
        border-radius: 26px;
        background: rgba(10, 13, 22, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-top-color: rgba(255, 255, 255, 0.22);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-shadow);
        transition: transform 0.35s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        text-decoration: none;
        overflow: hidden;
        transform-style: preserve-3d;
    }

    .dest-card:hover {
        background: rgba(16, 20, 36, 0.78);
        border-color: rgba(255, 255, 255, 0.3);
        border-top-color: rgba(255, 255, 255, 0.55);
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65), 0 0 30px rgba(139, 92, 246, 0.2);
    }

    .dest-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .dest-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: var(--t-fast);
    }

    .dest-icon-wrap.icon-cyan {
        background: rgba(6, 182, 212, 0.14);
        border: 1px solid rgba(6, 182, 212, 0.32);
        color: #22d3ee;
    }

    .dest-icon-wrap.icon-coral {
        background: rgba(255, 59, 96, 0.14);
        border: 1px solid rgba(255, 59, 96, 0.32);
        color: #ff6b8b;
    }

    .dest-icon-wrap.icon-purple {
        background: rgba(168, 85, 247, 0.14);
        border: 1px solid rgba(168, 85, 247, 0.32);
        color: #c084fc;
    }

    .dest-badge {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        padding: 0.25rem 0.65rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--subtle);
        text-transform: uppercase;
    }

    .dest-arrow-btn {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--subtle);
        transition: var(--t-fast);
    }

    .dest-card:hover .dest-arrow-btn {
        background: #ffffff;
        color: #04050a;
        transform: translate(2px, -2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }

    .dest-title {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .dest-desc {
        font-size: 0.88rem;
        color: var(--subtle);
        line-height: 1.6;
        margin-bottom: 1.3rem;
        flex: 1;
    }

    .dest-footer-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font-mono);
        font-size: 0.74rem;
        color: var(--muted);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 0.8rem;
    }

    .dest-status-live {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: #10b981;
        font-weight: 600;
    }

    .dest-status-live::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 6px #10b981;
    }

    /* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
    @media (max-width: 1100px) {
        .hero-section {
            grid-template-columns: 1fr;
            text-align: center;
            padding: 9rem 2.5rem 5rem;
        }

        .hero-3d-card-wrap {
            order: -1;
            margin-bottom: 3rem;
        }

        .hero-stats {
            margin: 0 auto;
        }

        .hero-badge {
            margin: 0 auto 2.5rem;
        }

        .hero-desc {
            max-width: 100%;
        }

        .hero-cta {
            justify-content: center;
        }

        .orbit {
            display: none;
        }

        .hero-3d-card {
            width: 280px;
            height: 170px;
        }

        .proj-glass-surface {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .proj-number {
            display: none;
        }

        /* Scrollytelling responsive adaptation */
        .scrolly-container {
            grid-template-columns: 1fr;
            gap: 3.5rem;
        }

        .scrolly-stage-col {
            position: relative;
            top: auto;
            height: auto;
            order: 1;
        }

        .scrolly-sticky-frame {
            max-width: 100%;
        }

        .scrolly-steps {
            gap: 3.5rem;
            padding: 0;
        }

        .scrolly-step {
            opacity: 1;
            transform: none;
        }

        .bento-bio {
            grid-column: span 12;
        }

        .bento-time {
            grid-column: span 6;
        }

        .bento-contact {
            grid-column: span 6;
        }

        .bento-skills {
            grid-column: span 12;
        }

        .bento-metrics {
            grid-column: span 6;
        }

        .bento-github {
            grid-column: span 6;
        }
    }

    @media (max-width: 768px) {

        /* Sleek Mobile Glass Navigation Bar — Always accessible */
        .navbar {
            width: calc(100% - 1.2rem);
            top: 0.5rem;
            border-radius: 20px;
            padding: 0.2rem;
        }

        .nav-inner {
            padding: 0.5rem 0.8rem;
            flex-wrap: wrap;
            gap: 0.4rem;
            justify-content: space-between;
        }

        .nav-logo-img {
            height: 28px;
        }

        .nav-links {
            display: flex !important;
            order: 3;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            gap: 0.35rem;
            padding: 0.4rem 0 0.2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            scrollbar-width: none;
            justify-content: space-between;
        }

        .nav-links::-webkit-scrollbar {
            display: none;
        }

        .nav-link {
            font-size: 0.78rem;
            padding: 0.35rem 0.65rem;
            border-radius: 10px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .nav-actions {
            gap: 0.35rem;
        }

        .nav-cmd-btn span {
            display: none;
        }

        .nav-cmd-btn {
            padding: 0.45rem 0.6rem;
        }

        .section {
            padding: 4.5rem 1.2rem;
        }

        .section-heading {
            font-size: 2rem;
        }

        .hero-title {
            font-size: 2.8rem;
            letter-spacing: -1px;
        }

        /* Clean, spacious mobile project cards — NO overlapping, 100% clear and readable */
        .projects-section {
            padding-top: 5rem;
            scroll-margin-top: 110px;
        }

        .projects-3d-stage {
            gap: 3.5rem;
        }

        .proj-card {
            position: relative !important;
            top: auto !important;
            margin-bottom: 2.5rem;
            opacity: 1 !important;
            transform: none !important;
            filter: none !important;
        }

        .proj-card-scrim {
            display: none !important;
        }

        .cockpit-body {
            min-height: 460px;
            padding: 1.2rem;
        }

        .scrolly-panel {
            inset: 1.2rem;
        }

        .pipeline-flow {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.6rem;
        }

        .telemetry-grid {
            grid-template-columns: 1fr;
        }

        .bento-time {
            grid-column: span 12;
        }

        .bento-contact {
            grid-column: span 12;
        }

        .bento-metrics {
            grid-column: span 12;
        }

        .bento-github {
            grid-column: span 12;
        }

        .h-scroll-track {
            padding: 1.5rem;
        }

        .h-card {
            width: 300px;
            min-height: 380px;
        }

        .footer-inner {
            flex-direction: column;
            align-items: flex-start;
        }

        .proj-glass-surface {
            padding: 1.5rem;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        /* 404 Error Page Mobile Responsive */
        .error-page-wrapper {
            padding-top: 5.2rem;
        }

        .error-section {
            padding: 1.5rem 1rem 3.5rem;
        }

        .error-hero-card {
            padding: 2.2rem 1.2rem;
            border-radius: 26px;
            margin-bottom: 2.5rem;
        }

        .error-num {
            font-size: clamp(4.8rem, 20vw, 7.5rem);
        }

        .diagnostic-console {
            border-radius: 18px;
        }

        .console-header {
            flex-wrap: wrap;
            gap: 0.4rem;
            padding: 0.7rem 1rem;
        }

        .console-timestamp {
            font-size: 0.68rem;
        }

        .console-body {
            grid-template-columns: 1fr;
            padding: 1.2rem;
            gap: 1.2rem;
        }

        .radar-module {
            padding: 0.2rem;
        }

        .error-actions {
            flex-direction: column;
            width: 100%;
        }

        .error-actions a,
        .error-actions button {
            width: 100%;
            justify-content: center;
        }

        .countdown-capsule {
            padding: 0.8rem 1rem;
        }

        .countdown-body {
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .countdown-info {
            font-size: 0.82rem;
        }

        .destinations-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .dest-card {
            padding: 1.4rem;
            border-radius: 20px;
        }

        .error-keyboard-hints {
            display: none;
        }
    }

    /* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.001ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.001ms !important;
            scroll-behavior: auto !important;
        }

        .aurora-layer,
        .orbit,
        .scroll-line,
        .badge-dot,
        .btn-shimmer,
        .qr-laser,
        .tcursor,
        .marquee-inner,
        .radar-sweep,
        .radar-target,
        .radar-ping-ripple,
        .error-num-glow,
        .status-pulse-dot {
            animation: none !important;
        }

        .reveal-up,
        .reveal-3d {
            opacity: 1 !important;
            transform: none !important;
        }
    }