/* BlockFab: a working lab, presented as an interconnected system. */
:root {
  color-scheme: dark;
  --ground: #0c1118;
  --plate: #131c27;
  --rule: #2a3645;
  --ink: #edf3fa;
  --ink-2: #b2bfce;
  --ink-3: #8e9eb1;
  --mark: #88ddd9;
  --on-mark: #102427;
  --bar: #3e5369;
  --live: #8cddbc;
  --area: .12;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--ground); }
body { margin: 0; color: var(--ink); background: var(--ground); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, dl { margin: 0; }
::selection { background: var(--mark); color: var(--on-mark); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 5px; }
.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: 56px; }
.skip { position: fixed; left: 20px; top: -100px; padding: 12px 20px; background: var(--mark); color: var(--on-mark); z-index: 100; }
.skip:focus { top: 12px; }
.head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #ffffff0c; background: #0c1118eb; backdrop-filter: blur(20px); }
.head .wrap { display: flex; align-items: center; gap: 48px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.head nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.head nav a { text-decoration: none; color: var(--ink-2); font-size: 13px; font-weight: 550; transition: color .2s; }
.head nav a:hover, .head nav a[aria-current] { color: var(--mark); }
.tip { display: flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--rule); border-radius: 100px; padding: 7px 13px; color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.tip b { font-weight: 500; color: var(--ink); }
.live-dot, .lamp { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bar); }
.live-dot.on, .lamp.on { background: var(--live); box-shadow: 0 0 12px #8cddbc33; }
.lamp.test { border: 1px solid var(--mark); background: transparent; }
/* The opening scene. Without the .live class (no JS, reduced motion) it is a
   plain introduction with the five layers listed beneath the stack. */
.story { position: relative; }
.story-pin { position: relative; isolation: isolate; overflow-x: clip; padding: 88px 56px 40px; display: grid; justify-items: center; }
.story-pin::before { content: ''; position: absolute; z-index: -1; width: 900px; height: 760px; left: 50%; top: 40%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, #33556630, transparent 66%); pointer-events: none; }
.story-title { text-align: center; display: grid; justify-items: center; }
.eyebrow { margin: 0 0 26px; display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 500; color: var(--mark); }
.story h1 { margin: 0; font-size: clamp(46px, 7.4vw, 112px); line-height: 1.02; letter-spacing: -.07em; font-weight: 550; text-wrap: balance; background: linear-gradient(180deg, #f6fafe 30%, #9fb4c6); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { color: var(--ink-2); font-size: 18px; line-height: 1.75; max-width: 46ch; margin: 28px 0 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-actions .btn { min-height: 48px; padding-inline: 24px; border-radius: 100px; }
/* Real CSS geometry: four extruded layers and a shared eCash foundation.
   --spread opens the layers apart; --turn slowly rotates the stack. */
.stack-scene { position: relative; width: 100%; height: 520px; perspective: 1100px; --pitch: 0deg; --yaw: 0deg; --spread: 1; --turn: 0deg; }
.stack-scene::before { content: ''; position: absolute; width: 460px; height: 460px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #89dbd80c; border-radius: 50%; box-shadow: 0 0 0 55px #89dbd804, 0 0 0 110px #89dbd803; }
.stack-geometry { position: absolute; left: 50%; top: 58%; width: 270px; height: 270px; transform-style: preserve-3d; transform: translate(-50%, -50%) scale(var(--scene-scale, 1)) rotateX(calc(59deg + var(--pitch))) rotateZ(calc(-38deg + var(--yaw) + var(--turn))); transition: transform .4s ease-out; }
.slab { position: absolute; inset: 0; border: 1px solid #9cdee666; border-radius: 16px; background: linear-gradient(130deg, #2c4756, #152735 70%); transform: translateZ(calc(var(--z) * var(--spread) + var(--lift, 0px))); box-shadow: 0 0 40px #8dddd908; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.slab::before { content: ''; position: absolute; inset: 13px; border: 1px solid #a7d4e51c; border-radius: 8px; background-image: linear-gradient(#a7d4e509 1px, transparent 1px), linear-gradient(90deg, #a7d4e509 1px, transparent 1px); background-size: 23px 23px; }
.slab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #101e2c; border: 1px solid #9cdee630; transform: translateZ(-10px); box-shadow: 0 18px 28px #0005; }
.slab .edge { position: absolute; bottom: -1px; left: 15px; right: 15px; height: 10px; transform-origin: bottom; transform: rotateX(90deg); background: #36576a; border: 1px solid #a2e5e544; }
.slab .shade { position: absolute; inset: -1px; border-radius: inherit; background: #0c1118; opacity: 0; transform: translateZ(1px); transition: opacity .5s; pointer-events: none; }
.story.stepping .slab .shade { opacity: .62; }
.story.stepping .slab.on .shade { opacity: 0; }
.slab.on { --lift: 26px; }
.slab .slab-label { position: absolute; left: 28px; bottom: 25px; font-size: 19px; font-weight: 600; letter-spacing: -.035em; }
.slab .slab-label small { display: block; color: #bad2df; font-size: 9px; font-weight: 400; letter-spacing: .03em; }
.slab-mark { position: absolute; right: 27px; top: 27px; width: 42px; height: 42px; }
.slab.pool-layer { --z: 36px; background: linear-gradient(120deg, #42686c, #1d353e); }
.slab.explorer-layer { --z: 36px; background: linear-gradient(120deg, #3b546a, #1e3045); }
.slab.flush-layer { --z: 103px; background: linear-gradient(120deg, #464357, #272537); border-color: #b5a7d578; }
.slab.backbone-layer { --z: 170px; background: linear-gradient(120deg, #4a6f7c, #273e50); }
.slab.base-layer { --z: -35px; inset: -30px; background: #15202b; border-color: #8496ac42; }
.base-layer .slab-label { font-size: 14px; color: #a7b9cb; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; width: min(1208px, 100%); }
.story-steps li { padding-top: 18px; border-top: 1px solid var(--rule); }
.story-steps b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.04em; }
.story-steps p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.story-steps a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--mark); text-decoration: none; }
.story-steps a:hover { text-decoration: underline; }
.story-rail, .story-skip { display: none; }
/* Scroll-driven: the section is tall and the scene stays pinned while it plays. */
.story.live { height: 270vh; }
.story.live .story-pin { position: sticky; top: var(--head, 84px); height: calc(100vh - var(--head, 84px)); height: calc(100svh - var(--head, 84px)); padding: 0; display: block; overflow: clip; }
.story.live .story-title { position: absolute; inset: 9vh 24px auto; transform: translateY(calc(var(--title, 0) * -70px)) scale(calc(1 - var(--title, 0) * .06)); opacity: calc(1 - var(--title, 0) * 1.4); }
.story.live .stack-scene { position: absolute; inset: 0; height: auto; transform: translate(calc(var(--shift, 0) * 17%), calc((1 - var(--rise, 0)) * 54%)) scale(calc(.74 + var(--rise, 0) * .26)); }
.story.live .stack-geometry { top: 63%; transition-duration: .12s; }
.story.live .story-steps { position: absolute; left: max(56px, calc(50% - 604px)); top: 50%; width: 34ch; display: block; transform: translateY(-50%); }
.story.live .story-steps li { position: absolute; left: 0; top: 0; width: 100%; transform: translateY(calc(-50% + 18px)); opacity: 0; visibility: hidden; transition: opacity .45s, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; border-top: 0; padding-top: 0; }
.story.live .story-steps li.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .45s .1s, transform .6s .1s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.story.live .story-steps b { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.06em; font-weight: 550; }
.story.live .story-steps p { margin-top: 16px; font-size: 17px; line-height: 1.7; }
.story.live .story-steps a { margin-top: 18px; font-size: 14px; }
.story.live .story-rail { display: flex; flex-direction: column; gap: 10px; position: absolute; right: max(56px, calc(50% - 604px)); top: 50%; transform: translateY(-50%); opacity: var(--steps, 0); }
.story-rail i { width: 3px; height: 26px; border-radius: 3px; background: var(--rule); transition: background .4s, transform .4s; }
.story-rail i.on { background: var(--mark); transform: scaleY(1.25); }
.now { padding-top: 24px; padding-bottom: 96px; }
/* The live block feed stays secondary to the introduction. */
.strip { margin-top: 8px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #111a24; --rows: 64px 27px 32px 27px 27px; }
.strip-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding: 18px 24px; border-bottom: 1px solid var(--rule); }
.strip-head h2 { margin: 0; font-size: 12px; font-weight: 550; }
#chain-note { color: var(--ink-3); font-size: 11px; }
.strip-body { display: flex; }
.strip-key { display: grid; grid-template-rows: var(--rows); width: 125px; flex: none; }
.strip-key span { padding: 0 20px; font-size: 10px; line-height: 27px; color: var(--ink-3); }
.strip-key .k-h { line-height: 32px; }
.chain { display: flex; flex: 1; min-width: 0; }
.blk { display: grid; grid-template-rows: var(--rows); flex: 1 1 0; min-width: 0; border-left: 1px solid var(--rule); text-decoration: none; }
.blk > span { padding: 0 7px; font-size: 10px; line-height: 27px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk .h { color: var(--ink); font-size: 11px; line-height: 32px; }
.blk > .bar { display: flex; align-items: end; position: relative; padding-top: 20px; }
.blk .bar i { display: block; width: 100%; height: calc(var(--tx, 0) * 100%); background: var(--bar); border-radius: 3px 3px 0 0; }
.blk .bar em { position: absolute; right: 7px; top: 1px; font-size: 9px; font-style: normal; color: var(--mark); }
.blk.ours .bar i { background: var(--mark); }
.blk.ours .pool { color: var(--mark); }
.blk:hover { background: #ffffff06; }
.strip-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 15px 24px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 10px; }
.strip-foot .key { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--mark); }
.strip-foot a { margin-left: auto; color: var(--ink-2); }
/* Product chapters: strong titles, real interfaces and readable supporting detail. */
.unit { padding-block: 112px; }
.unit-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; }
.side { position: sticky; top: 120px; align-self: start; }
.project-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid #88ddd940; background: #88ddd90a; border-radius: 14px; color: var(--mark); }
.project-icon svg { width: 24px; height: 24px; }
.project-icon.logo { border: 0; background: none; border-radius: 11px; overflow: hidden; }
.project-icon.logo img { display: block; width: 48px; height: 48px; }
.plate-name { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.045em; }
.state { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 11px; color: var(--ink-2); }
.addr { margin: 5px 0 0; font-size: 11px; color: var(--ink-3); }
.links { display: grid; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; transition: background .2s, border-color .2s, box-shadow .2s; }
.btn small { color: var(--ink-3); font-size: 10px; font-weight: 400; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); background: #ffffff06; }
.btn.solid { color: var(--on-mark); border-color: var(--mark); background: var(--mark); box-shadow: 0 3px 0 #0002, inset 0 1px 0 #fff4; }
.btn.solid:hover { background: color-mix(in srgb, var(--mark), white 12%); box-shadow: 0 0 25px #88ddd915; }
.btn.solid small { color: var(--on-mark); }
.src { margin: 20px 0 0; font-size: 11px; line-height: 1.9; color: var(--ink-3); overflow-wrap: anywhere; }
.main { min-width: 0; }
.main > h2 { margin: 0; max-width: 20ch; font-size: clamp(32px, 4.2vw, 62px); font-weight: 550; line-height: 1.08; letter-spacing: -.06em; text-wrap: balance; }
.main > p { max-width: 65ch; margin: 22px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.shot { margin-top: 40px; perspective: 1400px; }
/* Screenshots settle into place as they scroll in (set by site.js, --in 0→1). */
.shot.settle { transform: translateY(calc((1 - var(--in, 1)) * 56px)) scale(calc(.93 + var(--in, 1) * .07)); opacity: calc(.35 + var(--in, 1) * .65); transform-origin: 50% 0; }
.shot a { display: block; text-decoration: none; }
.shot img { width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: var(--plate); box-shadow: 0 28px 70px -30px #000a; transition: transform .6s, box-shadow .6s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shot a:hover img { transform: rotateX(2deg) translateY(-3px); box-shadow: 0 35px 80px -25px #000b; }
}
.shot figcaption { margin-top: 14px; font-size: 11px; color: var(--ink-3); }
.shot figcaption a { display: inline; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin-top: 40px; }
.facts div { padding-top: 20px; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 650; font-size: 15px; }
.facts dd { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.readout { margin-top: 32px; background: var(--plate); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.ro-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; font-size: 11px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.ro-st { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 10px; }
.ro-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px; }
.ro-big { font-size: clamp(38px, 4vw, 60px); font-weight: 450; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-big small { font-size: 13px; font-weight: 450; margin-left: 6px; letter-spacing: 0; color: var(--ink-3); }
.chart { height: 110px; min-width: 0; }
.chart svg { display: block; height: 100%; width: 100%; overflow: visible; }
.chart .empty { display: grid; place-items: center; height: 100%; font-size: 11px; color: var(--ink-3); }
.ch-axis { stroke: var(--rule); }
.ch-peak { stroke: var(--rule); stroke-dasharray: 3 4; }
.ch-area { fill: var(--mark); fill-opacity: var(--area); }
.ch-line { fill: none; stroke: var(--mark); stroke-width: 1.6; stroke-linejoin: round; }
.ch-lab { fill: var(--ink-3); font: 10px var(--sans); }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.figs div { padding: 15px 22px; border-left: 1px solid var(--rule); min-width: 0; }
.figs div:first-child { border-left: 0; }
.figs dt { font-size: 10px; color: var(--ink-3); }
.figs dd { margin: 5px 0 0; font-size: 21px; line-height: 1.4; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.eps { padding: 16px 22px; border-top: 1px solid var(--rule); }
.eps h3 { margin: 0 0 10px; font-size: 11px; font-weight: 550; }
.eps ul { list-style: none; padding: 0; margin: 0; }
.eps li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); }
.eps code { overflow-wrap: anywhere; font: 10px/1.7 var(--mono); color: var(--ink-2); }
.eps .tier { font-size: 10px; color: var(--ink-3); }
.copy { border: 1px solid var(--rule); background: transparent; color: var(--ink); padding: 5px 9px; border-radius: 5px; cursor: pointer; font-size: 10px; }
.copy:hover, .copy.done { background: var(--mark); color: var(--on-mark); }
/* The explorer opens a muted steel-grey chapter. */
#explorer { --ground: #b9c2c8; --plate: #c9d1d6; --rule: #94a3ad; --ink: #152533; --ink-2: #304858; --ink-3: #3e5667; --mark: #155e68; --on-mark: #fff; background: var(--ground); color: var(--ink); }
#explorer .project-icon { border-color: #176b7630; background: #176b7608; }
#explorer .shot img { box-shadow: 0 25px 55px -30px #1b3a5b66; }
.pair { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; margin-top: 40px; align-items: start; }
.pair > .shot { margin-top: 0; }
.index h3 { margin: 0; font-size: 14px; font-weight: 650; }
.index p { margin: 4px 0 16px; font-size: 11px; color: var(--ink-3); }
.index ul { list-style: none; padding: 0; margin: 0; }
.index li > * { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.index .slot { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.index .nm { font-size: 12px; font-weight: 600; }
.index .note { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--ink-3); }
.index .note svg { width: 12px; height: 12px; }
.index a:hover .nm { text-decoration: underline; }
.flush { --ground: #050608; --plate: #0e1014; --rule: #272b32; --ink: #eeeff2; --ink-2: #b5bac4; --ink-3: #929ba9; --mark: #d1d8e3; --on-mark: #15191f; background: var(--ground); color: var(--ink); }
.flush-plate { display: flex; gap: 12px; align-items: center; margin: 0; }
.flush-plate svg { width: 34px; height: 34px; color: var(--mark); }
.flush-plate span { font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.flush .main > h2 { max-width: 20ch; }
.flush .shot img { border-color: var(--rule); }
#backbone { border-bottom: 1px solid var(--rule); }
.clients { width: 100%; margin-top: 44px; border-collapse: collapse; font-size: 13px; }
.clients caption { text-align: left; margin-bottom: 20px; }
.clients caption b { display: block; font-size: 18px; font-weight: 550; letter-spacing: -.035em; }
.clients caption span { display: block; margin-top: 6px; max-width: 64ch; font-size: 13px; color: var(--ink-3); }
.clients th { font-size: 10px; font-weight: 500; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--rule); padding: 12px 14px 12px 0; }
.clients td { padding: 14px 14px 14px 0; color: var(--ink-2); border-bottom: 1px solid var(--rule); vertical-align: top; }
.clients td:first-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.clients td:nth-child(2) { font-weight: 600; color: var(--ink); }
.clients th:last-child, .clients td:last-child { padding-right: 0; }
/* Backbone closes on its evidence, as a centred band of big numbers. */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; padding-block: 52px; border-block: 1px solid var(--rule); text-align: center; }
.proof b { display: block; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; font-weight: 450; letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mark); }
.proof span { display: block; max-width: 28ch; margin: 14px auto 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.bench { padding-bottom: 0; }
.bench .main > p { margin-top: 0; }
.bench .facts { margin-top: 24px; }
.bench .plate-name { max-width: 8ch; }
.who .unit-grid { padding-top: 64px; border-top: 1px solid var(--rule); }
.years { margin-top: 28px; }
.years div { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.years dt { font-weight: 600; color: var(--mark); }
.years dd { margin: 0; color: var(--ink-2); }
footer { border-top: 1px solid var(--rule); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 30px 40px; font-size: 11px; color: var(--ink-3); }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--mark); }
/* Each product reads as its own room: ePool under its own light, the explorer
   mirrored, Flush as a full-bleed band, Backbone closing on a band of numbers. */
#epool { background: radial-gradient(90% 55% at 88% 4%, #1a3a3a66, transparent 62%), var(--ground); }
@media (min-width: 801px) {
  #explorer .unit-grid { grid-template-columns: minmax(0, 1fr) 230px; }
  #explorer .side { order: 2; }
}
@media (min-width: 801px) and (max-width: 1100px) { #explorer .unit-grid { grid-template-columns: minmax(0, 1fr) 200px; } }
.flush { padding-block: 150px; background: radial-gradient(70% 42% at 50% 0%, #2b2843aa, transparent 72%), var(--ground); }
.flush .unit-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.flush .side { position: static; display: grid; justify-items: center; text-align: center; }
.flush .side .links { display: flex; flex-wrap: wrap; justify-content: center; }
.flush .main { width: min(1040px, 100%); margin-inline: auto; }
.flush .main > h2 { max-width: 15ch; margin-inline: auto; text-align: center; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.065em; }
.flush .main > p { max-width: 58ch; margin: 28px auto 0; text-align: center; font-size: 18px; }
#backbone { background: linear-gradient(180deg, var(--ground), #0e1824 45%, var(--ground)); }
.curve { margin: 64px auto 0; max-width: 780px; }
.curve svg { display: block; width: 100%; height: auto; overflow: visible; --draw: 1; --pool: 1; }
.cv-axis { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.cv-line { fill: none; stroke: var(--mark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.cv-pool { fill: none; stroke: var(--mark); stroke-width: 3; stroke-linecap: round; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--pool)); }
.cv-mark { stroke: var(--ink-3); stroke-dasharray: 4 6; opacity: var(--pool); }
.cv-dot { fill: var(--mark); opacity: var(--pool); }
.cv-lab { fill: var(--ink-3); font: 12px var(--sans); }
.cv-note { fill: var(--ink); font: 600 14px var(--sans); opacity: var(--pool); }
.curve figcaption { max-width: 60ch; margin: 18px auto 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.story.live .story-skip { display: inline-flex; align-items: center; min-height: 32px; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 0 14px; border: 1px solid var(--rule); border-radius: 100px; background: #0c1118cc; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.story-skip:hover { color: var(--ink); border-color: var(--ink-3); }

/* Scroll moments. The hidden starting states apply only under .fx, which
   site.js sets when motion is welcome; otherwise everything is simply shown. */
.fx .now .blk .bar i { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--n, 0) * 50ms); }
.fx .now.in .blk .bar i { transform: none; }
.fx .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s calc(var(--i, 0) * 55ms), transform .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 55ms); }
.fx .stagger.in > * { opacity: 1; transform: none; }
.fx .chart.draw .ch-line { animation: draw 1.8s cubic-bezier(.3, .6, .2, 1) both; }
.fx .chart.draw .ch-area { animation: fade 1.2s .9s both; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
.fx .curve svg { --draw: 0; --pool: 0; }

@media (max-width: 1100px) {
  .wrap { padding-inline: 36px; }
  .head .wrap { gap: 24px; }
  .head nav { gap: 22px; }
  .unit-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .blk.x8 { display: none; }
  .story.live .stack-geometry { --scene-scale: .86; }
  .story.live .story-steps { width: 30ch; }
  .pair { grid-template-columns: 1fr; }
  .pair > .shot { max-width: 500px; }
  .ro-main { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 800px) {
  .head .wrap { height: 72px; }
  .tip { display: none; }
  .story-pin { padding-inline: 36px; }
  .story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Narrow: the stack sits high, the step reads beneath it, no sideways shift. */
  .story.live .stack-scene { transform: translateY(calc((1 - var(--rise, 0)) * 50% - var(--steps, 0) * 4%)) scale(calc(.7 + var(--rise, 0) * .16)); }
  .story.live .story-steps { left: 36px; right: 36px; top: auto; bottom: 7vh; width: auto; transform: none; }
  .story.live .story-steps li { top: auto; bottom: 0; transform: translateY(18px); }
  .story.live .story-steps li.on { transform: none; }
  .story.live .story-steps b { font-size: 40px; }
  .story.live .story-steps p { font-size: 16px; margin-top: 10px; max-width: 46ch; }
  .story.live .story-rail { right: 20px; }
  .unit { padding-block: 76px; }
  .unit-grid { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; }
  .side .links { display: flex; flex-wrap: wrap; margin-top: 20px; }
  .side .btn { min-width: 150px; }
  .side .src { max-width: 65ch; }
  .project-icon { float: left; margin: 0 16px 12px 0; }
  .state { margin-top: 8px; }
  .main > h2 { font-size: 38px; }
  .pair { grid-template-columns: 1fr 1fr; }
  .ro-main { grid-template-columns: auto minmax(0, 1fr); }
  .bench { padding-bottom: 0; }
  .bench .plate-name { max-width: none; }
  .who .unit-grid { padding-top: 44px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 115px; }
  .wrap { padding-inline: 22px; }
  .head .wrap { flex-wrap: wrap; gap: 0; height: auto; padding-top: 16px; }
  .brand { font-size: 22px; }
  .head nav { width: 100%; margin: 12px 0 0; padding-block: 10px; justify-content: space-between; border-top: 1px solid #ffffff0b; }
  .head nav a { font-size: 12px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .story-pin { padding: 48px 22px 32px; }
  .story h1 { font-size: clamp(42px, 12.5vw, 64px); }
  .lede { font-size: 15px; max-width: 34ch; margin-top: 20px; }
  .story-steps { grid-template-columns: 1fr; gap: 20px; }
  .story.live .story-title { inset: 5vh 22px auto; }
  .story.live .story-steps { left: 22px; right: 22px; bottom: 5vh; }
  .story.live .story-steps b { font-size: 34px; }
  .story.live .story-steps p { font-size: 15px; }
  .story.live .story-rail { right: 8px; gap: 8px; }
  .story.live .stack-scene { transform: translateY(calc((1 - var(--rise, 0)) * 50% - var(--steps, 0) * 9%)) scale(calc(.7 + var(--rise, 0) * .16)); }
  .story-rail i { height: 18px; }
  .hero-actions { margin-top: 26px; gap: 9px; }
  .hero-actions .btn { padding-inline: 17px; font-size: 12px; }
  .stack-scene { height: 380px; perspective: 1000px; }
  .stack-geometry { --scene-scale: .65; top: 58%; }
  .stack-scene::before { width: 300px; height: 300px; }
  .strip { border-radius: 12px; }
  .strip-head { padding: 15px 16px; }
  .strip-head h2 { font-size: 12px; }
  #chain-note { font-size: 12px; }
  .strip-body { display: block; }
  .strip-key { display: none; }
  .chain { flex-direction: column-reverse; }
  .blk { display: grid; grid-template-columns: 60px minmax(0, 1fr) 66px 36px; grid-template-rows: 36px; grid-template-areas: 'h pool gap bar'; align-items: center; padding-inline: 16px; gap: 6px; border: 0; border-bottom: 1px solid #ffffff07; }
  .blk.x6 { display: none; }
  .blk > span { padding: 0; font-size: 12px; }
  .blk .h { grid-area: h; font-size: 12px; }
  .blk .pool { grid-area: pool; }
  .blk .gap { grid-area: gap; }
  .blk > .tx { display: none; }
  .blk > .bar { grid-area: bar; height: 8px; padding: 0; align-items: center; }
  .blk .bar i { height: 5px; width: calc(var(--tx, 0) * 100%); border-radius: 2px; }
  .blk .bar em { display: none; }
  .strip-foot { padding: 14px 16px; gap: 8px; }
  .strip-foot > span:nth-child(2) { display: none; }
  .strip-foot a { margin-left: 0; width: 100%; }
  .unit { padding-block: 60px; }
  .unit-grid { gap: 28px; }
  .plate-name, .flush-plate span { font-size: 27px; }
  .main > h2 { font-size: 33px; }
  .main > p { font-size: 15px; margin-top: 18px; }
  .side .links { gap: 8px; }
  .side .btn { flex: 1 1 auto; min-width: 0; font-size: 12px; }
  .shot { margin-top: 26px; }
  .shot img { border-radius: 8px; }
  .shot figcaption { font-size: 12px; }
  .facts { gap: 22px; margin-top: 30px; }
  .facts dt { font-size: 14px; }
  .facts dd { font-size: 13px; }
  .ro-head { padding: 14px 16px; font-size: 12px; }
  .ro-main { grid-template-columns: 1fr; padding: 20px 16px; gap: 20px; }
  .ro-big { font-size: 54px; }
  .chart { height: 120px; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs div { padding: 12px 16px; }
  .figs div:nth-child(3) { border-left: 0; }
  .figs div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .eps { padding: 14px 16px; }
  .eps li { grid-template-columns: 1fr auto; gap: 6px; }
  .eps code { grid-column: 1 / -1; }
  .pair { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .index li > * { padding-block: 12px; }
  .clients { font-size: 12px; }
  .clients td, .clients th { padding-right: 9px; }
  .clients td:nth-child(4), .clients th:nth-child(4) { display: none; }
  .proof { grid-template-columns: 1fr; gap: 30px; margin-top: 48px; padding-block: 36px; }
  .proof b { font-size: 44px; }
  .proof span { margin-top: 8px; }
  .bench { padding-bottom: 0; }
  .years div { grid-template-columns: 48px 1fr; font-size: 13px; }
  .flush { padding-block: 72px; }
  .flush .main > h2 { font-size: 40px; }
  .flush .main > p { font-size: 15px; }
  .curve { margin-top: 40px; }
  .cv-lab { font-size: 20px; }
  .cv-note { font-size: 22px; }
  .fx .now .blk .bar i { transform: scaleX(0); transform-origin: left; }
  .fx .now.in .blk .bar i { transform: none; }
  footer .wrap { padding-block: 24px 32px; }
  footer nav { gap: 10px 20px; font-size: 12px; }
  /* Phones: nothing reads under 12px, and the small links get a 24px tap height. */
  .state, .addr, .src, .btn small, .index p, .index .slot, .index .note, .clients th,
  .figs dt, .eps h3, .eps .tier, .copy, .ro-st, .chart .empty, .slab .slab-label small,
  footer .wrap, .strip-foot, .tip { font-size: 12px; }
  .eps code { font-size: 12px; }
  .head nav a, footer nav a { display: inline-flex; align-items: center; min-height: 24px; }
  .strip-foot a, .shot figcaption a, .src a, footer .wrap a { display: inline-block; padding-block: 4px; }
}

@media (max-width: 360px) {
  .stack-geometry { --scene-scale: .53; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stack-geometry { transform: translate(-50%, -50%) scale(var(--scene-scale, 1)) rotateX(59deg) rotateZ(-38deg); }
}
