/* Layout: one dark column, 1120px max, each section a full "slide" of air; amber = a live tile, blue/orange = chart series. */
:root {
  color-scheme: dark;
  --bg:      #0a0d13;   /* silicon black, blue bias */
  --bg-2:    #10151e;   /* raised surface */
  --line:    #222a38;
  --fg:      #e9edf3;
  --muted:   #8b95a7;
  --accent:  #f2b43a;   /* live tile amber */
  --accent-dim: #6b4f14;
  --s1:      #3987e5;   /* series 1 blue (A4 native) */
  --s2:      #d95926;   /* series 2 orange (A4 fp32) */
  --s3:      #6b7280;   /* reference baseline, neutral */
  --sil:     #3987e5;   /* status: in silicon */
  --rtl:     #199e70;   /* status: validated RTL */
  --des:     #3a4356;   /* status: in design */
  --disp:    "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; max-width: 24ch; }
h3.sub-h { font-size: 1.25rem; margin: 3rem 0 1rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: var(--accent); }
b { font-weight: 600; }
.eyebrow { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.small { font-size: 0.86rem; color: var(--muted); max-width: 80ch; }
.lede { font-size: 1.15rem; color: #c5ccd8; max-width: 60ch; }
.btn { font: 600 0.95rem var(--body); background: var(--accent); color: #140f03; border: 0; border-radius: 4px; padding: 0.8rem 1.4rem; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; }
.gate-card { width: min(440px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 2rem; display: grid; gap: 0.6rem; }
.gate-title { font-size: 4rem; line-height: 1; font-weight: 800; }
.gate-sub { color: var(--muted); font-size: 0.95rem; }
.gate-card label { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.gate-card input[type=text], .gate-card input[type=password] { font: 1rem var(--body); background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0.7rem 0.8rem; }
.gate-card .check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; margin: 0.4rem 0 0.8rem; }
.gate-err { color: #e66767; font-size: 0.85rem; margin: 0; }

/* frame */
.brief { padding-inline: 16px; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0; margin-inline: -16px; padding-inline: 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.brand { font-family: var(--disp); font-weight: 800; font-size: 1.1rem; } .brand span { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.prepared { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }
.sec { max-width: 1120px; margin: 0 auto; padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 2.5rem; }
.sec-head .lede { margin-top: 1.2rem; }
.foot { text-align: center; color: var(--muted); font: 0.75rem var(--mono); padding: 3rem 0 4rem; }

/* hero */
.hero { position: relative; max-width: 1120px; margin: 0 auto; padding-block: 3rem 2rem; min-height: 78vh; display: grid; align-content: center; }
.fabric { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; opacity: 0.9; pointer-events: none; }
.hero-text { position: relative; max-width: 640px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; font-weight: 800; }
.hero .lede { margin-top: 1.4rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats b, .stat b, .spec b { display: block; font: 700 2rem/1.1 var(--disp); font-variant-numeric: tabular-nums; }
.hero-stats span, .stat span, .spec span { font-size: 0.8rem; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 0; left: 0; font: 0.7rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* mismatch */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cmp { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cmp canvas { display: block; width: 100%; height: 220px; }
.cmp figcaption { padding: 1rem 1.2rem; font-size: 0.9rem; color: var(--muted); } .cmp figcaption b { color: var(--fg); display: block; margin-bottom: 0.2rem; }
.reveal-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.reveal-list li { border-left: 2px solid var(--line); padding-left: 1rem; font-size: 0.95rem; color: var(--muted); transition: border-color .6s, color .6s; }
.reveal-list li b { color: var(--fg); display: block; }
.reveal-list.in li { border-color: var(--accent); }
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; }
.stat.dim b { color: var(--muted); }

/* node diagram */
.node-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 2rem; align-items: start; }
.node-svg { width: 100%; height: auto; max-width: 100%; font-family: var(--mono); }
.tile-frame { fill: var(--bg-2); stroke: var(--line); }
.tile-name { fill: var(--muted); font-size: 12px; } .tile-state { fill: var(--accent); }
.blk rect { fill: #182030; stroke: #2b3547; transition: fill .25s, stroke .25s; cursor: pointer; }
.blk text { fill: var(--fg); font-size: 13px; pointer-events: none; }
.blk:hover rect, .blk.hot rect { fill: #243150; stroke: var(--accent); }
.asleep .blk rect { fill: #0e121a; stroke: #1b2230; } .asleep .blk text { fill: #3c4556; } .asleep .tile-frame { stroke: #1b2230; }
#tileB { transition: filter .4s; }
#tileB.awake .blk rect { fill: #2a2412; stroke: var(--accent); } #tileB.awake .blk text { fill: var(--fg); }
.spike-line { stroke: var(--accent-dim); stroke-width: 2; stroke-dasharray: 4 4; }
.spike-dot { fill: var(--accent); opacity: 0; }
.spike-dot.go { animation: spike 0.9s linear forwards; }
@keyframes spike { 0% { opacity: 1; cx: 280px; } 100% { opacity: 1; cx: 372px; } }
.node-aside { display: grid; gap: 1rem; align-content: start; }
.node-desc { min-height: 4.5em; color: #c5ccd8; font-size: 0.95rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1rem; margin: 0; }
.facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem 2rem; font-size: 0.95rem; color: var(--muted); }
.facts b { color: var(--fg); }

/* software */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chips span { font: 500 0.8rem var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; color: #c5ccd8; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0.6rem; align-items: stretch; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem; min-width: 0; }
.step-n { font: 700 1rem var(--disp); color: var(--accent); margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.step-arrow { width: 18px; align-self: center; height: 2px; background: var(--accent-dim); position: relative; }
.step-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--accent-dim); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr; } .step-arrow { width: 2px; height: 18px; justify-self: center; } .step-arrow::after { right: -4px; top: auto; bottom: -2px; border-left-color: transparent; border-top-color: var(--accent-dim); } }

/* charts */
.chart { margin: 0; }
.chart figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 1rem; max-width: 80ch; }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.legend i, .key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.45rem; vertical-align: -1px; }
.bars { display: grid; gap: 1.1rem; }
.brow { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 1rem; align-items: center; }
.brow .lbl { font-size: 0.9rem; } .brow .lbl small { display: block; color: var(--muted); font-size: 0.75rem; font-family: var(--mono); }
.bgrp { display: grid; gap: 2px; }
.bar { height: 14px; border-radius: 0 4px 4px 0; position: relative; transform-origin: left; transition: width .8s cubic-bezier(.2,.7,.2,1); cursor: default; }
.bar::after { content: attr(data-v); position: absolute; left: calc(100% + 8px); top: -3px; font: 500 0.75rem var(--mono); color: var(--muted); white-space: nowrap; }
.bar.b1 { background: var(--s1); } .bar.b2 { background: var(--s2); } .bar.b3 { background: var(--s3); }
.bar.x { background: var(--accent); }
.tip { position: fixed; z-index: 20; background: #1b2231; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0.4rem 0.6rem; font: 0.78rem var(--mono); pointer-events: none; }
.tbl-wrap { overflow-x: auto; margin-top: 1.4rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.8rem 0.5rem 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.n, .tbl th.n { text-align: right; }
.tbl td.n { font-family: var(--mono); }
.tbl td.n, .tbl th.n { padding-left: 1.2rem; white-space: nowrap; }
.tbl td.hi { color: var(--accent); font-weight: 600; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tg { font: 500 0.85rem var(--mono); background: transparent; color: var(--muted); border: 0; padding: 0.5rem 1rem; cursor: pointer; }
.tg.on { background: var(--accent); color: #140f03; }
.why { margin-top: 1.5rem; } details summary { cursor: pointer; font-weight: 600; padding: 0.6rem 0; } details > p, details > .tbl-wrap { margin-top: 0.6rem; }

/* silicon */
.nda-tag { font: 500 0.65rem var(--mono); background: var(--accent-dim); color: var(--accent); border-radius: 3px; padding: 0.15rem 0.45rem; margin-left: 0.6rem; letter-spacing: 0.08em; }
.floor-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 2rem; align-items: start; }
.floor { width: 100%; height: auto; max-width: 100%; font-family: var(--mono); }
.floor rect { stroke: var(--bg); stroke-width: 2; cursor: pointer; transition: opacity .2s; }
.floor rect.s-sil { fill: var(--sil); } .floor rect.s-rtl { fill: var(--rtl); } .floor rect.s-des { fill: var(--des); }
.floor g:hover rect { opacity: 0.75; }
.floor text { fill: #fff; font-size: 11px; pointer-events: none; }
.key { display: grid; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.sw.s-sil { background: var(--sil); } .sw.s-rtl { background: var(--rtl); } .sw.s-des { background: var(--des); }
.milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.ms { border-top: 3px solid var(--line); padding-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.ms b { display: block; color: var(--fg); margin-bottom: 0.3rem; }
.ms.done { border-color: var(--rtl); } .ms.here { border-color: var(--accent); } .ms.here b { color: var(--accent); }

/* arch */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.spec { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.2rem; }
.spec b { font-size: 1.6rem; }
.variants td:first-child { color: var(--muted); }

/* team */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 0.8rem 0 0.8rem 1.4rem; position: relative; font-size: 0.95rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.timeline li.hl::before { background: var(--accent); border-color: var(--accent); }
.timeline li.ext time, .timeline li.ext b, .timeline li.ext div { color: var(--muted); font-weight: 500; } .timeline li.ext::before { border-style: dashed; border-color: var(--muted); background: var(--bg); }
.timeline time { font: 500 0.8rem var(--mono); color: var(--accent); padding-top: 0.2rem; }
.timeline b { color: var(--fg); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.person { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 1.2rem; } .person p { font-size: 0.9rem; color: var(--muted); }

/* ip */
.ip-list { counter-reset: ip; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.5rem 2rem; }
.ip-list li { counter-increment: ip; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.4rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.ip-list li::before { content: counter(ip, decimal-leading-zero); font: 500 0.8rem var(--mono); color: var(--accent); padding-top: 0.15rem; }
.ip-list b { color: var(--fg); display: block; }

/* market, funding */
.phases { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.phases li { border-top: 3px solid var(--accent-dim); padding-top: 0.8rem; font-size: 0.9rem; color: var(--muted); } .phases b { display: block; color: var(--fg); margin-bottom: 0.3rem; }
.rounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.round { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; }
.round.this { border-color: var(--accent); }
.round b { display: block; font: 700 1.8rem/1.15 var(--disp); margin-bottom: 0.8rem; } .round.this b { color: var(--accent); }
.round p { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.6rem; } .gate-line { color: var(--fg); }
.stack { display: grid; gap: 0.5rem; }
.stack-bar { display: flex; height: 28px; border-radius: 4px; overflow: hidden; gap: 2px; }
.stack-bar span { display: block; } .stack-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.4rem 1.5rem; font-size: 0.85rem; color: var(--muted); }
.stack-key b { font-family: var(--mono); color: var(--fg); font-weight: 500; margin-left: 0.4rem; }

/* close */
.close h2 { max-width: 30ch; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0 1rem; }
.contact span { display: block; font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.contact b { font-size: 1.1rem; user-select: all; }
.copy { font: 0.7rem var(--mono); background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; padding: 0.15rem 0.5rem; margin-left: 0.6rem; cursor: pointer; }
.appendix details { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .node-wrap, .floor-wrap { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bar, .reveal-list li, #tileB { transition: none; }
  .spike-dot.go { animation-duration: 0.01s; }
}

/* agent loop ring, pull quote, come-home table, scaling axes, paper cards */
.loop-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); gap: 2rem; align-items: center; }
.loop-svg { width: 100%; max-width: 440px; height: auto; font-family: var(--mono); justify-self: center; }
.loop-svg .ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.loop-svg .ph circle { fill: #182030; stroke: #2b3547; stroke-width: 2; cursor: pointer; transition: fill .2s, stroke .2s; }
.loop-svg .ph:hover circle, .loop-svg .ph.hot circle { fill: #243150; stroke: var(--accent); }
.loop-svg .ph.infer circle { fill: var(--s1); stroke: var(--s1); }
.loop-svg .ph text { fill: var(--fg); font-size: 13px; text-anchor: middle; pointer-events: none; }
.loop-svg .ph.infer text { fill: #fff; font-weight: 600; }
.loop-svg .centre { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.loop-svg .centre b { fill: var(--fg); }
.pull { margin: 3rem 0 0; padding: 1.4rem 0 0 1.6rem; border-left: 3px solid var(--accent); font: 500 1.25rem/1.45 var(--disp); max-width: 50ch; text-wrap: balance; }
.pull cite { display: block; margin-top: 0.8rem; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.home td:first-child { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.home tr.here td { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.axis { border-top: 3px solid var(--line); padding-top: 1rem; }
.axis.lat { border-color: var(--accent); }
.axis ul { margin: 0 0 1rem; padding-left: 1.1rem; color: #c5ccd8; font-size: 0.95rem; display: grid; gap: 0.35rem; }
.axis.vert .eyebrow { color: var(--muted); }
.join { margin-top: 2.5rem; font-size: 1.1rem; max-width: 60ch; color: #c5ccd8; } .join b { color: var(--fg); }
.paper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.paper { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; display: grid; gap: 0.5rem; align-content: start; }
.paper-k { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.paper b { font: 700 1.3rem/1.2 var(--disp); }
.paper p { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .loop-wrap { grid-template-columns: 1fr; } }
