  :root,
  [data-theme="ink"] {
    --bg:        #0a0b0d;
    --bg-2:      #101216;
    --bg-3:      #14171c;
    --panel:     #0e1014;
    --fg:        #e7e9ec;
    --fg-2:      #9aa1ac;
    --fg-mute:   #6a7180;
    --fg-faint:  #3d434d;
    --rule:      rgba(255,255,255,0.07);
    --rule-2:    rgba(255,255,255,0.14);
    --grid:      rgba(255,255,255,0.022);
    --hi:        #f5f7fa;
  }
  [data-theme="paper"] {
    --bg:        #f4f3ee;
    --bg-2:      #ecebe4;
    --bg-3:      #e3e2da;
    --panel:     #f7f6f1;
    --fg:        #0c0d10;
    --fg-2:      #4a4f59;
    --fg-mute:   #7c8290;
    --fg-faint:  #bdc1c8;
    --rule:      rgba(12,13,16,0.10);
    --rule-2:    rgba(12,13,16,0.20);
    --grid:      rgba(12,13,16,0.045);
    --hi:        #0c0d10;
  }
  [data-accent="cyan"]   { --accent: #38bdf8; --warn: #facc15; --crit: #f87171; --ok: #34d399; }
  [data-accent="signal"] { --accent: #f97316; --warn: #facc15; --crit: #f87171; --ok: #34d399; }
  [data-accent="lime"]   { --accent: #a3e635; --warn: #facc15; --crit: #f87171; --ok: #34d399; }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { background: var(--bg); }
  body {
    font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'cv11';
  }
  .mono { font-family: 'Geist Mono', monospace; }
  .lbl { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute); font-weight: 500; }

  ::selection { background: var(--accent); color: #000; }

  .grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      linear-gradient(to right, var(--grid) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
  }

  /* ── nav ─────────────────────────────────────────── */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--rule);
  }
  .nav-in {
    max-width: 1320px; margin: 0 auto;
    padding: 14px 28px;
    display: grid; grid-template-columns: auto 1fr auto; gap: 32px;
    align-items: center;
  }
  .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
  .logo-mark {
    font-family: 'Geist', sans-serif;
    font-weight: 500; font-size: 18px; letter-spacing: -0.03em;
    color: var(--fg);
  }
  .logo-mark em { font-style: normal; color: var(--accent); }
  .logo-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--fg-mute);
    border-left: 1px solid var(--rule-2);
    padding-left: 12px;
  }
  .nav-links { display: flex; gap: 4px; justify-content: center; }
  .nav-link {
    font-family: 'Geist Mono', monospace;
    font-size: 12px; letter-spacing: 0.04em; color: var(--fg-2);
    text-decoration: none; padding: 8px 12px; border-radius: 6px;
  }
  .nav-link:hover { color: var(--fg); background: var(--rule); }
  .nav-link .n { color: var(--fg-mute); margin-right: 6px; }
  .nav-cta {
    font-family: 'Geist Mono', monospace; font-size: 12px;
    color: var(--accent); text-decoration: none;
    padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px;
  }
  .nav-cta:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }

  /* ── hero ────────────────────────────────────────── */
  .shell { max-width: 1320px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

  .hero {
    padding: 0;
    border-bottom: 1px solid var(--rule);
    position: relative;
    min-height: calc(100vh - 56px);
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    overflow: hidden;
  }

  /* ambient scanning line */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 80% 30%,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 50%
    );
    pointer-events: none;
    opacity: 0.6;
  }
  .hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.35;
    animation: hero-scan 7s linear infinite;
    pointer-events: none;
  }
  @keyframes hero-scan {
    0%   { top: 8%;  opacity: 0; }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.4; }
    100% { top: 92%; opacity: 0; }
  }

  /* status strip */
  .hero-status {
    display: flex; align-items: center;
    gap: 0;
    padding: 0;
    margin-top: 20px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-mute);
    position: relative;
    z-index: 2;
  }
  .hero-status > span {
    padding: 12px 18px;
    border-right: 1px solid var(--rule);
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
  }
  .hero-status > span:first-child { padding-left: 0; }
  .hero-status > span:last-child { border-right: 0; margin-left: auto; padding-right: 0; }
  .hero-status .live { color: var(--fg-2); }
  .hero-status .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: hero-pulse 2.2s ease-in-out infinite;
  }
  .hero-status b { color: var(--fg); font-weight: 500; }
  @keyframes hero-pulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
  }

  /* main */
  .hero-body {
    align-self: center;
    padding: 56px 0;
    position: relative;
    z-index: 2;
    max-width: 1100px;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Geist Mono', monospace;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--fg-mute);
    margin-bottom: 36px;
  }
  .hero-eyebrow::before {
    content: ""; width: 24px; height: 1px; background: var(--accent);
  }

  

  /* footer */
  .hero-foot {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 18px 0 24px;
    border-top: 1px solid var(--rule);
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px; letter-spacing: 0.06em;
    color: var(--fg-mute);
    position: relative;
    z-index: 2;
  }
  .hero-foot a {
    color: var(--fg); text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: color .2s;
  }
  .hero-foot a:hover { color: var(--accent); }
  .hero-foot a .arr { transition: transform .2s; }
  .hero-foot a:hover .arr { transform: translateX(4px); }
  .hero-foot .right { display: flex; gap: 28px; align-items: baseline; }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Geist Mono', monospace;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fg-mute); margin-bottom: 28px;
  }
  .hero-tag::before {
    content: ""; width: 24px; height: 1px; background: var(--accent);
  }
  .hero-tag b { color: var(--fg); font-weight: 500; }

  h1.headline {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 7.4vw, 104px);
    line-height: 1.0;
    letter-spacing: -0.045em;
    color: var(--fg);
    margin: 0;
    max-width: 17ch;
    text-wrap: balance;
  }
  h1.headline .hl-thin {
    font-weight: 300;
    color: var(--fg-2);
  }
  h1.headline .accent {
    color: var(--accent);
    font-weight: 500;
  }
  h1.headline em {
    font-style: normal;
    color: var(--fg);
  }
  h1.headline .accent { color: var(--accent); }
  h1.headline .mute { color: var(--fg-mute); }

  .lede {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.55;
    color: var(--fg-2);
    max-width: 54ch;
    margin: 44px 0 0;
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    letter-spacing: -0.005em;
  }
  .lede b { color: var(--fg); font-weight: 500; }
  .lede b { color: var(--fg); font-weight: 500; }

  .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
  .btn {
    font-family: 'Geist Mono', monospace;
    font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 13px 18px;
    border-radius: 8px;
    transition: background .15s, border-color .15s, color .15s;
    border: 1px solid transparent;
  }
  .btn-primary { background: var(--fg); color: var(--bg); }
  .btn-primary:hover { background: var(--accent); color: #000; }
  .btn-ghost { color: var(--fg); border-color: var(--rule-2); }
  .btn-ghost:hover { border-color: var(--fg-mute); background: var(--rule); }

  /* hero-side: terminal */
  .terminal {
    background: var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Geist Mono', monospace;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  }

  /* hero-side: SCOPE — agentic search visualization */
  .scope {
    position: relative;
    background:
      radial-gradient(ellipse at 75% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%),
      var(--panel);
    border: 1px solid var(--rule-2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
    aspect-ratio: 5 / 4.4;
    display: flex; flex-direction: column;
  }
  .scope::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(
      to bottom, transparent 0, transparent 3px,
      color-mix(in srgb, var(--fg) 4%, transparent) 3px,
      color-mix(in srgb, var(--fg) 4%, transparent) 4px);
    opacity: 0.5;
    mix-blend-mode: overlay;
  }
  .hud-c {
    position: absolute; width: 12px; height: 12px;
    border: 1px solid var(--accent);
    pointer-events: none;
    opacity: 0.7;
  }
  .hud-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
  .hud-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
  .hud-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
  .hud-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

  .scope-hd {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 22px; flex: 0 0 auto;
    border-bottom: 1px solid var(--rule);
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fg-mute);
    z-index: 2;
  }
  .scope-id { color: var(--fg); font-weight: 500; letter-spacing: 0.18em; }
  .scope-id em { font-style: normal; color: var(--accent); margin: 0 4px; }
  .scope-meta { color: var(--fg-mute); }
  .scope-live {
    margin-left: auto;
    color: var(--accent);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .scope-live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease-out infinite;
  }

  .scope-viz {
    flex: 1 1 auto; position: relative; min-height: 0;
  }
  .scope-viz svg {
    width: 100%; height: 100%; display: block;
    font-family: 'Geist Mono', monospace;
  }

  /* COMPARISON viz */
  .cmp-eyebrow { font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: 0.22em; fill: var(--accent); font-weight: 600; }
  .cmp-eyebrow-mute { fill: var(--fg-mute); }
  .cmp-title { font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 600; fill: var(--fg); letter-spacing: -0.01em; }
  .cmp-title-mute { fill: var(--fg-2); }
  .cmp-sub { font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: 0.16em; fill: var(--fg-mute); }
  .cmp-sub-warn { fill: var(--crit); }
  .cmp-sub-ok   { fill: var(--ok); }
  .cmp-divide { stroke: var(--rule-2); stroke-width: 0.5; stroke-dasharray: 3 4; }
  .cmp-vs { font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: 0.18em; fill: var(--fg-mute); }

  .cmp-file-bg { fill: var(--bg-2); stroke: var(--rule-2); stroke-width: 0.6; }
  .cmp-file-hd { fill: color-mix(in srgb, var(--fg) 8%, var(--bg-2)); }
  .cmp-file-hd-on { fill: color-mix(in srgb, var(--accent) 18%, var(--bg-2)); }
  .cmp-file-name { font-family: 'Geist Mono', monospace; font-size: 7px; fill: var(--fg); letter-spacing: 0.06em; }
  .cmp-file-lines rect { fill: var(--fg-mute); opacity: 0.45; rx: 0.5; }

  .cmp-arrow-one line { stroke: var(--fg-mute); stroke-width: 0.7; }
  .cmp-arrow-one polygon { fill: var(--fg-mute); }
  .cmp-arrow-tag { font-family: 'Geist Mono', monospace; font-size: 7px; fill: var(--fg-mute); letter-spacing: 0.12em; }
  .cmp-arrow-tag-mute { opacity: 0.7; }

  .cmp-out-bg { fill: var(--bg-2); stroke: var(--rule-2); stroke-width: 0.6; }
  .cmp-out-bg-on { stroke: var(--accent); stroke-width: 0.8; }
  .cmp-out-hd { font-family: 'Geist Mono', monospace; font-size: 7px; fill: var(--fg); letter-spacing: 0.18em; font-weight: 600; }
  .cmp-out-hd-mute { fill: var(--crit); }
  .cmp-out-hd-on { fill: var(--ok); }

  .cmp-dot-ok { fill: var(--ok); rx: 1; }
  .cmp-dot-miss { fill: var(--crit); rx: 1; opacity: 0.85; }
  .cmp-dot-unk { fill: none; stroke: var(--fg-mute); stroke-width: 0.6; rx: 1; stroke-dasharray: 1 1; }
  .cmp-row { fill: var(--fg-2); rx: 0.5; }
  .cmp-row-dash { fill: none; stroke: var(--crit); stroke-width: 0.6; stroke-dasharray: 2 2; opacity: 0.7; }
  .cmp-row-miss .cmp-row-dash { stroke: var(--crit); }
  .cmp-row-tag { font-family: 'Geist Mono', monospace; font-size: 5.5px; letter-spacing: 0.16em; font-weight: 600; }
  .cmp-row-tag-ok { fill: var(--ok); }
  .cmp-row-tag-miss { fill: var(--crit); }
  .cmp-row-tag-mute { fill: var(--fg-mute); }

  .cmp-stat-warn { font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: 0.16em; fill: var(--crit); font-weight: 600; }
  .cmp-stat-ok { font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: 0.16em; fill: var(--ok); font-weight: 600; }

  .cmp-fan line { stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 0.5; }
  .cmp-funnel-fill { fill: url(#funnel); }
  .cmp-funnel { fill: none; stroke: var(--accent); stroke-width: 0.7; stroke-opacity: 0.7; }
  .cmp-fan-tag { font-family: 'Geist Mono', monospace; font-size: 7px; fill: var(--fg-mute); letter-spacing: 0.14em; }
  .cmp-funnel-tag { font-family: 'Geist Mono', monospace; font-size: 6.5px; fill: var(--accent); letter-spacing: 0.18em; font-weight: 600; }
  .cmp-funnel-tag-mute { fill: var(--fg-mute); font-weight: 400; letter-spacing: 0.10em; }
  .cmp-pulse circle { fill: var(--accent); filter: drop-shadow(0 0 3px var(--accent)); }

  .cmp-check { fill: none; stroke: var(--ok); stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; }

  /* ECLIPSE hero viz */
  .scope-viz-eclipse svg { overflow: visible; }
  .ec-sweep {
    transform-origin: 360px 360px;
    animation: ec-rotate 14s linear infinite;
  }
  .ec-sweep circle {
    filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px var(--accent));
  }
  @keyframes ec-rotate {
    to { transform: rotate(360deg); }
  }

  .scope-ft .warn b { color: var(--crit); }
  .sc-col text { font-family: 'Geist Mono', monospace; }
  .sc-col-rule line { stroke: var(--rule); stroke-width: 0.5; stroke-dasharray: 2 4; }

  /* INPUT graph */
  .sc-frame-det { fill: none; stroke: var(--rule); stroke-width: 0.5; stroke-dasharray: 3 3; rx: 4; }
  .sc-corner-tag { font-size: 6.5px; letter-spacing: 0.18em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }
  .sc-graph-edges line { stroke: var(--fg-mute); stroke-opacity: 0.35; stroke-width: 0.5; }
  .sc-graph-nodes rect { stroke: none; rx: 1; }
  .sc-r-low { fill: color-mix(in srgb, var(--fg-mute) 60%, transparent); }
  .sc-r-mid { fill: color-mix(in srgb, var(--accent) 55%, var(--fg-mute)); }
  .sc-r-hi  { fill: var(--accent); filter: drop-shadow(0 0 3px var(--accent)); }
  .sc-select { fill: none; stroke: var(--accent); stroke-width: 0.7; stroke-dasharray: 2 2; rx: 2; opacity: 0.7; }

  /* pipes & arrows */
  .sc-pipe line { stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 0.7; }
  .sc-arrow { fill: var(--accent); }
  .sc-arrow-s { fill: var(--accent); opacity: 0.7; }
  .sc-pipe-tag { font-size: 6.5px; letter-spacing: 0.16em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }

  /* ORCHESTRATOR */
  .sc-orch-shell-o { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 0.7; stroke-dasharray: 3 3; }
  .sc-orch-shell { fill: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); stroke: var(--accent); stroke-width: 0.9; }
  .sc-orch-pulse {
    fill: none; stroke: var(--accent); stroke-width: 0.6;
    transform-origin: 260px 205px;
    animation: scope-orch 3.2s ease-out infinite;
  }
  @keyframes scope-orch {
    0%   { transform: scale(0.92); opacity: 0.55; }
    100% { transform: scale(1.18); opacity: 0; }
  }
  .sc-orch-name { font-size: 8px; letter-spacing: 0.22em; font-weight: 600; fill: var(--fg); font-family: 'Geist Mono', monospace; }
  .sc-orch-sub  { font-size: 7px; letter-spacing: 0.16em; fill: var(--accent); font-family: 'Geist Mono', monospace; }
  .sc-orch-meta { font-size: 6.5px; letter-spacing: 0.10em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }

  /* fan from orchestrator */
  .sc-fan line { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 0.6; }

  /* SUBAGENTS */
  .sc-worker { fill: var(--bg-2); stroke: var(--accent); stroke-width: 0.7; rx: 2; opacity: 0.95; }
  .sc-worker-mini { fill: var(--accent); opacity: 0.5; rx: 0.5; }
  .sc-w-name { font-size: 7px; letter-spacing: 0.18em; fill: var(--fg); font-family: 'Geist Mono', monospace; font-weight: 600; }
  .sc-w-meta { font-size: 6.5px; letter-spacing: 0.10em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }
  .sc-packet { fill: color-mix(in srgb, var(--accent) 70%, transparent); rx: 1; }
  .sc-dep { stroke: var(--fg-mute); stroke-width: 0.5; stroke-dasharray: 2 2; opacity: 0.6; }

  /* merge into verification */
  .sc-merge line { stroke: var(--rule-2); stroke-width: 0.5; }
  .sc-cands circle { fill: var(--accent); filter: drop-shadow(0 0 3px var(--accent)); }

  /* GATES */
  .sc-gate { fill: color-mix(in srgb, var(--accent) 6%, var(--bg-2)); stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 0.6; rx: 1; }
  .sc-gate-line { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 0.5; }
  .sc-gate-num { font-size: 6px; letter-spacing: 0.16em; fill: var(--accent); font-family: 'Geist Mono', monospace; font-weight: 600; }
  .sc-gate-name { font-size: 6.5px; letter-spacing: 0.18em; fill: var(--fg); font-family: 'Geist Mono', monospace; font-weight: 600; }
  .sc-gate-meta { font-size: 5.5px; letter-spacing: 0.08em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }
  .sc-gate-rej  { font-size: 6.5px; letter-spacing: 0.06em; fill: var(--crit); font-family: 'Geist Mono', monospace; font-weight: 600; }
  .sc-discard circle { fill: var(--fg-mute); opacity: 0.55; }

  /* OUTPUT */
  .sc-out-frame { fill: none; stroke: var(--accent); stroke-width: 0.8; rx: 3; }
  .sc-finding { fill: var(--accent); rx: 0.5; }
  .sc-finding-meta { fill: var(--fg-mute); rx: 0.5; }
  .sc-out-tag { font-size: 9px; letter-spacing: 0.10em; fill: var(--fg); font-family: 'Geist', sans-serif; font-weight: 600; }

  /* LOOP */
  .sc-loop path { stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 0.6; stroke-dasharray: 3 3; }
  .sc-loop-tag { font-size: 7px; letter-spacing: 0.20em; fill: var(--fg-mute); font-family: 'Geist Mono', monospace; }

  /* deterministic shell brackets */
  .sc-shell path { fill: none; stroke: var(--accent); stroke-opacity: 0.45; stroke-width: 0.7; }
  .sc-shell-tag { font-size: 6.5px; letter-spacing: 0.22em; fill: var(--accent); font-family: 'Geist Mono', monospace; font-weight: 600; }

  /* legacy keep-around (still used by halo gradient ref) */
  .sc-ring { fill: none; stroke: var(--accent); stroke-opacity: 0.18; stroke-width: 0.6; stroke-dasharray: 2 4; }
  .sc-pulse {
    fill: none; stroke: var(--accent); stroke-width: 0.8;
    transform-origin: 285px 160px;
    animation: scope-ring 3.6s ease-out infinite;
  }
  @keyframes scope-ring {
    0%   { transform: scale(0.55); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0; }
  }
  .sc-axis { stroke: var(--accent); stroke-opacity: 0.12; stroke-width: 0.5; stroke-dasharray: 1 3; }

  .sc-tn { fill: var(--fg-mute); }
  .sc-hit { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
  .sc-hit-ring {
    fill: none; stroke: var(--accent); stroke-width: 0.8;
    transform-origin: 311px 144px;
    animation: scope-hit 1.8s ease-out infinite;
  }
  @keyframes scope-hit {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
  }

  .sc-agent { fill: var(--fg-2); }
  .sc-agent-hot { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
  .sc-tag { fill: var(--fg-mute); font-size: 7.5px; letter-spacing: 0.12em; text-anchor: end; }
  .sc-tag-hot { fill: var(--accent); }

  .sc-hyp circle { fill: var(--fg-mute); opacity: 0.7; }
  .sc-hyp .sc-h-act { fill: var(--accent); opacity: 1; }

  .sc-edges line { stroke: var(--rule-2); stroke-width: 0.5; }
  .sc-edge-hot { stroke: var(--accent) !important; stroke-opacity: 0.55; stroke-width: 0.7 !important; }
  .sc-edge-hit { stroke: var(--accent) !important; stroke-opacity: 0.9; stroke-width: 1 !important; }

  .sc-probe { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
  .sc-probe-faint { opacity: 0.55; }

  .sc-cross line { stroke: var(--accent); stroke-width: 1; }

  .sc-leader { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 0.5; stroke-dasharray: 2 2; }
  .sc-label { font-size: 7.5px; letter-spacing: 0.18em; fill: var(--fg); font-weight: 500; }
  .sc-label-mute { fill: var(--fg-mute); }
  .sc-label-hit { fill: var(--accent); }
  .sc-sublabel { font-size: 6.5px; letter-spacing: 0.10em; fill: var(--fg-mute); }

  .scope-ft {
    display: flex; align-items: center; gap: 22px;
    padding: 12px 22px; flex: 0 0 auto;
    border-top: 1px solid var(--rule);
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--fg-mute);
    z-index: 2;
  }
  .scope-ft b { color: var(--fg); font-weight: 500; margin-right: 4px; font-variant-numeric: tabular-nums; }
  .scope-ft .hot b { color: var(--accent); }
  .scope-ft .r { margin-left: auto; }
  .term-hd {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg-2);
    font-size: 11px; color: var(--fg-mute);
  }
  .term-hd .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2);
  }
  .term-hd .ttl b { color: var(--fg); font-weight: 500; }
  .term-hd .live {
    margin-left: auto;
    color: var(--accent); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .term-hd .live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent);
    animation: pulse 2s ease-out infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
  .term-body {
    padding: 16px 18px;
    font-size: 12px; line-height: 1.85;
    color: var(--fg-2);
  }
  .term-body .pr { color: var(--accent); user-select: none; }
  .term-body .ok { color: var(--ok); }
  .term-body .warn { color: var(--warn); }
  .term-body .crit { color: var(--crit); }
  .term-body .k { color: var(--fg); }
  .term-body .c { color: var(--fg-mute); }

  .cursor::after {
    content: "▌"; color: var(--accent); animation: blink 1.1s steps(2) infinite;
    margin-left: 2px;
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* ── stat strip ──────────────────────────────────── */
  .strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
  }
  .strip-cell {
    padding: 28px 28px 28px 0;
    border-right: 1px solid var(--rule);
  }
  .strip-cell:last-child { border-right: 0; }
  .strip-num {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
    display: flex; align-items: baseline; gap: 6px;
  }
  .strip-num em { font-style: normal; color: var(--accent); }
  .strip-num sup {
    font-family: 'Geist Mono', monospace;
    font-size: 12px; color: var(--fg-mute); letter-spacing: 0.08em;
  }
  .strip-label { margin-top: 10px; }

  /* ── section primitives ──────────────────────────── */
  section.row {
    padding: 72px 0;
    border-bottom: 1px solid var(--rule);
  }
  .sec-hd {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 28px; align-items: baseline;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .sec-hd .num {
    font-family: 'Geist Mono', monospace;
    font-size: 11px; letter-spacing: 0.18em; color: var(--fg-mute);
  }
  .sec-hd h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: clamp(22px, 2.2vw, 30px);
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0;
  }
  .sec-hd h2 em { font-style: normal; color: var(--fg-mute); }
  .sec-hd .meta {
    font-family: 'Geist Mono', monospace;
    font-size: 11px; color: var(--fg-mute);
  }

  /* ── system / engine schematic ───────────────────── */
  /* about / manifesto */
  .about-body {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 56px;
  }
  .about-body > p { grid-column: 2; max-width: 64ch; margin: 0; }
  .manifesto {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.018em;
    color: var(--fg);
    margin: 0 0 24px !important;
  }
  .manifesto em { font-style: italic; color: var(--accent); }
  .manifesto-sub { font-size: 16px; line-height: 1.65; color: var(--fg-2); }

  .engine {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 28px;
    align-items: start;
  }
  .engine-spec {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
  }
  .stage {
    padding: 24px 22px 26px;
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 12px;
    position: relative;
    transition: background .2s;
  }
  .stage:last-child { border-right: 0; }
  .stage:hover { background: var(--bg-2); }
  .stage-num {
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.16em; color: var(--fg-mute);
    display: flex; align-items: center; gap: 8px;
  }
  .stage-num b { color: var(--accent); font-weight: 600; }
  .stage-name {
    font-family: 'Geist', sans-serif;
    font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
    color: var(--fg);
  }
  .stage-desc {
    font-size: 13.5px; color: var(--fg-2); line-height: 1.55; margin: 0;
  }
  .stage-list {
    margin-top: 6px; padding: 0; list-style: none;
    font-family: 'Geist Mono', monospace;
    font-size: 11px; color: var(--fg-mute); line-height: 1.7;
  }
  .stage-list li::before { content: "› "; color: var(--accent); }
  .stage::after {
    content: "→";
    position: absolute; right: -8px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    background: var(--bg);
    color: var(--fg-mute);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    z-index: 1;
  }
  .stage:last-child::after { display: none; }

  /* ── findings table ──────────────────────────────── */
  .findings {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Geist Mono', monospace;
    font-size: 12.5px;
  }
  .findings thead th {
    text-align: left;
    font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--fg-mute);
    font-weight: 500;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-2);
  }
  .findings tbody td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--rule);
    color: var(--fg-2);
    vertical-align: top;
  }
  .findings tbody tr:hover td { background: var(--rule); }
  .findings .id { color: var(--fg-mute); }
  .findings .target { color: var(--fg); font-weight: 500; }
  .findings .title { color: var(--fg); }
  .findings .title small { display: block; color: var(--fg-mute); font-size: 11px; margin-top: 4px; font-family: 'Geist', sans-serif; letter-spacing: 0; }
  .sev {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
    padding: 3px 8px; border-radius: 4px;
  }
  .sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
  .sev.high { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }
  .sev.high::before { background: var(--crit); }
  .sev.low { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
  .sev.low::before { background: var(--ok); }
  .status {
    color: var(--ok); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  }

  /* ── case (Firedancer) ───────────────────────────── */
  .case {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
  .case-meta {
    margin: 0 0 24px; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
  }
  .case-meta .row {
    padding: 12px 16px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: flex; flex-direction: column; gap: 4px;
    background: var(--panel);
  }
  .case-meta .row:nth-child(2n) { border-right: 0; }
  .case-meta .row:nth-last-child(-n+2) { border-bottom: 0; }
  .case-meta dt {
    font-family: 'Geist Mono', monospace;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--fg-mute);
  }
  .case-meta dd {
    margin: 0; font-family: 'Geist Mono', monospace;
    font-size: 13px; color: var(--fg);
  }
  .case-meta dd em { font-style: normal; color: var(--accent); }

  .case-text h3 {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 6px;
    color: var(--fg);
  }
  .case-text h3 em { font-style: normal; color: var(--accent); }
  .case-text .sub {
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px; color: var(--fg-mute); letter-spacing: 0.04em;
    margin: 0 0 28px;
  }
  .case-text p {
    font-size: 15px; color: var(--fg-2); line-height: 1.7; margin: 0 0 18px;
    max-width: 60ch;
  }
  .case-text p b { color: var(--fg); font-weight: 500; }

  .proof {
    display: block; text-decoration: none;
    border: 1px solid var(--rule-2);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, transform .25s;
  }
  .proof:hover { border-color: var(--accent); transform: translateY(-2px); }
  .proof img { display: block; width: 100%; height: auto; }
  .proof-cap {
    background: var(--bg-2);
    color: var(--fg-mute);
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 12px 16px;
    border-top: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: center;
  }
  .proof-cap b { color: var(--fg); font-weight: 500; }
  .proof-cap .ok { color: var(--ok); }

  /* trust strip — proved on (pinned top) */
  .trust {
    border-top: 1px solid var(--rule);
    background: transparent;
    position: relative;
    z-index: 2;
  }
  .trust-in {
    max-width: 1320px; margin: 0 auto;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
  }
  .trust-lbl {
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--fg-mute);
    display: flex; align-items: center; gap: 12px;
  }
  .trust-lbl::before {
    content: ""; width: 22px; height: 1px; background: var(--accent);
  }
  .trust-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: clamp(36px, 5.5vw, 72px);
  }
  @media (max-width: 720px) {
    .trust-in { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
    .trust-row { gap: 32px; }
  }


  /* proved on */
  .proved {
    display: grid;
    grid-template-columns: 60px 200px 1fr;
    gap: 28px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--rule);
  }
  .protocols {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: clamp(28px, 4.5vw, 56px);
  }
  .protocol-logo {
    height: 30px; width: auto;
    opacity: 0.55;
    filter: grayscale(1) invert(0.92);
    transition: opacity .25s, filter .25s, transform .25s;
  }
  [data-theme="paper"] .protocol-logo { filter: grayscale(1); }
  .protocol-logo:hover { opacity: 1; filter: grayscale(0) invert(0); transform: translateY(-1px); }

  /* ── publications ────────────────────────────────── */
  .pub {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--rule);
  }
  .pub a {
    display: grid;
    grid-template-columns: 100px 1fr 180px 28px;
    gap: 24px; align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: var(--fg-2);
    transition: color .2s, padding .2s;
  }
  .pub a:hover { color: var(--fg); padding-left: 8px; padding-right: -8px; }
  .pub a:hover .arr { transform: translateX(4px); color: var(--accent); }
  .pub .date {
    font-family: 'Geist Mono', monospace;
    font-size: 11px; color: var(--fg-mute); letter-spacing: 0.06em;
  }
  .pub .ttl {
    font-family: 'Geist', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
    color: var(--fg);
  }
  .pub .ttl small {
    display: block; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--fg-mute); margin-top: 4px;
    letter-spacing: 0.04em; font-weight: 400;
  }
  .pub .tag {
    font-family: 'Geist Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-mute);
    text-align: right;
  }
  .pub .arr {
    color: var(--fg-mute); font-family: 'Geist', sans-serif; font-size: 18px;
    transition: transform .25s, color .25s; text-align: right;
  }

  /* ── founder ─────────────────────────────────────── */
  .founder {
    display: flex; align-items: center; gap: 16px;
    margin-top: 28px;
  }
  .founder-label {
    font-family: 'Geist Mono', monospace;
    font-size: 11.5px; letter-spacing: 0.06em;
    color: var(--fg-mute);
  }
  .founder-label b { color: var(--fg); font-weight: 500; }
  .linkedin-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Geist Mono', monospace;
    font-size: 11px; letter-spacing: 0.04em;
    color: var(--fg-2);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--rule-2);
    border-radius: 6px;
    transition: border-color .2s, color .2s, background .15s;
  }
  .linkedin-btn:hover { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
  .linkedin-btn svg { width: 14px; height: 14px; fill: currentColor; }

  /* ── footer ──────────────────────────────────────── */
  .foot {
    background: var(--bg-2);
    border-top: 1px solid var(--rule);
  }
  .foot-in {
    max-width: 1320px; margin: 0 auto;
    padding: 36px 28px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
    align-items: center;
    font-family: 'Geist Mono', monospace;
    font-size: 11px; color: var(--fg-mute); letter-spacing: 0.08em;
  }
  .foot a { color: inherit; text-decoration: none; }
  .foot a:hover { color: var(--accent); }
  .foot .center { text-align: center; color: var(--fg); font-weight: 500; }
  .foot .right { text-align: right; }

  /* ── responsive ──────────────────────────────────── */
  @media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; gap: 48px; }
    .case { grid-template-columns: 1fr; gap: 36px; }
    .engine-spec { grid-template-columns: 1fr 1fr; }
    .stage { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
    .stage:nth-child(2n) { border-right: 0; }
    .stage:nth-last-child(-n+2) { border-bottom: 0; }
    .stage::after { display: none; }
    .strip { grid-template-columns: 1fr 1fr; }
    .strip-cell:nth-child(2n) { border-right: 0; }
  }
  @media (max-width: 720px) {
    .nav-in { grid-template-columns: 1fr auto; gap: 16px; padding: 12px 18px; }
    .nav-links { display: none; }
    .shell { padding: 0 18px; }
    .hero { min-height: auto; grid-template-rows: auto auto auto; }
    .hero-status { flex-wrap: wrap; }
    .hero-status > span { font-size: 9.5px; padding: 10px 12px; }
    .hero-body { padding: 36px 0; }
    h1.headline { font-size: clamp(32px, 8vw, 48px); max-width: 100%; }
    .lede { font-size: 15px; margin-top: 24px; }
    .founder { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; }
    .founder-label { font-size: 11px; }
    .sec-hd { grid-template-columns: 40px 1fr; gap: 14px; }
    .sec-hd .meta { display: none; }
    .engine { grid-template-columns: 1fr; gap: 16px; }
    .engine-spec { grid-template-columns: 1fr; }
    .stage { border-right: 0; }
    .strip { grid-template-columns: 1fr; }
    .strip-cell { border-right: 0; padding: 22px 0; }
    .case-meta { grid-template-columns: 1fr; }
    .case-meta .row { border-right: 0; }
    .proved { grid-template-columns: 1fr; gap: 12px; }
    .pub a { grid-template-columns: 1fr 28px; gap: 8px; }
    .pub .date, .pub .tag { display: none; }
    .foot-in { grid-template-columns: 1fr; gap: 12px; text-align: left; }
    .foot .center, .foot .right { text-align: left; }
    .findings .id { display: none; }
  }
