:root {
  --ink: #1d1611;
  --brown: #2b1d14;
  --red: #e0362c;
  --hot: #ff4d3d;
  --green: #1fbf6a;
  --gold: #ffd166;
  --muted: #a39d97;
  --line: #ecebe8;
  --night: #0b0908;
  --display: "Inter Tight", system-ui, sans-serif;
  --hand: Caveat, "Comic Sans MS", cursive;
  --pixel: VT323, ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; }

/* =========================================================
   scroll scenes: a tall section with a pinned viewport inside
   ========================================================= */

.scene { position: relative; height: var(--len, 400vh); }
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* captions that fade in for a slice of a scene's progress.
   Captions marked data-soft pull focus: the scene behind them defocuses while they're up. */
.cap {
  position: absolute;
  left: 50%;
  bottom: calc(5vh + 52px);
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.cap.on { opacity: 1; transform: translate(-50%, 0); }
.cap.high { top: 11vh; bottom: auto; }
.cap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.8vw, 84px);
  line-height: .98;
  letter-spacing: -.015em;
}
.cap p, .lede {
  max-width: 44ch;
  margin: 20px auto 0;
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a433d;
}
.cap.dark { color: #f4f1ee; }
.cap.dark p { color: #cfc8c1; }
.cap p { color: #2a231e; }
.cap.dark p { color: #e6e0da; }

.stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  padding: .02em .25em .04em;
  border: .08em solid currentColor;
  border-radius: .12em;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 9vw, 120px);
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-9deg) scale(2.6);
  pointer-events: none;
}
.stamp.on {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-9deg) scale(1);
  transition: transform .28s cubic-bezier(.2, 1.8, .4, 1), opacity .08s;
}

.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }

/* =========================================================
   scene 1 · hero + zoom-out
   ========================================================= */

#mosaic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter .6s ease, opacity .6s ease; }
.pin.soft #mosaic { filter: blur(3px); opacity: .32; }
/* our monkey lives on his own layer so he stays sharp while the field defocuses */
.home { position: absolute; left: 0; top: 0; z-index: 1; height: auto; opacity: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; }

.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 72px 16px 64px;
}

.top {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 61px; /* the height of the CA pill's row, so the links line up with it */
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
}
.top nav { display: flex; gap: 18px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* pinned for the whole page, over every scene */
.ca-top {
  position: fixed;
  left: 20px;
  top: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 40px);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .35);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.ca-top:hover { border-color: var(--muted); color: var(--ink); }
.ca-top .k { font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.ca-top code { font-family: var(--pixel); font-size: 17px; line-height: 1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-ic { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
[data-ca].empty { cursor: default; }
[data-ca].empty .copy-ic, [data-ca].empty .copy-lab { display: none; }

/* The stage is a fixed-ratio box; everything inside is placed in % so it scales.
   Wide and narrow layouts swap positions via the custom properties below. */
.stage-wrap { width: min(640px, 100%, calc((100svh - 120px) * 1.52)); container-type: inline-size; }

.stage {
  position: relative;
  aspect-ratio: 640 / 420;
  --mx: 42.5%; --my: 47.3%; --mw: 15%;
  --lx: 0%; --ly: 4%;
  --f1: 6.4cqw; --f2: 3.6cqw; --f3: 4.6cqw;
  --bx: 51%; --bb: 58%; --bw: 47%; --fb: 3.6cqw;
  --rx: 56%; --ry: 71%; --rw: 42%;
}

@media (orientation: portrait) {
@container (max-width: 519px) {
  .stage {
    aspect-ratio: 360 / 500;
    --mx: 39%; --my: 53.2%; --mw: 22%;
    --lx: 2%; --ly: 2%;
    --f1: 9cqw; --f2: 5.6cqw; --f3: 6.6cqw;
    --bx: 44%; --bb: 52%; --bw: 55%; --fb: 4.9cqw;
    --rx: 22%; --ry: 71%; --rw: 74%;
  }
  .stage .arrow-wide { display: none; }
  .stage .arrow-narrow { display: block; }
}
}

.label {
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  font-family: var(--hand);
  line-height: 1.02;
  pointer-events: none;
}
.label > div { opacity: 0; animation: fade .4s ease forwards; }
.label .l1 { font-size: var(--f1); font-weight: 700; animation-delay: .2s; }
.label .l2 {
  position: relative;
  display: inline-block;
  font-size: var(--f2);
  font-weight: 600;
  color: var(--muted);
  animation-delay: .7s;
}
.label .l2::after {
  content: "";
  position: absolute;
  left: -4%;
  top: 52%;
  height: .11em;
  width: 0;
  background: var(--red);
  border-radius: 99px;
  transform: rotate(-4deg);
  transform-origin: left center;
  animation: strike .35s ease-out 1.2s forwards;
}
.label .l3 { font-size: var(--f3); font-weight: 700; color: var(--red); animation-delay: 1.6s; }

.arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arrow-narrow { display: none; }
.arrow path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.arrow .shaft { animation: draw .55s ease-out 2s forwards; }
.arrow .head  { animation: draw .2s ease-out 2.5s forwards; }

.monkey {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: var(--mw);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.monkey img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.monkey:hover img, .monkey.hop img { animation: hop .45s ease; }
.monkey:focus-visible { outline: 2px dashed var(--muted); outline-offset: 6px; }

.pxb, .bubble {
  background: #fff;
  color: var(--brown);
  font-family: var(--pixel);
  line-height: 1.05;
  padding: .3em .55em .4em;
  box-shadow:
    0 -3px 0 0 var(--brown),
    0 3px 0 0 var(--brown),
    -3px 0 0 0 var(--brown),
    3px 0 0 0 var(--brown);
}
.tail { position: absolute; left: 12px; top: 100%; width: 18px; height: 18px; overflow: visible; }
.tail path { fill: #fff; stroke: var(--brown); stroke-width: 3; }

.bubble {
  position: absolute;
  left: var(--bx);
  bottom: var(--bb);
  max-width: var(--bw);
  font-size: var(--fb);
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.bubble.on { opacity: 1; transform: none; }
.bubble .ghost { visibility: hidden; }

.reply {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  max-width: var(--rw);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.reply.on { opacity: 1; transform: none; }
.reply .who { margin: 0 0 4px 4px; font-size: 11px; color: var(--muted); }
.reply .msg {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px 14px 14px 14px;
  background: #f3f2f0;
  font-size: clamp(13px, 2.3cqw, 15px);
  line-height: 1.35;
  color: #222;
}

.dots { display: inline-flex; gap: 4px; padding: 5px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #b7b2ad; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }

/* red marker that follows our monkey while the camera pulls back */
.tracker {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height;
}
.tracker svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tracker path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tracker span {
  position: absolute;
  left: 92%;
  bottom: 82%;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--red);
  white-space: nowrap;
  transform: rotate(-6deg);
  text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px #fff, 0 0 14px #fff;
}

/* =========================================================
   regular sections
   ========================================================= */

.sec { position: relative; padding: clamp(110px, 16vw, 200px) 16px; overflow: hidden; text-align: center; }

.big {
  max-width: 14ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 124px);
  line-height: .95;
  letter-spacing: -.02em;
}
.scribble, .hand-note {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--red);
  font-size: clamp(28px, 3.6vw, 44px);
  transform: rotate(-3deg);
}
.scribble { margin-top: 10px; }
.hand-note { margin-top: 44px; font-size: clamp(24px, 2.8vw, 34px); }

.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.scribble.reveal.in, .hand-note.reveal.in { transform: rotate(-3deg); }

.draw {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .3, 1) .5s; }
.js .in .draw { stroke-dashoffset: 0; }

/* marquees */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.track { display: flex; width: max-content; animation: slide var(--dur, 60s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- headlines ---------- */

.news .big { max-width: 16ch; }
.ring-word { position: relative; display: inline-block; margin: 0 .14em; }
.ring-word svg { position: absolute; left: -14%; top: -12%; width: 128%; height: 126%; overflow: visible; pointer-events: none; }
.him { height: .78em; width: auto; margin-left: .14em; vertical-align: -.04em; }

.headlines { display: grid; gap: 22px; margin-top: clamp(64px, 9vw, 110px); }
.hl {
  display: flex;
  align-items: center;
  padding-right: 1em;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  white-space: nowrap;
}
.hl.it { font-style: italic; }
.hl b {
  font-weight: 400;
  padding: .02em .22em;
  margin: 0 .04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M30 22 C 70 4, 160 6, 186 34 C 204 58, 160 92, 96 92 C 40 92, 6 74, 10 48 C 13 28, 44 14, 92 10' fill='none' stroke='%23e0362c' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hl img { height: .8em; width: auto; margin-left: 1em; }

/* ---------- chat on a laptop ---------- */

.chat-sec .big { max-width: 13ch; }
.laptop { position: relative; max-width: 720px; margin: 70px auto 0; }
.screen {
  padding: 14px;
  border-radius: 22px 22px 6px 6px;
  background: #2b2725;
  box-shadow: 0 50px 90px -50px rgba(30, 15, 5, .55);
}
.base {
  position: relative;
  height: 18px;
  margin: 0 -7%;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(#e2dfdb, #b3ada6);
}
.base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #a39c95;
}
.base-monkey { position: absolute; right: 1.5%; bottom: 100%; width: 38px; height: auto; }
.try {
  position: absolute;
  left: 4%;
  top: calc(100% + 16px);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
  text-align: left;
}
.try span { display: inline-block; transform: rotate(-5deg); }
.try svg { position: absolute; left: 100%; top: -78px; width: 60px; height: 96px; overflow: visible; }
.try path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.chat { overflow: hidden; border-radius: 10px; background: #fff; text-align: left; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 191, 106, .18); }
.chat-head span { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: clamp(280px, 40vh, 360px);
  overflow-y: auto;
  padding: 22px 16px;
  scroll-behavior: smooth;
}
.row { display: flex; align-items: flex-end; gap: 10px; }
.row.me { justify-content: flex-end; }
.row.me .pxb { position: relative; max-width: 78%; font-size: 21px; margin-right: 4px; }
.row .avatar { width: 30px; height: auto; flex: none; }
.ai-b {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #f3f2f0;
  font-size: 15px;
  line-height: 1.45;
}
.chips { display: flex; align-items: center; gap: 10px; padding: 4px 12px 14px; }
.chip-list { display: flex; flex: 1; flex-wrap: wrap; gap: 10px; min-width: 0; max-height: 38px; padding: 4px 2px; overflow: hidden; }
.chip-nav, .chip {
  flex: none;
  padding: 3px 10px 4px;
  border: 0;
  background: #fff;
  color: var(--brown);
  font-family: var(--pixel);
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 -2px 0 0 var(--brown), 0 2px 0 0 var(--brown), -2px 0 0 0 var(--brown), 2px 0 0 0 var(--brown);
  margin: 2px;
}
.chip-nav { width: 30px; height: 30px; padding: 0 0 2px; font-size: 22px; line-height: 1; }
.chip-nav:hover, .chip:hover { background: var(--brown); color: #fff; }
.chat-form { display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.chat-form button { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }

/* =========================================================
   scene · leverage
   ========================================================= */

.lev-pin { background: #fff; color: var(--ink); --liq: var(--red); --a: 0px; --n: clamp(90px, min(30vw, 36vh), 360px); }
.lev-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lev-chart .price { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lev-chart .liq { stroke: var(--liq); stroke-width: 3; stroke-dasharray: 12 9; }
.lev-chart .liq-t { fill: var(--liq); font-family: var(--pixel); font-size: 24px; text-anchor: end; }

.lev-num {
  position: absolute;
  left: 0;
  right: 0;
  top: 13vh;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--n);
  line-height: .82;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.lev-mood {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(13vh + var(--n) * .86);
  text-align: center;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 58px);
  transform: rotate(-3deg);
}
.lev-monkey {
  position: absolute;
  left: 50%;
  top: 70%;
  width: clamp(92px, 10vw, 136px);
  transform: translate(-50%, -100%);
  transition: transform .9s cubic-bezier(.5, 0, .9, .4);
}
.lev-pin.dead .lev-monkey { transform: translate(-50%, 75vh) rotate(-160deg); }
.lev-num { transition: opacity .3s; }
.lev-pin.dead .lev-num { opacity: .12; }
.lev-monkey img { display: block; width: 100%; height: auto; animation: tremble .08s linear infinite; }
.sweat {
  position: absolute;
  z-index: 1;
  width: 7px;
  height: 10px;
  background: #79c2ff;
  box-shadow: 0 0 0 2px #2b5f8f;
  opacity: 0;
}
.sweat.s1 { left: 10%; top: 8%; }
.sweat.s2 { left: 58%; top: 2%; }
.sweat.s3 { left: 2%; top: 30%; }
.lev-pin.sweaty .sweat { animation: drip .9s ease-in infinite; }
.lev-pin.sweaty .s2 { animation-delay: .3s; }
.lev-pin.sweaty .s3 { animation-delay: .6s; }
.lev-cap { top: 9vh; bottom: auto; }
.flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .6s ease-out; }
.crack { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.crack path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: bevel; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lev-pin.dead .crack { opacity: .9; }
.lev-pin.dead .crack path { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease-out; }
.lev-pin.dead .lev-monkey img { animation: none; }
#lev-stamp { color: #fff; }

/* =========================================================
   scene · the fall
   ========================================================= */

.fall-pin { background: var(--night); color: #f4f1ee; }
.streaks i {
  position: absolute;
  top: 0;
  width: 2px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .28));
  will-change: transform;
}
.floor { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform; }
.floor .half {
  position: absolute;
  top: -2px;
  width: 50%;
  height: 4px;
  background: #f4f1ee;
  transition: transform .8s cubic-bezier(.3, .7, .3, 1), opacity .8s;
}
.floor .half.l { left: 0; transform-origin: 0 50%; }
.floor .half.r { right: 0; transform-origin: 100% 50%; }
.floor.broken .half.l { transform: translateY(30px) rotate(-10deg); opacity: .2; }
.floor.broken .half.r { transform: translateY(30px) rotate(10deg); opacity: .2; }
.floor .lbl {
  position: absolute;
  left: 18px;
  bottom: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .6s;
}
.floor .sub {
  position: absolute;
  left: 20px;
  top: 14px;
  max-width: 80vw;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--gold);
  transition: opacity .6s;
}
.floor.broken .lbl, .floor.broken .sub { opacity: .25; }
.floor.red .half { background: var(--hot); }
.floor.red .lbl { color: var(--hot); }

.debris span, .debris b { position: absolute; top: 0; will-change: transform; }
.debris span { font-family: var(--pixel); font-size: 30px; color: var(--hot); }
.debris b { width: 12px; background: var(--hot); }
.debris b::before { content: ""; position: absolute; left: 5px; top: -14px; bottom: -14px; width: 2px; background: var(--hot); }

.faller {
  position: absolute;
  left: 50%;
  top: 36%;
  z-index: 3;
  width: clamp(76px, 8vw, 112px);
  height: auto;
  will-change: transform;
}
.depth {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 3;
  font-family: var(--pixel);
  font-size: 26px;
  color: var(--hot);
  font-variant-numeric: tabular-nums;
}
.fall-cap { bottom: 16vh; }

/* =========================================================
   scene · sometimes he hits
   ========================================================= */

.moon-pin { background: var(--night); color: #f4f1ee; }
.stars i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  will-change: transform;
  animation: twinkle 3s ease-in-out infinite;
}
.gains { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(transparent 28%, #000 46%); mask-image: linear-gradient(transparent 28%, #000 46%); }
.gains span, .gains b { position: absolute; top: 0; will-change: transform; }
.gains span { font-family: var(--pixel); font-size: 30px; color: var(--green); }
.gains b { width: 12px; background: var(--green); }
.gains b::before { content: ""; position: absolute; left: 5px; top: -14px; bottom: -14px; width: 2px; background: var(--green); }
.moon {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fffaf0, #efe6d2 55%, #d6c9ae);
  box-shadow: 0 0 90px 14px rgba(255, 238, 205, .16);
  will-change: transform;
}
.crater { position: absolute; border-radius: 50%; background: rgba(150, 128, 98, .2); box-shadow: inset 3px 4px 0 rgba(120, 98, 72, .14); }
.c1 { left: 20%; top: 32%; width: 19%; height: 19%; }
.c2 { left: 60%; top: 56%; width: 13%; height: 13%; }
.c3 { left: 38%; top: 70%; width: 8%; height: 8%; }
.c4 { left: 66%; top: 22%; width: 7%; height: 7%; }
.flag {
  position: absolute;
  left: 31%;
  top: 4%;
  transform: translate(-50%, -100%) scale(0);
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.3, 1.7, .5, 1);
}
.flag.up { transform: translate(-50%, -100%) scale(1); }
.flag .pole { display: block; width: 3px; height: clamp(40px, 6vh, 58px); background: #d8d0c0; }
.flag span { position: absolute; left: 3px; top: 0; padding: 3px 7px 4px; background: var(--red); color: #fff; font-family: var(--pixel); font-size: 18px; line-height: 1; }
.candle {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: clamp(44px, 5vw, 66px);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #22d877, #17a85c);
  box-shadow: 0 0 50px rgba(31, 191, 106, .35);
  transform: translateX(-50%);
}
.rider { position: absolute; left: 50%; top: 0; z-index: 3; width: clamp(64px, 7vw, 96px); height: auto; will-change: transform; }
.pnl {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 3;
  font-family: var(--pixel);
  font-size: 26px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   your turn · simulator
   ========================================================= */

.sim { background: var(--night); color: #f4f1ee; padding-top: 40px; }
.sim .lede { color: #9b948d; }
.term {
  max-width: 920px;
  margin: 56px auto 0;
  overflow: hidden;
  border: 1px solid #2a2421;
  border-radius: 18px;
  background: #110f0e;
  text-align: left;
}
.hud { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #2a2421; }
.hud > div { padding: 14px 18px; border-right: 1px solid #2a2421; }
.hud > div:last-child { border-right: 0; }
.hud .k { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7c756f; }
.hud .v { font-family: var(--pixel); font-size: clamp(28px, 4.4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.v.up { color: var(--green); }
.v.down { color: var(--hot); }

.chart-wrap { position: relative; height: clamp(250px, 38vw, 360px); transition: box-shadow .3s; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart-wrap.danger { animation: danger .5s ease-in-out infinite alternate; }
.sim-monkey {
  position: absolute;
  left: 16px;
  bottom: 12px;
  width: 66px;
  height: auto;
  transform-origin: 30% 100%;
  transition: transform .5s cubic-bezier(.5, -.5, .5, 1.5);
}
.chart-wrap.danger .sim-monkey { animation: tremble .08s linear infinite; --a: 2px; }
.chart-wrap.dead .sim-monkey { transform: rotate(84deg) translate(10%, -10%); }
#sim-stamp { color: var(--hot); }
.toast {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 4;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 28px;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid #2a2421;
}
.lev-read { display: flex; align-items: baseline; gap: 14px; }
#lev-big { font-family: var(--pixel); font-size: 58px; line-height: .9; }
#lev-word { font-family: var(--hand); font-style: normal; font-weight: 700; font-size: 28px; color: var(--gold); }
.lev-ctl input { width: 100%; margin-top: 6px; accent-color: var(--hot); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button {
  padding: 2px 10px;
  border: 1px solid #3a332f;
  border-radius: 6px;
  background: transparent;
  color: #cfc9c3;
  font-family: var(--pixel);
  font-size: 19px;
  cursor: pointer;
}
.presets button:hover { border-color: #cfc9c3; }
.actions { display: flex; gap: 12px; }
.btn-long, .btn-short {
  padding: 18px 30px;
  border: 0;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn-long { background: var(--green); color: #052611; box-shadow: 0 6px 0 #0d7a3f; }
.btn-long:active { transform: translateY(4px); box-shadow: 0 2px 0 #0d7a3f; }
.btn-long:disabled { opacity: .45; cursor: default; transform: none; }
.btn-short { background: #24201e; color: #5f5853; box-shadow: 0 6px 0 #171413; }
.btn-short.nope { animation: wiggle .4s; }
.sim-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #2a2421;
  font-size: 13px;
  color: #7c756f;
}
.sim-foot b { color: #f4f1ee; }
.share { padding: 8px 14px; border-radius: 999px; background: #f4f1ee; color: var(--night); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .controls { grid-template-columns: 1fr; }
  .actions > * { flex: 1; }
  .hud > div { padding: 12px; }
}

/* =========================================================
   we're all LLM
   ========================================================= */

.wall { background: var(--red); color: #fff; }
.wall .lede { color: rgba(255, 255, 255, .86); }
.bubbles { display: grid; gap: 44px; margin-top: 64px; padding: 6px 0 18px; }
.bubbles .marquee { padding: 6px 0 22px; }
.bubbles .item { display: flex; align-items: center; padding-right: 40px; }
.bubbles .pxb { position: relative; font-size: clamp(20px, 2.4vw, 26px); white-space: nowrap; }
.cta {
  display: inline-block;
  margin-top: 56px;
  padding: 18px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 6px 0 #9e1f17;
}
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #9e1f17; }

/* =========================================================
   how to
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 70px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.steps li { padding: 26px 22px 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.steps li:nth-child(2) { transition-delay: .08s; }
.steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; background: var(--ink); color: #fff; border-color: var(--ink); }
.steps .n { display: block; font-family: var(--hand); font-weight: 700; font-size: 60px; line-height: .8; color: var(--red); }
.steps li:nth-child(4) .n { color: var(--gold); }
.steps h3 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; line-height: 1.05; }
.steps p { margin-top: 8px; line-height: 1.45; color: #6b645e; }
.steps li:nth-child(4) p { color: #bdb6b0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   footer
   ========================================================= */

.end { padding: 40px 16px 28px; text-align: center; overflow: hidden; }
.ca-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 8px 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.ca-box .lab { font-family: var(--display); font-weight: 900; }
.ca-box code { font-family: var(--pixel); font-size: 22px; text-align: left; overflow-wrap: anywhere; }
.copy-lab { padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.socials a:hover { border-color: var(--ink); }

.wordmark { position: relative; max-width: 1400px; margin: clamp(140px, 18vw, 230px) auto 0; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.px { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.js .px { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.7, .5, 1) var(--d, 0ms); }
.wordmark.in .px { transform: none; }

.perch {
  position: absolute;
  bottom: 100%;
  left: 2.94%;
  width: max(4.4%, 28px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateX(-50%);
  transition: left .6s cubic-bezier(.5, 0, .3, 1);
  -webkit-tap-highlight-color: transparent;
}
.perch img { display: block; width: 100%; height: auto; }
.js .perch img { opacity: 0; }
.wordmark.landed .perch img { opacity: 1; animation: land .9s cubic-bezier(.3, 0, .4, 1) both; }
.actual {
  position: absolute;
  left: 92%;
  bottom: 22%;
  display: flex;
  align-items: flex-end;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1;
  color: var(--red);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s .9s;
  pointer-events: none;
}
.wordmark.landed .actual { opacity: 1; }
.actual svg { flex: none; width: 56px; height: 28px; overflow: visible; }
.actual span { transform: translate(2px, -16px) rotate(-6deg); }
.actual path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.perch.flip .actual { left: auto; right: 92%; flex-direction: row-reverse; }
.perch.flip .actual svg { transform: scaleX(-1); }
.perch.flip .actual span { transform: translate(-2px, -16px) rotate(6deg); }
.fine { margin-top: 30px; font-size: 12px; color: var(--muted); }

/* =========================================================
   always-on scroll cues
   ========================================================= */

.rope {
  position: fixed;
  right: 10px;
  top: 14vh;
  bottom: 16vh;
  z-index: 20;
  width: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s;
}
.rope.on { opacity: 1; }
.rope i {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, rgba(150, 132, 112, .6) 0 6px, rgba(150, 132, 112, .25) 6px 9px);
}
.rope img { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }

.more {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(29, 22, 17, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity .4s, transform .4s;
}
.more.on { opacity: 1; pointer-events: auto; }
.more.on.off { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
.more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.4s ease-in-out infinite; }

@media (max-width: 560px) {
  .rope { display: none; }
  .cap h2 br { display: none; }
  .chip-list { max-height: 78px; }
}

/* =========================================================
   motion
   ========================================================= */

@keyframes fade    { to { opacity: 1; } }
@keyframes strike  { to { width: 108%; } }
@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes hop     { 40% { transform: translateY(-8%); } }
@keyframes blink   { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes slide   { to { transform: translateX(-50%); } }
@keyframes tremble {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(var(--a), calc(var(--a) * -.5)); }
  50%  { transform: translate(calc(var(--a) * -1), calc(var(--a) * .4)); }
  75%  { transform: translate(calc(var(--a) * .6), calc(var(--a) * .6)); }
  100% { transform: translate(0, 0); }
}
@keyframes drip    { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(40px); } }
@keyframes flash   { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(5px, -3px); }
  30%, 50%, 70% { transform: translate(-9px, 4px); }
  40%, 60% { transform: translate(9px, -4px); }
}
@keyframes danger  { to { box-shadow: inset 0 0 90px rgba(255, 60, 40, .4); } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes nudge   { 50% { transform: translateY(3px); } }
@keyframes wiggle  { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes land {
  0%   { transform: translateY(-900%) rotate(-200deg); }
  70%  { transform: translateY(0) rotate(0); }
  82%  { transform: translateY(-14%) scaleY(1.04); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .track { animation: none !important; }
  .marquee { overflow-x: auto; }
}
