/* Noosphere · particle observatory / self-contained, no external UI dependency */
:root {
  color-scheme: dark;
  --bg: #06090d;
  --raised: #0b1118;
  --text: #f0f5f3;
  --soft: #bdc9c8;
  --muted: #95a6aa;
  --dim: #819298;
  --mint: #98ffe0;
  --blue: #9bb7ff;
  --line: rgba(185, 217, 219, .13);
  --line-strong: rgba(185, 217, 219, .25);
  --font-body: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 5vw, 88px);
  --section-space: clamp(96px, 10vw, 154px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 15px/1.8 var(--font-body); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
::selection { background: var(--mint); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
h1, h2, h3, h4, p, pre { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img, svg, canvas { display: block; }
em { font-style: normal; }
code { font-family: var(--font-mono); }
.page-shell { width: min(1380px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section-space { padding-block: var(--section-space); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 18px; background: var(--mint); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.grain { position: fixed; z-index: 90; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M1 1h1v1H1zM4 4h1v1H4z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 6px 6px; }
.reading-progress { position: fixed; z-index: 150; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--blue)); transform: scaleX(0); transform-origin: left; }

/* Navigation */
.site-nav { position: fixed; z-index: 120; inset: 0 0 auto; height: 88px; display: flex; align-items: center; gap: 32px; padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-nav.is-scrolled, .menu-open .site-nav { background: rgba(6, 9, 13, .88); border-color: var(--line); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--mint); stroke-width: 1.4; }
.brand strong { font-size: 16px; font-weight: 600; letter-spacing: .13em; }
.brand > span { padding-left: 13px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-play { display: inline-flex; align-items: center; gap: 20px; min-height: 38px; margin-left: 6px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 12px; transition: border-color .25s, background .25s; }
.nav-play span { color: var(--mint); font-size: 16px; }
.nav-play:hover { border-color: var(--mint); background: rgba(152, 255, 224, .04); }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; }
.menu-toggle span { width: 24px; height: 1px; background: var(--text); transition: transform .25s; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero / particle observatory */
.hero { position: relative; display: flex; flex-direction: column; min-height: max(840px, 100svh); overflow: hidden; isolation: isolate; padding-top: 108px; background: radial-gradient(ellipse at 75% 43%, #102a30 0, #0a151e 30%, var(--bg) 63%); }
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 9, 13, .4), transparent 50%), linear-gradient(0deg, var(--bg), transparent 23%); }
.hero-aura { position: absolute; width: 58%; aspect-ratio: 1; right: -1%; top: 5%; border-radius: 50%; background: radial-gradient(ellipse, rgba(80, 185, 181, .12), transparent 62%); filter: blur(26px); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 88px 88px; opacity: .22; mask-image: radial-gradient(ellipse at 77% 43%, #000, transparent 65%); }
.particle-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-watermark { position: absolute; z-index: 1; bottom: 64px; left: 50%; width: max-content; transform: translateX(-50%); color: rgba(155, 199, 208, .025); font-size: clamp(110px, 17vw, 300px); font-weight: 600; line-height: 1; letter-spacing: -.045em; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; flex: 1; gap: 24px; padding-block: 52px 50px; }
.hero-copy { position: relative; max-width: 650px; padding-block: 12px 20px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mint); font: 10px/1.6 var(--font-mono); letter-spacing: .13em; }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px rgba(152, 255, 224, .5); }
.hero-edition { display: flex; align-items: center; gap: 14px; margin-top: 38px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.hero-edition i { width: 22px; height: 1px; background: var(--line-strong); }
.hero h1 { margin-top: 18px; font-size: clamp(56px, 6.05vw, 98px); font-weight: 500; line-height: 1.2; letter-spacing: -.055em; }
.hero h1 em { display: inline-block; padding-bottom: 8px; color: var(--mint); background: linear-gradient(110deg, #b7ffe1 0%, #8fecd6 45%, #98b7f4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lede { margin-top: 28px; color: var(--soft); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.95; letter-spacing: .04em; }
.hero-description { margin-top: 17px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 32px; min-height: 47px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 500; letter-spacing: .04em; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .3s; }
.button span { font-size: 17px; line-height: 1; }
.button-primary { background: var(--mint); color: #071a17; }
.button-primary:hover { transform: translateY(-2px); background: #c0ffeb; box-shadow: 0 0 36px rgba(152, 255, 224, .14); }
.button-quiet { border-color: var(--line-strong); color: var(--soft); background: rgba(6, 9, 13, .28); }
.button-quiet span { color: var(--mint); }
.button-quiet:hover { transform: translateY(-2px); border-color: var(--mint); background: rgba(152, 255, 224, .04); }
.observatory { position: relative; align-self: stretch; min-height: 510px; pointer-events: none; }
.observation-label { position: absolute; top: 0; left: 30px; right: 0; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 9px var(--font-mono); letter-spacing: .1em; }
.observation-label > span:last-child { margin-left: auto; color: var(--dim); }
.crosshair { color: var(--mint); font-size: 24px; font-weight: 200; }
.orb-label { position: absolute; display: flex; align-items: center; gap: 10px; color: #acc6ca; font: 8px var(--font-mono); letter-spacing: .06em; }
.orb-label i { width: 27px; height: 1px; background: rgba(152, 255, 224, .5); }
.orb-label-a { top: 18%; left: 5%; }
.orb-label-b { top: 63%; right: 1%; }
.orbit-caption { position: absolute; bottom: 111px; left: 30px; right: 0; display: flex; justify-content: space-between; align-items: center; color: var(--soft); font: 10px var(--font-mono); }
.field-coordinates { color: var(--dim); font-size: 8px; }
.field-controls { position: absolute; bottom: 47px; left: 30px; right: 0; display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(8, 15, 21, .75); backdrop-filter: blur(16px); pointer-events: auto; }
.field-controls button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; flex: 1; min-height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font-size: 11px; transition: background .25s, color .25s; }
.field-controls button > span { font: 8px var(--font-mono); opacity: .7; }
.field-controls button:hover { color: var(--mint); background: rgba(152, 255, 224, .04); }
.field-controls button.is-active { border-color: rgba(152, 255, 224, .13); background: rgba(152, 255, 224, .09); color: var(--mint); }
.field-controls .motion-toggle { flex: 0 0 36px; padding: 0; border-left: 1px solid var(--line); border-radius: 0; }
.field-controls .motion-toggle span { font: 16px var(--font-body); opacity: 1; }
.simulation-note { position: absolute; bottom: 20px; left: 30px; color: var(--dim); font-size: 9px; letter-spacing: .03em; }
.hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; padding-block: 25px 35px; border-top: 1px solid var(--line); }
.hero-facts { display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero-facts > div > b { display: block; font: 400 24px/1.3 var(--font-mono); letter-spacing: -.07em; }
.hero-facts > div > b span { color: var(--soft); font-size: 12px; letter-spacing: -.02em; }
.hero-facts > div > span { display: block; margin-top: 7px; color: var(--muted); font: 8px var(--font-mono); letter-spacing: .06em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; color: var(--dim); font: 8px var(--font-mono); letter-spacing: .08em; }
.scroll-cue i { display: inline-flex; justify-content: center; align-items: center; width: 29px; height: 42px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--mint); font: normal 15px var(--font-body); }
.scroll-cue:hover { color: var(--mint); }

/* Chapter rhythm */
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(48px, 5vw, 76px); }
.section-no, .section-label, .section-meta { font: 9px var(--font-mono); letter-spacing: .09em; }
.section-no { color: var(--mint); }
.section-label { color: var(--muted); }
.section-line { flex: 1; height: 1px; margin-inline: 12px; background: var(--line); }
.section-meta { color: var(--dim); font-size: 10px; }
.section-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(44px, 8vw, 120px); }
.overline { margin-bottom: 20px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
h2 { font-size: clamp(36px, 4.1vw, 64px); font-weight: 400; line-height: 1.4; letter-spacing: -.045em; }
h2 em { color: #9bb5b6; }
.section-copy { padding-top: 37px; color: var(--muted); font-size: 13px; line-height: 2.1; }
.section-copy p + p { margin-top: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 17px; border-bottom: 1px solid var(--line-strong); color: var(--soft); font-size: 11px; transition: color .25s, border-color .25s; }
.text-link span { color: var(--mint); font-size: 15px; }
.text-link:hover { color: var(--mint); border-color: var(--mint); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-block: 1px solid var(--line); }
.principles article { position: relative; min-width: 0; padding: 28px 32px 27px; transition: background .35s; }
.principles article:first-child { padding-left: 0; }
.principles article:last-child { padding-right: 0; }
.principles article + article { border-left: 1px solid var(--line); }
.principles article:hover { background: linear-gradient(180deg, rgba(152, 255, 224, .022), transparent); }
.principle-art { height: 100px; margin-bottom: 30px; }
.token-art { display: flex; align-items: center; gap: 9px; padding-left: 8px; }
.token-art i { width: 22px; height: 42px; border: 1px solid rgba(152, 255, 224, .3); border-radius: 3px; transform: translateY(0) rotate(-8deg); background: linear-gradient(160deg, rgba(152, 255, 224, .04), transparent); }
.token-art i:nth-child(2n) { height: 57px; border-color: rgba(155, 183, 255, .45); transform: translateY(-8px) rotate(-8deg); }
.token-art i:nth-child(3n) { transform: translateY(8px) rotate(-8deg); border-color: var(--mint); box-shadow: 0 0 17px rgba(152, 255, 224, .09); }
.connection-art { display: flex; align-items: center; }
.connection-art svg { width: min(100%, 250px); height: 84px; }
.connection-art path { fill: none; stroke: rgba(152, 255, 224, .3); stroke-width: .7; }
.connection-art circle { fill: var(--mint); }
.connection-art circle:nth-child(2n) { fill: var(--blue); }
.distribution-art { display: flex; align-items: end; gap: 8px; padding: 19px 0 12px; }
.distribution-art i { width: 18px; height: var(--bar); min-height: 8px; border-top: 1px solid var(--mint); background: linear-gradient(180deg, rgba(152, 255, 224, .35), rgba(152, 255, 224, .03)); }
.distribution-art i:nth-child(4) { background: linear-gradient(180deg, rgba(152, 255, 224, .7), rgba(152, 255, 224, .12)); box-shadow: 0 -7px 20px rgba(152, 255, 224, .1); }
.micro-label { color: var(--mint); font: 8px/1.8 var(--font-mono); letter-spacing: .1em; }
.principles h3 { margin-top: 12px; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.principles p { min-height: 78px; max-width: 320px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 2; }
.principle-footer { display: flex; gap: 18px; margin-top: 32px; color: var(--dim); font: 8px var(--font-mono); letter-spacing: .03em; }
.principle-footer > span { color: var(--mint); }

/* Architecture: interactive tokens + light travelling through a neural network */
.structure-section { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 88% 18%, rgba(58, 109, 124, .08), transparent 50%), #080d13; }
.architecture-panel { margin-top: 60px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(6, 9, 13, .5); overflow: hidden; }
.panel-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font: 9px/1.6 var(--font-mono); letter-spacing: .06em; background: rgba(185, 217, 219, .025); }
.panel-topline > span:first-child { display: flex; align-items: center; gap: 10px; }
.panel-topline > span:last-child { color: var(--dim); font-size: 8px; }
.architecture-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.input-inspector { min-width: 0; padding: 27px 28px 24px; border-right: 1px solid var(--line); }
.network-inspector { min-width: 0; padding: 27px 28px 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h3 { font-size: 14px; font-weight: 400; }
.panel-heading > span { color: var(--dim); font: 8px var(--font-mono); letter-spacing: .04em; }
.zone-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.zone-tabs button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 35px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--muted); font-size: 10px; }
.zone-tabs button > span { color: var(--dim); font: 9px var(--font-mono); }
.zone-tabs button:hover { border-color: rgba(152, 255, 224, .45); }
.zone-tabs button.is-active { background: rgba(152, 255, 224, .07); border-color: rgba(152, 255, 224, .4); color: var(--mint); }
.zone-tabs button.is-active > span { color: var(--mint); }
.token-field { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
.token { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: rgba(160, 200, 209, .015); color: var(--dim); font: 8px var(--font-mono); transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.token::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 2px; height: 2px; background: currentColor; opacity: .5; }
.token:hover { border-color: var(--mint); color: var(--mint); }
.token.is-active { background: rgba(152, 255, 224, .08); border-color: rgba(152, 255, 224, .4); color: var(--mint); }
.token.is-selected { border-color: var(--mint); box-shadow: inset 0 0 18px rgba(152, 255, 224, .1), 0 0 14px rgba(152, 255, 224, .06); }
.token-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; color: var(--dim); font: 8px/1.5 var(--font-mono); }
.token-legend > span:first-child { display: flex; align-items: center; gap: 7px; }
.token-legend i { width: 5px; height: 5px; border: 1px solid var(--mint); background: rgba(152, 255, 224, .15); }
.zone-detail { min-height: 121px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.zone-detail > span { color: var(--mint); font: 8px var(--font-mono); letter-spacing: .05em; }
.zone-detail h4 { margin-top: 8px; font-size: 12px; font-weight: 400; }
.zone-detail p { max-width: 400px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.neural-network { width: 100%; height: auto; margin-top: 25px; overflow: visible; }
.neural-link { fill: none; stroke: #7896a7; stroke-width: .7; opacity: .13; transition: stroke .3s, opacity .3s; }
.neural-link.is-active { stroke: url(#neural-gradient); opacity: .55; }
.neural-node .node-glow { fill: rgba(152, 255, 224, .04); stroke: rgba(152, 255, 224, .22); stroke-width: .7; }
.neural-node .node-dot { fill: #748e9c; transition: fill .3s; }
.neural-node.is-active .node-dot { fill: var(--mint); }
.neural-node.is-active .node-glow { fill: rgba(152, 255, 224, .1); stroke: rgba(152, 255, 224, .6); }
.neural-pulse { fill: var(--mint); }
.network-labels text { text-anchor: middle; fill: var(--dim); font: 8px var(--font-mono); letter-spacing: .08em; }
.network-readout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(152, 255, 224, .025); }
.network-readout > span { flex-shrink: 0; color: var(--dim); font-size: 9px; }
.network-readout code { overflow: hidden; color: var(--mint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.network-readout > i { margin-left: auto; color: var(--mint); font-size: 15px; font-style: normal; }
.panel-footnote { margin-top: 14px; color: var(--dim); font-size: 9px; line-height: 1.8; }
.architecture-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--dim); font: 8px/1.8 var(--font-mono); letter-spacing: .025em; }
.architecture-bottom > span:nth-child(2n) { color: var(--mint); }

/* Actual code, inspectable and copyable */
.code-story { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(40px, 8vw, 130px); margin-top: 100px; }
.code-story-copy h3 { margin-top: 18px; font-size: clamp(27px, 3vw, 42px); font-weight: 400; line-height: 1.5; letter-spacing: -.04em; }
.code-story-copy h3 em { color: #9bb5b6; }
.code-story-copy > p:not(.micro-label) { margin-top: 23px; color: var(--muted); font-size: 12px; line-height: 2.1; }
.code-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.code-tags > span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--dim); font: 8px var(--font-mono); letter-spacing: .06em; }
.code-window { min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: #080c12; box-shadow: 0 20px 65px rgba(0, 0, 0, .16), 0 0 80px rgba(110, 185, 188, .025); overflow: hidden; }
.code-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(160, 200, 209, .035); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #667882; }
.window-dots i:nth-child(2) { background: #6d8b89; }
.window-dots i:last-child { background: #83b6a3; }
.code-toolbar > span { flex: 1; color: var(--muted); font: 9px var(--font-mono); text-align: center; }
.copy-code { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 32px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); font-size: 9px; }
.copy-code:hover { color: var(--mint); border-color: var(--line-strong); }
.copy-code span { font-size: 15px; }
.code-file-label { display: flex; align-items: center; gap: 12px; margin: 22px 24px 6px; color: var(--dim); font-size: 9px; }
.code-file-label > span { color: var(--mint); font: 10px var(--font-mono); }
.code-window pre { min-height: 242px; padding: 14px 24px 24px; overflow-x: auto; }
.code-window code { display: block; color: #bed1d9; font: 11px/2.1 var(--font-mono); white-space: pre; }
.code-line { display: block; position: relative; border-radius: 2px; transition: background .3s; }
.code-line.is-scanning { background: rgba(152, 255, 224, .055); }
.code-line.is-scanning::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 0; width: 1px; background: var(--mint); }
.code-line::before { content: attr(data-line); display: inline-block; width: 27px; margin-right: 15px; color: var(--dim); opacity: .8; text-align: right; user-select: none; }
.code-key { color: #b9a7f0; }
.code-fn { color: #98ffe0; }
.code-var { color: #a7c9ed; }
.code-caret { display: inline-block; width: 5px; height: 12px; margin-left: 2px; background: var(--mint); vertical-align: middle; }
.code-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); color: var(--dim); font: 8px var(--font-mono); letter-spacing: .025em; }
.code-status > span:first-child { display: flex; align-items: center; gap: 8px; }
.code-status .status-dot { width: 4px; height: 4px; }

/* Metrics with explicit historical evaluation scope */
.evidence-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-block: 1px solid var(--line-strong); }
.evidence-row article { min-width: 0; padding: 30px 31px 29px; }
.evidence-row article:first-child { padding-left: 0; }
.evidence-row article:last-child { padding-right: 0; }
.evidence-row article + article { border-left: 1px solid var(--line); }
.evidence-row .micro-label { color: var(--muted); font-size: 8px; }
.evidence-row b { display: block; margin-top: 23px; font-size: clamp(45px, 5.9vw, 88px); font-weight: 300; line-height: 1.1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.evidence-row b > i { margin-left: 5px; color: var(--mint); font: normal 23px var(--font-mono); letter-spacing: -.04em; }
.evidence-row h3 { margin-top: 16px; font-size: 14px; font-weight: 400; }
.evidence-row small { display: block; margin-top: 18px; color: var(--dim); font: 9px/1.8 var(--font-mono); }
.comparison-bar { position: relative; height: 6px; margin-top: 35px; background: rgba(170, 208, 221, .08); border-radius: 1px; }
.comparison-bar i { position: absolute; width: var(--value); height: 100%; background: linear-gradient(90deg, #5e9b91, var(--mint)); border-radius: inherit; }
.comparison-bar > span { position: absolute; top: -4px; bottom: -4px; left: var(--baseline); width: 1px; background: #f1fff6; }
.metric-comparison { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--dim); font-size: 8px; }
.metric-comparison > span:last-child { color: var(--mint); }
.delta-visual { display: flex; align-items: center; gap: 12px; height: 19px; margin-top: 28px; color: var(--muted); font: 10px var(--font-mono); }
.delta-visual i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--mint)); }
.delta-visual > span:nth-last-child(2) { color: var(--mint); }
.delta-visual strong { color: var(--mint); font: 24px var(--font-body); }
.metric-description { margin-top: 10px; color: var(--dim); font-size: 9px; }
.winrate-visual { display: flex; height: 6px; gap: 3px; margin-top: 35px; }
.winrate-visual > span:first-child { width: var(--value); background: linear-gradient(90deg, #73b0a5, var(--mint)); }
.winrate-visual > span:last-child { flex: 1; background: rgba(155, 183, 255, .22); }
.evidence-footnote { display: flex; align-items: start; gap: 18px; margin-top: 25px; }
.footnote-mark { color: var(--mint); font: 17px var(--font-mono); }
.evidence-footnote p { flex: 1; max-width: 770px; color: var(--dim); font-size: 10px; line-height: 1.9; }
.evidence-footnote .text-link { flex-shrink: 0; margin: -4px 0 0 auto; min-height: 32px; font-size: 10px; }

/* Boundaries + final invitation */
.boundary-section { border-block: 1px solid var(--line); background: #080d12; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 150px); }
.boundary-code { margin-top: 30px; color: var(--muted); font: 12px/2 var(--font-mono); letter-spacing: -.025em; }
.boundary-code > span { color: var(--mint); }
.boundary-code > i { color: var(--blue); font-style: normal; }
.boundary-copy { padding-top: 4px; }
.boundary-copy article { display: flex; align-items: start; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); }
.boundary-copy article:last-child { border-bottom: 1px solid var(--line); }
.boundary-copy article > span { padding-top: 4px; color: var(--mint); font: 9px var(--font-mono); }
.boundary-copy article > i { margin-left: auto; color: var(--dim); font-size: 15px; font-style: normal; }
.boundary-copy h3 { font-size: 15px; font-weight: 400; }
.boundary-copy p { max-width: 420px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 2; }
.final-section { position: relative; min-height: 630px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 80% 85%, #102524, transparent 60%), var(--bg); }
.final-inner { position: relative; z-index: 1; padding-block: 90px; }
.final-inner h2 { margin-top: 27px; font-size: clamp(60px, 7vw, 108px); font-weight: 400; line-height: 1.25; letter-spacing: -.06em; }
.final-inner > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); font-size: 13px; }
.final-actions { display: flex; gap: 14px; margin-top: 30px; }
.final-orbit { position: absolute; top: 47%; left: 78%; width: 620px; height: 620px; transform: translate(-50%, -50%) rotate(-25deg); border: 1px solid rgba(152, 255, 224, .13); border-radius: 50%; }
.final-orbit::before { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(152, 255, 224, .13); border-radius: 50%; }
.final-orbit::after { content: ""; position: absolute; inset: -17%; border: 1px solid rgba(152, 255, 224, .055); border-radius: 50%; }
.final-orbit i { position: absolute; inset: 0; border-radius: inherit; transform: rotate(var(--angle, 0deg)); }
.final-orbit i::after { content: ""; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 25px rgba(152, 255, 224, .5); }
.final-orbit i:nth-child(2) { inset: 12%; --angle: 120deg; }
.final-orbit i:nth-child(3) { inset: -17%; --angle: 230deg; opacity: .4; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 40px; padding-block: 32px 26px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 17px; min-height: 44px; font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.footer-brand span { color: var(--muted); font-size: 10px; font-weight: 400; }
.site-footer p { color: var(--dim); font-size: 10px; }
.back-top { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--muted); font-size: 10px; }
.back-top span { color: var(--mint); font-size: 15px; }
.back-top:hover { color: var(--mint); }
.footer-meta { grid-column: 1 / -1; color: var(--dim); font: 8px var(--font-mono); letter-spacing: .06em; }

/* Keep small-screen navigation available when enhancement is unavailable. */
@media (max-width: 720px) {
  body:not(.nav-ready) .site-nav { position: relative; height: auto; flex-wrap: wrap; padding-block: 16px; }
  body:not(.nav-ready) .nav-links { position: static; z-index: auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; order: 5; height: auto; padding: 0; opacity: 1; visibility: visible; pointer-events: auto; background: transparent; }
  body:not(.nav-ready) .nav-links a { width: auto; min-height: 44px; font-size: 12px; }
  body:not(.nav-ready) .menu-toggle { display: none; }
  body:not(.nav-ready) .hero { padding-top: 0; }
  .grain { opacity: .014; }
}

/* Only hide reveal targets when JavaScript has successfully booted. */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .85s var(--ease), transform .85s var(--ease); }
.motion-ready .principles [data-reveal]:nth-child(2), .motion-ready .evidence-row [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.motion-ready .principles [data-reveal]:nth-child(3), .motion-ready .evidence-row [data-reveal]:nth-child(3) { transition-delay: 160ms; }
@keyframes orbit-drift { to { transform: rotate(calc(var(--angle, 0deg) + 360deg)); } }
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .final-orbit i { animation: orbit-drift 55s linear infinite; }
  .final-orbit i:nth-child(2) { animation-direction: reverse; animation-duration: 40s; }
  .final-orbit i:nth-child(3) { animation-duration: 75s; }
  .code-caret { animation: caret-blink 1s steps(1) infinite; }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

@media (min-width: 1800px) {
  .hero { min-height: 100svh; }
  .hero-inner { padding-block: 70px; }
  .hero-copy { padding-bottom: 65px; }
}
@media (max-width: 1160px) {
  .site-nav { gap: 22px; }
  .brand > span { display: none; }
  .nav-links { gap: 24px; }
  .hero h1 { font-size: clamp(53px, 6vw, 76px); }
  .hero-inner { gap: 8px; }
  .observatory { min-height: 500px; }
  .field-controls, .orbit-caption, .observation-label, .simulation-note { left: 12px; }
  .field-controls button { gap: 7px; padding-inline: 5px; }
  .field-coordinates { display: none; }
  .principles article { padding-inline: 25px; }
  .architecture-grid { grid-template-columns: 1fr 1fr; }
  .input-inspector, .network-inspector { padding-inline: 22px; }
  .neural-network { margin-block: 50px 25px; }
  .panel-topline { padding-inline: 22px; }
  .evidence-row article { padding-inline: 22px; }
}
@media (max-width: 900px) {
  .site-nav { height: 74px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; }
  .nav-play { gap: 12px; padding-inline: 13px; }
  .hero { min-height: 830px; padding-top: 90px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 11px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { gap: 22px; padding-inline: 17px; }
  .orb-label { display: none; }
  .hero-facts { gap: 45px; }
  .hero-facts > div > b { font-size: 22px; }
  .scroll-cue > span { display: none; }
  .section-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .section-copy { font-size: 12px; }
  .principles h3 { font-size: 18px; }
  .principles p { min-height: 100px; font-size: 11px; }
  .principle-art { height: 86px; }
  .token-art { gap: 5px; padding-left: 3px; }
  .token-art i { width: 17px; }
  .principle-footer { gap: 10px; font-size: 7px; }
  .architecture-grid { grid-template-columns: 1fr; }
  .input-inspector { border-right: 0; border-bottom: 1px solid var(--line); }
  .token-field { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .token { font-size: 9px; }
  .zone-detail { min-height: 100px; }
  .neural-network { width: min(100%, 600px); margin: 20px auto; }
  .network-readout code { font-size: 10px; }
  .code-story { grid-template-columns: 1fr 1.3fr; gap: 35px; }
  .code-toolbar { padding-inline: 12px; gap: 8px; }
  .code-toolbar > span { font-size: 8px; }
  .code-file-label { margin-inline: 17px; font-size: 8px; }
  .code-window pre { padding-inline: 12px; }
  .code-window code { font-size: 10px; }
  .code-line::before { width: 20px; margin-right: 10px; }
  .code-status > span:last-child { display: none; }
  .boundary-grid { gap: 40px; }
  .boundary-copy article { gap: 14px; }
  .evidence-row b > i { font-size: 19px; }
  .evidence-row h3 { font-size: 12px; }
  .metric-comparison { flex-wrap: wrap; font-size: 7px; }
  .evidence-row small { font-size: 8px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 88px; }
  .site-nav { height: 72px; gap: 14px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-play { margin-left: auto; }
  .menu-toggle { display: flex; }
  .nav-links { position: fixed; z-index: -1; inset: 0 0 auto; display: flex; flex-direction: column; gap: 0; width: 100%; height: 100svh; margin: 0; padding: 125px var(--gutter) 60px; background: #080d13; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s; }
  .nav-links a { width: 100%; min-height: 75px; border-bottom: 1px solid var(--line); font-size: 23px; }
  .nav-links a::after { display: none; }
  .menu-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; }
  .hero { min-height: auto; padding-top: 72px; background: radial-gradient(ellipse at 60% 58%, #102a30, var(--bg) 65%); }
  .hero-inner { display: flex; flex-direction: column; gap: 0; padding-block: 40px 0; }
  .hero-copy { align-self: stretch; padding-block: 0; }
  .hero .eyebrow { font-size: 8px; }
  .hero-edition { margin-top: 28px; font-size: 10px; }
  .hero h1 { margin-top: 14px; font-size: clamp(49px, 9.5vw, 69px); }
  .hero-lede { margin-top: 22px; font-size: 15px; }
  .hero-description { margin-top: 12px; font-size: 12px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .button { gap: 30px; padding-inline: 20px; }
  .observatory { width: 100%; min-height: 440px; margin-top: 27px; }
  .observation-label { top: 6px; left: 0; right: 0; font-size: 8px; }
  .orb-label { display: flex; }
  .orb-label-a { top: 20%; left: 0; }
  .orb-label-b { right: 0; top: 60%; }
  .orbit-caption { bottom: 111px; left: 0; }
  .field-controls { left: 0; right: 0; bottom: 49px; }
  .simulation-note { bottom: 23px; left: 0; }
  .field-controls button { min-height: 40px; }
  .hero::after { background: linear-gradient(0deg, var(--bg), transparent 28%); }
  .hero-watermark { bottom: 105px; font-size: 22vw; }
  .hero-bottom { padding-block: 24px 29px; }
  .hero-facts { justify-content: space-between; width: 100%; gap: 16px; }
  .hero-facts > div > b { font-size: 21px; }
  .hero-facts > div > b span { font-size: 9px; }
  .hero-facts > div > span { font-size: 7px; letter-spacing: -.04em; }
  .scroll-cue { display: none; }
  .section-head { gap: 12px; margin-bottom: 40px; }
  .section-no, .section-label { font-size: 8px; }
  .section-meta { font-size: 9px; }
  .section-line { margin-inline: 0; }
  .section-grid { grid-template-columns: 1fr; gap: 26px; }
  .overline { margin-bottom: 15px; font-size: 10px; }
  h2 { font-size: clamp(33px, 6vw, 44px); line-height: 1.4; }
  .section-copy { max-width: 540px; padding: 0; font-size: 12px; }
  .principles { grid-template-columns: 1fr; margin-top: 44px; }
  .principles article, .principles article:first-child, .principles article:last-child { padding: 27px 0 28px; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); }
  .principle-art { float: right; width: 42%; height: 95px; margin: 9px 0 5px 20px; }
  .token-art { gap: 6px; }
  .token-art i { width: 16px; }
  .connection-art { padding-top: 10px; }
  .distribution-art { justify-content: center; gap: 6px; padding: 12px 15px 0; }
  .distribution-art i { width: 13px; }
  .principles h3 { font-size: 20px; }
  .principles p { min-height: 0; max-width: 100%; margin-top: 14px; font-size: 12px; }
  .principle-footer { clear: both; margin-top: 24px; font-size: 8px; }
  .architecture-panel { margin-top: 35px; }
  .panel-topline { padding: 14px 17px; }
  .panel-topline > span { font-size: 8px; }
  .panel-topline > span:last-child { font-size: 7px; }
  .input-inspector, .network-inspector { padding: 23px 18px; }
  .token-field { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
  .token { font-size: 7px; }
  .zone-tabs { gap: 6px; }
  .zone-tabs button { flex: 1 0 29%; min-height: 37px; padding-inline: 9px; font-size: 9px; }
  .zone-detail { min-height: 114px; }
  .network-inspector { padding-inline: 14px; }
  .network-inspector .panel-heading { padding-inline: 4px; }
  .neural-network { margin-block: 20px; }
  .network-readout { gap: 8px; padding-inline: 10px; }
  .network-readout code { font-size: 8px; }
  .panel-footnote { font-size: 8px; }
  .architecture-bottom { gap: 10px; padding: 14px 12px; font-size: 7px; }
  .architecture-bottom > span:first-child { flex-basis: 100%; text-align: center; }
  .architecture-bottom > span:nth-child(2) { display: none; }
  .code-story { grid-template-columns: 1fr; gap: 30px; margin-top: 65px; }
  .code-story-copy h3 { font-size: 33px; }
  .code-story-copy > p:not(.micro-label) { margin-top: 18px; }
  .code-toolbar { padding-inline: 13px; }
  .code-toolbar > span { font-size: 9px; }
  .code-window pre { min-height: 234px; padding: 12px 16px 24px; }
  .code-window code { font-size: 11px; }
  .code-file-label { margin-inline: 17px; }
  .evidence-row { grid-template-columns: 1fr; margin-top: 40px; }
  .evidence-row article, .evidence-row article:first-child, .evidence-row article:last-child { padding: 28px 0 30px; }
  .evidence-row article + article { border-left: 0; border-top: 1px solid var(--line); }
  .evidence-row b { margin-top: 14px; font-size: 74px; }
  .evidence-row b > i { font-size: 26px; }
  .evidence-row h3 { font-size: 15px; }
  .evidence-row small { font-size: 9px; }
  .metric-comparison { font-size: 9px; }
  .comparison-bar, .winrate-visual { margin-top: 28px; }
  .metric-description { font-size: 10px; }
  .evidence-footnote { flex-wrap: wrap; gap: 12px; }
  .evidence-footnote p { min-width: 80%; font-size: 10px; }
  .evidence-footnote .text-link { margin-left: 27px; }
  .boundary-grid { grid-template-columns: 1fr; gap: 37px; }
  .boundary-code { margin-top: 22px; font-size: 11px; }
  .boundary-copy article { gap: 18px; }
  .boundary-copy h3 { font-size: 15px; }
  .boundary-copy p { max-width: 100%; font-size: 12px; }
  .final-section { min-height: 580px; }
  .final-inner { padding-block: 90px; }
  .final-inner .eyebrow { font-size: 8px; }
  .final-inner h2 { margin-top: 25px; font-size: clamp(58px, 11vw, 77px); }
  .final-inner > p:not(.eyebrow) { font-size: 12px; }
  .final-actions { gap: 10px; }
  .final-actions .button { gap: 20px; padding-inline: 17px; }
  .final-orbit { width: 470px; height: 470px; left: 102%; top: 58%; opacity: .7; }
  .site-footer { grid-template-columns: 1fr auto; gap: 13px; }
  .site-footer p { grid-row: 2; grid-column: 1 / -1; }
  .back-top { grid-column: 2; grid-row: 1; }
  .footer-meta { margin-top: 7px; font-size: 7px; }
}
@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .nav-play { min-height: 34px; padding-inline: 10px; font-size: 10px; }
  .brand strong { font-size: 12px; }
  .site-nav { gap: 8px; }
  .hero h1 { font-size: 47px; }
  .hero-facts { gap: 10px; }
  .hero-facts > div > b { font-size: 19px; }
  .hero-facts > div > span { font-size: 6px; }
  .observatory { min-height: 410px; }
  .orb-label { font-size: 7px; }
  .panel-topline > span:last-child { display: none; }
  .section-meta { display: none; }
  .token-art { gap: 4px; }
  .token-art i { width: 13px; }
  .code-toolbar > span { font-size: 8px; }
  .code-window code { font-size: 9px; }
  .code-file-label { font-size: 8px; }
  .code-line::before { width: 15px; margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Readable technical captions; secondary metadata stays smaller than prose. */
.observation-label, .orb-label, .field-controls button > span, .simulation-note { font-size: 10px; }
.hero-facts > div > span { font-size: 10px; }
.section-no, .section-label, .section-meta, .micro-label { font-size: 11px; }
.principles p { font-size: 13px; }
.principle-footer { font-size: 10px; }
.panel-topline, .panel-topline > span:last-child, .panel-heading > span, .zone-tabs button, .zone-tabs button > span { font-size: 11px; }
.zone-tabs button { min-height: 40px; }
.token { font-size: 10px; }
.token-legend, .zone-detail > span, .panel-footnote, .architecture-bottom { font-size: 10px; }
.zone-detail p { font-size: 12px; }
.network-readout code { font-size: 11px; }
.code-window code { font-size: 13px; }
.code-window pre { min-height: 282px; }
.code-file-label, .code-toolbar > span, .copy-code, .code-status, .code-tags > span { font-size: 10px; }
.code-file-label { line-height: 1.8; }
.evidence-row .micro-label, .metric-comparison, .metric-description, .evidence-row small { font-size: 11px; }
.evidence-footnote p { font-size: 12px; }
@media (max-width: 900px) {
  .token { font-size: 10px; }
  .principles p { font-size: 12px; }
  .principle-footer { font-size: 9px; }
  .code-window code { font-size: 12px; }
}
@media (max-width: 720px) {
  .hero .eyebrow { font-size: 9px; }
  .hero-facts > div > span { font-size: 8px; }
  .section-label, .section-no, .section-meta { font-size: 9px; }
  .observation-label, .orb-label { font-size: 9px; }
  .token-field { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .token { aspect-ratio: auto; min-height: 44px; font-size: 11px; }
  .zone-tabs button { min-height: 44px; font-size: 11px; }
  .zone-tabs button > span { font-size: 10px; }
  .panel-heading > span, .panel-topline > span, .panel-topline > span:last-child { font-size: 9px; }
  .panel-footnote, .architecture-bottom { font-size: 10px; }
  .network-readout code { font-size: 10px; }
  .code-window pre { padding-inline: 10px; }
  .code-window code { font-size: 12px; }
  .code-line::before { width: 16px; margin-right: 8px; }
  .code-toolbar > span, .code-file-label { font-size: 9px; }
  .copy-code { min-height: 40px; font-size: 10px; }
  .evidence-row .micro-label, .metric-comparison, .metric-description, .evidence-row small { font-size: 11px; }
  .evidence-footnote p { font-size: 11px; }
}

