:root {
  --b: #2f55e4;
  --c: #ff6a3d;
  --j: #0e9f7a;
  --sky: #f5f0e6;
  --ink: #15192a;
  --cream: #f5f0e6;
  --night: #12151f;
  --muted: color-mix(in srgb, var(--ink) 64%, var(--sky));
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --display: "SF Pro Display", system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 68px;
  --col: 46vw;
  --stage-h: 46svh;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--b);
  outline-offset: 4px;
  border-radius: 6px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sky);
}
.skip:focus {
  top: 10px;
}

/* ───── Header ───── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--sky);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 750 22px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 15px;
}
.site-header nav a {
  text-decoration: none;
  opacity: 0.8;
}
.site-header nav a:hover {
  opacity: 1;
}
.nav-cta {
  opacity: 1 !important;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sky);
  font-weight: 600;
}

/* ───── Stage ───── */
.stage {
  position: fixed;
  z-index: 1;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: var(--col);
  pointer-events: none;
}
.stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
#bars {
  filter: drop-shadow(0 10px 14px rgb(21 25 42 / 0.13));
}
.bar-tint {
  fill: color-mix(in srgb, var(--bc) 15%, var(--tint-base, #fff));
}
.bar-level {
  fill: var(--bg, var(--bc));
}
.is-dark #bars {
  filter: drop-shadow(0 0 12px rgb(84 104 255 / 0.14));
}
.bar-edge {
  fill: none;
  stroke: var(--bc);
  stroke-width: 3;
}

/* Props enter on their beat and leave in reverse. Scroll position decides; CSS eases. */
#stage .p {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.28s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#stage .p.on {
  opacity: 1;
  transform: none;
  transition-duration: 0.45s, 0.7s;
  transition-delay: calc(var(--d, 0) * 70ms);
}
#stage .p.pop {
  transform: scale(0.55);
}
#stage .p.pop.on {
  transform: none;
  transition-timing-function: ease, cubic-bezier(0.34, 1.56, 0.64, 1);
}
#stage .d {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.6, 0, 0.2, 1);
}
#stage .p.on .d {
  stroke-dashoffset: 0;
}

/* Stage vocabulary */
.lbl {
  font: 600 17px var(--display);
  fill: var(--ink);
}
.sm {
  font: 500 14px var(--sans);
  fill: var(--muted);
}
.sm.ink,
.mono.ink {
  fill: var(--ink);
}
.mono {
  font: 500 13px var(--mono);
  fill: var(--muted);
}
.b {
  font-weight: 700;
}
.ok {
  fill: var(--j);
}
.white,
.wt {
  fill: #fff;
}
.wt {
  font: 600 15px var(--display);
}
.wt.sm-w {
  font-size: 14px;
}
.wt.mono-w {
  font: 600 14px var(--mono);
}
.wt.dim {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.92;
}
.wt.huge {
  font-size: 28px;
  font-weight: 700;
}
.wt.display {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.paper {
  fill: #fff;
  filter: url(#lift);
}
.paper.flat {
  filter: none;
}
.soft {
  fill: #f1edff;
}
.glass {
  fill: rgb(255 255 255 / 0.55);
}
.tint-ink {
  fill: var(--ink);
  opacity: 0.06;
}
.shade {
  fill: var(--ink);
  opacity: 0.08;
}
.hair {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.12;
  stroke-width: 1.5;
}
.hair.dashed {
  stroke-dasharray: 5 7;
}
.hair.strong {
  stroke-opacity: 0.4;
  stroke-width: 2;
}
.tick {
  stroke: var(--ink);
  stroke-opacity: 0.4;
  stroke-width: 2;
  stroke-linecap: round;
}
.wire {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.wire.white {
  stroke: #fff;
}
.lamp {
  fill: var(--ink);
  opacity: 0.85;
}
.edge-ink {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.leader,
.arrow,
.link {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.leader {
  stroke-opacity: 0.45;
}
.link {
  stroke-opacity: 0.35;
}
.dots circle {
  fill: var(--ink);
  opacity: 0.28;
}
.match {
  fill: #fff;
  stroke: var(--c);
  stroke-width: 3;
}
.note-bg {
  fill: #eef2ff;
}
.note {
  font: italic 500 13px var(--sans);
  fill: var(--ink);
}
.avatar {
  fill: var(--ink);
  opacity: 0.1;
}
.ini {
  font: 700 12px var(--display);
  fill: var(--ink);
}
.slot {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
  opacity: 0.85;
}
.qr rect {
  fill: var(--ink);
}
.pill-ink {
  fill: var(--ink);
}
.pill-ink-text {
  font: 600 15px var(--display);
  fill: var(--sky);
}
.price-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.sock {
  fill: var(--ink);
}
.price {
  font-size: 22px;
  font-weight: 700;
}
.ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.dot-ink {
  fill: var(--ink);
}
.coin circle {
  stroke: #fff;
  stroke-width: 2;
}
.coin text {
  font: 700 16px var(--display);
  fill: #fff;
}
.pulse-arc {
  fill: none;
  stroke: var(--b);
  stroke-width: 5;
  stroke-linecap: round;
  animation: ripple 1.5s ease-out infinite;
  animation-play-state: paused;
}
.pulse-arc.late {
  animation-delay: 0.18s;
}
.pulse-arc.later {
  animation-delay: 0.36s;
}
@keyframes ripple {
  0%,
  100% {
    opacity: 0.15;
  }
  40% {
    opacity: 1;
  }
}

/* ───── Chapters ───── */
main {
  position: relative;
}
.chapter {
  position: relative;
  z-index: 2;
  height: 260vh;
  padding-top: var(--header-h);
}
.chapter.hero {
  height: 210vh;
}
.chapter.agents,
.chapter.onchain {
  height: 420vh;
}
.chapter.finale {
  height: 170vh;
}
.copy {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: var(--col);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px clamp(24px, 4vw, 64px) 24px clamp(24px, 6vw, 104px);
}
.eyebrow {
  margin: 0 0 18px;
  font: 600 13px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0;
}
h1 {
  font-size: clamp(42px, 4.7vw, 76px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, #6f8bff 0%, #a07cff 45%, #ff6a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad.alt {
  background-image: linear-gradient(100deg, #14c08f 0%, #3fd1c4 50%, #6f8bff 100%);
}
h2 {
  font-size: clamp(34px, 3.7vw, 56px);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.028em;
  max-width: 13em;
}
.lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(16.5px, 1.25vw, 19px);
  color: color-mix(in srgb, var(--ink) 82%, var(--sky));
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: 13.5px;
  font-weight: 500;
}
.status {
  margin: 18px 0 0;
  text-wrap: balance;
  font: 500 12.5px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--j);
}

/* Hero index */
.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 30em;
}
.index a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  font: 600 16px/1.3 var(--display);
  text-decoration: none;
}
.index span {
  font: 500 12px var(--mono);
  color: var(--muted);
}
.index a:hover {
  color: #8ea2ff;
}

/* Badges: does this system settle on contracts? */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  vertical-align: 1px;
  margin-left: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font: 500 11.5px var(--mono);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
}
.badge.on::before {
  border-color: var(--j);
  background: var(--j);
}
.badge.half::before {
  border-color: var(--j);
  background: linear-gradient(90deg, var(--j) 50%, transparent 50%);
}
.built {
  margin: 14px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

/* Agentic systems list: the item whose scene is playing opens. */
.sys {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  max-width: 34em;
  counter-reset: sys;
}
.sys li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid var(--hair);
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.sys li::before {
  counter-increment: sys;
  content: "0" counter(sys);
  position: absolute;
  left: 0;
  top: 18px;
  font: 500 12px var(--mono);
  color: var(--muted);
}
.sys li.on {
  opacity: 1;
}
.sys h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sys p {
  display: grid;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 80%, var(--sky));
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s ease,
    margin 0.45s ease;
}
.sys li.on p {
  max-height: 7em;
  margin: 6px 0 10px;
}
.sys .badge {
  margin-left: 0;
}

/* Stack list */
.stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  margin: 28px 0 0;
  max-width: 36em;
}
.stack div {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.stack dt {
  font: 600 13px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stack dd {
  margin: 4px 0 0;
  font-size: 15px;
}

/* ───── Systems and How we work (cover the stage) ───── */
.cover {
  position: relative;
  z-index: 20;
  padding: clamp(90px, 12vw, 160px) clamp(22px, 6vw, 104px);
  background: var(--cream);
  color: #15192a;
  --ink: #15192a;
  --sky: var(--cream);
}
.cover.systems,
.site-header.on-night {
  background: var(--night);
  color: #f3f1ea;
  --ink: #f3f1ea;
  --sky: var(--night);
  --muted: color-mix(in srgb, #f3f1ea 72%, #12151f);
}
.site-header.on-cream {
  background: var(--cream);
  color: #15192a;
  --ink: #15192a;
  --sky: var(--cream);
}
.cover-head {
  max-width: 44em;
}
.table-wrap {
  margin-top: 48px;
  overflow-x: auto;
}
.sys-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}
.sys-table th,
.sys-table td {
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.sys-table thead th {
  font: 500 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sys-table tbody th {
  font: 650 16.5px/1.3 var(--display);
  letter-spacing: -0.01em;
}
.sys-table small {
  display: block;
  margin-top: 3px;
  font: 400 13.5px/1.4 var(--sans);
  color: var(--muted);
}
.sys-table td {
  color: color-mix(in srgb, var(--ink) 80%, var(--sky));
}
.sys-table .y,
.legend .y {
  color: var(--j);
}
.sys-table .h,
.legend .h {
  color: #8ea2ff;
}
.sys-table .n,
.legend .n {
  color: var(--muted);
}
.sys-table .y,
.sys-table .h,
.sys-table .n {
  font-size: 17px;
}
.legend {
  margin: 14px 0 0;
  font: 500 12.5px var(--mono);
  color: var(--muted);
}
.legend span {
  margin-left: 14px;
}
.legend span:first-child {
  margin-left: 0;
}
.cover .stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 56px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.steps article {
  padding: 26px 24px 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(21 25 42 / 0.06);
}
.steps span {
  display: block;
  margin-top: 0;
  font: 600 13px var(--mono);
  color: var(--muted);
}
.steps h3 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}
.steps p {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: color-mix(in srgb, var(--ink) 76%, #fff);
}
/* ───── Finale and footer ───── */
.actions {
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sky);
  font: 650 16px var(--display);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--hair);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer {
  position: relative;
  z-index: 20;
  padding: 64px clamp(22px, 6vw, 104px) 32px;
  background: #15192a;
  color: #f5f0e6;
}
.site-footer p {
  margin: 16px 0 40px;
  color: rgb(245 240 230 / 0.7);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(245 240 230 / 0.16);
  font-size: 14px;
  color: rgb(245 240 230 / 0.7);
}
.footer-base span {
  margin-right: auto;
}

/* ───── Narrow screens: stage on top, story below ───── */
@media (max-width: 899px) {
  :root {
    --header-h: 58px;
  }
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .stage {
    left: 0;
    bottom: auto;
    height: var(--stage-h);
    z-index: 5;
    background: var(--sky);
  }
  /* Copy dissolves into the stage edge instead of being sliced by it. */
  .stage::after {
    content: "";
    position: absolute;
    inset: 100% 0 auto;
    height: 28px;
    background: linear-gradient(var(--sky), transparent);
  }
  .chapter {
    height: 230vh;
    padding-top: calc(var(--header-h) + var(--stage-h));
  }
  .chapter.hero {
    height: 200vh;
  }
  .chapter.agents,
  .chapter.onchain {
    height: 380vh;
  }
  .agents .lede,
  .onchain .lede {
    display: none;
  }
  .sys {
    margin-top: 10px;
  }
  .sys li {
    padding: 8px 0 8px 30px;
  }
  .sys li::before {
    top: 12px;
  }
  .sys h3 {
    font-size: 17px;
  }
  .sys p {
    font-size: 14px;
  }
  .badge {
    font-size: 10.5px;
  }
  .built {
    font-size: 13px;
    margin-top: 8px;
  }
  .cover .stack {
    grid-template-columns: 1fr 1fr;
  }
  /* Only the opening needs room for the stage; later chapters follow straight on, so no blank gaps. */
  .chapter:not(.hero) {
    padding-top: 0;
  }
  .copy {
    top: calc(var(--header-h) + var(--stage-h));
    height: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 18px 22px 28px;
  }
  h1 {
    font-size: clamp(32px, 9.2vw, 48px);
  }
  h2 {
    font-size: clamp(27px, 7.4vw, 38px);
  }
  .lede {
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.5;
  }
  .eyebrow {
    margin-bottom: 10px;
  }
  .chips {
    margin-top: 14px;
    gap: 6px;
  }
  .chips li {
    padding: 3px 10px;
    font-size: 12.5px;
  }
  .status {
    margin-top: 10px;
  }
  .index {
    margin-top: 20px;
  }
  .index a {
    font-size: 14.5px;
    padding: 8px 0;
  }
  .hero .actions {
    margin-top: 18px;
  }
  .stack {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin-top: 14px;
  }
  .stack dd {
    font-size: 13px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  #stage .fine {
    display: none;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .index {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  #stage .p,
  #stage .p.on,
  #stage .d,
  .sys li,
  .sys p {
    transition: none;
  }
  .sys li {
    opacity: 1;
  }
  .sys p {
    max-height: none;
    margin: 6px 0 10px;
  }
  .pulse-arc {
    animation: none;
    opacity: 0.8;
  }
}

.field {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.18;
  stroke-width: 1.5;
}

/* Hero mark furniture and the trading desk */
.mono-dk {
  font: 500 12px var(--mono);
  letter-spacing: 0.14em;
  fill: var(--muted);
}
.candle path {
  stroke-width: 2;
}
.candle.up rect {
  fill: var(--j);
}
.candle.up path {
  stroke: var(--j);
}
.candle.dn rect {
  fill: var(--c);
}
.candle.dn path {
  stroke: var(--c);
}

/* The mark. Bar colours are registered so they ease between brand and mark mode. */
@property --bc {
  syntax: "<color>";
  inherits: true;
  initial-value: #000;
}
.bar {
  transition: --bc 0.6s ease;
}
#bar-b {
  --bc: var(--b);
}
#bar-c {
  --bc: var(--c);
}
#bar-j {
  --bc: var(--j);
}
.mark-mode #bar-j {
  --bc: #8f98c0;
}
.mark-mode #bar-b,
.mark-mode #bar-c {
  --bc: #4f5bff;
}
.mark-mode .bar-level {
  fill: var(--bc);
}
.trace {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.32;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal {
  fill: none;
  stroke: #8fd8ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0.06 0.94;
  stroke-dashoffset: 1;
  animation: signal 2.6s linear infinite paused;
}
/* Looping animations repaint the whole stage; only run them while their prop is showing. */
#stage .p.on .signal,
#stage .p.on .pulse-arc {
  animation-play-state: running;
}
.signal.s1 {
  animation-delay: -0.65s;
}
.signal.s2 {
  animation-delay: -1.3s;
}
.signal.s3 {
  animation-delay: -1.95s;
}
@keyframes signal {
  to {
    stroke-dashoffset: 0;
  }
}
.via {
  fill: var(--sky);
  stroke: #4f5bff;
  stroke-width: 2;
}
.via-core {
  fill: #8fd8ff;
}
@media (prefers-reduced-motion: reduce) {
  .signal {
    animation: none;
    opacity: 0;
  }
}
.dk {
  font: 600 14px var(--sans);
  fill: var(--ink);
}
.edge-soft {
  stroke: var(--ink);
  stroke-opacity: 0.18;
  stroke-width: 1.5;
}

@media (max-width: 899px) {
  /* Agents copy must fit under the stage: only the open item keeps its badge. */
  .sys li:not(.on) .badge,
  .agents .status {
    display: none;
  }
  .agents h2 {
    font-size: 26px;
  }
}
@media (max-width: 700px) {
  /* Systems table becomes stacked cards. */
  .sys-table,
  .sys-table tbody,
  .sys-table tr,
  .sys-table th,
  .sys-table td {
    display: block;
    min-width: 0;
  }
  .sys-table thead {
    display: none;
  }
  .sys-table tbody {
    display: grid;
    gap: 10px;
  }
  .sys-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid var(--hair);
  }
  .sys-table tbody th {
    grid-column: 1 / -1;
  }
  .sys-table th,
  .sys-table td {
    padding: 0;
    border: 0;
  }
  .sys-table td {
    font-size: 13.5px;
  }
  .sys-table td::before {
    content: attr(data-label);
    display: block;
    font: 500 11px var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .sys-table .y,
  .sys-table .h,
  .sys-table .n {
    font-size: 14px;
  }
  .table-wrap {
    margin-top: 28px;
  }
}

@media (max-width: 899px) {
  /* Under the pinned stage, room is tight: the hero index duplicates the nav, and the
     two-beat chapters keep their list instead of chips. */
  .hero .index,
  .agents .chips,
  .onchain .chips {
    display: none;
  }
}
@media (max-width: 899px) and (max-height: 720px) {
  :root {
    --stage-h: 38svh;
  }
  .chips,
  .built {
    display: none;
  }
}

/* Keep the complete story readable until the animation engine initializes. */
html:not(.story-ready) .stage { display: none; }
html:not(.story-ready) .chapter {
  height: auto;
  min-height: 0;
  padding: calc(var(--header-h) + 32px) 0 40px;
}
html:not(.story-ready) .copy {
  position: static;
  height: auto;
  width: 100%;
  max-width: 960px;
  margin: auto;
}
html:not(.story-ready) .sys li { opacity: 1; }
html:not(.story-ready) .sys p {
  max-height: none;
  overflow: visible;
  margin: 6px 0 10px;
}
html:not(.story-ready) .agents .lede,
html:not(.story-ready) .onchain .lede,
html:not(.story-ready) .built { display: block; }
html:not(.story-ready) .chips,
html:not(.story-ready) .hero .index { display: flex; }
