        /* -------------------------------------------
           THEME VARIABLE CONFIGURATION MATRIX
           (copied verbatim from the product OS theme)
           ------------------------------------------- */
        :root {
            /* Default Dark Mode Constants */
            --bg-base: #040608;
            --bg-radial: radial-gradient(circle at 50% 30%, #151d28 0%, #040608 70%);
            --bg-card: rgba(11, 17, 22, 0.4);
            --bg-card-hover: rgba(17, 24, 34, 0.7);
            --bg-header: rgba(6, 9, 12, 0.85);
            --bg-form: rgba(11, 17, 22, 0.4);
            --bg-form-focus: rgba(11, 17, 22, 0.8);
            --border-ui: rgba(255, 153, 0, 0.3);
            --border-card: rgba(26, 35, 44, 0.7);
            --border-card-hover: rgba(255, 153, 0, 0.4);
            --text-main: #d1d5db;
            --text-heading-start: #ffffff;
            --text-heading-end: #a1a1a6;
            --text-accent: #ff9900;
            --text-accent-hover: #e65c00;
            --text-btn-label: #000000;
            --text-muted: #86868b;
            --badge-bg: rgba(255, 153, 0, 0.1);
            --glow-logo: drop-shadow(0px 0px 8px rgba(255, 153, 0, 0.4));
            --terminal-bg: #06090c;
            --terminal-border: rgba(255, 153, 0, 0.3);

            /* Text Wipe Gradient Variables (Dark Mode: Orange -> White) */
            --wipe-start: #ff9900;
            --wipe-mid: #ff9900;
            --wipe-end-1: #ffffff;
            --wipe-end-2: #ffffff;

            --show-dark-logo: block;
            --show-light-logo: none;
        }

        [data-theme="light"] {
            /* Light Mode Constants */
            --bg-base: #f5f5f7;
            --bg-radial: radial-gradient(circle at 50% 30%, #ffffff 0%, #f5f5f7 70%);
            --bg-card: rgba(255, 255, 255, 0.7);
            --bg-card-hover: rgba(255, 255, 255, 1);
            --bg-header: rgba(255, 255, 255, 0.8);
            --bg-form: rgba(255, 255, 255, 0.6);
            --bg-form-focus: rgba(255, 255, 255, 1);

            --border-ui: rgba(124, 58, 237, 0.3);
            --border-card: rgba(0, 0, 0, 0.08);
            --border-card-hover: rgba(59, 130, 246, 0.4);
            --text-main: #424245;
            --text-heading-start: #1d1d1f;
            --text-heading-end: #6e6e73;
            --text-accent: #7c3aed;
            --text-accent-hover: #3b82f6;
            --text-btn-label: #ffffff;
            --text-muted: #6e6e73;
            --badge-bg: rgba(124, 58, 237, 0.08);
            --glow-logo: drop-shadow(0px 4px 12px rgba(124, 58, 237, 0.25));
            --terminal-bg: #ffffff;
            --terminal-border: rgba(0, 0, 0, 0.1);

            /* Text Wipe Gradient Variables (Light Mode: Purple/Blue -> Dark Gray) */
            --wipe-start: #7c3aed;
            --wipe-mid: #3b82f6;
            --wipe-end-1: #1d1d1f;
            --wipe-end-2: #1d1d1f;

            --show-dark-logo: none;
            --show-light-logo: block;
        }

        /* Modern Global Reset */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
            transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-base);
            background-image: var(--bg-radial);
            background-attachment: fixed;
            color: var(--text-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 10;
        }

        /* Header */
        header {
            padding: 24px 0;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: transparent;
        }

        header.scrolled {
            background-color: var(--bg-header);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-card);
            padding: 16px 0;
        }

        .nav-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .brand-container {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .logo-img-dark {
            display: var(--show-dark-logo);
            height: 45px;
            width: auto;
            filter: var(--glow-logo);
        }

        .logo-img-light {
            display: var(--show-light-logo);
            height: 45px;
            width: auto;
            filter: var(--glow-logo);
        }

        .logo-wrapper {
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .logo-cursive {
            font-family: 'Pinyon Script', cursive;
            font-size: 2.6rem;
            font-weight: 400;
            color: var(--text-heading-start);
            line-height: 0.8;
            letter-spacing: 1px;
        }

        .logo-cursive span {
            color: #ff9900;
        }

        [data-theme="light"] .logo-cursive span {
            background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-os {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-heading-start);
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        .nav-right-block {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .terminal-badge {
            font-size: 0.75rem;
            border: 1px solid var(--border-ui);
            color: var(--text-accent);
            padding: 4px 10px;
            border-radius: 4px;
            text-transform: uppercase;
            background-color: var(--badge-bg);
            letter-spacing: 1px;
            white-space: nowrap;
        }

        .theme-toggle-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            color: var(--text-main);
            padding: 6px 12px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .theme-toggle-btn:hover {
            border-color: var(--border-ui);
            color: var(--text-heading-start);
        }

        /* Hero */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: hidden;
            padding: 160px 0 90px 0;
        }

        .hero-content {
            position: relative;
            z-index: 3;
            width: 100%;
            max-width: 980px;
            padding: 0 24px;
            opacity: 0;
            transform: translateY(30px);
            animation: cinematicReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        }

        @keyframes cinematicReveal {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-eyebrow {
            font-size: 0.85rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-accent);
            margin-bottom: 28px;
        }

        .hero-eyebrow .cursor::after {
            content: '█';
            animation: blink 1s step-start infinite;
            color: var(--text-accent);
            margin-left: 4px;
        }

        /* BULLETPROOF H1 TEXT WIPE ENGINE */
        h1 {
            font-size: 4.2rem;
            font-weight: 900;
            letter-spacing: -0.04em;
            line-height: 1.08;
            margin-bottom: 28px;

            color: transparent;
            -webkit-text-fill-color: transparent;
            -webkit-background-clip: text;
            background-clip: text;

            background-image: linear-gradient(to right,
                    var(--wipe-start) 0%,
                    var(--wipe-mid) var(--scroll-fill, 0%),
                    var(--wipe-end-1) var(--scroll-fill, 0%),
                    var(--wipe-end-2) 100%);
        }

        .subtitle {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 760px;
            margin: 0 auto 44px auto;
            line-height: 1.65;
        }

        /* CTA */
        .cta-row {
            display: flex;
            gap: 16px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }

        .cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background-color: #ff9900;
            color: var(--text-btn-label);
            border: none;
            padding: 16px 30px;
            font-weight: 800;
            font-size: 0.95rem;
            border-radius: 6px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        [data-theme="light"] .cta-btn {
            background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
        }

        .cta-btn:hover {
            transform: scale(1.03);
            opacity: 0.95;
            box-shadow: 0 12px 28px rgba(255, 153, 0, 0.18);
        }

        [data-theme="light"] .cta-btn:hover {
            box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18);
        }

        .cta-secondary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-main);
            border: 1px solid var(--border-ui);
            background: var(--bg-form);
            padding: 15px 24px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
        }

        .cta-secondary:hover {
            border-color: var(--text-accent);
            color: var(--text-heading-start);
        }

        .cta-secondary .prompt {
            color: var(--text-accent);
            font-weight: 800;
        }

        /* Section scaffolding */
        section.block {
            padding: 60px 0;
        }

        .section-label {
            font-size: 0.8rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--text-accent);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-label .prompt {
            font-weight: 800;
        }

        .section-title {
            font-size: 2.3rem;
            font-weight: 900;
            letter-spacing: -0.03em;
            color: var(--text-heading-start);
            line-height: 1.15;
            margin-bottom: 16px;
            max-width: 820px;
        }

        .section-intro {
            font-size: 1.05rem;
            color: var(--text-muted);
            max-width: 760px;
            margin-bottom: 40px;
        }

        /* Reveal animations */
        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .reveal-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Live Terminal */
        .terminal-wrapper {
            margin: -20px auto 40px auto;
            max-width: 900px;
            background: var(--terminal-bg);
            border: 1px solid var(--terminal-border);
            border-radius: 8px;
            min-height: 340px;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
            position: relative;
            z-index: 10;
            overflow: hidden;
            padding: 48px 24px 24px 24px;
            text-align: left;
        }

        .terminal-wrapper::before {
            content: "LOCUS_QUANT // LIVE_AUDIT_TRAIL";
            position: absolute;
            top: 16px;
            left: 20px;
            font-size: 0.75rem;
            color: var(--text-accent);
            opacity: 0.9;
            letter-spacing: 0.05em;
            font-weight: 700;
        }

        .terminal-dots {
            position: absolute;
            top: 18px;
            right: 20px;
            display: flex;
            gap: 7px;
        }

        .terminal-dots span {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            display: inline-block;
            opacity: 0.5;
            background: var(--text-muted);
        }

        .terminal-content {
            font-family: 'SF Mono', Consolas, Menlo, monospace;
            font-size: 0.92rem;
            line-height: 1.8;
            color: var(--text-main);
        }

        .log-time {
            color: var(--text-muted);
        }

        .log-agent {
            color: #3b82f6;
        }

        .log-warn {
            color: #ff9900;
        }

        [data-theme="light"] .log-warn {
            color: #7c3aed;
        }

        .log-error {
            color: #ef4444;
        }

        .log-success {
            color: #10b981;
        }

        .cursor::after {
            content: '█';
            animation: blink 1s step-start infinite;
            color: var(--text-accent);
            margin-left: 6px;
        }

        @keyframes blink {
            50% {
                opacity: 0;
            }
        }

        /* Pipeline */
        .pipeline {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            gap: 12px;
            margin-bottom: 20px;
        }

        .pipe-node {
            flex: 1 1 150px;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-left: 2px solid var(--text-accent);
            border-radius: 6px;
            padding: 18px 16px;
            position: relative;
        }

        [data-theme="light"] .pipe-node {
            border-left: 2px solid #7c3aed;
        }

        .pipe-node .pipe-step {
            font-size: 0.7rem;
            color: var(--text-accent);
            letter-spacing: 0.08em;
            margin-bottom: 8px;
        }

        .pipe-node .pipe-name {
            font-size: 0.92rem;
            font-weight: 700;
            color: var(--text-heading-start);
            line-height: 1.35;
        }

        .pipe-arrow {
            align-self: center;
            color: var(--text-accent);
            font-size: 1.3rem;
            font-weight: 800;
            flex: 0 0 auto;
        }

        .pipe-feedback {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-muted);
            border: 1px dashed var(--border-ui);
            border-radius: 6px;
            padding: 12px 16px;
            background: var(--badge-bg);
        }

        .pipe-feedback .loop-glyph {
            color: var(--text-accent);
            font-weight: 800;
        }

        /* Feature / swarm / team cards */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-top: 2px solid var(--text-accent);
            padding: 34px 30px;
            border-radius: 8px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        [data-theme="light"] .feature-card {
            border-top: 2px solid transparent;
            border-image: linear-gradient(to right, #7c3aed, #3b82f6) 1;
        }

        .feature-card:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-card-hover);
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
        }

        .feature-card .card-tag {
            font-size: 0.72rem;
            color: var(--text-accent);
            letter-spacing: 0.1em;
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        .feature-card h3 {
            font-size: 1.15rem;
            color: var(--text-heading-start);
            margin-bottom: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.01em;
        }

        .feature-card p {
            color: var(--text-muted);
            font-size: 0.93rem;
            line-height: 1.65;
        }

        /* Guardrails callout */
        .guard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
        }

        .guard-item {
            background: var(--terminal-bg);
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 28px 26px;
        }

        .guard-item .guard-head {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .guard-item .guard-glyph {
            color: var(--text-accent);
            font-weight: 800;
            font-size: 1.05rem;
        }

        .guard-item h4 {
            font-size: 1rem;
            color: var(--text-heading-start);
            font-weight: 800;
            letter-spacing: -0.01em;
        }

        .guard-item p {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.65;
        }

        .guard-item strong {
            color: var(--text-main);
            font-weight: 700;
        }

        /* Today: status list + stack */
        .today-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 28px;
        }

        .status-panel,
        .stack-panel {
            background: var(--terminal-bg);
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 30px 28px;
        }

        .panel-caption {
            font-size: 0.72rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-accent);
            margin-bottom: 18px;
        }

        .status-line {
            display: flex;
            gap: 12px;
            align-items: baseline;
            font-family: 'SF Mono', Consolas, Menlo, monospace;
            font-size: 0.92rem;
            color: var(--text-main);
            padding: 7px 0;
            border-bottom: 1px solid var(--border-card);
        }

        .status-line:last-child {
            border-bottom: none;
        }

        .status-line .ok {
            color: #10b981;
            font-weight: 800;
        }

        .stack-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .stack-badge {
            font-size: 0.8rem;
            border: 1px solid var(--border-ui);
            color: var(--text-accent);
            padding: 6px 12px;
            border-radius: 4px;
            background-color: var(--badge-bg);
            letter-spacing: 0.02em;
        }

        .stack-note {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 18px;
            line-height: 1.6;
        }

        /* Road ahead */
        .road-panel {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-left: 3px solid var(--text-accent);
            border-radius: 8px;
            padding: 36px 34px;
        }

        [data-theme="light"] .road-panel {
            border-left: 3px solid #7c3aed;
        }

        .road-panel p {
            font-size: 1.1rem;
            color: var(--text-main);
            line-height: 1.7;
            max-width: 820px;
        }

        .road-panel .road-tag {
            font-size: 0.72rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-accent);
            margin-bottom: 14px;
        }

        /* Team */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
            margin-bottom: 34px;
        }

        .team-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 30px 28px;
        }

        .team-card .team-name {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-heading-start);
            margin-bottom: 6px;
        }

        .team-card .team-role {
            font-size: 0.9rem;
            color: var(--text-accent);
            margin-bottom: 12px;
            letter-spacing: 0.02em;
        }

        .team-card p {
            font-size: 0.92rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .contact-line {
            font-size: 0.98rem;
            color: var(--text-muted);
        }

        .contact-line a {
            color: var(--text-accent);
            text-decoration: none;
            font-weight: 700;
        }

        .contact-line a:hover {
            text-decoration: underline;
        }

        .link-inline {
            background: none;
            border: none;
            padding: 0;
            font-family: inherit;
            font-size: inherit;
            color: var(--text-accent);
            font-weight: 700;
            cursor: pointer;
            text-decoration: underline;
        }

        .link-inline:hover {
            color: var(--text-heading-start);
        }

        /* Footer */
        .brand-stripe {
            width: 100%;
            height: 4px;
            background: var(--text-accent);
        }

        [data-theme="light"] .brand-stripe {
            background: linear-gradient(to right, #7c3aed, #3b82f6);
        }

        footer {
            background-color: var(--terminal-bg);
            padding: 60px 0;
            border-top: 1px solid var(--border-card);
        }

        .footer-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 24px;
        }

        .footer-logo-dark {
            display: var(--show-dark-logo);
            height: auto;
            width: auto;
            max-width: 190px;
            max-height: 60px;
            object-fit: contain;
            align-self: flex-start;
            border-radius: 6px;
        }

        .footer-logo-light {
            display: var(--show-light-logo);
            height: auto;
            width: auto;
            max-width: 190px;
            max-height: 60px;
            object-fit: contain;
            align-self: flex-start;
            border-radius: 6px;
        }

        .footer-left {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 420px;
        }

        .footer-right {
            text-align: right;
        }

        .footer-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .product-attribution {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .product-attribution span.footer-cursive {
            font-family: 'Pinyon Script', cursive;
            color: var(--text-heading-start);
            font-size: 1.4rem;
            font-weight: 400;
        }

        .disclaimer-strong {
            color: var(--text-main);
            font-weight: 700;
        }

        /* Team contact button */
        .team-card {
            display: flex;
            flex-direction: column;
        }

        .team-card p {
            flex: 1;
        }

        .team-contact-btn,
        .cta-btn-js {
            font-family: inherit;
            cursor: pointer;
        }

        .team-contact-btn {
            align-self: flex-start;
            margin-top: 18px;
            background: transparent;
            color: var(--text-accent);
            border: 1px solid var(--border-ui);
            padding: 9px 18px;
            border-radius: 6px;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .team-contact-btn:hover {
            background: var(--badge-bg);
            border-color: var(--text-accent);
            color: var(--text-heading-start);
            transform: translateY(-2px);
        }

        /* Contact modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(2, 4, 6, 0.72);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        [data-theme="light"] .modal-overlay {
            background: rgba(20, 20, 25, 0.45);
        }

        .modal-overlay.open {
            display: flex;
            animation: modalFade 0.25s ease forwards;
        }

        @keyframes modalFade {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-card {
            position: relative;
            width: 100%;
            max-width: 520px;
            background: var(--terminal-bg);
            border: 1px solid var(--terminal-border);
            border-radius: 10px;
            padding: 46px 28px 30px 28px;
            box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
            max-height: calc(100vh - 48px);
            overflow-y: auto;
        }

        .modal-card::before {
            content: "LOCUS_QUANT // SECURE_CHANNEL";
            position: absolute;
            top: 15px;
            left: 22px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: var(--text-accent);
        }

        .modal-close {
            position: absolute;
            top: 12px;
            right: 14px;
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1rem;
            cursor: pointer;
            padding: 4px 8px;
            font-family: inherit;
        }

        .modal-close:hover {
            color: var(--text-accent);
        }

        .modal-heading {
            font-size: 1.35rem;
            font-weight: 900;
            letter-spacing: -0.02em;
            color: var(--text-heading-start);
            margin-bottom: 4px;
        }

        .modal-recipient {
            font-size: 0.78rem;
            color: var(--text-accent);
            margin-bottom: 22px;
            letter-spacing: 0.03em;
        }

        .modal-label {
            display: block;
            font-size: 0.78rem;
            color: var(--text-accent);
            margin: 14px 0 6px 0;
            letter-spacing: 0.03em;
        }

        .modal-input {
            width: 100%;
            background: var(--bg-form);
            border: 1px solid var(--border-card);
            border-radius: 6px;
            padding: 12px 14px;
            color: var(--text-heading-start);
            font-family: inherit;
            font-size: 0.92rem;
        }

        .modal-input::placeholder {
            color: var(--text-muted);
        }

        .modal-input:focus {
            outline: none;
            border-color: var(--text-accent);
            background: var(--bg-form-focus);
            box-shadow: 0 0 0 3px var(--badge-bg);
        }

        .modal-textarea {
            resize: vertical;
            min-height: 92px;
            line-height: 1.5;
        }

        /* Honeypot — must stay hidden from real users */
        .modal-honeypot {
            position: absolute !important;
            left: -9999px !important;
            width: 1px;
            height: 1px;
            opacity: 0;
        }

        .modal-submit {
            width: 100%;
            margin-top: 22px;
            background-color: #ff9900;
            color: var(--text-btn-label);
            border: none;
            padding: 15px 24px;
            font-weight: 800;
            font-size: 0.92rem;
            border-radius: 6px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            font-family: inherit;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        [data-theme="light"] .modal-submit {
            background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
        }

        .modal-submit:hover:not(:disabled) {
            transform: scale(1.02);
            opacity: 0.96;
        }

        .modal-submit:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        .modal-status {
            margin-top: 18px;
            font-family: 'SF Mono', Consolas, Menlo, monospace;
            font-size: 0.95rem;
            min-height: 1.2em;
        }

        .modal-status.pending {
            color: var(--text-accent);
        }

        .modal-status.success {
            color: #10b981;
            font-weight: 700;
        }

        .modal-status.failure {
            color: #ef4444;
            font-weight: 700;
        }

        .modal-status-sub {
            display: block;
            margin-top: 6px;
            font-size: 0.82rem;
            color: var(--text-muted);
            font-weight: 400;
        }

        /* Responsive */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.6rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .today-grid {
                grid-template-columns: 1fr;
            }

            .pipe-arrow {
                transform: rotate(90deg);
                align-self: center;
                width: 100%;
                text-align: center;
            }

            .pipe-node {
                flex-basis: 100%;
            }

            .footer-wrapper {
                flex-direction: column;
                text-align: center;
                align-items: center;
            }

            .footer-right {
                text-align: center;
            }

            .footer-left {
                align-items: center;
                text-align: center;
            }

            .cta-row {
                flex-direction: column;
            }
        }


        /* =========================================================
           SHARED ADDITIONS (used by index.html and whats-next.html)
           Built only from the theme variables above, so future theme
           edits propagate to both pages. No existing selector altered.
           ========================================================= */

        /* Nav link — matches the pill geometry of .theme-toggle-btn */
        .nav-link {
            font-size: 0.8rem;
            border: 1px solid var(--border-card);
            color: var(--text-accent);
            padding: 6px 12px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 600;
            letter-spacing: 0.02em;
            background: var(--bg-card);
            white-space: nowrap;
        }

        .nav-link:hover {
            border-color: var(--text-accent);
            color: var(--text-heading-start);
        }

        /* Inline terminal link (e.g. roadmap "view the full pipeline") */
        .terminal-link {
            color: var(--text-accent);
            text-decoration: none;
            font-weight: 700;
        }

        .terminal-link:hover {
            color: var(--text-heading-start);
            text-decoration: underline;
        }

        /* ---- whats-next page: hero ---- */
        .wn-header {
            padding: 150px 0 30px 0;
        }

        /* Neutralize the h1 text-wipe engine on the sub-page (no scroll JS there) */
        .wn-header h1 {
            font-size: 2.9rem;
            font-weight: 900;
            letter-spacing: -0.03em;
            line-height: 1.14;
            max-width: 820px;
            margin-bottom: 18px;
            color: var(--text-heading-start);
            background: none;
            -webkit-text-fill-color: var(--text-heading-start);
        }

        .wn-header h1 em {
            font-style: normal;
            color: var(--text-accent);
        }

        .wn-sub {
            font-size: 1.15rem;
            color: var(--text-muted);
            max-width: 700px;
            line-height: 1.65;
        }

        .wn-principle {
            display: inline-block;
            margin-top: 24px;
            font-size: 0.85rem;
            color: var(--text-accent);
            border: 1px solid var(--border-ui);
            border-radius: 6px;
            padding: 9px 14px;
            background: var(--badge-bg);
            letter-spacing: 0.02em;
        }

        .wn-back {
            margin-top: 26px;
            font-size: 0.95rem;
        }

        /* ---- whats-next page: roadmap timeline ---- */
        .wn-timeline {
            position: relative;
            margin-left: 6px;
        }

        .wn-timeline::before {
            content: '';
            position: absolute;
            left: 6px;
            top: 4px;
            bottom: 4px;
            width: 2px;
            background: var(--border-card);
        }

        .wn-rel {
            position: relative;
            padding: 0 0 40px 38px;
        }

        .wn-rel:last-child {
            padding-bottom: 0;
        }

        .wn-rel .wn-dot {
            position: absolute;
            left: 0;
            top: 6px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--bg-base);
            border: 3px solid var(--text-muted);
        }

        .wn-rel.now .wn-dot {
            border-color: var(--text-accent);
            box-shadow: 0 0 0 5px var(--badge-bg);
        }

        .wn-ver {
            font-size: 0.78rem;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        .wn-rel.now .wn-ver {
            color: var(--text-accent);
            font-weight: 700;
        }

        .wn-rel h3 {
            font-size: 1.15rem;
            margin: 4px 0 8px 0;
            color: var(--text-heading-start);
            font-weight: 800;
            letter-spacing: -0.01em;
        }

        .wn-rel p {
            color: var(--text-muted);
            font-size: 0.95rem;
            max-width: 640px;
            line-height: 1.65;
        }

        .wn-rel .stack-badges {
            margin-top: 12px;
        }

        /* ---- whats-next page: humans table ---- */
        .wn-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.92rem;
        }

        .wn-table th,
        .wn-table td {
            text-align: left;
            padding: 12px 14px;
            border-bottom: 1px solid var(--border-card);
        }

        .wn-table th {
            font-size: 0.72rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-accent);
        }

        .wn-table td {
            color: var(--text-main);
        }

        .wn-auto {
            color: #10b981;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .wn-human {
            color: var(--text-accent);
            font-size: 0.8rem;
            font-weight: 700;
        }

        /* Highlight the HUMAN-owned rows with a low-opacity accent tint +
           an accent edge. AI/automated rows keep the default styling.
           Both cues come from mode-aware tokens (orange in dark, purple in light). */
        .wn-table tr.wn-row-human td {
            background: var(--badge-bg);
        }

        .wn-table tr.wn-row-human td:first-child {
            box-shadow: inset 2px 0 0 0 var(--text-accent);
        }

        /* =========================================================
           RESPONSIVE — small screens. Layout-only tweaks built from
           existing tokens; no colors, fonts, or token values changed.
           ========================================================= */
        @media (max-width: 640px) {
            /* Nav must wrap instead of pushing the MODE toggle off-screen */
            .nav-wrapper {
                flex-wrap: wrap;
                row-gap: 10px;
            }

            .brand-container {
                gap: 10px;
                flex: 1 1 auto;
                min-width: 0;
            }

            .logo-cursive {
                font-size: 2rem;
            }

            .logo-os {
                font-size: 1rem;
            }

            .nav-right-block {
                flex-wrap: wrap;
                justify-content: flex-end;
                gap: 8px;
            }

            /* auto-fit minmax(280px) overflows once the content box is < 280px;
               force single-column on small screens to prevent horizontal overflow */
            .features-grid,
            .guard-grid,
            .team-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 420px) {
            h1 {
                font-size: 2.1rem;
            }

            .wn-header h1 {
                font-size: 2.1rem;
            }

            h1,
            .section-title,
            .wn-rel h3,
            .modal-heading {
                overflow-wrap: break-word;
            }
        }

        /* =========================================================
           MAIN-PAGE roadmap strip (NOW / NEXT / LATER). Layout only;
           every colour comes from existing tokens. Scoped to
           .roadmap-* so it cannot affect any existing element.
           ========================================================= */
        .roadmap-strip {
            margin-top: 6px;
        }

        .roadmap-row {
            display: grid;
            grid-template-columns: max-content 1fr;
            gap: 8px 18px;
            align-items: baseline;
            padding: 13px 0;
            border-bottom: 1px solid var(--border-card);
        }

        .roadmap-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        /* Keep the version pill at its natural width (grid items stretch by default) */
        .roadmap-row > .stack-badge {
            justify-self: start;
        }

        .roadmap-text {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.6;
        }

        .roadmap-text strong {
            color: var(--text-heading-start);
            font-weight: 700;
        }

        @media (max-width: 640px) {
            .roadmap-row {
                grid-template-columns: 1fr;
                gap: 6px;
            }
        }
