/* $MIDCURVE: a research paper, defaced with MS Paint */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #4d4d4d;
  --ink-3: #8a8a8a;
  --rule: #dedcd6;
  --tear: #9fd6ea;
  --tear-2: #d9f0f8;
  --pink: #f4a9c2;
  --hair: #c27a4a;
  --hl: #fff06a;
  --red: #d8302a;
  --green: #1f9d4a;
  --serif: "STIX Two Text", "Times New Roman", Times, serif;
  --gut: clamp(20px, 4vw, 56px);
  --bar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- hand-drawn strokes ---------- */
.hand { display: inline-block; line-height: 0; }
.hand-svg { display: inline-block; overflow: visible; vertical-align: middle; }
.hand-path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.js .hand-path.pre { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--rule); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.mark-curve { width: 40px; height: 19px; overflow: visible; }
.mark-curve path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.mark-dot { fill: var(--red); }
.bar-links { display: flex; align-items: center; gap: 6px; }
.icon-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background .2s; }
.icon-link svg { width: 19px; height: 19px; fill: var(--ink); }
.icon-link:hover { background: #f1f0ec; }

/* ---------- buttons ---------- */
.btn {
  --r: 15px 19px 13px 17px / 17px 13px 19px 15px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 2px solid var(--ink); border-radius: var(--r);
  font-weight: 600; font-size: 19px; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--ink); white-space: nowrap;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) rotate(-1.2deg); }
.btn:active { transform: translateY(1px) rotate(0deg) scale(.98); }
.btn-buy { background: var(--ink); color: var(--paper); }
.btn-buy:hover { background: #000; }
.btn-line:hover { background: var(--hl); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 16px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 21px; }
.btn-xl { min-height: 72px; padding: 0 44px; font-size: clamp(22px, 2.4vw, 28px); }
.btn .circle { position: absolute; inset: -16px -22px; width: calc(100% + 44px); height: calc(100% + 32px); pointer-events: none; overflow: visible; }
.btn .circle path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s cubic-bezier(.5,0,.3,1); }
.btn:hover .circle path, .btn:focus-visible .circle path { stroke-dashoffset: 0; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { color: var(--ink-2); font-size: 17px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--bar) + 2vh) var(--gut) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: 1fr auto;
  column-gap: 4vw; align-items: center;
}
.hero-copy { grid-column: 1; grid-row: 1; max-width: 640px; padding-bottom: 4vh; }
.hero-line { text-wrap: balance; margin: 0 0 26px; font-size: clamp(38px, 4.6vw, 74px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; }
.hero-line em { font-style: italic; font-weight: 400; color: var(--ink); }
.hero-sub { margin: 0 0 34px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); }
.hero-art { grid-column: 2; grid-row: 1; position: relative; align-self: end; width: 100%; aspect-ratio: 960 / 700; --gw: 54%; --gl: 29.5%; }
.hero-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.hc-base { stroke: var(--ink); stroke-width: 1.4; }
.hc-sd line { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 6; }
.hc-iq text { font-family: var(--serif); font-size: 17px; fill: var(--ink-2); text-anchor: middle; }
.hero-guy { position: absolute; left: var(--gl); bottom: 4%; width: var(--gw); height: auto; aspect-ratio: 478 / 459; overflow: visible; }
.poke { position: absolute; left: calc(var(--gl) + 2%); bottom: 18%; width: calc(var(--gw) * .62); aspect-ratio: 1 / 1.05; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 40%; -webkit-tap-highlight-color: transparent; }
.poke:focus-visible { outline-offset: -6px; }
.bubble {
  position: absolute; left: 0; top: 7%; max-width: min(44%, 270px); margin: 0; padding: 12px 16px 13px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px 22px 16px 21px / 20px 15px 22px 17px;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25; pointer-events: none;
  opacity: 0; transform: translateY(8px) scale(.94); transform-origin: 85% 100%;
  transition: opacity .25s ease, transform .4s cubic-bezier(.3,1.6,.5,1);
}
.bubble::after { content: ""; position: absolute; right: 22px; bottom: -13px; width: 20px; height: 20px; background: var(--paper); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: skewX(28deg) rotate(38deg); border-bottom-right-radius: 3px; }
.bubble.on { opacity: 1; transform: none; }
.bubble:empty { display: none; }
.research {
  display: flex; align-items: center; gap: 9px; position: absolute; right: -1%; top: 16%;
  font-size: 14px; color: var(--ink-2);
  background: var(--paper); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 11px 14px 10px 13px;
}
.research-task { white-space: nowrap; }
.research-bar { position: relative; width: 92px; height: 10px; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.research-bar i { position: absolute; inset: 0 auto 0 0; width: 99%; background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, transparent 3px 6px); animation: barcrawl 1.2s linear infinite; background-size: 8.5px 100%; }
@keyframes barcrawl { to { background-position: 8.5px 0; } }
.research-pct { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-title {
  grid-column: 1 / -1; grid-row: 2; margin: 0 0 0 -0.04em; padding: 1vh 0 2.4vh;
  font-size: min(15.3vw, 236px); line-height: .78; letter-spacing: -0.05em; font-weight: 700; white-space: nowrap;
  border-top: 1.2px solid var(--ink);
}
.hero-title span { display: inline-block; }
.hero-title .l { display: inline-block; will-change: transform; }

/* ---------- thesis head ---------- */
.paper-head {
  padding: clamp(110px, 16vh, 180px) var(--gut) clamp(20px, 4vh, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px;
  border-bottom: 1.2px solid var(--ink); margin: 0 var(--gut); padding-left: 0; padding-right: 0;
}
.paper-title { margin: 0; font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.paper-meta { margin: 0; color: var(--ink-2); font-size: 16px; text-align: right; }
.paper-meta-b { color: var(--ink); }

/* ---------- chapters ---------- */
.chapter { padding: clamp(80px, 14vh, 160px) var(--gut); }
.ch-title { text-wrap: balance; margin: 0 0 22px; font-size: clamp(40px, 5.6vw, 88px); line-height: .98; letter-spacing: -0.03em; font-weight: 600; max-width: 12em; }
.ch-title-sm { font-size: clamp(36px, 4vw, 60px); }
.ch-body { margin: 0; max-width: 31em; font-size: clamp(18px, 1.45vw, 22px); color: var(--ink-2); line-height: 1.5; }
.ch-aside { margin: 0; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 22px); }

/* galton */
.ch-galton { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text board" "ui board"; column-gap: 4vw; row-gap: 0; }
.ch-galton .ch-text { grid-area: text; align-self: end; }
.ch-galton .galton { grid-area: board; align-self: center; }
.ch-galton .galton-ui { grid-area: ui; align-self: start; padding-top: 36px; }
.galton { margin: 0; position: relative; }
.galton canvas { width: 100%; height: auto; aspect-ratio: 1 / 1.02; cursor: pointer; touch-action: manipulation; }
.galton-result { margin-top: 26px; min-height: 5.4em; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; max-width: 26em; }
.galton-result b { font-weight: 700; }
.galton-result .r-iq { display: inline-block; background: var(--hl); padding: 0 .25em; margin-right: .2em; border-radius: 3px 6px 4px 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.galton-result a { display: inline-block; margin-top: 10px; font-size: 18px; font-weight: 600; }

/* ---------- the ride ---------- */
.ride { position: relative; }
.ride-noscript { display: block; width: calc(100% - var(--gut) * 2); height: auto; margin: 0 var(--gut); }
html:not(.js) .ride-track { display: none; }
.ch-ride-intro { padding-bottom: clamp(40px, 8vh, 90px); }
.ride-track { position: relative; height: 760vh; }
.ride-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.world { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--serif); }
.world .curve { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.world .axis { stroke: var(--ink); stroke-width: 3; }
.world .sd { stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 10 14; opacity: .38; }
.world .pct { font-size: 36px; fill: var(--ink-2); text-anchor: middle; }
.world .iq { font-size: 46px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.world .iq-k { font-size: 30px; fill: var(--ink-2); text-anchor: end; }
.world .rant { font-size: 45px; fill: var(--ink); }
.world .w-hand { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.world .red { stroke: var(--red); }
.world .note-card { fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.world .note-sticky { fill: var(--hl); stroke: var(--ink); stroke-width: 4; }
.world .note-ink { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.world .note-red { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.world .note-txt { font-size: 30px; fill: var(--ink); }
.world .note-txt-i { font-size: 26px; fill: var(--ink-2); }
.world .candle { stroke: var(--ink); stroke-width: 4; }
.world .candle.up { fill: var(--green); }
.world .candle.dn { fill: var(--red); }
.world .wick { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.world .you { fill: var(--ink); }
.world .you-ring { fill: none; stroke: var(--ink); stroke-width: 3; }

.ride-caps { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--bar) + 2.2vh); height: 22vh; pointer-events: none; }
.ride-wide .ride-caps { top: calc(var(--bar) + 6vh); height: auto; }
.ride-wide .cap { max-width: min(30vw, 430px); }
.ride-wide .cap span { font-size: clamp(30px, 3vw, 48px); }
.ride-wide .cap-big span { font-size: clamp(44px, 4.6vw, 76px); }
.ride-wide .cap-end { max-width: none; }
.ride-wide .hud { left: var(--gut); transform: none; bottom: 5vh; }
.ride-wide .hud.off { transform: translateY(12px); }
.cap {
  position: absolute; left: 0; top: 0; max-width: 21em; opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.cap.on { opacity: 1; transform: none; }
.cap b { display: block; font-size: 18px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; font-variant-numeric: lining-nums; }
.cap span { text-shadow: 0 0 14px #fff, 0 0 6px #fff, 0 0 2px #fff; display: block; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
.cap-big span { font-size: clamp(34px, 5vw, 76px); color: var(--red); font-weight: 600; }
.cap-end { max-width: none; width: 100%; text-align: center; }
.cap-end span { font-size: clamp(26px, 3.4vw, 52px); }
.cap-end em { font-weight: 400; }
.ride-end { position: absolute; left: 0; right: 0; bottom: 4.5vh; display: flex; justify-content: center; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s; pointer-events: none; }
.ride-end.on { opacity: 1; transform: none; pointer-events: auto; }
.hud {
  position: absolute; left: 50%; bottom: 3.2vh; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px; padding: 10px 18px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px 18px 13px 17px;
  transition: opacity .35s, transform .35s;
}
.hud.off { opacity: 0; transform: translate(-50%, 12px); }
.hud-iq, .hud-t { display: flex; align-items: baseline; gap: 8px; }
.hud-k { white-space: nowrap; font-size: 15px; color: var(--ink-2); }
.hud-v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; min-width: 2.2em; }
.hud-t .hud-v { min-width: 3.9em; font-size: 22px; }
.hud-curve { width: 104px; height: 30px; overflow: visible; }
.hud-curve path { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.hud-curve circle { fill: var(--red); }

/* ---------- generator ---------- */
.ch-gen { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4vw; align-items: start; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer;
  border-radius: 12px 15px 11px 14px / 14px 11px 15px 12px; font-size: 17px; transition: background .2s, transform .2s;
}
.chip:hover { transform: translateY(-1px); background: #f4f3ef; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gen-own { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 12px; margin-bottom: 18px; align-items: start; }
.gen-own[hidden] { display: none; }
.gen-own label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
.gen-own input, .gen-own textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 17px; resize: vertical; color: var(--ink); }
.gen-frame { border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--paper); }
.gen-frame canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.gen-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.gen-note { color: var(--ink-2); font-size: 16px; }

/* ---------- roadmap ---------- */
.ch-roadmap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: center; }
.rm { position: relative; }
.rm-list { list-style: none; margin: 0; padding: 0; border-top: 1.2px solid var(--ink); }
.rm-list li { display: flex; align-items: baseline; gap: 28px; padding: 22px 0; border-bottom: 1.2px solid var(--rule); position: relative; }
.rm-q { font-size: 18px; font-weight: 600; color: var(--ink-2); width: 2em; flex: none; font-variant-numeric: lining-nums; }
.rm-t { position: relative; font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -0.02em; line-height: 1.1; transition: color .4s .3s; }
.rm-t svg.strike { position: absolute; left: -4%; top: 8%; width: 108%; height: 84%; overflow: visible; pointer-events: none; }
.rm-t svg.strike path { fill: none; stroke: var(--red); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.rm-list li.done .rm-t { color: var(--ink-3); }
.rm-peek { display: flex; align-items: flex-end; gap: 4px; margin-top: 30px; }
.rm-guy { width: 130px; height: auto; aspect-ratio: 478 / 459; flex: none; overflow: visible; }
.rm-say { font-size: 30px; color: var(--ink); padding-bottom: 66px; }

/* ---------- community ---------- */
.ch-community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3vw 4vw; align-items: end; }
.live { grid-column: 2; grid-row: 1; padding-bottom: 6px; }
.live[hidden] { display: none; }
.live-holders { margin: 0 0 28px; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.live-n { font-weight: 700; font-size: 1.9em; display: inline-block; margin-right: .1em; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; vertical-align: -0.08em; }
.live-row { display: flex; justify-content: space-between; font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }
.live-row span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.live-bar { position: relative; height: 18px; border: 1.5px solid var(--ink); border-radius: 5px 8px 6px 7px; overflow: hidden; }
.live-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.live-quip { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; }
.join { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1.2px solid var(--ink); margin-top: 4vh; }
.join-link {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 6px; text-decoration: none;
  font-size: clamp(26px, 3vw, 46px); letter-spacing: -0.02em; font-weight: 500; border-bottom: 1.2px solid var(--ink);
  transition: background .25s, padding .35s cubic-bezier(.2,.8,.2,1);
}
.join-link + .join-link { border-left: 1.2px solid var(--ink); padding-left: 28px; }
.join-link svg { width: .8em; height: .8em; fill: var(--ink); flex: none; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.join-link:hover { background: var(--hl); }
.join-link:hover svg { transform: rotate(-12deg) scale(1.15); }

/* ---------- risks ---------- */
.ch-risks { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4vw; align-items: start; }
.risks { position: relative; }
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.risk-list li { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; letter-spacing: -0.015em; max-width: 22em; }
.risk-list mark {
  color: inherit; background: linear-gradient(transparent 52%, var(--hl) 52%, var(--hl) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size 1.1s cubic-bezier(.6,0,.3,1); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em;
}
.risk-list li.on mark { background-size: 100% 100%; }
.sticky-note {
  width: 200px; height: 170px; display: grid; place-items: center; margin-top: 44px;
  background: var(--hl); border: 2px solid var(--ink); transform: rotate(-4deg); font-size: 27px;
  border-radius: 3px 5px 4px 6px;
}

/* ---------- final ---------- */
.final {
  position: relative; min-height: 100svh; display: grid; place-items: center; padding: 16vh var(--gut) 24vh; overflow: hidden;
  border-top: 1.2px solid var(--ink); margin: 6vh var(--gut) 0; padding-left: 0; padding-right: 0;
}
.final-c { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.final-title { margin: 0; font-size: clamp(64px, 12vw, 200px); line-height: .9; letter-spacing: -0.05em; font-weight: 700; }
.final-hand { margin: 1vh 0 5vh; font-size: clamp(90px, 13vw, 210px); line-height: 0; }
.final-hand .hand-path { stroke: var(--ink); }
.cta-final { flex-direction: column; gap: 14px; }
.final .guy { position: absolute; bottom: 0; width: clamp(160px, 22vw, 340px); height: auto; overflow: visible; z-index: 1; }
.final-l { left: -1vw; aspect-ratio: 1892 / 1844; }
.final-r { right: -1vw; aspect-ratio: 1912 / 1778; }
.final .final-m { left: 50%; width: clamp(110px, 10vw, 160px); aspect-ratio: 478 / 459; transform: translateX(-36%); z-index: 1; }
@keyframes nooo { 0%, 100% { transform: translateX(-36%) rotate(0); } 25% { transform: translateX(calc(-36% - 3px)) rotate(-2.5deg); } 75% { transform: translateX(calc(-36% + 3px)) rotate(2.5deg); } }
.final:has(.btn-buy:hover) .final-m, .final:has(.btn-buy:focus-visible) .final-m { animation: nooo .26s linear infinite; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding: 28px var(--gut) 34px; margin: 0 var(--gut); padding-left: 0; padding-right: 0; border-top: 1.2px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0; max-width: 46em; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- reveal ---------- */
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.js [data-rise].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding-top: calc(var(--bar) + 8px); }
  .hero-art { grid-column: 1; grid-row: 1; margin: 0 auto; width: min(100%, 620px); aspect-ratio: 960 / 760; --gw: 64%; --gl: 25.5%; }
  .hero-copy { grid-column: 1; grid-row: 2; padding: 26px 0 30px; }
  .hero-title { grid-row: 3; font-size: 14.6vw; }
  .research { left: auto; right: 0; top: 0; }
  .join { grid-template-columns: minmax(0, 1fr); }
  .ch-galton, .ch-gen, .ch-roadmap, .ch-community, .ch-risks { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ch-galton { grid-template-areas: "text" "board" "ui"; row-gap: 32px; }
  .ch-galton .galton-ui { padding-top: 0; }
  .live { grid-column: 1; grid-row: auto; }
  .sticky-note { margin: 30px 0 0 auto; transform: rotate(4deg); }
  .paper-head { grid-template-columns: 1fr; }
  .paper-meta { text-align: left; }
}
@media (max-width: 640px) {
  :root { --bar: 58px; }
  body { font-size: 17px; }
  .mark { font-size: 18px; gap: 8px; }
  .mark-curve { width: 32px; }
  .icon-link { display: none; }
  .bar-links .btn-sm { padding: 0 12px; font-size: 15px; min-height: 38px; }
  .hero-line { font-size: 40px; }
  .research { font-size: 12.5px; gap: 7px; padding: 6px 9px; }
  .hero-art { --gw: 57%; --gl: 29%; }
  .bubble { top: 0; max-width: 60%; font-size: 15px; padding: 9px 12px 10px; }
  .research { transition: opacity .25s; }
  .hero-art:has(.bubble.on) .research { opacity: 0; }
  .research-bar { width: 58px; }
  .btn-lg { min-height: 54px; font-size: 19px; padding: 0 24px; }
  .cta { gap: 12px 16px; }
  .chapter { padding-top: 72px; padding-bottom: 72px; }
  .ch-title { font-size: 42px; }
  .hud { gap: 10px; padding: 8px 12px; bottom: 2.4vh; }
  .hud-v { font-size: 21px; }
  .hud-t .hud-v { font-size: 17px; min-width: 4.4em; }
  .hud-k { font-size: 13px; }
  .hud-curve { width: 60px; }
  .ride-track { height: 680vh; }
  .ride-caps { height: 24vh; }
  .cap span { font-size: 27px; }
  .ride-end { flex-direction: column; align-items: center; bottom: 3vh; }
  .gen-own { grid-template-columns: 1fr; }
  .rm-list li { gap: 16px; padding: 18px 0; }
  .rm-guy { width: 96px; }
  .rm-say { font-size: 22px; padding-bottom: 46px; }
  .join { grid-template-columns: 1fr; }
  .join-link + .join-link { border-left: 0; padding-left: 6px; }
  .final { min-height: 92svh; padding-top: 10vh; padding-bottom: 34vh; }
  .final .guy { width: 44vw; }
  .final .final-m { display: none; }
  .final-title { font-size: 14.2vw; white-space: nowrap; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ride-track { height: auto; }
  .ride-stage { position: relative; height: 100svh; }
}
