/* ═══════════════════════════════════════════════════════════════
       mistwire.io — governance-first site, v2 design pass (2026-09-01)
       Material rule: if you can operate it, it is glass. If you only
       read it, it sits on the field with hairlines. Glass is optical —
       a refractive rim + a specular that follows the cursor and catches
       the lightning — not a frosted card.
       ═══════════════════════════════════════════════════════════════ */
    :root {
      --ink: #070910;
      --field: #0b0d14;
      --field-2: #10141f;
      --text: #eef1f8;
      --muted: #aab4ca;
      --faint: #6f7a94;
      --ghost: #3a4358;
      --blue: #4b84cd;
      --electric: #8fb8ff;
      --verified: #7fe0b8;
      --amber: #e9c07a;
      --line: rgba(255,255,255,.08);
      --line-2: rgba(255,255,255,.15);
      --line-blue: rgba(143,184,255,.30);
      --glass: rgba(14,18,30,.50);
      --glass-deep: rgba(9,12,21,.72);
      --r-xl: 26px; --r-lg: 18px; --r-md: 12px; --r-sm: 8px; --r-pill: 999px;
      --max: 1240px;
      --font-display: "Bricolage Grotesque", "SF Pro Display", -apple-system, "Segoe UI Variable Display", system-ui, sans-serif;
      --font-body: "Hanken Grotesk", "SF Pro Text", -apple-system, "Segoe UI", system-ui, sans-serif;
      --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
      --ease: cubic-bezier(.16, 1, .3, 1);
      --lx: 50vw; --ly: 38vh;   /* cursor lamp, lerped by JS */
      --flash: 0;               /* lightning peak 0..1, set by JS */
      color-scheme: dark;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      margin: 0; min-width: 0; overflow-x: hidden;
      background: var(--ink); color: var(--text);
      font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
      -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
      font-feature-settings: "ss01", "cv11";
    }
    ::selection { background: rgba(143,184,255,.28); color: #fff; }
    a { color: inherit; }
    button, input { font: inherit; color: inherit; }
    img { display: block; max-width: 100%; }
    p { margin: 0 0 1rem; color: var(--muted); }
    p:last-child { margin-bottom: 0; }
    h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -.028em; line-height: 1.02; text-wrap: balance; font-variation-settings: "opsz" 96, "wdth" 90; }
    h1 { max-width: 14ch; font-size: clamp(2.7rem, 6.4vw, 5.5rem); }
    h2 { max-width: 20ch; font-size: clamp(1.9rem, 3.7vw, 3.2rem); }
    h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); letter-spacing: -.02em; font-variation-settings: "opsz" 40, "wdth" 94; }
    h4 { font-size: .8rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-variation-settings: normal; }
    em { font-style: normal; color: var(--electric); }
    strong { color: var(--text); font-weight: 600; }
    code, pre { font-family: var(--font-mono); }

    :focus-visible { outline: 2px solid var(--electric); outline-offset: 4px; border-radius: var(--r-sm); }
    h1[tabindex]:focus, h1[tabindex]:focus-visible { outline: none; } /* route change moves focus to the heading for AT; no ring needed */
    .skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 16px; border-radius: var(--r-md); background: #fff; color: #0b0d14; font-weight: 700; }
    .skip-link:focus { transform: none; }

    /* ─── Atmosphere: fog engine (JS-driven), lightning canvas, cursor lamp ── */
    .fog-blob, .fog-veil, .fog-noise, #lightning-canvas, .lamp { position: fixed; pointer-events: none; z-index: 0; }
    .fog-blob { border-radius: 50%; will-change: transform, opacity; transition: filter .15s ease-out; }
    .fog-blob-1 { width: 70vw; height: 60vh; top: -5%; left: 0; filter: blur(60px); background: radial-gradient(ellipse at center, rgba(35,60,120,.7) 0%, rgba(20,35,80,.3) 40%, transparent 70%); }
    .fog-blob-2 { width: 55vw; height: 70vh; top: 15%; right: -5%; filter: blur(70px); background: radial-gradient(ellipse at center, rgba(40,25,75,.65) 0%, rgba(25,18,55,.25) 40%, transparent 70%); }
    .fog-blob-3 { width: 90vw; height: 45vh; bottom: 5%; left: 5%; filter: blur(80px); background: radial-gradient(ellipse at center, rgba(30,50,100,.5) 0%, rgba(18,30,65,.15) 45%, transparent 70%); }
    .fog-blob-4 { width: 45vw; height: 55vh; top: 40%; right: 10%; filter: blur(55px); background: radial-gradient(ellipse at center, rgba(50,30,90,.55) 0%, rgba(30,20,60,.2) 40%, transparent 70%); }
    .fog-blob-5 { width: 40vw; height: 35vh; top: 10%; left: 30%; filter: blur(50px); background: radial-gradient(ellipse at center, rgba(50,80,150,.6) 0%, rgba(30,50,110,.2) 40%, transparent 65%); }
    /* Veil: flat tint, no backdrop-filter. The old full-screen 40px blur cost a GPU pass per frame under moving blobs. */
    .fog-veil { inset: 0; background: rgba(7,9,16,.24); }
    .fog-noise { inset: 0; opacity: .10; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px 256px; }
    #lightning-canvas { inset: 0; width: 100%; height: 100%; }
    /* Cursor lamp: the soft light the glass reflects. No grid — texture under the pointer competes with reading. */
    .lamp { inset: 0; background: radial-gradient(560px circle at var(--lx) var(--ly), rgba(143,184,255,.065), transparent 70%); mix-blend-mode: plus-lighter; }
    /* Storm badge: exists only while the easter egg runs. The person who found it gets the acknowledgment; nobody else sees a HUD. */
    .storm-badge { position: fixed; z-index: 40; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid rgba(143,184,255,.35); background: rgba(7,9,16,.7); color: var(--electric); font: 500 .66rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--ease); pointer-events: none; }
    .storm-badge.on { opacity: 1; transform: none; }

    /* ─── Liquid glass material ──────────────────────────────────── */
    .lg {
      --mx: 50%; --my: 50%; --ang: 135deg; --spec: 0;
      position: relative; isolation: isolate;
      border-radius: var(--r-xl);
      background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 38%, rgba(255,255,255,0) 60%),
        var(--glass);
      -webkit-backdrop-filter: blur(16px) saturate(1.35);
      backdrop-filter: blur(16px) saturate(1.35);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -1px 0 rgba(0,0,0,.40),
        0 30px 80px -40px rgba(0,0,0,.85);
      transition: box-shadow .35s var(--ease);
    }
    /* refractive rim: a 1px conic border whose bright edge points at the light */
    .lg::before {
      content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
      background: conic-gradient(from var(--ang) at 50% 50%,
        rgba(255,255,255,.55), rgba(143,184,255,.22) 18%, rgba(255,255,255,.05) 40%,
        rgba(143,184,255,.30) 58%, rgba(255,255,255,.06) 80%, rgba(255,255,255,.55));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
      opacity: .75;
    }
    /* specular: follows the cursor, and the lightning flash bumps it globally */
    .lg::after {
      content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
      background: radial-gradient(300px 200px at var(--mx) var(--my), rgba(255,255,255,.12), transparent 62%);
      mix-blend-mode: plus-lighter;
      opacity: calc(var(--spec) + var(--flash) * .9);
      transition: opacity .25s ease;
    }
    .lg > * { position: relative; z-index: 1; }
    .lg.deep { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 50%), var(--glass-deep); }
    .lg.tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .35s var(--ease); }

    /* hairline, on-field surfaces (readable, not operable) */
    .hl { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.012); }
    .rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

    /* ─── Header ─────────────────────────────────────────────────── */
    .site-header { position: sticky; top: 0; z-index: 30; transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease); border-bottom: 1px solid transparent; }
    .site-header.scrolled { background: rgba(7,9,16,.72); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
    .header-inner { min-height: 66px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 28px; }
    .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
    .brand img { width: 126px; height: auto; opacity: .92; filter: brightness(1.08); }
    .brand-product { color: var(--faint); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; }
    .primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
    .nav-link {
      position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
      border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none;
      font-size: .9rem; font-weight: 500; letter-spacing: -.005em; border-radius: var(--r-sm);
    }
    .nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: var(--electric); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
    .nav-link:hover { color: var(--text); }
    .nav-link[aria-current="page"] { color: var(--text); }
    .nav-link[aria-current="page"]::after, .nav-link:hover::after { transform: scaleX(1); }
    .nav-link.governance { color: #d8e8ff; }
    .nav-cta { margin-left: 8px; }
    .mobile-toggle { display: none; margin-left: auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; font-size: .85rem; }
    .proposal-chip { flex: 0 0 auto; margin-left: 6px; border: 1px solid rgba(233,192,122,.35); background: rgba(233,192,122,.08); color: #f3d59d; border-radius: var(--r-pill); padding: 6px 10px; font: 500 .62rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

    /* ─── Layout ─────────────────────────────────────────────────── */
    main { position: relative; z-index: 1; }
    .route { display: none; }
    .route.active { display: block; animation: route-in .38s var(--ease) both; }
    @keyframes route-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
    .section { padding: clamp(64px, 8.5vw, 120px) 0; }
    .section.compact { padding: clamp(44px, 6vw, 76px) 0; }
    .section-rule { border-top: 1px solid var(--line); }
    .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--electric); font: 500 .68rem/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
    .eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
    .lede { max-width: 62ch; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.55; color: var(--muted); }
    .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: 48px; align-items: end; margin-bottom: 44px; }
    .section-heading .lede { font-size: 1.02rem; }
    .fine-print { max-width: 74ch; color: var(--faint); font-size: .8rem; line-height: 1.55; }
    .route-head { padding-top: clamp(56px, 8vw, 110px); }
    .route-head .lede { margin-top: 28px; }

    /* reveal: below-the-fold content eases in; hero is visible at rest */
    .rv { opacity: 1; transform: none; }
    @supports (animation-timeline: view()) {
      @media (prefers-reduced-motion: no-preference) {
        .rv { animation: rv-in 1s var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
      }
    }
    @keyframes rv-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

    /* ─── Buttons ────────────────────────────────────────────────── */
    .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
    .button { position: relative; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; cursor: pointer; font-weight: 600; font-size: .92rem; letter-spacing: -.005em; transition: border-color .3s, background .3s, transform .3s var(--ease); }
    .button:hover { border-color: var(--line-blue); background: rgba(143,184,255,.06); }
    .button:active { transform: translateY(1px); }
    .button.primary { color: #06101f; border-color: rgba(190,215,255,.9); background: linear-gradient(180deg, #bcd6ff, #7fadf6 55%, #5f95e6); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(0,0,0,.18), 0 12px 30px -12px rgba(95,149,230,.75); }
    .button.primary:hover { background: linear-gradient(180deg, #cfe2ff, #8fb8ff 55%, #6a9fee); }
    .button.small { min-height: 40px; padding: 8px 14px; font-size: .84rem; }
    .arrow { display: inline-block; transition: transform .3s var(--ease); }
    .button:hover .arrow, .tile:hover .arrow { transform: translateX(3px); }

    /* ─── Hero ───────────────────────────────────────────────────── */
    .hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
    .hero-copy .lede { margin-top: 30px; }
    .micro-proof { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: .88rem; }
    .micro-proof li { display: inline-flex; align-items: center; gap: 9px; }
    .micro-proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 10px rgba(127,224,184,.7); }

    /* the instrument: an example governed session, typed live */
    .instrument { padding: 0; overflow: hidden; }
    .inst-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
    .inst-bar .tag { font-size: .58rem; }
    .ledger { padding: 8px 20px 0; font-variant-numeric: tabular-nums; }
    .ledger-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
    .ledger-row.in { opacity: 1; transform: none; }
    .ledger-row:last-of-type { border-bottom: 0; }
    .ledger-t { color: var(--ghost); font: 500 .7rem/1.6 var(--font-mono); }
    .ledger-l strong { display: block; font-size: .98rem; font-weight: 600; }
    .ledger-l small { display: block; margin-top: 3px; color: var(--faint); font-size: .84rem; }
    .ledger-s { color: var(--verified); font: 500 .66rem/1.8 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .35s ease .12s; }
    .ledger-row.in .ledger-s { opacity: 1; }
    .ledger-s::before { content: "○ "; }
    .ledger-row.in .ledger-s::before { content: "● "; }
    .ready-strip { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; padding: 15px 20px; background: linear-gradient(90deg, rgba(127,224,184,.10), rgba(143,184,255,.08)); border-top: 1px solid rgba(127,224,184,.25); color: #bfeedb; font: 500 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .6s ease; }
    .ready-strip.in { opacity: 1; }

    /* ─── On-field ledgers (readable groups; hairlines, no boxes) ── */
    .ledger-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .ledger-3 > * { padding: 8px 28px 8px 22px; border-left: 1px solid var(--line); min-width: 0; }
    .ledger-3 > *:first-child { padding-left: 0; border-left: 0; }
    .kicker { display: block; margin-bottom: 26px; color: var(--electric); font: 500 .66rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
    .ledger-3 h3 { margin-bottom: 10px; }
    .ledger-3 p { font-size: .95rem; }
    .ledger-3.numerals strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.04em; font-variation-settings: "opsz" 96, "wdth" 82; }
    .ledger-3.numerals strong.proof-word { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-variation-settings: "opsz" 96, "wdth" 75; letter-spacing: -.01em; }
    .ledger-3.numerals span { display: block; margin-top: 16px; color: var(--muted); font-size: .88rem; max-width: 30ch; }

    /* ─── Tags, states ───────────────────────────────────────────── */
    .tag { display: inline-flex; min-height: 26px; align-items: center; gap: 8px; border-radius: var(--r-pill); padding: 3px 10px; color: #bcd6fb; background: rgba(143,184,255,.08); border: 1px solid rgba(143,184,255,.22); font: 500 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
    .tag.future { color: #f3d59d; background: rgba(233,192,122,.08); border-color: rgba(233,192,122,.28); }
    .state { color: var(--verified); font: 500 .64rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

    /* ─── Explorer (glass instrument) ────────────────────────────── */
    .explorer { display: grid; grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr); min-width: 0; overflow: hidden; }
    .explorer-controls { padding: 24px; border-right: 1px solid var(--line); background: rgba(4,6,12,.28); }
    .control-label { display: block; margin-bottom: 12px; color: var(--faint); font: 500 .64rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
    .choice { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: var(--r-md); padding: 10px 12px; background: transparent; text-align: left; color: var(--muted); cursor: pointer; font-weight: 500; transition: color .25s, background .25s, border-color .25s; }
    .choice::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ghost); transition: background .25s, border-color .25s, box-shadow .25s; }
    .choice:hover { color: var(--text); background: rgba(255,255,255,.03); }
    .choice[aria-pressed="true"] { color: var(--text); border-color: var(--line-blue); background: rgba(143,184,255,.07); }
    .choice[aria-pressed="true"]::before { background: var(--electric); border-color: var(--electric); box-shadow: 0 0 10px var(--electric); }
    .explorer-main { min-width: 0; padding: clamp(24px, 4vw, 44px); }
    .stage-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; }
    .stage-track::before { content: ""; position: absolute; left: 12%; right: 38%; top: 13px; height: 1px; background: var(--line-2); }
    .stage-track::after { content: ""; position: absolute; left: 62%; right: 12%; top: 13px; height: 0; border-top: 1px dashed var(--ghost); }
    .stage-button { position: relative; min-width: 0; border: 0; background: none; padding: 0 4px; color: var(--muted); cursor: pointer; text-align: center; font-size: .84rem; font-weight: 500; }
    .stage-button span { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%; border: 1px solid var(--ghost); background: var(--ink); color: var(--faint); font: 500 .6rem var(--font-mono); letter-spacing: .04em; transition: border-color .25s, color .25s, box-shadow .25s; }
    .stage-button[aria-pressed="true"] { color: var(--text); }
    .stage-button[aria-pressed="true"] span { border-color: var(--electric); color: var(--text); box-shadow: 0 0 0 4px rgba(143,184,255,.12), 0 0 14px rgba(143,184,255,.5); }
    .stage-button.separate span { border-style: dashed; width: auto; padding: 0 8px; border-radius: var(--r-pill); }
    .stage-panel { min-height: 240px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr); gap: 34px; align-items: start; }
    .stage-panel h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-bottom: 14px; }
    .stage-note { padding: 18px; }
    .stage-note dl { margin: 0; }
    .stage-note div + div { margin-top: 14px; }
    .stage-note dt { color: var(--faint); font: 500 .62rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
    .stage-note dd { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
    .plain-takeaway { margin-top: 18px; color: #d8e8ff; font-weight: 600; }

    /* ─── Notice band (Foil, later) ──────────────────────────────── */
    .notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: clamp(26px, 4vw, 44px); }
    .notice h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
    .notice p { max-width: 64ch; margin-top: 14px; }

    /* ─── Planes ─────────────────────────────────────────────────── */
    .diagram-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .chip { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255,255,255,.015); color: var(--muted); cursor: pointer; font-weight: 500; font-size: .88rem; transition: color .25s, border-color .25s, background .25s; }
    .chip:hover { color: var(--text); border-color: var(--line-2); }
    .chip[aria-pressed="true"] { color: var(--text); border-color: var(--line-blue); background: rgba(143,184,255,.10); }
    .plane-stack { display: grid; gap: 34px; position: relative; }
    .plane { padding: clamp(24px, 4vw, 38px); transition: opacity .35s ease; }
    .plane-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
    .plane-label h3 { margin: 16px 0 0; }
    .plane-label p { margin: 8px 0 0; max-width: 68ch; font-size: .92rem; }
    .plane-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .plane-node { padding: 18px; min-height: 108px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(4,6,12,.32); }
    .plane-node strong { display: block; margin-bottom: 6px; }
    .plane-node small { color: var(--faint); }
    .plane-bridge { position: relative; width: 1px; height: 54px; margin: -26px auto; background: linear-gradient(var(--electric), rgba(143,184,255,.15)); z-index: 3; }
    .plane-bridge::after { content: "↓ protected distribution"; position: absolute; left: 14px; top: 18px; width: 200px; color: var(--electric); font: 500 .6rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
    .plane-bridge::before { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 14px var(--electric); animation: plane-packet 1.7s ease-in-out infinite; }
    @keyframes plane-packet { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
    .plane.dim { opacity: .28; }
    .diagram-detail { padding: 16px 18px; min-height: 76px; }
    .diagram-detail strong { display: block; margin-bottom: 5px; }
    .diagram-detail p { margin: 0; font-size: .9rem; }

    /* ─── Decision flow ──────────────────────────────────────────── */
    .decision-shell { padding: clamp(24px, 4vw, 40px); }
    .decision-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
    .decision-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; gap: 8px; }
    .flow-node { min-height: 124px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(4,6,12,.32); opacity: .38; transition: opacity .25s ease, transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease; }
    .flow-node strong { margin-bottom: 8px; }
    .flow-node small { color: var(--faint); }
    .flow-node.active { opacity: 1; transform: translateY(-4px); border-color: rgba(143,184,255,.5); box-shadow: 0 14px 34px -14px rgba(143,184,255,.35); }
    .flow-link { height: 1px; background: linear-gradient(90deg, rgba(143,184,255,.18), rgba(143,184,255,.85), rgba(143,184,255,.18)); background-size: 200% 100%; opacity: .28; }
    .flow-link.active { opacity: 1; animation: flow-pulse 1.1s linear infinite; }
    @keyframes flow-pulse { to { background-position: -200% 0; } }
    .attestation-lane { margin-top: 18px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; border: 1px dashed rgba(143,184,255,.32); border-radius: var(--r-md); background: rgba(4,6,12,.24); }
    .attestation-lane p { margin: 0; font-size: .9rem; }

    /* ─── SVG diagrams ───────────────────────────────────────────── */
    .diagram-frame { padding: clamp(18px, 3vw, 30px); }
    .diagram-scroll { overflow-x: auto; padding-bottom: 6px; }
    .flow-svg { width: 100%; min-width: 760px; height: auto; display: block; }
    .flow-svg .boundary { fill: rgba(4,6,12,.24); stroke: var(--line); stroke-width: 1; }
    .flow-svg .boundary-title { fill: var(--faint); font: 500 10px var(--font-mono); letter-spacing: 1.4px; }
    .flow-svg .svg-step { cursor: pointer; opacity: .72; transition: opacity .2s ease; }
    .flow-svg .svg-step rect { fill: rgba(14,20,34,.94); stroke: var(--line-blue); stroke-width: 1; transition: stroke .2s ease, fill .2s ease; }
    .flow-svg .svg-step text { fill: var(--text); font: 600 12px var(--font-body); pointer-events: none; }
    .flow-svg .svg-step .sub { fill: var(--faint); font: 500 9px var(--font-mono); }
    .flow-svg .svg-step:hover, .flow-svg .svg-step:focus, .flow-svg .svg-step.selected { opacity: 1; outline: none; }
    .flow-svg .svg-step.selected rect { stroke: var(--electric); stroke-width: 1.5; fill: rgba(37,66,107,.72); }
    .flow-svg .svg-step.dim { opacity: .2; }
    .flow-svg .svg-wire { fill: none; stroke: rgba(143,184,255,.5); stroke-width: 1.5; stroke-dasharray: 7 5; animation: svg-flow 1s linear infinite; }
    .flow-svg .svg-wire.return { stroke: rgba(127,224,184,.55); }
    .flow-svg .wire-label { fill: var(--faint); font: 500 9px var(--font-mono); }
    .flow-svg .packet { fill: var(--electric); filter: drop-shadow(0 0 6px rgba(143,184,255,.9)); }
    .flow-svg .packet.return { fill: var(--verified); }
    @keyframes svg-flow { to { stroke-dashoffset: -24; } }

    /* ─── Product ────────────────────────────────────────────────── */
    .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .split.product-split { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
    .feature { padding: clamp(26px, 4vw, 40px); min-width: 0; }
    .feature h3 { margin: 24px 0 14px; font-size: clamp(1.45rem, 2.6vw, 2.05rem); }
    /* ─── Values, team ───────────────────────────────────────────── */
    .values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    details.value { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.012); transition: border-color .3s; }
    details.value[open] { border-color: var(--line-2); }
    details.value summary { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
    details.value summary::-webkit-details-marker { display: none; }
    details.value summary::after { content: "+"; color: var(--electric); font-size: 1.4rem; font-weight: 300; }
    details.value[open] summary::after { content: "−"; }
    details.value p { padding: 0 20px 20px; margin: 0; }
    .team-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
    .person { display: grid; grid-template-columns: minmax(200px, .3fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: clamp(20px, 3vw, 30px) 0; border-top: 1px solid var(--line); }
    .portrait { aspect-ratio: 1 / 1.04; overflow: hidden; border-radius: var(--r-lg); background: #1a2030; }
    .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.85) contrast(1.03); transition: filter .5s ease, transform .8s var(--ease); }
    .person:hover .portrait img { filter: saturate(1) contrast(1.03); transform: scale(1.02); }
    .person-body p { font-size: .94rem; }
    .role-title { margin: 8px 0 16px; color: var(--electric); font: 500 .66rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
    .person details { margin-top: 18px; border-top: 1px solid var(--line); }
    .person summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #c9daf4; cursor: pointer; font-weight: 600; list-style: none; }
    .person summary::-webkit-details-marker { display: none; }
    .person summary::after { content: "+"; color: var(--electric); font-size: 1.25rem; font-weight: 300; }
    .person details[open] summary::after { content: "−"; }
    .profile-content { padding: 4px 0 2px; }
    .profile-section + .profile-section { margin-top: 22px; }
    .profile-section h4 { margin: 0 0 12px; }
    .career-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .career-list li { padding-left: 14px; border-left: 1px solid rgba(143,184,255,.4); }
    .career-list strong { display: block; color: #dce6f6; font-size: .86rem; }
    .career-list span { display: block; margin-top: 3px; color: var(--faint); font-size: .8rem; line-height: 1.55; }
    .credential-list { margin: 0; padding-left: 18px; color: var(--faint); font-size: .82rem; line-height: 1.6; }
    .person-quote { margin: 18px 0 0; padding: 14px 16px; border-left: 1px solid var(--verified); background: rgba(4,6,12,.26); color: var(--muted); font-size: .86rem; line-height: 1.6; font-family: var(--font-display); font-variation-settings: "opsz" 20, "wdth" 96; }
    .team-context { margin-top: 28px; padding: clamp(24px, 4vw, 38px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
    .team-context h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
    .team-context p { max-width: 72ch; margin-top: 10px; }

    /* ─── Trust ──────────────────────────────────────────────────── */
    .evidence-map { padding: clamp(24px, 4vw, 40px); }
    .explainer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); gap: 18px; align-items: start; }
    .explainer-grid h3 { margin: 0 0 8px; }
    .explainer-grid p { margin: 0; }
    .explainer-check { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(4,6,12,.28); }
    .explainer-check strong { display: block; margin-bottom: 6px; }
    .explainer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .explainer-actions a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: #c7daf7; text-decoration: none; font-weight: 600; font-size: .82rem; transition: border-color .25s; }
    .explainer-actions a:hover { border-color: var(--line-blue); }
    .explainer-actions a.raw { color: var(--faint); font-weight: 500; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
    details.technical-checks { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(4,6,12,.28); }
    details.technical-checks summary { min-height: 52px; display: flex; align-items: center; padding: 12px 16px; cursor: pointer; font-weight: 600; }
    .curl-grid { display: grid; gap: 10px; padding: 0 16px 16px; }
    .curl-grid pre { margin: 0; padding: 12px 14px; overflow: auto; border-radius: var(--r-md); background: #05080f; border: 1px solid var(--line); color: #c8d8ef; font: .74rem/1.55 var(--font-mono); }
    .tile-row { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tile { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.012); color: inherit; text-decoration: none; transition: border-color .3s, background .3s; }
    .tile:hover { border-color: var(--line-blue); background: rgba(143,184,255,.05); }
    .tile strong { display: block; }
    .tile p, .tile small { margin: 4px 0 0; color: var(--faint); font-size: .86rem; }
    .tile .arrow { color: var(--electric); font-size: 1.1rem; }


    /* ─── Nouns strip ────────────────────────────────────────────── */
    .nouns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
    .nouns-grid > div { padding: 6px 28px 6px 22px; border-left: 1px solid var(--line); }
    .nouns-grid > div:first-child { padding-left: 0; border-left: 0; }
    .nouns-grid dt { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; font-variation-settings: "opsz" 40, "wdth" 90; }
    .nouns-grid dd { margin: 8px 0 0; color: var(--muted); font-size: .95rem; max-width: 34ch; }

    /* ─── Two ways ───────────────────────────────────────────────── */
    .ways { padding: clamp(24px, 4vw, 40px); }
    .ways-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
    .ways-controls .tag { margin-left: 8px; }
    .ways-stage { min-height: 132px; display: grid; align-items: center; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(4,6,12,.28); overflow-x: auto; }
    .ways-lane { display: flex; align-items: center; gap: 14px; min-width: max-content; animation: route-in .35s var(--ease) both; }
    .ways-lane[hidden] { display: none; }
    .ways-actor { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-blue); color: #dceaff; font-weight: 600; font-size: .86rem; background: rgba(143,184,255,.08); }
    .ways-arrow { color: var(--faint); }
    .ways-actions { display: flex; gap: 10px; }
    .ways-actions > span { display: inline-flex; align-items: center; gap: 6px; }
    .ways-actions b { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: .8rem; background: rgba(255,255,255,.02); }
    .gate { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(127,224,184,.5); color: var(--verified); font: 500 .58rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(127,224,184,.08); }
    .gate.miss { border-style: dashed; border-color: rgba(233,192,122,.6); color: var(--amber); background: rgba(233,192,122,.06); font-size: .8rem; }
    .gate.once { min-width: 64px; min-height: 52px; font-size: .62rem; }
    .gate.once small { margin-top: 3px; color: var(--faint); font-size: .52rem; letter-spacing: .1em; }
    .ways-box { display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(127,224,184,.35); background: rgba(127,224,184,.04); }
    .ways-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
    .ways-rows dt { color: var(--faint); font: 500 .62rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
    .ways-rows dd { margin: 6px 0 0; color: var(--text); font-size: 1rem; }

    /* ─── Verdict machine ────────────────────────────────────────── */
    .verdict { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); overflow: hidden; }
    .verdict-files { padding: 8px clamp(18px, 3vw, 30px); border-right: 1px solid var(--line); }
    .vf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
    .vf:last-child { border-bottom: 0; }
    .vf-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .vf-name code { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; background: rgba(4,6,12,.3); }
    .seg button { min-height: 32px; padding: 4px 11px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--faint); cursor: pointer; font-size: .8rem; font-weight: 500; transition: color .2s, background .2s; }
    .seg button:hover { color: var(--text); }
    .seg button[aria-pressed="true"] { color: var(--text); background: rgba(143,184,255,.16); }
    .verdict-out { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; background: rgba(4,6,12,.22); }
    .verdict-word { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variation-settings: "opsz" 60, "wdth" 88; }
    .verdict-word.ok { color: var(--verified); }
    .verdict-word.drift { color: var(--amber); }
    .verdict-word.none { color: var(--faint); }
    .verdict-word.unknown { color: var(--electric); }
    .verdict-word.disagree { color: var(--amber); }
    .vf-report, .vf-witness { background: rgba(4,6,12,.18); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 10px; }
    .verdict-states { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
    .verdict-states li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; color: var(--faint); font-size: .86rem; transition: color .25s, border-color .25s, background .25s; }
    .verdict-states li.on { color: var(--text); border-color: var(--line-blue); background: rgba(143,184,255,.07); }
    .verdict-states small { font: 500 .56rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
    .verdict-out p { margin: 0; font-size: .92rem; }
    .verdict-findings { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
    .verdict-findings li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .84rem; color: var(--muted); }
    .verdict-findings li code { display: block; margin-bottom: 4px; color: var(--text); font-size: .74rem; }
    .verdict-findings li em { color: var(--amber); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }

    /* ─── Outcome table (every state at once) ────────────────────── */
    .table-scroll { overflow-x: auto; }
    .outcome-table { width: 100%; min-width: 640px; border-collapse: collapse; }
    .outcome-table th { text-align: left; padding: 10px 14px; color: var(--faint); font: 500 .62rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
    .outcome-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; transition: color .25s, background .25s; }
    .outcome-table td:first-child { color: var(--text); font-weight: 600; }
    .outcome-table tr { opacity: .5; transition: opacity .25s; }
    .outcome-table tr.live { opacity: 1; }
    .outcome-table tr.live td { background: rgba(143,184,255,.07); color: var(--text); }
    .outcome-table tr.live td:first-child { box-shadow: inset 2px 0 0 var(--electric); }
    .table-note { margin: 14px 0 0; color: var(--faint); font-size: .84rem; }

    /* ─── Limitations ────────────────────────────────────────────── */
    .limits { padding: clamp(24px, 4vw, 40px); }
    .limits-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
    .limits-controls .tag { margin-left: 8px; }
    .limits-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
    .limits-out > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(4,6,12,.28); }
    .limits-out > div.wide { grid-column: 1 / -1; }
    .limits-out dt { color: var(--faint); font: 500 .62rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
    .limits-out dd { margin: 8px 0 0; color: var(--text); font-size: 1.05rem; font-weight: 600; }
    .limits-out dd.ok { color: var(--verified); }
    .limits-out dd.drift { color: var(--amber); }
    .limits-out .wide dd { font-weight: 400; font-size: .95rem; color: var(--muted); }

    @media (max-width: 980px) {
      .nouns-grid { grid-template-columns: 1fr; gap: 18px; }
      .nouns-grid > div, .nouns-grid > div:first-child { padding: 0 0 0 18px; border-left: 1px solid var(--line); }
      .verdict { grid-template-columns: 1fr; }
      .verdict-files { border-right: 0; border-bottom: 1px solid var(--line); }
    }
    @media (max-width: 720px) {
      .ways-rows, .limits-out { grid-template-columns: 1fr; }
      .vf { grid-template-columns: 1fr; align-items: start; }
      .seg { flex-wrap: wrap; border-radius: var(--r-md); }
    }

    /* ─── A request, end to end: toggles → tree → stages ─────────── */
    .req { display: grid; grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr); overflow: hidden; }
    .req-controls { padding: clamp(20px, 3vw, 28px); border-right: 1px solid var(--line); background: rgba(4,6,12,.28); display: flex; flex-direction: column; gap: 10px; }
    .req-controls .seg { display: flex; flex-wrap: wrap; align-self: flex-start; }
    .req-controls .seg button { flex: 1 1 auto; text-align: center; }
    .req-note { margin: 14px 0 0; color: var(--faint); font-size: .84rem; }
    .req-tree { padding: clamp(18px, 3vw, 28px); min-width: 0; }
    .req-tree svg { width: 100%; height: auto; display: block; margin-bottom: 14px; }
    .req-tree .col-title { fill: var(--faint); font: 500 10px var(--font-mono); letter-spacing: 1.4px; }
    .req-tree .node rect { fill: rgba(14,20,34,.94); stroke: var(--line-2); stroke-width: 1; transition: stroke .25s, fill .25s; }
    .req-tree .node { transition: opacity .25s; }
    .req-tree .node text { fill: var(--text); font: 600 12px var(--font-body); }
    .req-tree .node .sub { fill: var(--faint); font: 500 9px var(--font-mono); letter-spacing: .06em; }
    .req-tree .node.dim { opacity: .32; }
    .req-tree .node.lit rect { stroke: var(--electric); stroke-width: 1.5; fill: rgba(37,66,107,.72); }
    .req-tree .node.lit.allow rect { stroke: var(--verified); fill: rgba(22,70,52,.6); }
    .req-tree .node.lit.deny rect { stroke: var(--amber); fill: rgba(84,60,20,.55); }
    .req-tree .edge { fill: none; stroke: rgba(143,184,255,.16); stroke-width: 1.5; transition: stroke .25s; }
    .req-tree .edge.lit { stroke: rgba(143,184,255,.85); stroke-dasharray: 7 5; animation: svg-flow 1s linear infinite; }
    .req-tree .packet { fill: var(--electric); filter: drop-shadow(0 0 6px rgba(143,184,255,.9)); }
    .req-stages { grid-column: 1 / -1; padding: clamp(20px, 3vw, 32px); border-top: 1px solid var(--line); }
    .req .attestation-lane { grid-column: 1 / -1; margin: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); }
    @media (max-width: 980px) { .req { grid-template-columns: 1fr; } .req-controls { border-right: 0; border-bottom: 1px solid var(--line); } }
    @media (prefers-reduced-motion: reduce) { .req-tree .edge.lit { animation: none; } .req-tree .packet { display: none; } }

    .flow-svg [data-gov-wire] { transition: opacity .25s; }
    .flow-svg [data-gov-wire].dim { opacity: .18; }

    /* ─── Company: the vision, opened up ─────────────────────────── */
    .vision { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
    .vision-statement { position: sticky; top: 92px; }
    .vision-statement h2 { max-width: 16ch; }
    .vision-note { margin-top: 18px; color: var(--faint); font-size: .88rem; }
    .vision-body { display: grid; gap: 30px; padding-top: 6px; }
    .vision-body .kicker { margin-bottom: 10px; }
    .vision-body p { margin: 0; max-width: 58ch; font-size: 1.06rem; line-height: 1.68; color: var(--muted); }
    .vision-body .tag { vertical-align: middle; margin-left: 6px; }
    .team-lead { margin-bottom: 36px; }
    .team-lead h2 { max-width: 22ch; }
    .team-lead .lede { margin-top: 14px; }
    @media (max-width: 980px) { .vision { grid-template-columns: 1fr; } .vision-statement { position: static; } }

    /* ─── Footer ─────────────────────────────────────────────────── */
    footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 34px 0 44px; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .footer-brand { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
    .footer-brand .io { color: var(--electric); }
    .footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
    .footer-nav button, .footer-nav a { min-width: 44px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; border: 0; background: none; color: var(--faint); cursor: pointer; text-decoration: none; font-size: .88rem; transition: color .25s; }
    .footer-nav button:hover, .footer-nav a:hover { color: var(--text); }
    .footer-note { margin-top: 4px; color: var(--faint); font-size: .78rem; }

    /* ─── Responsive ─────────────────────────────────────────────── */
    @media (max-width: 980px) {
      .proposal-chip, .nav-cta { display: none; }
      .mobile-toggle { display: inline-flex; align-items: center; }
      .primary-nav { position: absolute; display: none; top: calc(100% + 8px); left: 12px; right: 12px; padding: 10px; border-radius: var(--r-lg); flex-direction: column; align-items: stretch; gap: 2px; }
      .primary-nav.open { display: flex; }
      .nav-link { width: 100%; }
      .hero-grid, .section-heading, .boundary-demo, .explainer-grid { grid-template-columns: 1fr; }
      .hero h1 { max-width: 12ch; }
      .instrument { max-width: 620px; }
      .ledger-3 { grid-template-columns: 1fr; gap: 26px; }
      .ledger-3 > * { padding: 0 0 0 18px; border-left: 1px solid var(--line); }
      .ledger-3 > *:first-child { padding-left: 18px; border-left: 1px solid var(--line); }
      .kicker { margin-bottom: 14px; }
      .team-context, .notice { grid-template-columns: 1fr; }
      .explorer { grid-template-columns: 1fr; }
      .explorer-controls { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
      .explorer-controls .control-label { grid-column: 1 / -1; }
      .plane-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .decision-flow { grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; }
    }
    @media (max-width: 720px) {
      .header-inner { width: min(100% - 24px, var(--max)); min-height: 62px; }
      .brand img { width: 112px; }
      .brand-product { display: none; }
      .wrap { width: min(100% - 28px, var(--max)); }
      .section { padding: 64px 0; }
      h1 { font-size: clamp(2.5rem, 12.5vw, 4rem); }
      h2 { font-size: clamp(1.8rem, 8.5vw, 2.8rem); }
      .split, .values-grid, .tile-row, .split.product-split { grid-template-columns: 1fr; }
      .stage-track { grid-template-columns: 1fr 1fr; }
      .stage-track::before, .stage-track::after { display: none; }
      .stage-panel { grid-template-columns: 1fr; min-height: 0; }
      .explorer-controls { grid-template-columns: 1fr; }
      .explorer-controls .control-label { grid-column: auto; }
      .person { grid-template-columns: 1fr; }
      .portrait { max-width: 240px; }
      .footer-inner { align-items: flex-start; flex-direction: column; }
      .plane-nodes { grid-template-columns: 1fr; }
      .plane-bridge { display: none; }
      .decision-choices { display: grid; grid-template-columns: 1fr; }
      .decision-flow { grid-template-columns: 1fr; }
      .flow-link { width: 1px; height: 22px; margin: auto; background: linear-gradient(rgba(143,184,255,.18), var(--electric), rgba(143,184,255,.18)); }
      .attestation-lane { align-items: flex-start; flex-direction: column; }
      .lg { -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
    }
    @media (max-width: 390px) {
      .actions .button { width: 100%; }
      .ledger-row { grid-template-columns: 48px minmax(0, 1fr); }
      .ledger-row .ledger-s { grid-column: 2; }
      .ready-strip { flex-direction: column; gap: 5px; }
      .stage-track { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
      .lg.tilt { transform: none !important; }
      .fog-blob { transform: none !important; }
      #lightning-canvas, .lamp, .storm-badge { display: none; }
      .ledger-row, .ledger-s, .ready-strip { opacity: 1 !important; transform: none !important; }
    }
    @media (hover: none) {
      .lamp { display: none; }
    }
  
    /* ─── Home teaser for the thread ─────────────────────────────── */
    .thread-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 40px; align-items: center; padding: clamp(26px, 4vw, 44px); }
    .thread-teaser h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
    .thread-teaser p { max-width: 58ch; margin-top: 14px; }
    .tt-steps { list-style: none; margin: 0; padding: 0; }
    .tt-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; }
    .tt-steps li:first-child { border-top: 0; padding-top: 0; }
    .tt-steps span { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-blue); display: grid; place-items: center; color: var(--electric); font: 500 .62rem var(--font-mono); }
    @media (max-width: 980px) { .thread-teaser { grid-template-columns: 1fr; gap: 24px; } }

    /* ─── Phone menu: an opaque sheet, not glass over the hero ───── */
    @media (max-width: 980px) {
      .primary-nav { padding: 8px; gap: 0; border-radius: 20px; background: rgba(8,11,19,.97); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.08); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); }
      .primary-nav::before, .primary-nav::after { display: none; }
      .primary-nav.open { display: flex; animation: route-in .22s var(--ease) both; }
      .primary-nav .nav-link { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1.02rem; border-radius: 12px; border-top: 1px solid var(--line); }
      .primary-nav .nav-link:first-child { border-top: 0; }
      .primary-nav .nav-link::after { display: none; }
      .primary-nav .nav-link[aria-current="page"] { background: rgba(143,184,255,.08); }
      .primary-nav .nav-cta { display: inline-flex; justify-content: center; margin: 10px 4px 4px; min-height: 48px; font-size: .95rem; }
      .site-header.menu-open { background: rgba(7,9,16,.9); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
      .mobile-toggle[aria-expanded="true"] { background: rgba(143,184,255,.12); border-color: var(--line-blue); }
    }
.footer-brand { font-family: "Rubik Glitch", var(--font-display); font-weight: 400; letter-spacing: 0; }
.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; }
.brand, .brand:hover { text-decoration:none; }
