        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
        }
        ::-webkit-scrollbar { display: none; }
        html { scrollbar-width: none; -ms-overflow-style: none; }
        ::selection { background: var(--accent); color: var(--bg); }
        ::-moz-selection { background: var(--accent); color: var(--bg); }
        :root {
            --bg: #f8f8f8;
            --fg: #1a1a1a;
            --accent: #e63946;
    --accent-aa: #c92937; /* darker accent for small text AA compliance in Sun */
            --muted: #505050;
            --border: rgba(0,0,0,0.12);
            --nav-bg: rgba(255, 255, 255, 0.85);
            --panel-bg: #f2f2f2;
            --glitch-width: 1px;
            --hal-ring-base: #d97706; /* Sun: amber */
            --hal-glow-base: #d97706; /* Sun: amber */
            /* Letter-spacing scale (systematized) */
            --ls-tight: -0.04em;    /* Headings */
            --ls-normal: 0;         /* Body */
            --ls-wide: 0.05em;      /* Nav, meta labels */
            --ls-mono: 0.08em;      /* Mono labels, footers */
            --ls-mono-wide: 0.3em;  /* Section indices */
            /* Type scale */
            --fs-2xs: 0.6rem;    /* Tiny mono labels, filter chips */
            --fs-xs: 0.65rem;    /* Small mono labels, nav items */
            --fs-sm: 0.75rem;    /* Panel nav items, mono blocks */
            --fs-md: 0.9rem;     /* Modal content, CTAs */
            --fs-base: 1rem;     /* Body text */
            --fs-lg: 1.35rem;    /* Tagline */
            --fs-xl: 2.5rem;     /* Section headers */
            --fs-2xl: clamp(2.75rem, 14vw, 5rem);  /* Mobile h1 */
            --fs-3xl: clamp(3.5rem, 12vw, 7.5rem); /* Hero h1 */
            
            /* Typography variables for SUN theme (Light Neo-Grotesque Cyberpunk) */
            --font-sans: 'Inter', sans-serif;
            --font-display: 'Neutral Face', sans-serif;
            --font-mono: 'Archia', 'JetBrains Mono', monospace;
            --font-hero: 'Neutral Face', sans-serif;
        }
        body {
            background: var(--bg);
            color: var(--fg);
            font-family: var(--font-sans);
            margin: 0;
            /* Instant theme flip */
            overflow-x: hidden;
        }
        h1, h2, h3, h4, .ipanel-title {
            font-family: var(--font-display);
            text-wrap: balance;
        }
        .tagline, .ipanel-desc, .panel-content p {
            text-wrap: pretty;
        }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
        .mono { 
            font-family: var(--font-mono); 
            font-variant-numeric: tabular-nums;
        }
        
        /* Nav Capsule - solid status bar */
        .skip-link {
            position: absolute; top: -100%; left: 8px; z-index: 1000001;
            background: var(--accent); color: var(--bg);
            padding: 8px 16px; font-family: 'JetBrains Mono', monospace;
            font-size: 12px; font-weight: 700; text-decoration: none;
            border-radius: 0 0 4px 4px; transition: top 0.2s;
        }
        .skip-link:focus { top: 0; outline: 2px solid var(--fg); }
        .nav {
            position: fixed;
            top: max(16px, env(safe-area-inset-top));
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            padding: 0;
            display: flex;
            align-items: center;
            max-width: fit-content;
        }
        .nav-inner {
            display: flex;
            align-items: center;
            position: relative;
            padding: 6px 0;
        }
        .nav-brand .brand-bracket { color: var(--accent); opacity: 0.8; }
        
        .nav-links {
            display: flex;
            position: relative;
            gap: 2px;
            margin: 0 6px;
        }
        .mz-nav-item {
            position: relative;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            font-size: var(--fs-xs);
            font-weight: 700;
            color: var(--muted);
            text-decoration: none;
            position: relative;
            z-index: 2;
            transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            letter-spacing: var(--ls-wide);
        }
        .mz-nav-item::before {
            content: '';
            position: absolute;
            inset: -8px 0;
            z-index: -1;
        }
        .mz-nav-item:active {
            transform: scale(0.96);
        }
        .mz-nav-item.active { color: var(--fg); }
        .mz-idx { font-size: var(--fs-2xs); opacity: 0.4; font-family: 'JetBrains Mono', monospace; }
        
        .mz-glyph {
            width: 14px;
            height: 14px;
            fill: none;
            stroke: currentColor;
            color: var(--fg);
            stroke-width: 1.25px;
            transition: stroke 0.3s cubic-bezier(0.19, 1, 0.22, 1), stroke-width 0.3s, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), filter 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        }
        /* Monozen icon micro-interactions: hover tilt + active-section glow */
        .mz-nav-item:hover .mz-glyph {
            stroke: var(--accent);
            color: var(--accent);
            transform: rotate(4deg) scale(1.12);
        }
        .mz-nav-item.active .mz-glyph {
            stroke: var(--accent);
            color: var(--accent);
        }
        /* Active-icon glow is a Moon (Systemizer) cue - gate it so it does not
           leak into Sun (Shaper), which must read as analog/ink, not glow. */
        [data-theme="moon"] .mz-nav-item.active .mz-glyph {
            filter: drop-shadow(0 0 4px var(--accent));
        }
        .panel-nav-item:hover .mz { stroke: var(--accent); transform: rotate(4deg) scale(1.1); }
        .panel-nav-item.active .mz { stroke: var(--accent); }

        /* ---- MONOZEN ICONOGRAPHY SYSTEM ---- */
        .mz {
            fill: none;
            stroke: currentColor;
            stroke-width: 1.25;
            stroke-linecap: square;
            stroke-linejoin: miter;
            flex: none;
            display: inline-block;
            vertical-align: middle;
        }
        .mz-fill {
            fill: currentColor;
            stroke: none;
        }

        /* ---- SVG ICON UTILITIES ---- */
        .ico-inline {
            width: 14px;
            height: 14px;
            flex: none;
            vertical-align: -2px;
            display: inline-block;
        }
        .ico-sm {
            width: 12px;
            height: 12px;
        }
        /* Monozen icon size system */
        .mz-xs { width: 12px; height: 12px; }
        .mz-sm { width: 14px; height: 14px; }
        .mz-md { width: 16px; height: 16px; }
        .mz-lg { width: 20px; height: 20px; }
        .mz-xl { width: 32px; height: 32px; }
        
        .nav-slider {
            position: absolute;
            bottom: 0; left: 0;
            height: 2px;
            background: var(--accent);
            z-index: 1;
            pointer-events: none;
            transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .no-transition {
            transition: none !important;
        }

        /* ---- NAV BRAND CROSSFADE (text → brand mark on scroll) ---- */
        .nav-brand {
            display: inline-flex;
            align-items: center;
            position: relative;
            padding: 8px 14px;
            font-weight: 700;
            font-family: var(--font-display);
            letter-spacing: -0.02em;
            font-size: var(--fs-sm);
            border-right: 1px solid var(--border);
            text-decoration: none;
            color: var(--fg);
            line-height: 1;
        }
        .nav-brand-mark {
            width: 24px; height: 24px;
            opacity: 0; transform: scale(0.8);
            position: absolute; left: 50%; margin-left: -12px;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .nav-brand-text {
            opacity: 1;
            transition: opacity 0.3s ease;
        }
        .nav.is-scrolled .nav-brand-mark { opacity: 1; transform: scale(1); }
        .nav.is-scrolled .nav-brand-text { opacity: 0; }
        @media (prefers-reduced-motion: reduce) {
            .nav-brand-mark, .nav-brand-text { transition: none; }
        }

        /* ---- NAV CORNER BRACKETS (Moon-only targeting reticle) ---- */
        .nav-corner-group {
            position: absolute;
            top: 0; left: 0;
            width: 0; height: 0;
            pointer-events: none;
            z-index: 3;
            opacity: 0;
            transition: opacity 0.25s ease, left 0.4s cubic-bezier(0.19, 1, 0.22, 1), top 0.4s cubic-bezier(0.19, 1, 0.22, 1), width 0.4s cubic-bezier(0.19, 1, 0.22, 1), height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .nav-corner-group.is-visible { opacity: 1; }
        .nav-corner {
            position: absolute;
            width: 9px; height: 9px;
            stroke: var(--fg);
            color: var(--fg);
            fill: none;
        }
        .nav-corner.tl { top: -6px; left: -6px; }
        .nav-corner.tr { top: -6px; right: -6px; transform: scaleX(-1); }
        .nav-corner.bl { bottom: -6px; left: -6px; transform: scaleY(-1); }
        .nav-corner.br { bottom: -6px; right: -6px; transform: scale(-1, -1); }

        .nav-toggles {
            border-left: 1px solid var(--border);
            padding: 0 14px 0 8px;
            display: flex;
        }
        .tog {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--fg);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 2px;
            position: relative;
            transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tog::before {
            content: '';
            position: absolute;
            inset: -4px;
        }
        .tog:hover { background: rgba(127,127,127,0.1); }
        .tog:active { transform: scale(0.96); }

        .tog-icon-wrapper {
            position: relative;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tog-icon-wrapper svg {
            position: absolute;
            transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s cubic-bezier(0.2, 0, 0, 1), filter 0.4s cubic-bezier(0.2, 0, 0, 1);
        }

        /* Hero */
        .hero { min-height: 100dvh; padding: 120px 24px 80px; position: relative; overflow: hidden; display: flex; align-items: center; }
        .hero-bg { position: absolute; inset: 0; opacity: 0.1; background: url('../HikeFjord.webp') center/cover no-repeat; transform: scale(1.1); will-change: transform; }
        /* WebGL dot-matrix field (Moon only) - full-bleed background layer.
           Explicit props back the requested Tailwind utilities (inset-0, z-10,
           overflow-hidden, pointer-events-none) that are absent from the build. */
        #moon-gl {
            display: none; position: absolute; inset: 0; z-index: 1;
            overflow: hidden; isolation: isolate; pointer-events: none;
        }
        #gl { display: block; width: 100%; height: 100%; opacity: 0.9; }
        .wrap { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 10; }
        .hero-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; margin-bottom: 4rem; }
        .hero-top .hero-name-block { max-width: 620px; }
        h1 { font-family: var(--font-display); font-size: var(--fs-3xl); line-height: 0.85; font-weight: 800; text-transform: uppercase; margin: 0; letter-spacing: var(--ls-tight); }
        #hero-name { font-family: var(--font-hero); font-size: clamp(2.2rem, 3.4vw, 3.8rem); line-height: 1.0; letter-spacing: -0.02em; }
        .tagline { font-size: 1.05rem; max-width: 600px; margin: 1.25rem 0 2rem; color: var(--muted); line-height: 1.6; padding-left: 12px; border-left: 2px solid var(--accent); }
        @keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

        /* Symmetrical HUD Columns for Desktop (min-width: 992px) */
        @media (min-width: 992px) {
            .hero .wrap {
                display: grid;
                /* Equal outer columns keep the center column (portrait) at the
                   exact viewport midline. Content density differences between
                   left/right are handled by internal sizing, not column width. */
                grid-template-columns: 1fr minmax(340px, 440px) 1fr;
                align-items: center;
                gap: clamp(24px, 3vw, 48px);
                min-height: 560px;
                max-width: 1360px;
            }
            .hero-hud-left {
                width: 100%;
                display: flex;
                flex-direction: column;
                z-index: 10;
            }
            .hero-portrait-center {
                position: relative;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 9;
                min-height: 300px;
            }
            .hero-portrait-center .hero-reticle {
                position: relative;
                display: block;
                width: 100%;
                max-width: 440px;
                height: auto;
                aspect-ratio: 1 / 1;
                transform: none;
            }
            .hero-portrait-center #paper-portrait {
                position: absolute;
                top: 50%;
                left: 50%;
                width: min(58%, 280px);
                height: min(58%, 280px);
                transform: translate(-50%, -50%);
            }
            .hero-hud-right {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                text-align: right;
                z-index: 10;
            }
            /* Right column contents fill their track to match left column density */
            .hero-hud-right .bootlog {
                text-align: left;
                width: 100%;
                margin-left: auto;
            }
            .hero-hud-right .telemetry-card {
                width: 100%;
                max-width: 340px;
                box-sizing: border-box;
            }
        }

        /* Responsive Layout for Mobile/Tablet (max-width: 991px) */
        @media (max-width: 991px) {
            .hero {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                min-height: auto;
                height: auto;
            }
            .hero .wrap {
                display: flex;
                flex-direction: column;
                gap: 2.5rem;
                padding-top: 40px;
            }
            .hero-hud-left, .hero-hud-right {
                max-width: 100%;
                width: 100%;
            }
            .hero-portrait-center {
                position: relative;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 9;
                margin: 1.5rem 0;
                min-height: 260px;
            }
            .hero-portrait-center .hero-reticle {
                position: relative;
                display: block;
                width: 100%;
                max-width: 380px;
                height: auto;
                aspect-ratio: 1 / 1;
                transform: none;
            }
            .hero-portrait-center #paper-portrait {
                position: absolute;
                top: 50%;
                left: 50%;
                width: min(55%, 200px);
                height: min(55%, 200px);
                transform: translate(-50%, -50%);
            }
            .hero-hud-right .bootlog {
                max-width: 100%;
            }
            /* On mobile the portrait stays governed by JS (visible on Focus,
               hidden otherwise) so the profile picture never vanishes while on
               the Focus tab. No forced dim/background push - that hid it. */
        }


        /* Panel Layout System */
        .panel-layout { display: grid; grid-template-columns: 320px 1fr; min-height: 700px; border-top: 1px solid var(--border); background: var(--panel-bg); }
        .panel-nav-list { padding: 60px 30px; position: sticky; top: 80px; height: fit-content; z-index: 5; }
        .panel-display-window { border-left: 1px solid var(--border); }
        .panel-nav-item { 
            position: relative;
            display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; 
            font-size: var(--fs-sm); font-weight: 700; text-align: left; background: none; 
            border: 1px solid transparent; cursor: pointer; color: var(--muted); 
            margin-bottom: 6px; border-radius: 4px; 
            transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
        }
        .panel-nav-item.active { color: var(--accent); border-color: var(--accent); background: rgba(230, 57, 70, 0.04); }
        .panel-nav-item:active { transform: scale(0.96); }
        
        .panel-content {
            display: none;
            padding: 0;
        }
        .panel-content.active {
            display: block;
            will-change: transform, opacity;
            animation: panelSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        @keyframes panelSlideIn {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .panel-content.active {
                animation: none;
            }
        }

        /* Panel display window - flows with page scroll; sidebar stays sticky */
        .panel-display-window {
            overflow-x: clip;
            background: var(--panel-bg);
        }

        /* Immersive Panel System (Focus Pillars) */
        .panel-stack { display: flex; flex-direction: column; width: 100%; background: #000; }
        .ipanel { 
            position: relative; 
            min-height: 500px; 
            display: flex; 
            align-items: center; 
            border-top: 1px solid var(--border); 
            cursor: pointer;
            color: white;
            background: #000;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .ipanel:first-child { border-top: none; }
        .ipanel:active {
            transform: scale(0.99);
        }
        .ipanel-bg { 
            position: absolute; inset: 0; opacity: 0.9; filter: grayscale(15%) contrast(1.05) brightness(1.05); 
            transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s cubic-bezier(0.19, 1, 0.22, 1); z-index: 0; 
            background-size: cover; background-position: center;
        }
        .ipanel-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
            z-index: 1;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        }
        .ipanel:hover .ipanel-bg { 
            opacity: 0.8; 
            transform: scale(1.1); 
            filter: grayscale(0%) saturate(1.2) brightness(0.9);
        }
        
        .ipanel-content { position: relative; z-index: 2; padding: 80px; width: 100%; display: flex; flex-direction: column; }
        .ipanel.align-left .ipanel-content { max-width: 600px; text-align: left; }
        .ipanel.align-right .ipanel-content { max-width: 600px; margin-left: auto; text-align: right; align-items: flex-end; }
 
        .ipanel-num { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-sm); color: rgba(255,255,255,0.6); letter-spacing: var(--ls-mono-wide); margin-bottom: 1.5rem; display: block; }
        .ipanel-num .idx { color: var(--accent); font-weight: 700; }
        
        .ipanel-title { 
            font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1; 
            margin-bottom: 2rem; text-transform: uppercase; letter-spacing: var(--ls-tight);
            text-shadow: 0 4px 30px rgba(0,0,0,0.8);
        }
        .ipanel-desc { color: rgba(255,255,255,0.8); line-height: 1.6; font-size: var(--fs-base); margin-bottom: 2.5rem; max-width: 480px; }
 
        .ipanel-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 2.5rem; }
        .ipanel.align-right .ipanel-foot { justify-content: flex-end; }
 
        .ipanel-element {
            display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; 
            border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
            background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
        }
        .el-ico { width: 20px; height: 20px; color: white; }
        [data-theme="moon"] .mz-glow { filter: drop-shadow(0 0 8px var(--accent)); }
        .el-name { font-family: 'JetBrains Mono', monospace; font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: rgba(255,255,255,0.9); }
 
        /* Moon: the ipanel text/icon colors above assume a light photo + dark
           overlay (Sun). Under Moon the panel sits on a near-black surface, so
           raw white reads as washed-out / broken. Swap to Moon tokens. */
        [data-theme="moon"] .ipanel { color: var(--fg); background: var(--panel-bg); }
        [data-theme="moon"] .ipanel-num { color: rgba(240,240,240,0.6); }
        [data-theme="moon"] .ipanel-desc { color: rgba(240,240,240,0.8); }
        [data-theme="moon"] .ipanel-element {
            border-color: var(--border);
            background: rgba(255,255,255,0.04);
        }
        [data-theme="moon"] .el-ico { color: var(--fg); }
        [data-theme="moon"] .el-name { color: rgba(240,240,240,0.9); }
        [data-theme="moon"] .ipanel-cta { color: var(--fg); }

        .ipanel-cta { 
            display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: var(--fs-md); 
            letter-spacing: var(--ls-wide); color: white; text-transform: uppercase;
            transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        }
        .ipanel:hover .ipanel-cta { color: var(--accent); transform: translateX(8px); }
        .ipanel.align-right:hover .ipanel-cta { transform: translateX(-8px); }

        /* Career Telemetry Bar & Bespoke Status Seals */
        .work-telemetry-bar {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
        }
        .wt-card {
            display: flex; align-items: center; gap: 12px; padding: 12px 16px;
            background: rgba(255,255,255,0.03); border: 1px solid var(--border);
            border-radius: 4px; cursor: pointer; transition: all 0.25s ease;
        }
        .wt-card:hover, .wt-card:focus-visible, .wt-card.active {
            border-color: var(--accent); background: rgba(255,77,90,0.09);
            box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
            transform: translateY(-2px);
        }
        .wt-ico { width: 20px; height: 20px; color: var(--accent); fill: none; stroke: currentColor; flex-shrink: 0; }
        .wt-info { display: flex; flex-direction: column; gap: 2px; }
        .wt-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: var(--fs-xs); letter-spacing: var(--ls-mono); color: var(--fg); }
        .wt-lbl { font-size: 11px; color: var(--muted); }
        .tl-seal {
            display: inline-flex; align-items: center; gap: 6px;
            font-family: 'JetBrains Mono', monospace; font-size: 11px;
            letter-spacing: var(--ls-mono); padding: 2px 8px; border-radius: 2px;
            border: 1px solid var(--border); background: rgba(0,0,0,0.15);
        }
        .tl-seal.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
        .tl-seal.archived { color: var(--muted); opacity: 0.75; }
        .mz-seal-ico { flex-shrink: 0; fill: currentColor; }
        .tl-item { position: relative; transition: opacity 0.3s ease, filter 0.3s ease; }
        .tl-item.wt-dimmed { opacity: 0.3; filter: grayscale(0.4); }
        .tl-item::before {
            content: ''; position: absolute; left: -41px; top: 6px;
            width: 10px; height: 10px; border-radius: 50%;
            background: var(--bg); border: 2px solid var(--border);
            transition: all 0.25s ease; z-index: 2;
        }
        .tl-item:hover::before {
            border-color: var(--accent); background: var(--accent);
            box-shadow: 0 0 10px var(--accent); transform: scale(1.2);
        }
        .tl-item.wt-pulse {
            animation: wtPulseHighlight 1.8s ease-in-out;
        }
        @keyframes wtPulseHighlight {
            0%, 100% { outline: 2px solid transparent; border-radius: 4px; }
            30%, 70% { outline: 2px solid var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
        }
 
        .caliper { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--muted); opacity: 0.6; pointer-events: none; z-index: 100; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .caliper-tick { width: 1px; height: 24px; background: currentColor; transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
        .caliper-tick.tick-active {
            animation: caliperGlow 2.4s ease-in-out infinite;
        }
        @keyframes caliperGlow {
            0%, 100% { box-shadow: 0 0 4px var(--accent), 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
            50% { box-shadow: 0 0 8px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); }
        }

        /* Hero bottom status bar - anchors lower zone flush to bottom */
        .hero-status-bar {
            position: absolute; bottom: 0; left: 0; right: 0;
            display: flex; align-items: center; gap: 20px;
            padding: 14px 24px; border-top: 1px solid var(--border);
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--fs-2xs); color: var(--muted);
            letter-spacing: var(--ls-mono); z-index: 10;
        }
        .hero-status-bar .hsb-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
        .hero-status-bar .hsb-spacer { margin-left: auto; }
        .hero-status-bar .hsb-sy { color: var(--accent); font-weight: 700; }

        /* Moon-only hero enhancements - hidden by default, revealed under [data-theme="moon"] */
        .hsb-rec-wrap, .hsb-extra, .tc-extra, #heroSpark, .tc-scan { display: none; }

        /* Stagger Animations */
        @keyframes staggerFadeIn {
            from {
                opacity: 0;
                transform: translateY(16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .stagger-in {
            opacity: 0;
        }
        .panel-content.active .stagger-in {
            animation: staggerFadeIn 0.6s cubic-bezier(0.2, 0, 0, 1) both;
        }
        .panel-content.active .stagger-in:nth-child(1) { animation-delay: 0.05s; }
        .panel-content.active .stagger-in:nth-child(2) { animation-delay: 0.15s; }
        .panel-content.active .stagger-in:nth-child(3) { animation-delay: 0.25s; }

    /* Modal + Ask Anything terminal + Monozen chassis + modal-close/corners + modal content - moved to shared-components.css */

        @media (max-width: 1024px) {
            .panel-layout { grid-template-columns: 1fr; }
            .panel-nav-list { display: none; }
            .ipanel-content { padding: 60px 24px; }
            .ipanel-title { font-size: var(--fs-xl); }
        }

        /* ---- Accessibility: visible focus ring (keyboard only) ---- */
        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
            border-radius: 2px;
        }
        .mz-nav-item:focus-visible, .tog:focus-visible, .panel-nav-item:focus-visible {
            outline-offset: 2px;
        }

        /* ---- Accessibility: reduced motion ---- */
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
            .hero-bg { transform: none !important; }

        }

        /* ---- Word Rotate ---- */
        .word-rotate { position: relative; display: inline-block; vertical-align: baseline; line-height: 1.6; }
        .word-rotate .wr-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity; pointer-events: none; }
        .word-rotate .wr-word.active { position: static; opacity: 1; display: inline; pointer-events: auto; }

        /* ---- Kinetic Text (font-weight wave on hover) ---- */
        /* The wave cascades FORWARD only (hovered + following chars). The char
           before the cursor is left at its base weight so the hovered char's left
           edge never moves - that's what prevented the old symmetric wave from
           reflowing and flipping the hover state back and forth. No padding (it
           shifted the box symmetrically); weight changes are forward-only. */
        .kinetic-text .kt-char {
            display: inline-block;
            transition: font-weight 0.35s ease, -webkit-text-stroke-color 0.35s ease, -webkit-text-stroke-width 0.35s ease;
            font-weight: 300;
            -webkit-text-stroke-width: calc(1em * 125 / 6000);
            -webkit-text-stroke-color: transparent;
            will-change: font-weight;
        }
        .kinetic-text .kt-char:hover {
            font-weight: 900;
            -webkit-text-stroke-width: calc(1em * 125 / 6000 * 2);
            -webkit-text-stroke-color: currentColor;
        }
        .kinetic-text .kt-char:hover + .kt-char {
            font-weight: 600;
        }
        .kinetic-text .kt-char:hover + .kt-char + .kt-char {
            font-weight: 400;
        }

        /* ---- Performance: CSS containment on heavy sections ---- */
        .panel-content { contain: layout style; }
        .ipanel { contain: layout style paint; }

        /* ---- Micro-interactions: tactile feedback ---- */
        .ipanel:active { transform: scale(0.96); }
        .ask-pill-inline { transition: color 0.2s, text-decoration 0.2s, transform 0.15s; }
        .ask-pill-inline:active { transform: translateY(1px); }
        .hero-links a { transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
        .modal-card a.mlink, .mlink { transition: color 0.2s; }

        /* ---- Telemetry opt-out toggle (explicit consent control) - now inline in footer ---- */

    /* Telemetry opt-out toggle (footer) - moved to shared-components.css */

        /* ---- Site footer ---- */
        .site-footer {
            display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
            padding: 24px 24px;
            border-top: 1px solid var(--border);
            background: var(--panel-bg);
            font-size: var(--fs-xs); letter-spacing: var(--ls-mono); text-transform: uppercase;
            color: var(--muted);
        }
        .site-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
        .site-footer a:hover { color: var(--accent); }
        .site-footer .sf-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
        .site-footer .sf-brand .brand-bracket { color: var(--accent); opacity: 0.7; }
        .site-footer .sf-hotkeys { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2xs); opacity: 0.7; letter-spacing: 0.08em; }
        .site-footer .sf-hk-item kbd { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); padding: 1px 4px; border-radius: 2px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--fg); }
        .site-footer .sf-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .site-footer .sf-links a { display: inline-flex; align-items: center; gap: 4px; }
        .site-footer .sf-links a svg { opacity: 0.4; }
        .site-footer .sf-legal-sep { opacity: 0.2; }
        .site-footer .sf-copy { font-size: var(--fs-2xs); opacity: 0.5; white-space: nowrap; }

        /* ---- Mobile panel tab bar (horizontal scroll pills) ---- */
        .panel-tab-bar {
            display: none;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            gap: 6px;
            padding: 12px 16px;
            background: var(--panel-bg);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 56px;
            z-index: 20;
            -webkit-overflow-scrolling: touch;
        }
        .panel-tab-bar::-webkit-scrollbar { display: none; }
        .panel-tab {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--fs-xs);
            font-weight: 700;
            letter-spacing: var(--ls-wide);
            text-transform: uppercase;
            color: var(--muted);
            background: transparent;
            border: 1px solid transparent;
            border-radius: 4px;
            cursor: pointer;
            white-space: nowrap;
            flex: none;
            transition: color 0.25s, border-color 0.25s, background-color 0.25s;
            -webkit-tap-highlight-color: transparent;
        }
        .panel-tab:active { transform: scale(0.96); }
        .panel-tab.active {
            color: var(--accent);
            border-color: var(--accent);
            background: rgba(230, 57, 70, 0.04);
        }
        .panel-tab .mz {
            width: 14px;
            height: 14px;
        }

        /* ---- Mobile responsiveness (≤768px) ---- */
        @media (max-width: 768px) {
            .panel-layout { grid-template-columns: 1fr; }
            .panel-nav-list { display: none !important; }
            .panel-tab-bar { display: none !important; }
            #telemetryCard, #telemetryToggle, .caliper, .hero-reticle { display: none !important; }

            .nav {
                position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
                width: calc(100vw - 16px); max-width: 480px; z-index: 1000;
                padding: 4px 6px; background: rgba(10, 10, 10, 0.88);
                backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
                border: 1px solid var(--border); border-radius: 9999px;
                overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
                display: flex; align-items: center; gap: 4px;
            }
            .mz-label { display: inline-block; font-size: 11px; }
            .mz-idx { display: none; }
            .mz-nav-item { padding: 6px 10px; gap: 4px; min-height: 40px; font-size: 11px; white-space: nowrap; scroll-snap-align: start; display: inline-flex; align-items: center; flex-shrink: 0; }
            .nav-brand { padding: 6px 10px; font-size: var(--fs-xs); letter-spacing: var(--ls-tight); min-height: 40px; display: inline-flex; align-items: center; flex-shrink: 0; }
            .tog { width: 40px; height: 40px; min-width: 40px; min-height: 40px; flex-shrink: 0; }

            .ipanel-content { padding: 36px 16px; }
            .ipanel-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
            .panel-content .p-20 { padding: 24px 14px; }
            .modal-card { padding: 44px 16px 20px 16px; max-width: 94vw; max-height: 85dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 12px auto; }
            .modal-close-btn { width: 44px; height: 44px; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; z-index: 10; }
            #threeGlobeContainer {
                max-width: 100%; aspect-ratio: 1/1; height: auto;
                border: none;
                box-shadow: 0 0 0 1px var(--accent), inset 0 0 40px rgba(0,0,0,0.06);
                transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            }
            #threeGlobeContainer::after {
                content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
                background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.14) 100%);
            }
            .grid-cols-3 { grid-template-columns: 1fr; }
            .grid-cols-2 { grid-template-columns: 1fr; }
            .ask-modal-container { padding: 20px 14px; }
            #askHeading { font-size: 1.5rem; }
            #askInput, #gs-search-input { font-size: 16px !important; }
        }

        /* ---- Mobile responsiveness (≤640px) ---- */
        @media (max-width: 640px) {
            .hero-status-bar { display: none !important; }
            .hero { padding: 80px 16px 30px; min-height: auto; height: auto; }
            .hero-top { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
            .hero-top .mono { text-align: left; }
            h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); line-height: 1.05 !important; }
            #hero-name { font-size: clamp(1.6rem, 7vw, 2.8rem) !important; line-height: 1.15 !important; }
            .tagline { font-size: var(--fs-base); margin-bottom: 1.25rem; }
            .hero-links { flex-wrap: wrap; gap: 10px; font-size: var(--fs-sm); }
            .search-input-borderless { font-size: 16px; }
            .work-telemetry-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
            .wt-card { padding: 8px 10px; min-height: 40px; }
            .wt-val { font-size: 10px; }
            .wt-lbl { font-size: 10px; }
            #workFilters, #stackFilters, #projectFilters {
                display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 6px;
            }
            .tl-filter { min-height: 40px; white-space: nowrap; scroll-snap-align: start; flex-shrink: 0; padding: 6px 12px; }
            #boot-split { overflow-y: auto; -webkit-overflow-scrolling: touch; }
            #boot-split .master-monolith {
                position: relative; inset: auto; margin: 48px auto 24px;
                width: calc(100vw - 24px); max-width: 440px; height: auto; min-height: auto;
                flex-direction: column; transform: none !important; box-shadow: 0 10px 40px rgba(0,0,0,0.8);
            }
            #boot-split .slab { width: 100% !important; height: auto !important; min-height: auto !important; padding: 24px 14px !important; }
            #boot-split .meridian { display: none !important; }
            #boot-split .identity { position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 12px auto !important; text-align: center; }
        }

        @media (max-width: 480px) {
            .nav { width: calc(100vw - 12px); padding: 2px 4px; }
            .mz-nav-item { padding: 4px 8px; font-size: 10px; }
            .nav-brand { padding: 4px 6px; font-size: 0.65rem; }
            .hero { padding: 72px 12px 24px; min-height: auto; height: auto; }
            .hero-top .mono { padding: 10px; }
            .hero-top .mono #hero-triangle { height: 32px; width: 32px; margin: 8px 0; }
            .tagline { font-size: var(--fs-sm); margin-bottom: 0.85rem; }
            .hero-links { gap: 8px; font-size: var(--fs-xs); }
            .panel-content .p-20 { padding: 20px 10px; }
            .work-telemetry-bar { grid-template-columns: repeat(2, 1fr); gap: 6px; }
            .wt-card { padding: 6px 8px; }
            .wt-ico { width: 16px; height: 16px; }
            #workTimeline { padding-left: 20px; margin-left: 0; }
            .tl-item::before { left: -25px; }
            .tl-seal { font-size: 10px; padding: 2px 4px; }
            [data-panel="registry"] .grid.gap-4 > div { flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
            [data-panel="registry"] .grid.gap-4 > div .flex-grow { width: 100%; }
            [data-panel="registry"] .grid.gap-4 > div .flex-shrink-0:last-child { align-self: flex-end; }
            .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 12px; }
            .site-footer .sf-brand { margin-right: 0; }
    /* Telemetry toggle mobile padding - moved to shared-components.css */
            p.text-xl { font-size: var(--fs-base); }
            h2.text-5xl { font-size: 2rem; }
            .grid-cols-1.md\:grid-cols-2 { gap: 12px; }
            .border.border-\[var\(--border\)\].p-8 { padding: 20px; }
            .tl-filter { padding: 8px 12px; font-size: var(--fs-xs); }
        }

        /* ---- Timeline filter chips ---- */
        .tl-filter {
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--fs-2xs);
            font-weight: 500;
            letter-spacing: var(--ls-mono);
            text-transform: uppercase;
            padding: 6px 14px;
            border: 1px solid var(--border);
            background: var(--nav-bg);
            color: var(--muted);
            cursor: pointer;
            transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, background-color 0.2s;
        }
        .tl-filter:hover { color: var(--fg); border-color: var(--accent); }
        .tl-filter:active { transform: scale(0.96); }
        .tl-filter.active {
            color: var(--accent);
            border-color: var(--accent);
            background: rgba(230, 57, 70, 0.04);
        }
        /* Filter count indicator - subtle, smaller, non-interactive */
        .tl-filter .fc {
            font-size: 0.7em;
            opacity: 0.5;
            display: inline-block;
            margin-left: 1px;
            pointer-events: none;
        }
        .tl-filter:hover .fc { opacity: 0.7; }
        .tl-filter.active .fc { opacity: 0.65; color: var(--accent); }

        /* Timeline item show/hide */
        .tl-item { position: relative; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s, padding 0.3s; overflow: hidden; }
        .tl-item.hidden {
            opacity: 0; max-height: 0; margin: 0; padding: 0;
        }
        /* ---- Toolchain stack grid ---- */
        .stack-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 8px;
        }
        .stack-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border: 1px solid var(--border);
            background: var(--panel-bg);
            color: var(--fg);
            cursor: default;
            transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .stack-card::before {
            content: '';
            width: 6px; height: 6px; flex: none;
            background: var(--muted);
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
            transition: background 0.25s;
            opacity: 0.5;
        }
        .stack-card:hover { border-color: var(--accent); }
        .stack-card:hover::before { background: var(--accent); opacity: 1; }
        .stack-card.dimmed {
            opacity: 0.18;
            transform: scale(0.97);
            pointer-events: none;
        }
        .stack-card .stack-label {
            min-width: 0;
            overflow-wrap: break-word;
            word-break: break-word;
        }
        .stack-count {
            font-family: 'JetBrains Mono', monospace;
            font-size: var(--fs-2xs);
            color: var(--muted);
            letter-spacing: var(--ls-mono);
            text-transform: uppercase;
            margin-top: 1.5rem;
        }
        .stack-count b { color: var(--accent); font-weight: 700; }

    /* Harvested data card (sidebar telemetry disclosure) - moved to shared-components.css */
    .hd-advisory-line strong {
        color: var(--accent);
        font-weight: 700;
        opacity: 1;
    }

    /* Moon theme overrides */

    /* ---- VISUAL RHYMING: Reticle corner brackets on panel content ---- */
    .panel-content {
        position: relative;
    }
    .panel-content::before,
    .panel-content::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border-color: var(--accent);
        border-style: solid;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 20;
    }
    .panel-content::before {
        top: 8px;
        left: 8px;
        border-width: 1px 0 0 1px;
    }
    .panel-content::after {
        bottom: 8px;
        right: 8px;
        border-width: 0 1px 1px 0;
    }
    .panel-content.active::before,
    .panel-content.active::after {
        opacity: 0.3;
        transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    /* ---- VISUAL RHYMING: Terminal prompt prefix on section headings (Moon mode) ---- */

    /* ---- SUN: Engineering drawing title blocks ---- */

    /* ---- SUN: ISO clause numbering ---- */

    /* ---- VISUAL RHYMING: Panel coordinate badges ---- */
    .panel-coord {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: 'JetBrains Mono', monospace;
        font-size: var(--fs-2xs);
        color: var(--muted);
        letter-spacing: var(--ls-mono);
        padding: 4px 10px;
        border: 1px solid var(--border);
        background: var(--nav-bg);
        backdrop-filter: blur(8px);
        margin-bottom: 1rem;
        white-space: nowrap;
    }
    .panel-coord .pc-label {
        color: var(--muted);
        opacity: 0.7;
    }
    .panel-coord .pc-accent {
        color: var(--accent);
        font-weight: 700;
    }

    /* ---- VISUAL RHYMING: Diamond dividers between panel sections ---- */
    .section-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 0 24px;
        margin-bottom: 24px;
    }
    .section-divider .sd-line {
        flex: 1;
        height: 1px;
        background: var(--border);
        position: relative;
    }
    .section-divider .sd-line::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -5px;
        width: 4px; height: 4px;
        background: var(--muted);
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        transform: translateY(-50%);
        opacity: 0.4;
    }
    .section-divider .sd-line:first-child::after {
        right: -5px;
    }
    .section-divider .sd-line:last-child::after {
        left: -5px;
        right: auto;
    }
    .section-divider .sd-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: var(--fs-2xs);
        color: var(--muted);
        letter-spacing: var(--ls-mono);
        text-transform: uppercase;
        opacity: 0.5;
        flex: none;
    }

    #globeTooltip {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

    /* Mobile: hide coordinates and corner marks */
    @media (max-width: 768px) {
        .panel-coord { display: none; }
        .panel-content::before,
        .panel-content::after { display: none; }
        .section-divider { padding-bottom: 16px; margin-bottom: 16px; }
    }

    /* ---- Hero reticle fix: renders as stroked scope, not filled blob ---- */
    .hero-reticle {
        fill: none;
        stroke: currentColor;
        stroke-width: 0.75;
        position: relative;
        display: block;
    }
    @keyframes retSpinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @keyframes retSpinRev  { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

    /* ---- Boot log (GRC self-audit sequence) ---- */
    .bootlog {
        font-family: 'JetBrains Mono', monospace;
        font-size: var(--fs-xs);
        letter-spacing: var(--ls-mono);
        color: var(--muted);
        margin-bottom: 2rem;
        min-height: 7.5em;
        line-height: 1.5em;
    }
    .bootlog .bl-line { display: block; white-space: pre; }
    .bootlog .bl-pass { color: var(--fg); }
    .bootlog .bl-accent { color: var(--accent); font-weight: 700; }
    .bootlog .bl-dim { color: var(--muted); opacity: 0.7; }
    .bootlog .bl-cursor {
        display: inline-block; width: 7px; height: 1em;
        background: var(--accent); vertical-align: text-bottom;
        animation: blCursor 1s steps(1) infinite;
    }
    @keyframes blCursor { 50% { opacity: 0; } }

    /* ---- Hero CTA row - terminal command links ---- */
    .hero-cta-row {
        display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
        margin-bottom: 2.5rem;
        opacity: 0; transform: translateY(8px);
        transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .hero-cta-row.revealed { opacity: 1; transform: none; }
    /* Gate CTA reveal on fonts-ready (prevents FOUT) */
    html:not(.fonts-ready) .hero-cta-row { opacity: 0 !important; transform: translateY(8px) !important; transition: none !important; }
    @media (prefers-reduced-motion: reduce) {
      html:not(.fonts-ready) .hero-cta-row { opacity: 1 !important; transform: none !important; }
    }
    .cta-command {
        font-family: 'JetBrains Mono', monospace;
        font-size: var(--fs-sm); font-weight: 500;
        color: var(--muted); text-decoration: none;
        letter-spacing: var(--ls-mono);
        border-bottom: 1px solid transparent;
        transition: color 0.2s, border-color 0.2s;
    }
    .cta-command .cmd-prompt { color: var(--accent); font-weight: 700; }
    .cta-command:hover { color: var(--fg); border-color: var(--accent); }
    .cta-command:active { color: var(--accent); }

    /* Reduced motion: reticle static, boot log prints instantly (handled in JS) */
    @media (prefers-reduced-motion: reduce) {
        .hero-reticle .ret-outer, .hero-reticle .ret-inner { animation: none !important; }
        .bootlog .bl-cursor { animation: none; }
        .hero-cta-row { opacity: 1; transform: none; transition: none; }
    }
    @media (max-width: 640px) {
        .bootlog { font-size: var(--fs-2xs); min-height: 8em; }
        .hero-cta-row { gap: 10px; }
        .cta-command { font-size: var(--fs-xs); }
    }

    /* ---- Dark mode: reticle cursor + snap ---- */
    #mz-cursor {
      position: fixed; pointer-events: none; z-index: 10000001;
      left: 50%; top: 50%; width: 22px; height: 22px;
      margin: -11px 0 0 -11px; display: none; will-change: transform;
      transition: width 0.15s cubic-bezier(0.19, 1, 0.22, 1),
                  height 0.15s cubic-bezier(0.19, 1, 0.22, 1);
    }
    #mz-cursor circle { fill: none; stroke: var(--accent); stroke-width: 1.5; }
    #mz-cursor line { stroke: var(--accent); stroke-width: 0.8; }
    #mz-cursor .cursor-dot { fill: var(--accent); stroke: none; }
    #mz-cursor.snap-close { width: 14px; height: 14px; }
    #mz-cursor.snap-close line { opacity: 0; }
    #mz-cursor.snap-close .cursor-dot { opacity: 0; }
    #mz-cursor.snap-close circle { opacity: 0.7; transition: opacity 0.15s; }

    /* Moon - Idle recalibration pulse.
       IMPORTANT: the rotation is applied to the inner <svg>, NOT the
       #mz-cursor container. The container's transform is owned by GSAP for
       positioning; a CSS animation on the container would override it in the
       cascade and pin the cursor at (0,0). */
    #mz-cursor.idle-pulse svg {
      transform-origin: center;
      animation: recalPulse 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    @keyframes recalPulse {
      0%   { transform: rotate(0deg); opacity: 1; }
      50%  { opacity: 0.6; }
      100% { transform: rotate(360deg); opacity: 1; }
    }

    /* Moon - Sonar ping burst on click */
    #sonar-ring {
      position: fixed;
      pointer-events: none; z-index: 999999;
      width: 12px; height: 12px;
      margin: -6px 0 0 -6px;
      border: 1.5px solid var(--accent);
      border-radius: 50%;
      opacity: 0;
      transform: scale(1);
    }
    #sonar-ring.active {
      animation: sonarPulse 0.2s ease-out forwards;
    }
    @keyframes sonarPulse {
      0%   { opacity: 0.7; transform: scale(1); }
      100% { opacity: 0;   transform: scale(4); }
    }

    /* Sun - Drafting crosshair guides */
    .draft-guide {
      position: fixed;
      pointer-events: none;
      z-index: 999997;
      opacity: 0;
      will-change: transform;
      transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
      background: var(--ink);
    }
    .draft-guide.active { opacity: 0.0; }
    .draft-guide-h {
      left: 0; right: 0; height: 1px;
    }
    .draft-guide-v {
      top: 0; bottom: 0; width: 1px;
    }


    /* Sun - Stamp Tool (palette, marks, active mode) */



    /* Maintain accessible cursor during boot loader / prologue intro */
    #boot-loader:not(.hidden) { cursor: default; }
    #boot-loader:not(.hidden) button,
    #boot-loader:not(.hidden) a,
    #boot-loader:not(.hidden) .slab,
    #boot-loader:not(.hidden) .split-half { cursor: pointer; }
    .nav .snap-btn.snapped {
      transform: none !important;
      box-shadow: none !important;
    }
    .snap-ring {
      position: absolute;
    }
    .mz-nav-item.snap-btn.snapped .snap-ring { inset: -3px -1px 2px -1px; }
    .nav-brand.snap-btn.snapped .snap-ring { inset: -3px 0; }
    @keyframes snapPulse {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50% { opacity: 0.1; transform: scale(1.06); }
    }


    /* ---- Theme-aware custom tooltips ---- */
    [data-tooltip] {
      position: relative;
    }
    [data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute; top: calc(100% + 8px); left: 50%;
      transform: translateX(-50%) scale(0.9);
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px; font-weight: 500; white-space: nowrap;
      padding: 4px 10px;
      background: var(--nav-bg);
      color: var(--muted);
      border: 1px solid var(--border);
      opacity: 0; pointer-events: none;
      transition: opacity 0.15s, transform 0.15s;
      z-index: 1000;
    }
    [data-tooltip].tt-show::after {
      opacity: 1; transform: translateX(-50%) scale(1);
    }
    [data-tooltip]::before {
      content: '';
      position: absolute; top: calc(100% + 4px); left: 50%;
      transform: translateX(-50%) scale(0.9) translateY(-8px);
      border: 4px solid transparent;
      border-bottom-color: var(--border);
      opacity: 0; pointer-events: none;
      transition: opacity 0.15s, transform 0.15s;
      z-index: 1000;
    }
    [data-tooltip].tt-show::before {
      opacity: 1; transform: translateX(-50%) scale(1) translateY(-8px);
    }
    /* Bottom-anchored elements keep tooltip above */
    [data-tooltip].tooltip-up::after {
      top: auto; bottom: calc(100% + 8px);
    }
    [data-tooltip].tooltip-up::before {
      top: auto; bottom: calc(100% + 4px);
      transform: translateX(-50%) scale(0.9) translateY(8px);
      border-bottom-color: transparent;
      border-top-color: var(--border);
    }
    [data-tooltip].tooltip-up.tt-show::before {
      transform: translateX(-50%) scale(1) translateY(8px);
    }

    /* ---- Globe tech-stack markers ---- */
    .globe-marker {
      display: flex; align-items: center; gap: 3px;
      pointer-events: none;
      transform: translate(-50%, -50%);
      font-family: 'JetBrains Mono', monospace;
    }
    .globe-marker .g-dot {
      width: 4px; height: 4px;
      background: var(--accent);
      flex-shrink: 0;
    }
    .globe-marker .g-line {
      width: 10px; height: 1px;
      background: var(--accent);
      opacity: 0.4;
      flex-shrink: 0;
    }
    .globe-marker .g-label {
      font-size: 7px; font-weight: 500; text-transform: uppercase;
      color: var(--fg);
      letter-spacing: 0.04em;
      white-space: nowrap;
      text-shadow: 0 0 4px var(--bg);
      opacity: 0.7;
      transition: opacity 0.2s;
    }
    .globe-marker:hover .g-label { opacity: 1; }

    /* ---- Globe point labels (three-globe CSS2D) ---- */
    .globe-point-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 7px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--accent);
      white-space: nowrap;
      text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg);
      pointer-events: none;
      opacity: 0.75;
      transition: opacity 0.3s ease;
    }

    /* ---- MONOZEN CURSOR ENGINE v2 ---- */
    #mz-trail{position:fixed;inset:0;pointer-events:none;z-index:999996;display:none}
     #hold-ring{position:fixed;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;
       border:1.5px dashed var(--accent);border-radius:50%;pointer-events:none;
       z-index:999998;opacity:0;transform:scale(.2);will-change:transform}
     #cursor-coord{position:fixed;left:0;top:0;pointer-events:none;z-index:999998;
       font-family:"JetBrains Mono",monospace;font-size:10px;letter-spacing:.06em;
       color:var(--accent);opacity:0;transform:translate(14px,14px);white-space:nowrap;
       text-shadow:0 0 6px var(--bg);will-change:transform}
    .click-tick{position:fixed;width:12px;height:12px;margin:-6px 0 0 -6px;
      pointer-events:none;z-index:999995}
    .click-tick::before,.click-tick::after{content:"";position:absolute;background:var(--accent)}
    .click-tick::before{left:0;right:0;top:50%;height:1px}
    .click-tick::after{top:0;bottom:0;left:50%;width:1px}
    #scroll-rail{position:fixed;top:0;right:0;width:3px;height:100dvh;z-index:1001;
      pointer-events:none;background:transparent}
    #scroll-rail .rail-fill{position:absolute;top:0;left:0;width:100%;height:100%;
      background:var(--accent);transform-origin:top;transform:scaleY(0);will-change:transform}
    #scroll-rail .rail-pct{display:none}
    @media (prefers-reduced-motion: reduce){#mz-trail{display:none!important}}

    /* ---- Boot loader (loading screen) ---- */
#boot-loader {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #080808; color: #e5e5e5;
  font-family: 'JetBrains Mono', monospace;
  transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s;
  pointer-events: auto;
}
#boot-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* First visit: display boot-split directly to eliminate card FOUC */
html.is-first-visit #boot-loader .bl-card { display: none !important; }
html.is-first-visit #boot-loader #boot-split { display: block !important; }

/* Isolate custom theme cursors while boot loader is active */
#boot-loader:not(.hidden) ~ #mz-cursor,
#boot-loader:not(.hidden) ~ #sun-cursor,
html:has(#boot-loader:not(.hidden)) #mz-cursor,
html:has(#boot-loader:not(.hidden)) #sun-cursor {
  display: none !important;
}
/* Hide nav during boot so Sun-only elements don't flash behind the
   fading boot-loader while the theme attribute hasn't switched yet.
   The nav becomes visible after finishBoot adds .hidden to #boot-loader. */
html:has(#boot-loader:not(.hidden)) .nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

#loader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  opacity: 0.35;
}
#boot-loader .boot-static-fallback {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, rgba(230,57,70,0.08) 0%, transparent 70%);
    pointer-events: none;
}
#boot-loader .bl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid rgba(255, 77, 90, 0.25);
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 77, 90, 0.05);
  z-index: 10;
  text-align: center;
  backdrop-filter: blur(8px);
  width: 360px;
  max-width: 90vw;
  box-sizing: border-box;
}
    #boot-loader .bl-reticle {
      width: 80px; height: 80px;
      color: #ff4d5a;
      animation: loaderSpin 3s linear infinite;
      margin-bottom: 24px;
    }
    @keyframes loaderSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    #boot-loader .bl-title {
      font-family: var(--font-display);
      font-size: 26px; font-weight: 900; text-transform: uppercase;
      letter-spacing: 0.15em; margin-bottom: 6px;
      color: #ffffff;
    }
    #boot-loader .bl-status {
      font-size: 11px; color: #ff4d5a; font-weight: 700;
      letter-spacing: 0.05em; margin-bottom: 24px;
    }
    #boot-loader .bl-log {
      font-size: 11px; line-height: 1.6;
      color: #a3a3a3; min-height: 5em;
      text-align: left; width: 100%;
    }
    #boot-loader .bl-log .pass { color: var(--fg, #e5e5e5); }
    #boot-loader .bl-log .accent { color: #e63946; font-weight: 700; }
    #boot-loader .bl-options {
      display: flex; gap: 16px; margin-top: 16px;
    }
    #boot-loader .bl-opt {
      padding: 10px 24px; border: 1px solid #262626;
      background: transparent; color: #e5e5e5;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px; font-weight: 700; cursor: pointer;
      text-transform: uppercase; letter-spacing: 0.08em;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    #boot-loader .bl-opt:hover { border-color: #e63946; color: #e63946; }
    #boot-loader .bl-opt:active { background: rgba(230,57,70,0.1); }

    /* ---- Boot split: hover affordance on halves ---- */
    #boot-split .split-half {
      position: absolute; top: 0; bottom: 0; width: 50%; z-index: 15;
      display: flex; align-items: center; justify-content: center;
      opacity: 0.45; transition: opacity 0.3s cubic-bezier(0.19,1,0.22,1), text-shadow 0.3s ease;
      font-family: "JetBrains Mono", monospace;
      font-size: 13px; letter-spacing: 0.2em;
      text-transform: uppercase; color: rgba(255,255,255,0.7);
      cursor: pointer; pointer-events: auto;
    }
    #boot-split:hover .split-half { opacity: 0.6; }
    #boot-split .split-half:hover { opacity: 1; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.5); }
    #boot-split .split-left { left: 0; }
    #boot-split .split-right { right: 0; }
    /* Touch: two-button variant */
    .boot-touch-btns {
      position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
      display: none; gap: 24px; z-index: 20;
    }
    @media (pointer: coarse) {
      #boot-split .split-half { display: none; }
      .boot-touch-btns { display: flex; }
    }
    .boot-touch-btn {
      padding: 12px 32px; border: 1px solid rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.05); color: #fff;
      font-family: "JetBrains Mono", monospace;
      font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase;
      cursor: pointer; transition: background 0.2s, border-color 0.2s;
      backdrop-filter: blur(8px); pointer-events: auto;
    }
    .boot-touch-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.1); }
    .boot-touch-btn:active { transform: scale(0.96); }
    /* Reduced-motion: static composition */
    @media (prefers-reduced-motion: reduce) {
      #boot-split .boot-static-fallback {
        position: absolute; inset: 0; z-index: 1;
        background: radial-gradient(ellipse at center, rgba(230,57,70,0.08) 0%, transparent 70%);
        pointer-events: none;
      }
    }

    /* ---- Master Meridian Prologue Intro Screen ---- */
    :root {
      --sun-amber: #ffb43a;
      --sun-warm: #b03a00;
      --sun-gold: #e6a12c;
      --moon-violet: #b43a8c;
      --moon-light: #c98fd0;
      --moon-phosphor: #d46be3;
      --ink-bg: #060608;
      --paper-bg: #141216;
      --paper-fg: #f6f2ea;
      --terminal-bg: #0a0910;
    }

    #boot-split {
      position: absolute; inset: 0;
      z-index: 5; background: var(--ink-bg);
      overflow: hidden; font-family: "Space Grotesque", sans-serif;
    }
    #boot-split:focus { outline: none; }

    /* ── IDENTITY BADGE (Minimal, Floating) ── */
    .identity {
      position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 1001;
      display: flex; flex-direction: column; align-items: center; gap: 4px;
      pointer-events: none; text-align: center;
    }
    .identity-name {
      font-family: "Space Grotesque", sans-serif; font-weight: 700; font-size: 22px;
      letter-spacing: 0.4em; text-transform: uppercase; color: #f0ede6;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    .identity-tagline {
      font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.22em;
      color: rgba(255, 255, 255, 0.4); text-transform: uppercase;
    }

    /* ── COUNTDOWN TIMER ── */
    .countdown {
      position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 100;
      display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
    }
    .countdown-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
    .countdown-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 3; }
    .countdown-ring-fg {
      fill: none; stroke: var(--sun-amber); stroke-width: 3; stroke-linecap: round;
      stroke-dasharray: 119.38; stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s linear;
    }
    .countdown-text {
      font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.15em;
      color: rgba(255, 255, 255, 0.5); text-transform: uppercase;
    }
    .countdown-seconds {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg);
      font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 700; color: var(--sun-amber);
    }

    /* ── PLAIN-LANGUAGE THEME DESCRIPTION ── */
    .theme-plain {
      font-family: "Inter", sans-serif; font-size: 12px; font-weight: 400;
      color: rgba(255, 255, 255, 0.55); line-height: 1.6; margin-top: 14px;
      max-width: 280px; letter-spacing: 0.01em;
    }

    /* ── STAGE & VIGNETTE ── */
    .stage {
      position: absolute; inset: 0; overflow: hidden;
      perspective: 1400px; background: #040406;
    }
    .vignette {
      position: absolute; inset: 0; pointer-events: none; z-index: 50;
      background: radial-gradient(circle at 50% 50%, transparent 35%, rgba(4, 4, 6, 0.85) 100%);
    }

    /* ── 3D MONOLITH CONTAINER ── */
    .master-monolith {
      position: absolute; inset: 60px 8vw 40px 8vw; display: flex; transform-style: preserve-3d;
      box-shadow: 0 35px 120px rgba(0,0,0,0.95); transition: transform 0.2s ease-out;
    }

    /* ── HALF SLABS ── */
    .slab {
      position: relative; width: 50%; height: 100%; overflow: hidden; cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.06); transform-style: preserve-3d;
      transition: border-color 0.4s ease, box-shadow 0.4s ease;
    }

    /* Sun Side (Editorial Warm Vellum & Physical Drafting Table) */
    .slab-sun {
      background: radial-gradient(circle at 35% 35%, #241e18 0%, #120f0c 100%);
      border-right: none; transform-origin: left center;
      box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(229, 161, 44, 0.2);
      transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    }
    .slab-sun:hover {
      background: radial-gradient(circle at 35% 35%, #2b221a 0%, #16120e 100%);
      border-color: rgba(229, 161, 44, 0.45);
      box-shadow: -15px 0 70px rgba(229, 161, 44, 0.12), inset -1px 0 0 rgba(229, 161, 44, 0.5);
    }
    .slab-sun:hover .glare {
      opacity: 1;
      background: linear-gradient(135deg, rgba(255, 240, 210, 0.14) 0%, transparent 65%);
    }

    /* CAD Hairline Crosshair Guides */
    .sun-crosshair {
      position: absolute; inset: 0; pointer-events: none; z-index: 12; opacity: 0;
      transition: opacity 0.3s ease;
    }
    .slab-sun:hover .sun-crosshair { opacity: 1; }
    .sun-crosshair-x {
      position: absolute; left: 0; right: 0; top: var(--mouse-y, 50%); height: 1px;
      background: linear-gradient(90deg, transparent, rgba(229, 161, 44, 0.25) 20%, rgba(229, 161, 44, 0.4) 50%, rgba(229, 161, 44, 0.25) 80%, transparent);
    }
    .sun-crosshair-y {
      position: absolute; top: 0; bottom: 0; left: var(--mouse-x, 50%); width: 1px;
      background: linear-gradient(180deg, transparent, rgba(229, 161, 44, 0.25) 20%, rgba(229, 161, 44, 0.4) 50%, rgba(229, 161, 44, 0.25) 80%, transparent);
    }

    /* Folded Vellum Paper Peel Corner */
    .paper-corner {
      position: absolute; top: 0; left: 0; width: 44px; height: 44px; z-index: 25; pointer-events: none;
      background: linear-gradient(135deg, rgba(229, 161, 44, 0.3) 0%, transparent 50%);
      border-right: 1px solid rgba(229, 161, 44, 0.4); border-bottom: 1px solid rgba(229, 161, 44, 0.4);
      transform-origin: top left; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .slab-sun:hover .paper-corner { transform: scale(1.3) rotate(4deg); }

    /* Sun Hand-Drawn Uneven Pen Stroke */
    .pen-stroke-svg { width: 220px; height: 14px; margin-top: 8px; overflow: visible; display: block; }
    .pen-stroke-path {
      stroke: var(--sun-amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
      stroke-dasharray: 240; stroke-dashoffset: 240; fill: none;
      filter: drop-shadow(0 0 0px transparent);
      transition: stroke-dashoffset 0.85s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    }
    .slab-sun:hover .pen-stroke-path {
      stroke-dashoffset: 0;
      filter: drop-shadow(0 0 6px rgba(255, 180, 58, 0.6));
    }

    /* Enter Sun CTA Button Bloom */
    .enter-sun { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
    .slab-sun:hover .enter-sun {
      transform: translateY(-2px);
      border-color: var(--sun-amber);
      box-shadow: 0 4px 16px rgba(229, 161, 44, 0.25);
    }

    /* Micro-Hint Badge */
    .sun-hover-hint {
      position: absolute; bottom: 20px; left: 32px; z-index: 20;
      display: flex; align-items: center; gap: 8px;
      font-family: "JetBrains Mono", monospace; font-size: 10px;
      letter-spacing: 0.12em; color: rgba(229, 161, 44, 0.7);
      opacity: 0; transform: translateY(4px);
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }
    .slab-sun:hover .sun-hover-hint {
      opacity: 0.9; transform: translateY(0);
    }
    .sun-hover-hint .hint-badge {
      background: rgba(229, 161, 44, 0.15); border: 1px solid rgba(229, 161, 44, 0.4);
      padding: 1px 5px; border-radius: 2px; color: var(--sun-amber); font-weight: 700;
    }

    /* Interactive Sign-Off Red Ink Stamp Layer */
    .stamp-layer { position: absolute; inset: 0; z-index: 18; pointer-events: none; overflow: hidden; }
    .sun-stamp {
      position: absolute; font-family: "JetBrains Mono", monospace; font-weight: 700;
      color: #d64515; border: 2px stroke #d64515; padding: 6px 12px; border-radius: 3px;
      font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
      background: rgba(214, 69, 21, 0.08); box-shadow: 0 0 16px rgba(214, 69, 21, 0.25);
      transform-origin: center; animation: stampPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
      outline: 2px dashed rgba(214, 69, 21, 0.6); outline-offset: -4px;
    }
    @keyframes stampPop {
      0% { transform: scale(2.2) rotate(var(--rot)); opacity: 0; }
      100% { transform: scale(1.0) rotate(var(--rot)); opacity: 0.92; }
    }

    /* Moon Side (Diagnostic CRT Glass / Phosphor Wave) */
    .slab-moon {
      background: var(--terminal-bg); border-left: none; transform-origin: right center;
    }
    .slab-moon:hover { border-color: rgba(180, 58, 140, 0.3); box-shadow: 10px 0 40px rgba(180, 58, 140, 0.08); }

    /* Canvas Elements inside Slabs */
    .slab-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

    /* CRT Raster Overlay for Moon */
    .crt-raster {
      position: absolute; inset: 0; pointer-events: none; opacity: 0.2; z-index: 15;
      background: linear-gradient(rgba(18, 16, 26, 0) 50%, rgba(0, 0, 0, 0.6) 50%);
      background-size: 100% 4px;
    }

    /* Content overlays */
    .slab-content {
      position: absolute; inset: 0; z-index: 20; pointer-events: none;
      display: flex; flex-direction: column; justify-content: space-between; padding: 48px;
    }
    .slab-sun .slab-content { color: var(--paper-fg); }
    .slab-moon .slab-content { color: #e5e5e5; }

    .slab-header {
      font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
    }
    .slab-sun .slab-header { color: var(--sun-amber); }
    .slab-moon .slab-header { color: var(--moon-light); }

    .slab-title { font-size: 32px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px; }
    .slab-desc { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; opacity: 0.55; text-transform: uppercase; }

    .slab-footer {
      font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.15em;
      display: flex; justify-content: space-between; align-items: center; width: 100%;
    }

    /* Specular Glare */
    .glare {
      position: absolute; inset: -100%; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
    }
    .slab-sun .glare { background: linear-gradient(135deg, rgba(255, 240, 210, 0.08) 0%, transparent 60%); }
    .slab-moon .glare { background: linear-gradient(225deg, rgba(210, 150, 220, 0.08) 0%, transparent 60%); }
    .slab:hover .glare { opacity: 1; }

    /* ── CENTRAL MERIDIAN SEAM ── */
    .meridian {
      position: absolute; top: 60px; bottom: 40px; left: 50%; width: 2px;
      transform: translateX(-50%); z-index: 30; pointer-events: none;
      background: linear-gradient(180deg, transparent 0%, var(--sun-amber) 35%, var(--moon-light) 65%, transparent 100%);
      box-shadow: 0 0 24px 3px rgba(255, 180, 58, 0.4); transition: all 0.4s ease;
    }

    .bottom-hint {
      position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
      font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em;
      opacity: 0.7; pointer-events: none; z-index: 100; text-transform: uppercase;
      color: var(--sun-amber); text-shadow: 0 0 12px rgba(255, 180, 58, 0.4);
    }

    /* Enter Action Buttons on Slabs */
    .enter-btn {
      display: inline-flex; align-items: center; gap: 8px; margin-top: 0;
      font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
      letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px;
      opacity: 0.75; transform: translateY(0); transition: all 0.3s ease; pointer-events: auto;
      cursor: pointer; background: transparent;
    }
    .slab:hover .enter-btn { opacity: 1; transform: scale(1.03); }

    .enter-sun {
      color: var(--sun-amber); border: 1px solid rgba(255, 180, 58, 0.5);
      background: rgba(255, 180, 58, 0.08); box-shadow: 0 0 20px rgba(255, 180, 58, 0.15);
    }
    .enter-sun:hover {
      background: rgba(255, 180, 58, 0.2); border-color: var(--sun-amber); box-shadow: 0 0 25px rgba(255, 180, 58, 0.3);
    }
    .enter-moon {
      color: var(--moon-light); border: 1px solid rgba(201, 143, 208, 0.5);
      background: rgba(201, 143, 208, 0.08); box-shadow: 0 0 20px rgba(201, 143, 208, 0.15);
    }
    .enter-moon:hover {
      background: rgba(201, 143, 208, 0.2); border-color: var(--moon-light); box-shadow: 0 0 25px rgba(201, 143, 208, 0.3);
    }

    /* Skip Prologue Button */
    .skip-btn {
      position: absolute; right: 20px; top: 14px; z-index: 1002;
      color: #888; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.15em;
      text-decoration: none; text-transform: uppercase; padding: 6px 12px;
      border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px;
      background: rgba(10, 10, 14, 0.6); backdrop-filter: blur(8px);
      transition: all 0.25s ease;
    }
    .skip-btn:hover { color: var(--sun-amber); border-color: var(--sun-amber); background: rgba(255, 180, 58, 0.1); }

@keyframes reticleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
