/* Onsides holding page. Tokens mirror web/DESIGN.md; brand rationale in docs/brand/BRAND.md. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0F0E0B;
  --ink-2: #181713;
  --ink-3: #22201B;
  --ink-rule: #2C2A24;
  --chalk: #EFEBE0;
  --chalk-dim: #A29D90;
  --paper: #F4F1E8;
  --paper-2: #FBFAF5;
  --paper-rule: #D9D4C6;
  --text: #14130F;
  --text-muted: #5E5A50;
  --yellow: #FFE14A;
  --yes: #86A6FF;
  --no: #FF9655;
  --yes-light: #1E4FD8;
  --no-light: #A93F08;

  --font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 1.25em;
  font: 700 16px/1 var(--font-sans);
  font-variation-settings: "wdth" 112;
  letter-spacing: -.005em;
  text-decoration: none; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 240ms var(--ease), background-color 120ms, color 120ms, border-color 120ms, box-shadow 240ms var(--ease);
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform 240ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { --h: 38px; font-size: 14px; padding: 0 .95em; border-radius: 8px; }
.btn-lg { --h: 58px; font-size: 18px; padding: 0 1.5em; border-radius: 12px; }
.btn-xl { --h: 68px; font-size: 20px; padding: 0 1.8em; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 0 0 6px rgb(255 225 74 / .16); }
.btn-ghost { color: var(--chalk); border-color: #6E6A5E; background: var(--ink); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-ink { background: var(--text); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 0 0 6px rgb(20 19 15 / .12); }
.btn-ink-ghost { color: var(--text); border-color: var(--text); }
.btn-ink-ghost:hover { background: rgb(20 19 15 / .06); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms, border-color 240ms, transform 360ms var(--ease);
}
.nav.scrolled { background: rgb(15 14 11 / .94); border-color: var(--ink-rule); }
.nav.on-light { background: rgb(244 241 232 / .96); border-color: var(--paper-rule); color: var(--text); }
.nav.on-light .nav-brand rect:first-child { fill: var(--text); }
.nav.on-light .nav-brand circle { fill: var(--paper); }
.nav.on-light .nav-brand rect:last-child { fill: var(--yellow); }
.nav.on-light .btn-yellow { background: var(--text); color: var(--paper); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand svg rect, .nav-brand svg circle { transition: fill 240ms; }
.nav-word { font: 800 21px/1 var(--font-sans); font-variation-settings: "wdth" 125; letter-spacing: -.03em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; opacity: .8; transition: opacity 120ms; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 640px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Shared type ---------- */
.eyebrow, .kicker {
  font: 600 12.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--chalk-dim); margin: 0;
}
.kicker { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.light .kicker { color: var(--text-muted); }
.light .kicker::before { background: var(--text); }
.h2 {
  margin: 0 0 28px;
  font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(40px, 7.2vw, 104px); line-height: .94; letter-spacing: -.035em;
}
.h2 .dim { color: var(--chalk-dim); }
.lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 640px; color: var(--text-muted); margin: 0 0 56px; }
.fine { font-size: 13px; color: var(--text-muted); margin-top: 28px; }

/* Highlighter: yellow stroke that draws in once. */
.hl { font-style: normal; position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .02em; height: .22em;
  background: var(--yellow); transform-origin: left center; transform: scaleX(0);
  transition: transform 800ms var(--ease-out);
}
.hl.drawn::after { transform: scaleX(1); }
.hl-ink { padding: 0 .08em; }
.hl-ink::after { height: .82em; bottom: .04em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  padding: 104px 0 96px;
  overflow: hidden; isolation: isolate;
}
.hero-chart { position: absolute; inset: auto 0 0 0; width: 100%; height: 30%; z-index: -1; opacity: .85; }
.hero-pitch {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgb(239 235 224 / .028) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); position: relative; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.logo-stage { position: relative; margin: 34px 0 40px; max-width: 940px; }
.logo { display: block; width: 100%; max-width: 1180px; height: auto; overflow: visible; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.logo #tile { fill: var(--yellow); transition: fill 600ms var(--ease); }
.logo #ball { fill: var(--ink); }
.logo #mline { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 0; }
.logo #ghost path { fill: rgb(239 235 224 / .07); }
.logo #layerL path { fill: var(--wl, var(--yes)); transition: fill 520ms var(--ease); }
.logo #layerR path { fill: var(--wr, var(--no)); transition: fill 520ms var(--ease); }
.logo #idot { fill: var(--yellow); }
.logo #wline rect { fill: var(--yellow); }
.logo #roL { fill: var(--yes); }
.logo #roR { fill: var(--no); }
.logo #readout { transition: opacity 400ms; }
.logo-hint {
  position: absolute; right: 0; bottom: -30px; margin: 0;
  font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-dim);
  opacity: 0; transition: opacity 600ms;
}
.logo-hint.show { opacity: .8; }
.logo-hint::before { content: "↔ "; color: var(--yellow); }

.hero-h1 {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(40px, 6.4vw, 96px); line-height: .92; letter-spacing: -.04em;
}
.hero-h1 > span { display: block; }
.hero .hl::after { background: var(--yellow); opacity: .9; height: .14em; bottom: -.02em; }
.hero-sub { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: #C9C4B6; margin: 24px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-fine { font: 500 12.5px/1.4 var(--font-mono); color: var(--chalk-dim); margin: 22px 0 0; letter-spacing: .02em; }

.reveal-hero { opacity: 0; transform: translateY(22px); }
.ready .reveal-hero { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(1.9s + var(--d) * 110ms); }
.ready .eyebrow.reveal-hero { transition-delay: 0s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid #6E6A5E; border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--yellow); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 16vw, 200px) 0; border-top: 1px solid var(--ink-rule); }
.manifesto-text {
  margin: 0; max-width: 1100px;
  font-weight: 700; font-variation-settings: "wdth" 112;
  font-size: clamp(28px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.025em;
}
.manifesto-text .w { color: rgb(239 235 224 / .16); transition: color 240ms linear; }
.manifesto-text .w.on { color: var(--chalk); }
.manifesto-text .w.key.on { color: var(--yellow); }

/* ---------- Sides ---------- */
.sides { padding: 0 0 clamp(100px, 14vw, 180px); }
.sides-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.side { padding: 48px clamp(16px, 4vw, 56px); border-radius: 18px; }
.side-yes { background: #18213D; text-align: right; }
.side-no { background: #33200F; }
.side-label { margin: 18px 0 6px; font: 800 clamp(48px, 9vw, 140px)/.85 var(--font-sans); font-variation-settings: "wdth" 125; letter-spacing: -.04em; }
.side-yes .side-label { color: var(--yes); }
.side-no .side-label { color: var(--no); }
.side-copy { margin: 12px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: var(--chalk); }
.side-line { width: clamp(24px, 4vw, 56px); display: flex; justify-content: center; }
.side-line span { width: 10px; background: var(--yellow); border-radius: 3px; transform-origin: top; }
.side-line.in span { animation: drawLine 900ms var(--ease-out) both; }
@keyframes drawLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.og { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -1px; }
.og-yes { background: currentColor; }
.og-no { border: 2.5px solid currentColor; }
.side-yes .og { color: var(--yes); width: 22px; height: 22px; }
.side-no .og { color: var(--no); width: 22px; height: 22px; border-width: 3.5px; }
.sides-tag { grid-column: 1 / -1; text-align: center; margin: 44px auto 0; max-width: 760px; font: 700 clamp(20px, 2.4vw, 32px)/1.2 var(--font-sans); font-variation-settings: "wdth" 112; letter-spacing: -.02em; }
.sides-tag em { font-style: normal; color: var(--yellow); }
@media (max-width: 640px) {
  .sides-grid { grid-template-columns: 1fr; }
  .side-yes { text-align: left; }
  .side-line { width: 100%; height: 40px; }
  .side-line span { width: 100%; height: 8px; transform-origin: left; }
  .side-line.in span { animation-name: drawLineX; }
}
@keyframes drawLineX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Light sections ---------- */
.light { background: var(--paper); color: var(--text); }
.fees, .markets { padding: clamp(100px, 13vw, 170px) 0; }

/* ---------- Fee tool ---------- */
.fee-tool { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .fee-tool { grid-template-columns: 1fr; } }
.fee-controls { display: grid; gap: 28px; }
.field { display: grid; gap: 10px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; }
.field-row output { font: 800 34px/1 var(--font-sans); font-variation-settings: "wdth" 125; letter-spacing: -.03em; }
.field-help { font-size: 13px; color: var(--text-muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--text) var(--fill), var(--paper-rule) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--paper-rule); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--text); transition: transform 120ms; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--text); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.curve { margin: 4px 0 0; padding: 22px 22px 16px; background: var(--paper-2); border: 1px solid var(--paper-rule); border-radius: 14px; }
.curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve .axis { stroke: var(--text); stroke-width: 1.5; }
.curve-path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.curve-v { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 4; }
.curve-dot { fill: var(--yellow); stroke: var(--text); stroke-width: 2.5; }
.curve .tick { font: 500 11px var(--font-mono); fill: var(--text-muted); }
.curve figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

.receipt {
  position: relative; background: var(--paper-2); border: 1.5px solid var(--text); border-radius: 16px;
  padding: 26px 26px 22px; box-shadow: 10px 10px 0 var(--text);
}
.receipt::before, .receipt::after { /* ticket notches */
  content: ""; position: absolute; top: 62px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--text);
}
.receipt::before { left: -11px; clip-path: inset(0 0 0 50%); }
.receipt::after { right: -11px; clip-path: inset(0 50% 0 0); }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1.5px dashed var(--paper-rule); font: 600 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.receipt-head .num { color: var(--text); text-transform: none; letter-spacing: 0; text-align: right; }
.li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 16px; }
.li i { flex: 1; border-bottom: 2px dotted var(--paper-rule); transform: translateY(-4px); }
.li .num { font-weight: 700; }
.li.muted { color: var(--text-muted); font-size: 14px; }
.li.total { margin-top: 6px; padding-top: 16px; border-top: 2px solid var(--text); font-weight: 800; }
.li.total .num { font-size: 32px; font-variation-settings: "wdth" 125; letter-spacing: -.03em; }
.costbar { display: flex; height: 14px; margin: 14px 0 4px; border-radius: 3px; overflow: hidden; background: var(--paper-rule); }
.costbar span { display: block; height: 100%; transition: width 360ms var(--ease); }
.cb-price { background: var(--text); }
.cb-fee { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--text); }
.receipt .btn { margin-top: 18px; }
.receipt-note { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; text-align: center; }
.flash { animation: flash 600ms var(--ease); }
@keyframes flash { 0% { background: rgb(255 225 74 / .7); } 100% { background: transparent; } }

/* ---------- Built tiles ---------- */
.built { padding: clamp(100px, 13vw, 170px) 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--ink-rule); border-radius: 18px; padding: 32px 28px 30px;
  min-height: 250px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 240ms, transform 360ms var(--ease);
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--yellow); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--ease-out); }
.tile:hover { border-color: #4A463C; transform: translateY(-3px); }
.tile:hover::before { transform: scaleY(1); }
.tile-big { margin: 0; font: 800 clamp(32px, 3.3vw, 46px)/.95 var(--font-sans); font-variation-settings: "wdth" 118; letter-spacing: -.035em; }
.tile-copy { margin: 26px 0 0; color: #C9C4B6; font-size: 16px; }
.tile-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.tile-yellow .tile-copy { color: var(--ink); }
.tile-yellow::before { background: var(--ink); }

/* ---------- Market cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper-2); border: 1px solid var(--paper-rule); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; transition: border-color 240ms, transform 360ms var(--ease), box-shadow 360ms var(--ease); }
.card:hover { border-color: var(--text); transform: translateY(-3px); box-shadow: 6px 6px 0 var(--text); }
.card-cat { margin: 0; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.card-q { margin: 14px 0 18px; font: 700 21px/1.15 var(--font-sans); font-variation-settings: "wdth" 112; letter-spacing: -.015em; min-height: 2.3em; }
.spark { width: 100%; height: 70px; display: block; margin-top: auto; }
.card-foot { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--paper-rule); font: 600 13px/1 var(--font-mono); }
.t-yes { color: var(--yes-light); }
.t-no { color: var(--no-light); }
.card-foot b { color: var(--text); font: 800 17px/1 var(--font-sans); font-variation-settings: "wdth" 112; margin-left: 4px; transition: background-color 600ms; border-radius: 3px; }
.card-foot .og { width: 10px; height: 10px; margin-right: 2px; }
.card-foot .og-no { border-width: 2px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; background: var(--yellow); color: var(--text); padding: clamp(110px, 15vw, 200px) 0; }
.final-line { position: absolute; top: 0; bottom: 0; left: 78%; width: clamp(14px, 2vw, 28px); background: var(--text); transform-origin: top; transform: scaleY(0); transition: transform 1200ms var(--ease-out); }
.final.in .final-line { transform: scaleY(1); }
.final-inner { position: relative; }
.kicker-ink { color: var(--text); }
.kicker-ink::before { background: var(--text); }
.final-h { margin: 0; font: 800 clamp(72px, 17vw, 260px)/.82 var(--font-sans); font-variation-settings: "wdth" 125; letter-spacing: -.055em; }
.final-sub { max-width: 520px; font-size: clamp(17px, 1.7vw, 21px); margin: 36px 0 40px; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 760px) { .final-line { left: auto; right: 5%; width: 10px; } }

/* ---------- Footer ---------- */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--ink-rule); }
.foot-inner { display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-sans); font-variation-settings: "wdth" 125; letter-spacing: -.03em; margin-bottom: 14px; }
.rt { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--chalk-dim); max-width: 720px; }
.rt-bar { flex: none; width: 3px; height: 1.4em; background: var(--yellow); margin-top: 1px; }
.copy { margin: 18px 0 0; font: 500 12px var(--font-mono); color: #6E6A5E; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(3n+2), .cards .reveal:nth-child(4n+2) { transition-delay: 90ms; }
.tiles .reveal:nth-child(3n), .cards .reveal:nth-child(4n+3) { transition-delay: 180ms; }
.cards .reveal:nth-child(4n) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero { opacity: 1; transform: none; }
}

/* ---------- Phones: built for the thumb, not shrunk from desktop ---------- */
.rail-meta, .mcta { display: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Hero: stacked logo fills the width; the chart runs under the fine print, not the buttons. */
  .hero { align-items: flex-start; padding: 92px 0 168px; min-height: 100svh; }
  .hero-chart { height: 150px; }
  .logo-stage { margin: 26px 0 34px; }
  .logo-hint { bottom: -22px; }
  .hero-h1 { font-size: clamp(40px, 12.4vw, 56px); line-height: .94; }
  .hero-sub { margin: 20px 0 26px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-fine { text-align: center; }
  .scroll-cue { display: none; }

  .manifesto { padding: 96px 0; }
  .manifesto-text { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.1; }

  .side { padding: 30px 24px; }
  .side-label { font-size: clamp(76px, 26vw, 112px); }

  .h2 { font-size: clamp(42px, 12.6vw, 60px); }
  .lede { margin-bottom: 36px; }
  .receipt { box-shadow: 6px 6px 0 var(--text); padding: 22px 20px 18px; }
  .receipt-head { flex-direction: column; gap: 6px; }
  .receipt-head .num { text-align: left; }
  input[type="range"] { height: 44px; }
  input[type="range"]::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -13px; }

  /* Tiles and market cards become swipeable rails that bleed to the screen edge. */
  [data-rail] {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 36px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 14px;
    scroll-padding-inline: var(--gutter);
  }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { flex: 0 0 82%; scroll-snap-align: start; }
  .tile { min-height: 300px; }
  .tile-big { font-size: 44px; }
  .card { min-height: 290px; }
  .rail-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
  .rail-bar { flex: 1; height: 3px; background: var(--ink-rule); border-radius: 2px; overflow: hidden; }
  .light .rail-bar { background: var(--paper-rule); }
  .rail-bar span { display: block; height: 100%; background: var(--yellow); transform-origin: left; transition: transform 120ms linear; }
  .light .rail-bar span { background: var(--text); }
  .rail-count { font: 600 12px/1 var(--font-mono); color: var(--chalk-dim); font-variant-numeric: tabular-nums; }
  .light .rail-count { color: var(--text-muted); }

  .final { padding: 110px 0 130px; }
  .final-h { font-size: clamp(80px, 23vw, 120px); }
  .final-inner { padding-right: calc(var(--gutter) + 22px); }
  .final-line { right: 14px; width: 8px; }
  .final-ctas .btn { width: 100%; }

  .foot { padding-bottom: 110px; }

  /* Sticky demo button once the hero's own button has scrolled away. */
  .mcta {
    display: block; position: fixed; z-index: 60; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateY(calc(100% + 30px)); transition: transform 420ms var(--ease-out);
  }
  .mcta.show { transform: none; }
  .mcta .btn { box-shadow: 0 10px 30px rgb(0 0 0 / .45), 0 0 0 1.5px var(--ink); }
}
