/* ==========================================================================
   AFTERBURNER: heat-tint design system
   Material: matte charcoal stone with brushed titanium inlays, the same as
   the locked token. Color comes from temper films (blue, violet, straw)
   and is used as metal, never as flat decoration.
   ========================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* ground: cool charcoal sampled from the token backdrop */
  --ground: #111415;
  --ground-2: #151a1b;
  --ground-3: #1b2122;
  --ground-4: #232a2b;
  --space: #07090a;

  /* ink */
  --ink: #e8e2d6;
  --ink-2: #a9a59b;
  --ink-3: #72746f;
  --ink-4: #4b4f4c;

  /* hairlines */
  --line: rgba(232, 226, 214, 0.08);
  --line-2: rgba(232, 226, 214, 0.14);
  --line-3: rgba(232, 226, 214, 0.26);

  /* temper metals */
  --ti-blue: #6f86b4;
  --ti-violet: #7e6292;
  --ti-rose: #a67a80;
  --ti-straw: #d3b283;
  --ti-pale: #ddcba4;
  --flame: #e7a073;
  --flame-blue: #a9bccb;

  /* fee legs (validated categorical set, fixed order) */
  --leg-parent: #678ed4;
  --leg-lp: #b48d3a;
  --leg-ab: #a564ae;
  --leg-creator: #d9713f;
  /* aliases used by rendered markup */
  --steel: var(--leg-parent);
  --violet: var(--leg-ab);
  --bronze: var(--leg-lp);
  --ember: var(--leg-creator);

  --ok: #8fbf9c;
  --bad: #e0806f;

  --heat: linear-gradient(90deg, #6f86b4 0%, #7e6292 28%, #a67a80 52%, #d3b283 78%, #ddcba4 100%);
  --heat-v: linear-gradient(180deg, #5e77ac 0%, #7a628f 30%, #a67a80 52%, #cda679 76%, #ddc192 100%);

  --f-display: "Mona Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1320px;
  --hdr: 64px;
  --ca-h: 30px;
  --chamfer: 9px;
  --ease-servo: cubic-bezier(0.7, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* stone grain over everything, like the token's backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  pointer-events: none;
  z-index: 60;
  mix-blend-mode: overlay;
}
::selection { background: rgba(211, 178, 131, 0.32); color: #fff; }

a { color: var(--ink); text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 340; line-height: 1.02; text-wrap: balance; }
img, svg, canvas { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ti-straw); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-stretch: 100%; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.label, .eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 420;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--ink-2); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--heat);
}
.display-xl, .display-l, .display-m {
  font-stretch: 125%;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.display-xl { font-size: clamp(42px, 6.2vw, 98px); line-height: 0.98; }
.display-l { font-size: clamp(34px, 4.3vw, 66px); line-height: 1.0; }
.display-m { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 340; }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.lede strong, .body strong { color: var(--ink); font-weight: 520; }
.body { color: var(--ink-2); max-width: 62ch; }
.fig { font-stretch: 125%; font-weight: 250; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: proportional-nums; }

/* ---------- buttons ---------- */
.btn {
  --c: var(--chamfer);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 15px 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ground);
  background: var(--ink);
  border: 0;
  cursor: pointer;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--heat);
  transform: translateX(-101%);
  transition: transform 0.55s var(--ease-servo);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .arr { display: inline-block; width: 18px; height: 10px; }
.btn .arr svg { display: block; width: 100%; height: 100%; }
.btn:hover .arr { animation: nudge 0.6s var(--ease-servo); }
@keyframes nudge { 40% { transform: translateX(4px); } }
.btn.small { padding: 12px 16px 11px; font-size: 10.5px; gap: 10px; --c: 7px; }
.btn.line {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn.line::before { opacity: 0.18; }
.btn[disabled], button.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]::before, button.btn:disabled::before { display: none; }

.link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  background: linear-gradient(var(--ink-2), var(--ink-2)) left bottom / 100% 1px no-repeat;
  transition: color 0.3s, background-size 0.5s var(--ease-servo);
}
.link:hover { color: var(--ink); background-size: 0% 1px; background-position: right bottom; }

/* ---------- header ---------- */
/* $AFTERBURNER CA banner: slim strip across the very top of every page. */
.ca-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--ca-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: var(--gutter);
  background: rgba(13, 15, 16, 0.94);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}
.ca-bar .ca-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ti-straw);
  flex: none;
  animation: ca-pulse 2.4s ease-in-out infinite;
}
.ca-bar .ca-value { color: var(--ti-straw); }
@keyframes ca-pulse { 50% { opacity: 0.3; } }
.hdr {
  position: fixed;
  top: var(--ca-h);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--hdr);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
  background: linear-gradient(180deg, rgba(17, 20, 21, 0.92), rgba(17, 20, 21, 0));
  transition: background 0.4s, box-shadow 0.4s;
}
.hdr.solid {
  background: rgba(17, 20, 21, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; }
.brand .wm { height: 11.5px; width: auto; aspect-ratio: 1094 / 100; fill: currentColor; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 12px;
  position: relative;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--heat);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-servo);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
  padding: 10px 8px;
}
.sound:hover { color: var(--ink); }
.sound .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.sound .bars i { width: 2px; height: 3px; background: currentColor; display: block; transition: height 0.3s; }
.sound[aria-pressed="true"] { color: var(--ti-straw); }
.sound[aria-pressed="true"] .bars i { animation: eq 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.menu-btn { display: none; }

/* ---------- story (homepage 3D sequence) ---------- */
.story { position: relative; height: 1040vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at var(--glow-x, 64%) 50%, rgba(255, 170, 110, var(--glow-a, 0)), transparent 70%),
    radial-gradient(ellipse 80% 90% at 64% 48%, #182022 0%, var(--ground) 62%),
    var(--ground);
}
.stage::after {
  /* deep space fades in for liftoff */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, #0c1113 0%, var(--space) 70%);
  opacity: var(--space-a, 0);
  pointer-events: none;
  z-index: 0;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.stage canvas.ready { opacity: 1; }
.stage .fallback {
  position: absolute;
  z-index: 2;
  width: min(50vh, 34vw);
  aspect-ratio: 1;
  left: 68%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  border-radius: 50%;
  object-fit: cover;
}
.no-webgl .stage .fallback { display: block; }
.no-webgl .stage canvas { display: none; }

/* hero wordmark: a metal inlay in the stone, lettered like the petals */
.hero-wm {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(70px, 10vh, 120px);
  opacity: calc(1 - var(--hero-out, 0));
  transform: translateY(calc(var(--hero-out, 0) * 40px));
  pointer-events: none;
}
.hero-wm svg { width: 100%; height: auto; display: block; overflow: visible; }
.boot .hero-wm svg { animation: wm-in 1.6s var(--ease-servo) 0.15s both; }
@keyframes wm-in {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% -1% -10% 0); }
}

.chapters { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.chapter {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  width: min(470px, 36vw);
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.chapter.on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease-out), visibility 0s; pointer-events: auto; }
.chapter .eyebrow { font-size: 10.5px; margin-bottom: 26px; max-width: none; color: var(--ink-2); }
.chapter .step-no {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}
.chapter .step-no b { color: var(--ti-straw); font-weight: 500; }
.chapter h2 { font-stretch: 125%; font-weight: 300; font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 22px; }
.chapter p { color: var(--ink-2); font-size: clamp(15.5px, 1.1vw, 17px); max-width: 44ch; }
.chapter p strong { color: var(--ink); font-weight: 500; }
.chapter .facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); max-width: 420px; }
.chapter .facts li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.chapter .facts .k { font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.chapter .facts .sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; }

/* scan reveal: a temper line machines each line into view */
.scan > * {
  --d: 0s;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-servo) var(--d);
}
.on .scan > *, .scan.in > * { clip-path: inset(0 -2% 0 0); }
.scan > *:nth-child(2) { --d: 0.08s; }
.scan > *:nth-child(3) { --d: 0.16s; }
.scan > *:nth-child(4) { --d: 0.24s; }
.scan > *:nth-child(5) { --d: 0.32s; }

/* hero chapter */
.chapter.hero {
  top: calc(var(--hdr) + var(--ca-h) + clamp(28px, 7vh, 84px));
  transform: none;
  width: min(640px, 50vw);
}
.chapter.hero h1 { font-stretch: 125%; font-weight: 280; font-size: clamp(40px, 5.3vw, 88px); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 26px; }
.chapter.hero .lede { max-width: 46ch; }
.hero-ctas { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }

/* thrust & liftoff: caption sits low so the machine has the frame */
.chapter.low { top: auto; bottom: clamp(96px, 16vh, 150px); transform: none; }

/* HUD callouts projected from the 3D build */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud line, .hud path { stroke: var(--line-3); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.hud .dim line, .hud .dim path { stroke: rgba(221, 203, 164, 0.5); }
.hud circle { fill: var(--ti-straw); }
.hud-tag {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s;
  line-height: 1.5;
}
.hud-tag b { color: var(--ink); font-weight: 500; }
.hud-tag.on { opacity: 1; }
.hud-tag .sub { color: var(--ink-3); display: block; }
.hud-tag.dimension { color: var(--ti-pale); background: var(--ground); padding: 2px 6px; }

/* status bar: chapter rail + instruments */
.statusbar {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  pointer-events: none;
}
.rail { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; pointer-events: auto; flex: 1 1 auto; min-width: 0; }
.rail li { position: relative; }
.rail button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 14px 10px 0;
  margin-right: 10px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: left;
  transition: color 0.3s;
  position: relative;
}
.rail button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
}
.rail button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: calc(var(--fill, 0) * 100%);
  background: var(--heat);
}
.rail button span { display: block; color: inherit; }
.rail button:hover { color: var(--ink-2); }
.rail li.done button { color: var(--ink-3); }
.rail li.cur button { color: var(--ink); }
.instruments { display: flex; gap: 26px; align-items: flex-end; flex: none; }
.inst { text-align: right; min-width: 92px; }
.inst .k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 4px; }
.inst .v { font-family: var(--f-mono); font-size: 15px; color: var(--ink); letter-spacing: 0.02em; }
.inst .v small { font-size: 10px; color: var(--ink-3); margin-left: 4px; letter-spacing: 0.1em; }
.inst.hot .v { color: var(--flame); }
.inst .bar { display: block; height: 2px; background: var(--line-2); margin-top: 8px; position: relative; overflow: hidden; }
.inst .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v, 0)); background: var(--heat); }
.scroll-cue {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: calc(1 - var(--hero-out, 0) * 3);
}
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--ink-3), transparent); animation: drip 2.2s var(--ease-servo) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- content sections ---------- */
main { display: block; }
.sec { position: relative; padding-block: clamp(84px, 12vw, 168px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head h2 { font-stretch: 125%; font-weight: 300; font-size: clamp(34px, 4.3vw, 66px); letter-spacing: -0.03em; line-height: 1.0; }
.sec-head .lede { margin: 0; }
.sec-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.drawing-ref { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-4); text-transform: uppercase; }

/* fee split dial */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.dial { position: relative; margin: 0; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial .tick { stroke-width: 2.2; stroke-linecap: butt; transition: opacity 0.4s, stroke 0.4s; }
.dial .tick.off { opacity: 0.16; }
.dial .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial .center .fig { font-size: clamp(54px, 7vw, 92px); display: block; }
.dial .center .label { margin-top: 10px; display: block; }
.dial .center .cap { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; margin-top: 14px; }
.legs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.leg {
  display: grid;
  grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line-2);
  cursor: default;
  transition: opacity 0.35s;
  position: relative;
}
.legs.focus .leg:not(.hot) { opacity: 0.38; }
.leg .fig { font-size: clamp(46px, 5vw, 72px); color: var(--ink); }
.leg .fig small { font-size: 0.42em; letter-spacing: 0; margin-left: 2px; color: var(--ink-3); font-weight: 300; }
.leg h3 { font-size: 19px; font-weight: 480; font-stretch: 112%; letter-spacing: -0.01em; margin: 6px 0 8px; display: flex; align-items: center; gap: 10px; }
.leg h3 .sw { width: 10px; height: 10px; flex: none; }
.leg p { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 52ch; }
.leg .who { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; margin-top: 10px; display: block; }
.note {
  margin-top: 34px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-2);
  font-size: 15px;
  max-width: 78ch;
}
.note strong { color: var(--ink); font-weight: 500; }

/* leaderboard: altitude chart + ledger */
.climb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 42px; }
.alt-chart { position: relative; }
.alt-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.alt-chart .grid line { stroke: var(--line); stroke-width: 1; }
.alt-chart .axis text, .alt-chart .val, .alt-chart .name { font-family: var(--f-mono); fill: var(--ink-3); font-size: 10px; letter-spacing: 0.08em; }
.alt-chart .name { fill: var(--ink-2); font-size: 11px; }
.alt-chart .val { fill: var(--ink); font-size: 12px; }
.alt-chart .col rect.bar { fill: url(#altFill); }
.alt-chart .col rect.hit { fill: transparent; cursor: pointer; }
.alt-chart .col .cap { fill: var(--ti-pale); }
.alt-chart .col:hover rect.bar, .alt-chart .col:focus rect.bar { fill: url(#altFillHot); }
.alt-chart .base { stroke: var(--line-3); }
.tip {
  position: absolute;
  pointer-events: none;
  background: var(--ground-3);
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 200px;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.18s;
  z-index: 5;
}
.tip.on { opacity: 1; }
.tip b { color: var(--ink); font-weight: 520; display: block; margin-bottom: 6px; font-size: 14px; }
.tip .row { display: flex; justify-content: space-between; gap: 18px; font-family: var(--f-mono); font-size: 11.5px; padding: 2px 0; }
.tip .row span:last-child { color: var(--ink); }

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  padding: 5px 9px 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.preview-tag::before { content: ""; width: 5px; height: 5px; background: var(--ink-3); }
.preview-tag.live::before { background: var(--ok); }
.preview-tag.live { color: var(--ok); border-color: rgba(143, 191, 156, 0.35); }

.ledger { width: 100%; overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; font-variant-numeric: tabular-nums; }
.ledger th {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--line-3);
}
.ledger td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.ledger td.num, .ledger th.num { text-align: right; }
.ledger tbody tr { transition: background 0.2s; }
.ledger tbody tr:hover { background: rgba(232, 226, 214, 0.025); }
.ledger td strong { color: var(--ink); font-weight: 500; }
.ledger .mono { font-size: 12.5px; color: var(--ink-3); }
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
}
.rank-badge.rank-1 { color: var(--ground); background: var(--ti-straw); border-color: var(--ti-straw); }
.rank-badge.rank-2 { color: var(--ink); border-color: var(--ti-pale); }
.rank-badge.rank-3 { color: var(--ink); border-color: var(--ti-rose); }
.kind {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px 3px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.kind-burn { color: var(--flame); border-color: rgba(231, 160, 115, 0.4); }
.kind-lp_add, .kind-lp_burn { color: var(--ti-pale); border-color: rgba(221, 203, 164, 0.35); }
.kind-swap { color: var(--flame-blue); border-color: rgba(169, 188, 203, 0.35); }
.kind-test { color: var(--ink-3); border-color: var(--line-2); border-style: dashed; }
/* test-launch annotation in the leaderboard coin count */
.test-note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  padding: 3px 7px 2px;
  margin-left: 6px;
  white-space: nowrap;
}

/* verify */
.proof { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
.proof h3 { font-stretch: 112%; font-size: 20px; font-weight: 440; margin-bottom: 18px; letter-spacing: -0.01em; }
.wallet-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line-2);
}
.wallet-row:last-child { border-bottom: 1px solid var(--line-2); }
.wallet-idx { font-family: var(--f-mono); font-size: 11px; color: var(--ti-straw); letter-spacing: 0.1em; padding-top: 3px; }
.wallet-label { font-weight: 480; font-size: 16px; min-width: 0; }
.wallet-label small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.wallet-addr { font-family: var(--f-mono); font-size: 11.5px; color: var(--flame-blue); margin-top: 8px; overflow-wrap: anywhere; }
.wallet-link { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; white-space: nowrap; }
.wallet-link:hover { color: var(--ink); }
.split-tier { padding: 20px 0; border-top: 1px solid var(--line-2); }
.split-tier h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 12px; }
.split-tier ul { list-style: none; margin: 0 0 10px; padding: 0; }
.split-tier li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.split-tier li strong { font-family: var(--f-mono); font-weight: 400; color: var(--ink); font-size: 13px; }
.metal-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px; }
.hint { color: var(--ink-3); font-size: 13.5px; }
.badge { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px 3px; border: 1px solid var(--line-2); color: var(--ink-3); vertical-align: middle; white-space: nowrap; }
.badge.live { color: var(--ok); border-color: rgba(143, 191, 156, 0.35); }
.badge.stub { color: var(--ink-3); }
.steps-3 { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line-2); }
.steps-3 li { counter-increment: s; padding: 26px 28px 8px 0; color: var(--ink-2); font-size: 15px; }
.steps-3 li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps-3 li::before { content: "0" counter(s); display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ti-straw); letter-spacing: 0.1em; margin-bottom: 18px; }
.steps-3 strong { display: block; color: var(--ink); font-weight: 480; font-size: 17px; margin-bottom: 8px; }
.steps-3 a { color: var(--ink); border-bottom: 1px solid var(--line-3); }

/* closing CTA */
.closer { padding-block: clamp(96px, 14vw, 200px) clamp(60px, 8vw, 110px); text-align: left; position: relative; overflow: hidden; }
.closer .mark-big {
  position: absolute;
  right: calc(var(--gutter) * 0.6);
  top: 50%;
  width: min(40vw, 540px);
  transform: translateY(-50%);
  pointer-events: none;
}
.closer h2 { font-stretch: 125%; font-weight: 280; font-size: clamp(40px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.035em; max-width: 12ch; margin-bottom: 28px; }
.closer .lede { margin-bottom: 34px; }

/* ---------- footer: drawing title block ---------- */
.foot { border-top: 1px solid var(--line-2); padding-block: 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-wm { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); color: var(--ink); }
.foot-wm svg { width: 100%; height: auto; display: block; fill: currentColor; opacity: 0.92; }
.titleblock { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.titleblock > * { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 18px 18px 20px; min-width: 0; }
.titleblock .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); display: block; margin-bottom: 12px; }
.titleblock a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 3px 0; }
.titleblock a:hover { color: var(--ink); }
.titleblock p { color: var(--ink-2); font-size: 14px; margin: 0; }
.titleblock .tag { font-stretch: 112%; font-size: 17px; color: var(--ink); max-width: 26ch; line-height: 1.35; }
.titleblock .meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
.titleblock .meta > div { padding: 12px 18px 13px; border-right: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-2); text-transform: uppercase; }
.titleblock .meta > div:last-child { border-right: 0; }
.titleblock .meta .k { margin-bottom: 4px; }

/* ---------- inner pages ---------- */
.page { padding-top: calc(var(--hdr) + var(--ca-h) + clamp(40px, 7vw, 96px)); }
.page-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 64px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-2); margin-bottom: clamp(40px, 5vw, 64px); }
.page-head h1 { font-stretch: 125%; font-weight: 280; font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -0.035em; line-height: 0.98; }
.page-head .lede { margin: 0; }
.page-head .eyebrow { grid-column: 1 / -1; margin: 0; }

/* launch console */
.console { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.bench { position: sticky; top: calc(var(--hdr) + var(--ca-h) + 24px); }
.bench .build-card { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin-bottom: 28px; }
.bench .build-card svg { width: 100%; height: 100%; display: block; }
.bench .build-card .coin-label { font-family: var(--f-display); font-stretch: 125%; }
.plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: p; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.plan li::before { content: "0" counter(p); font-family: var(--f-mono); font-size: 11px; color: var(--ti-straw); padding-top: 3px; }
.plan strong { color: var(--ink); font-weight: 480; display: block; margin-bottom: 3px; font-size: 15.5px; }
.panel { background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.panel-body { padding: clamp(22px, 3vw, 36px); }
.led { display: inline-block; width: 6px; height: 6px; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
.led.off { background: var(--ink-4); }
.notice { padding: 14px 16px; margin-bottom: 22px; font-size: 14.5px; color: var(--ink-2); box-shadow: inset 2px 0 0 var(--ti-blue); background: rgba(111, 134, 180, 0.07); }
.notice.warn { box-shadow: inset 2px 0 0 var(--bad); background: rgba(224, 128, 111, 0.07); color: #e9b3a8; }
.notice a { color: var(--ink); border-bottom: 1px solid var(--line-3); }
.connect-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.connect-row .mono { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
form.launch { display: grid; gap: 22px; }
form.launch label.fld { display: block; }
form.launch .fld > span:first-child, .fld-name {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 9px;
}
form.launch input[type="text"], form.launch input:not([type]), form.launch input[type="url"], form.launch select {
  width: 100%;
  padding: 14px 16px;
  background: var(--ground);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  border-radius: 0;
  transition: box-shadow 0.2s;
}
form.launch input.mono { font-family: var(--f-mono); font-size: 13px; }
form.launch input:hover, form.launch select:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
form.launch input:focus, form.launch select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ti-straw), 0 0 0 3px rgba(211, 178, 131, 0.12); }
form.launch input::placeholder { color: var(--ink-4); }
form.launch input[type="file"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--ground);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 13px;
  border-radius: 0;
  cursor: pointer;
}
form.launch input[type="file"]:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
form.launch input[type="file"]::file-selector-button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-3);
  padding: 8px 14px;
  margin-right: 14px;
  cursor: pointer;
  border-radius: 0;
}
form.launch input[type="file"]::file-selector-button:hover { border-color: var(--ti-straw); }
.img-status { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.img-status img { width: 44px; height: 44px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line-2); }
.img-status .st { font-size: 13px; color: var(--ink-2); }
.img-status .st.ok { color: var(--ok); }
.img-status .st.bad { color: var(--bad); }
form.launch .hint { display: block; margin-top: 8px; }
.row-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.field-error { display: block; color: var(--bad); font-size: 13px; margin-top: 6px; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ti-straw); }
.mode-box { padding: 16px 18px; background: rgba(111, 134, 180, 0.06); box-shadow: inset 0 0 0 1px rgba(111, 134, 180, 0.28); }
.mode-box .mode-name { font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.mode-box p { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.mode-box .mode-toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.mode-box select { width: auto !important; padding: 8px 12px !important; font-size: 13px !important; }
.steps { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line-2); }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 0.5; transition: opacity 0.3s; }
.step .n {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
}
.step .body { font-size: 14.5px; color: var(--ink-2); min-width: 0; }
.step .body strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 480; font-size: 15.5px; }
.step .detail { font-size: 14px; }
.step .sig { font-family: var(--f-mono); font-size: 11px; color: var(--flame-blue); margin-top: 8px; overflow-wrap: anywhere; }
.step.active { opacity: 1; }
.step.active .n { color: var(--ink); border-color: var(--ti-straw); }
.step.active .n::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid transparent; border-top-color: var(--ti-straw); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step.done { opacity: 1; }
.step.done .n { color: var(--ground); background: var(--ti-straw); border-color: var(--ti-straw); }
.step.error { opacity: 1; }
.step.error .n { color: var(--ground); background: var(--bad); border-color: var(--bad); }
.done-box { margin-top: 22px; }

/* burns */
.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: clamp(48px, 6vw, 80px); }
.readout { padding: 26px 22px 24px 0; min-width: 0; }
.readout + .readout { padding-left: 22px; border-left: 1px solid var(--line); }
.readout .fig { font-size: clamp(34px, 3.6vw, 54px); display: block; margin-bottom: 14px; overflow-wrap: anywhere; }
.readout .fig.hot { color: var(--flame); }
.readout .label { display: flex; align-items: center; gap: 8px; }
.readout .label .sw { width: 8px; height: 8px; flex: none; }
.ledger-close { margin-top: 30px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-4); text-transform: uppercase; }

/* seasons */
.cycle { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(64px, 8vw, 110px); }
.cycle img { width: 100%; max-width: 280px; height: auto; display: block; }
.cycle h2 { font-stretch: 125%; font-weight: 300; font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -0.03em; margin-bottom: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cycle p { color: var(--ink-2); max-width: 56ch; margin: 0; }
.laws { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-bottom: clamp(64px, 8vw, 110px); }
.law { padding: 26px 24px 30px 0; min-width: 0; }
.law + .law { padding-left: 24px; border-left: 1px solid var(--line); }
.law .label { color: var(--ti-straw); display: block; margin-bottom: 20px; }
.law h3 { font-stretch: 112%; font-size: 19px; font-weight: 460; margin-bottom: 10px; line-height: 1.2; }
.law p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* coin page */
.coin-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(56px, 7vw, 96px); }
.coin-hero .mark { width: 100%; max-width: 360px; height: auto; display: block; }
.coin-title { font-stretch: 125%; font-weight: 280; font-size: clamp(36px, 4.4vw, 68px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 12px; overflow-wrap: anywhere; }
.coin-mint-line { font-family: var(--f-mono); color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.plaque { margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--line-2); }
.plaque .honors { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; overflow-wrap: anywhere; }
.plaque .supported-name { font-stretch: 118%; font-size: clamp(24px, 2.4vw, 34px); font-weight: 360; margin-bottom: 8px; }
.routing { padding: clamp(18px, 3vw, 36px); margin-bottom: 40px; overflow-x: auto; }
.routing svg { width: 100%; min-width: 640px; height: auto; display: block; }
.ledger-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.ledger-card h3 { font-stretch: 112%; font-size: 20px; font-weight: 440; margin-bottom: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ledger-card table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ledger-card th { font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-3); }
.ledger-card td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.ledger-card td .mono { font-size: 11.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ledger-card td strong { color: var(--ink); font-weight: 500; }
.ledger-card .hint { margin: 16px 0 6px; }
.mono.pad { display: block; font-size: 12px; color: var(--flame-blue); overflow-wrap: anywhere; margin-bottom: 18px; }
.splitbar { display: flex; height: 8px; gap: 2px; margin-top: 8px; }
.splitbar > div { height: 100%; }
.split-50 { flex: 50; background: var(--leg-parent); }
.split-20a { flex: 20; background: var(--leg-lp); }
.split-20b { flex: 20; background: var(--leg-ab); }
.split-10 { flex: 10; background: var(--leg-creator); }

/* generic scroll reveal (content visible at rest; motion is additive) */
.rv { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .rv:not(.in) { opacity: 0.001; transform: translateY(18px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 10px 6px;
    align-items: center;
    gap: 10px;
  }
  .menu-btn i { display: block; width: 16px; height: 1px; background: currentColor; box-shadow: 0 5px 0 currentColor; margin-bottom: 5px; }
  .hdr.open .nav {
    display: flex;
    position: fixed;
    top: var(--hdr);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(17, 20, 21, 0.97);
    padding: 10px var(--gutter) 22px;
    border-bottom: 1px solid var(--line-2);
  }
  .hdr.open .nav a { padding: 14px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
  .hdr.open .nav a::after { display: none; }
  .split, .proof, .console, .coin-hero, .ledger-pair, .cycle { grid-template-columns: minmax(0, 1fr); }
  .bench { position: relative; top: 0; }
  .bench .build-card { max-width: 300px; }
  .laws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .laws .law:nth-child(3) { padding-left: 0; border-left: 0; }
  .laws .law:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readouts .readout:nth-child(3) { padding-left: 0; border-left: 0; }
  .readouts .readout:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .titleblock .meta > div:nth-child(n + 4) { border-top: 1px solid var(--line-2); }
  .closer .mark-big { opacity: 0.22; right: -24vw; width: 78vw; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .sound .t { display: none; }
  .hdr-tools .btn { display: none; }
  .sec-head, .page-head { grid-template-columns: minmax(0, 1fr); }
  .chapter, .chapter.hero {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    top: auto;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
  .chapter.hero { top: calc(var(--hdr) + var(--ca-h) + 14px); bottom: auto; }
  .chapter.hero h1 { font-size: clamp(34px, 10.4vw, 52px); margin-bottom: 16px; }
  .chapter.hero .lede { font-size: 15.5px; }
  .chapter.hero .hero-ctas { margin-top: 20px; gap: 18px; }
  .chapter h2 { font-size: clamp(26px, 7.6vw, 36px); margin-bottom: 12px; }
  .chapter .eyebrow { font-size: 10.5px; margin-bottom: 26px; max-width: none; color: var(--ink-2); }
.chapter .step-no { margin-bottom: 14px; }
  .chapter p { font-size: 15px; margin-bottom: 0; }
  .chapter .facts { display: none; }
  .chapter.low { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .chapters::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(17, 20, 21, 0), rgba(17, 20, 21, 0.86) 34%, rgba(17, 20, 21, 0.94));
    opacity: var(--scrim, 1);
    transition: opacity 0.5s;
  }
  .hero-wm { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .rail button span { display: none; }
  .rail button { padding: 10px 0 0; margin-right: 6px; width: 22px; font-size: 0; }
  .rail li.cur button span { display: block; font-size: 9px; width: auto; white-space: nowrap; }
  .rail li.cur button { width: auto; font-size: 9px; }
  .instruments { gap: 16px; }
  .inst { min-width: 0; }
  .inst .v { font-size: 12.5px; }
  .inst.opt { display: none; }
  .scroll-cue { display: none; }
  .hud-tag.opt { display: none; }
  .steps-3 { grid-template-columns: minmax(0, 1fr); }
  .steps-3 li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .leg { grid-template-columns: minmax(0, 1fr); }
  .wallet-row { grid-template-columns: 44px minmax(0, 1fr); }
  .wallet-link { grid-column: 2; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .laws, .readouts { grid-template-columns: minmax(0, 1fr); }
  .laws .law, .readouts .readout { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .titleblock .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock .meta > div { border-top: 1px solid var(--line-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .scan > * { clip-path: none !important; }
  .js .rv:not(.in) { opacity: 1; transform: none; }
}
