/* MPAD × Komplete proposal — the counter system per DESIGN.md / COMPOSITION.md
   Palette: client-sampled label red on a tube-lit off-white (color-master lane, ledgered).
   Type: Lack (Velvetyne) + Host Grotesk (Google 2025) + Sligoil Micro (Velvetyne), ledgered. */

@font-face { font-family: "Lack"; src: url("../assets/fonts/Lack-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lack"; src: url("../assets/fonts/lack-italic-webfont.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("../assets/fonts/HostGrotesk-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Sligoil"; src: url("../assets/fonts/Sligoil-Micro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sligoil"; src: url("../assets/fonts/Sligoil-MicroBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #F3F4F0;
  --tube: #DDEFE6;
  --ledge: #E6E8E3;
  --paper: #FAF6EC;
  --ink: #16171A;
  --muted: #5F6368;
  --label: #E63A34;
  --button: #D42B26;
  --stage: #16171A;
  --on-stage: #F3F4F0;
  --on-stage-muted: #A9ADB2;

  --display: "Lack", "Arial Black", sans-serif;
  --text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Sligoil", "SF Mono", Menlo, monospace;

  --rule: 2px solid var(--ink);
  --shadow-print: 2px 2px 0 var(--ink);

  --ease-reveal: cubic-bezier(.22, 1, .36, 1);
  --ease-settle: cubic-bezier(.34, 1.56, .64, 1);
  --ease-wipe: cubic-bezier(.76, 0, .24, 1);

  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(56px, 8vw, 112px);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--text);
  font-size: 17px; line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--tube); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad-x)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- atmosphere: dither grain + tube bloom (fixed layers, no repaint on scroll) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .06;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.bloom {
  position: fixed; inset: -10% 0 auto 0; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, var(--tube) 0%, rgba(221,239,230,.55) 35%, transparent 72%);
  animation: bloom-drift linear both;
  animation-timeline: scroll(root);
}
@keyframes bloom-drift { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-4%); opacity: .55; } }
main, header, footer { position: relative; z-index: 1; }

/* ---------- chrome ---------- */
.chrome {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad-x);
  color: var(--muted);
}
.chrome-r { text-align: right; }

/* ---------- type system ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: .92; text-wrap: balance; }
h1.display { font-size: clamp(2.75rem, 7.5vw, 7rem); max-width: 12ch; }
.display-2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); max-width: 16ch; margin-bottom: clamp(20px, 2.4vw, 32px); }
.eyebrow { color: var(--muted); margin-bottom: 12px; }
.epigraph {
  font-family: "Lack"; font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3;
  color: var(--ink); max-width: 44ch; margin-bottom: clamp(20px, 2.4vw, 32px);
}
.epigraph .mono { color: var(--muted); font-style: normal; white-space: nowrap; }
.deck { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 500; line-height: 1.45; max-width: 44ch; text-wrap: pretty; }
.body { max-width: 62ch; margin-bottom: 18px; text-wrap: pretty; }
.body.strong { font-weight: 600; }
.turn { font-weight: 600; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 56ch; margin-top: 28px; }

/* line-mask reveals (JS adds .in; reduced-motion shows everything) */
.mask-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.mask-in { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-reveal); }
.in .mask-in, .mask-line.in .mask-in { transform: translateY(0); }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-reveal), transform .7s var(--ease-reveal); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- the red label (his device) ---------- */
.label {
  display: inline-block;
  background: var(--button); color: #fff;
  font-weight: 800; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.1;
  padding: .45em .7em; border-radius: 4px;
  box-shadow: var(--shadow-print);
  transition: transform .2s var(--ease-reveal), box-shadow .2s var(--ease-reveal);
}
.label-top { position: absolute; top: 64px; left: 50%; transform: translateX(-50%) translateY(14px); z-index: 4; white-space: nowrap; }
.label-top.in { transform: translateX(-50%); }
.label:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.label-top:hover { transform: translateX(-50%) translateY(-2px); }

/* ---------- the .btn primitive (six states) ---------- */
.btn {
  --btn-bg: var(--button); --btn-fg: #fff; --btn-line: var(--button);
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 15px/1 var(--text); letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-line); border-radius: 4px;
  position: relative;
  transition: transform .12s ease-out, background-color .18s var(--ease-reveal), color .18s, box-shadow .18s var(--ease-reveal);
  will-change: transform;
}
.btn:hover { background: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--label); }
.btn:active, .btn.is-pressed { transform: scale(.97); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:disabled, .btn[data-pending] { cursor: progress; }
.btn[data-pending] .btn-label { visibility: hidden; }
.btn[data-pending]::after {
  content: ""; position: absolute; width: 22px; height: 6px;
  background: radial-gradient(circle, currentColor 2.5px, transparent 3px) 0 50% / 8px 6px repeat-x;
  animation: dots .7s steps(3) infinite;
}
@keyframes dots { to { background-position: 24px 50%; } }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); box-shadow: 3px 3px 0 var(--label); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-big { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn-play {
  --btn-bg: #fff; --btn-fg: var(--ink); --btn-line: var(--ink);
  min-height: 40px; padding: 0 12px 0 10px; font-size: 13px; gap: 8px;
}
.btn-play:hover { background: var(--tube); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.play-glyph { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.btn-play[aria-pressed="true"] .play-glyph { width: 10px; height: 10px; border: 0; background: currentColor; }
.btn-play[aria-pressed="true"] { background: var(--label); color: #fff; border-color: var(--label); }

/* ---------- inputs ---------- */
.select, .input {
  font: 500 16px/1.2 var(--text); color: var(--ink);
  background: #fff; border: var(--rule); border-radius: 4px;
  min-height: 48px; padding: 0 14px;
  transition: box-shadow .18s var(--ease-reveal);
}
.select:focus-visible, .input:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--tube), var(--shadow-print); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316171A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ---------- counters (the section skeleton) ---------- */
.counter { position: relative; padding: var(--pad-y) 0 0; overflow: clip; }
.counter-grid, .hero-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: end;
}
.counter-copy { padding-bottom: var(--pad-y); }
.counter + .counter::before, .paper + .counter::before { content: ""; display: block; height: 2px; background: var(--ink); width: 100%; }

/* the stage: cutout rises behind a real ledge */
.stage { position: relative; min-height: 520px; align-self: end; }
.stage-tall { min-height: 620px; }
.stage-short { min-height: 440px; }
.stage .cutout {
  position: absolute; left: 50%; bottom: 44px; z-index: 1;
  width: clamp(240px, 26vw, 380px); height: auto;
  transform: translate(-50%, 42%);
  filter: drop-shadow(0 12px 18px rgba(22, 23, 26, .28));
  transition: transform .72s var(--ease-settle);
  will-change: transform;
}
.stage.in .cutout { transform: translate(-50%, 0); }
.ledge {
  position: absolute; left: -8px; right: -8px; bottom: 0; height: 56px; z-index: 2;
  background: var(--ledge);
  border-top: var(--rule);
  box-shadow: inset 0 1px 0 #fff, 0 -8px 0 -6px rgba(22,23,26,.06);
}
.ledge::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--ground); border-top: 1px solid rgba(22,23,26,.25); }
.tag {
  position: absolute; left: 12px; bottom: 26px; z-index: 3;
  display: grid; gap: 6px; padding: 10px 12px 12px;
  background: #fff; border: var(--rule); box-shadow: var(--shadow-print);
  transform: perspective(600px) rotateX(-70deg); transform-origin: top; opacity: 0;
  transition: transform .32s var(--ease-settle) .4s, opacity .2s linear .4s;
}
.stage.in .tag { transform: none; opacity: 1; }
.tag-k { color: var(--muted); }
.tag-name { font-weight: 700; font-size: 17px; line-height: 1.1; }
.tag-line { font-size: 13.5px; color: var(--muted); }
.slot { position: absolute; right: 0; bottom: 64px; z-index: 4; width: min(280px, 56%); pointer-events: none; }
.stage-tall .tag { left: 0; }
.slot .receipt { pointer-events: auto; }

/* ---------- hero ---------- */
.hero { min-height: 100dvh; display: flex; align-items: end; padding-top: 120px; }
.hero-grid { width: min(var(--wrap), 100% - 2 * var(--pad-x)); margin-inline: auto; }
.hero-copy { padding-bottom: var(--pad-y); }
.hero h1 { margin-bottom: clamp(20px, 2.2vw, 36px); }
.hero .deck { margin-top: 20px; }
.cue { margin-top: clamp(28px, 4vh, 48px); color: var(--muted); display: flex; gap: 10px; align-items: center; }
.cue-arrow { display: inline-block; animation: cue 1.8s var(--ease-settle) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- split-flap board ---------- */
.board { display: inline-flex; flex-direction: column; gap: 8px; }
.board-k { color: var(--muted); }
.flaps { display: inline-flex; gap: 4px; }
.flaps .gap { width: 10px; }
.flap {
  display: inline-grid; place-items: center;
  width: 1em; height: 1.34em;
  font-family: var(--mono); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1;
  color: #fff; background: var(--ink); border-radius: 3px;
  position: relative; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(243,244,240,.28); }
.flap.is-red { color: var(--label); }
.flap.flip { animation: flip .09s ease-in; }
@keyframes flip { 0% { transform: perspective(400px) rotateX(0); } 50% { transform: perspective(400px) rotateX(-70deg); } 100% { transform: perspective(400px) rotateX(0); } }
.board-hero .flap { font-size: clamp(34px, 4vw, 56px); }
.board-big .flap { font-size: clamp(56px, 13.4vw, 190px); border-radius: 6px; }
.board-big .flaps { gap: 6px; display: flex; width: 100%; }
.board-big .flap { flex: 1 1 0; width: auto; }
.board-big .gap { flex: 0 0 10px; }

/* ---------- the queue (pinned scrub) ---------- */
.queue { position: relative; border-top: var(--rule); background: var(--ground); }
.queue-stage { min-height: 100dvh; display: flex; align-items: center; }
.queue-inner { display: grid; gap: clamp(20px, 3vh, 36px); padding: var(--pad-y) 0; }
.queue-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.captions { position: relative; min-height: 3.2em; }
.caption { font-size: clamp(1.6rem, 4vw, 3.8rem); line-height: 1; max-width: 24ch; }
.caption[data-cap] { position: absolute; inset: 0 auto auto 0; opacity: 0; transition: opacity .12s; }
.caption.on { opacity: 1; }
.caption .mask-in { transform: translateY(110%); transition-duration: .45s; }
.caption.on .mask-in { transform: translateY(0); }
.dock {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print);
  justify-self: start; max-width: 100%;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-reveal), transform .5s var(--ease-settle);
}
.dock.on { opacity: 1; transform: none; }
.dot { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.dock-red { color: var(--label); font-weight: 700; }
.queue-line { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.05; padding: 0 0 var(--pad-y); max-width: 26ch; }

/* ---------- paper bands + receipts (thermal) ---------- */
.paper {
  position: relative; padding: var(--pad-y) 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(22,23,26,.03) 0 1px, transparent 1px 3px);
}
/* serrated tear: zigzag at the top and bottom of every paper band */
.paper::before, .paper::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--paper) 25%, transparent 25%) 0 0 / 12px 12px,
              linear-gradient(225deg, var(--paper) 25%, transparent 25%) 0 0 / 12px 12px;
}
.paper::before { top: -12px; }
.paper::after { bottom: -12px; transform: scaleY(-1); }
.receipt {
  position: relative; padding: 22px 20px 24px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(22,23,26,.04) 0 1px, transparent 1px 3px);
  border: 1px solid rgba(22,23,26,.18);
  box-shadow: 0 10px 22px -12px rgba(22,23,26,.35);
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: linear-gradient(135deg, var(--paper) 25%, transparent 25%) 0 0 / 8px 8px,
              linear-gradient(225deg, var(--paper) 25%, transparent 25%) 0 0 / 8px 8px;
}
.receipt::before { top: -8px; } .receipt::after { bottom: -8px; transform: scaleY(-1); }
.r-head { text-align: center; padding-bottom: 12px; border-bottom: 1px dashed rgba(22,23,26,.35); margin-bottom: 12px; line-height: 1.5; }
.r-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.r-lines dt { color: var(--muted); }
.r-lines dd { font-weight: 700; text-align: right; }
.r-lines .r-total { border-top: 1px dashed rgba(22,23,26,.35); margin-top: 8px; padding-top: 10px; }
.r-lines .r-total dt { color: var(--ink); }
.r-foot { text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(22,23,26,.35); line-height: 1.6; color: var(--muted); }
.r-red { color: var(--label); }

/* printed receipt (JS builds it inside .slot) */
.receipt.printing { clip-path: inset(0 0 100% 0); animation: print .9s var(--ease-wipe) forwards, tear .12s linear .9s 2; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
@keyframes tear { 50% { transform: translateY(2px); } }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.findings { display: grid; gap: 14px; margin: 24px 0 28px; max-width: 58ch; }
.finding { padding-left: 16px; border-left: 3px solid var(--label); }
.frame { max-width: 420px; border: var(--rule); background: #fff; padding: 6px; transform: rotate(-1.2deg); box-shadow: var(--shadow-print); }
.frame img { filter: saturate(.9); }
.frame figcaption { padding: 8px 4px 2px; color: var(--muted); }
.receipt-research { max-width: 380px; margin-left: auto; transform: rotate(1deg); }

/* ---------- diagnosis ---------- */
.exhibit { position: relative; max-width: 640px; margin: 8px 0 28px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); transform: rotate(-1deg); }
.exhibit img { filter: saturate(.85); }
.exhibit figcaption { padding: 10px 12px; border-top: 1px solid rgba(22,23,26,.2); color: var(--muted); line-height: 1.6; text-transform: none; letter-spacing: .02em; }
.tape { position: absolute; top: -12px; width: 84px; height: 26px; background: rgba(221,239,230,.9); border: 1px solid rgba(22,23,26,.25); z-index: 2; }
.tape-l { left: -22px; transform: rotate(-32deg); } .tape-r { right: -22px; transform: rotate(30deg); }
.rx { list-style: none; padding: 0; max-width: 62ch; }
.rx li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed rgba(22,23,26,.3); position: relative; }
.rx li::before { content: ""; position: absolute; inset: 0; background: var(--tube); transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease-reveal); z-index: -1; }
.rx li:hover::before { transform: scaleX(1); }
.rx-n { color: var(--label); font-weight: 700; padding-top: 5px; }

/* ---------- the demo (site mock) ---------- */
.mock {
  position: relative; margin-top: 8px; padding: 56px clamp(20px, 4vw, 56px) 76px;
  background: var(--ground); border: var(--rule); box-shadow: 6px 6px 0 var(--ink);
  background-image: radial-gradient(60% 40% at 50% 0%, var(--tube), transparent 70%);
  overflow: clip;
}
.mock-chrome { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(22,23,26,.2); color: var(--muted); mix-blend-mode: multiply; }
.mock-label { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.mock-plain { margin-top: 36px; color: var(--muted); }
.mock-h1 { font-size: clamp(2.2rem, 6vw, 5.4rem); margin: 8px 0 20px; }
.ask { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 640px; }
.ask .select { flex: 1 1 220px; }
.answer[hidden] { display: none; }
.answer { margin-top: 26px; display: grid; grid-template-columns: 96px 1fr; gap: 16px 20px; align-items: start; max-width: 720px; }
.answer-who { display: grid; gap: 6px; }
.answer-face { width: 96px; height: 96px; object-fit: cover; object-position: 50% 12%; background: var(--tube); border: var(--rule); border-radius: 4px; }
.answer-tag { color: var(--muted); font-size: 12px; }
.answer-line { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.05; text-wrap: pretty; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: var(--rule); background: #fff; position: relative; overflow: hidden; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--tube); transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease-reveal); }
.row:hover::before { transform: scaleX(1); }
.row > * { position: relative; }
.row-show { grid-column: 2; }
.row-date { color: var(--label); font-weight: 700; }
.answer-actions { grid-column: 2; display: flex; gap: 12px; align-items: center; }
.toast { color: var(--muted); }
.mock-dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 16px; align-items: center; padding: 10px 16px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; }
.mock-dock-cta { background: var(--button); color: #fff; padding: 6px 10px; border-radius: 3px; font-weight: 700; }
.mock-cap { color: var(--muted); max-width: 72ch; margin: 18px 0 32px; line-height: 1.7; }
.shelf-labels { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: var(--pad-y); }
.plabel { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 12px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); font-weight: 600; font-size: 14px; }
.plabel .mono { color: var(--label); font-weight: 700; }

/* ---------- the stage band (the cast) ---------- */
.stage-band {
  position: relative; padding: var(--pad-y) 0 0; color: var(--on-stage);
  background: var(--stage);
  background-image: radial-gradient(48% 60% at 50% 0%, rgba(255,214,170,.18), transparent 70%);
  border-top: var(--rule); border-bottom: var(--rule);
  overflow: clip;
}
.stage-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stage-band .eyebrow, .stage-band .epigraph .mono, .stage-band .cast-foot { color: var(--on-stage-muted); }
.stage-band .epigraph { color: var(--on-stage); }
.cast-head { max-width: 760px; }
.stage-band .body { color: var(--on-stage); }
.shelf { list-style: none; padding: 0; margin: clamp(28px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; align-items: end; }
.shelf-item { position: relative; min-height: 420px; }
.shelf-item .cutout { width: clamp(150px, 15vw, 220px); bottom: 44px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); }
.shelf-item .ledge { left: 0; right: 0; background: #2A2C31; border-top: 2px solid var(--on-stage); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.shelf-item .ledge::after { background: var(--stage); border-top-color: rgba(243,244,240,.25); }
.shelf-item .tag { left: 8px; right: 8px; bottom: 22px; padding: 8px 10px 10px; }
.shelf-item .tag-k { color: var(--ink); font-weight: 700; }
.cast-foot { padding: 24px 0 var(--pad-y); max-width: 72ch; line-height: 1.7; }

/* ---------- presale demo ---------- */
.presale { margin-top: 28px; padding: 18px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); max-width: 640px; }
.presale-k { color: var(--muted); margin-bottom: 10px; }
.presale-fields { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; }
.presale-help { color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ---------- the menu ---------- */
.menu-grid { align-items: end; }
.tiers { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: stretch; padding: 8px 0 28px; }
.tier { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px 26px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); }
.tier-star { background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.tier-n { justify-self: start; }
.tier-name { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-top: 6px; }
.tier-std { color: var(--muted); }
.tier-std s { text-decoration-color: var(--label); text-decoration-thickness: 2px; }
.price { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 13px; vertical-align: 40%; margin-right: 6px; color: var(--muted); }
.tier-meta { color: var(--muted); }
.tier-body { font-size: 15.5px; line-height: 1.6; margin: 6px 0 12px; text-wrap: pretty; }
.tier .btn { justify-self: start; margin-top: auto; }
.circle { position: absolute; top: 122px; left: 0; width: min(250px, 90%); height: auto; pointer-events: none; overflow: visible; }
.tier-star .tier-meta { margin-top: 12px; }
.terms { color: var(--muted); max-width: 70ch; line-height: 1.7; margin-bottom: 28px; }
.care { max-width: 520px; margin-bottom: var(--pad-y); }

/* ---------- after ---------- */
.after-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.timeline { list-style: none; padding: 0; margin-top: 8px; max-width: 60ch; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(22,23,26,.35); }
.tl-k { color: var(--label); font-weight: 700; padding-top: 4px; }
.need { padding: 20px 22px 24px; background: #fff; border: var(--rule); box-shadow: var(--shadow-print); transform: rotate(1deg); }
.need-k { color: var(--muted); margin-bottom: 8px; }
.need-list { padding-left: 22px; display: grid; gap: 8px; font-weight: 600; }

/* ---------- accept ---------- */
.accept .deck { margin: 4px 0 28px; }
.accept-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.validity { margin-top: 22px; color: var(--muted); }
.validity b { color: var(--ink); }
.sticker { position: absolute; right: -14px; top: clamp(40px, 8vw, 96px); transform: rotate(-8deg); font-size: clamp(20px, 2.6vw, 34px); }

/* ---------- footer ---------- */
.foot { padding: var(--pad-y) 0; }
.receipt-foot { max-width: 520px; margin-inline: auto; transform: rotate(-.6deg); }
.receipt-foot a { text-decoration: none; color: var(--label); }

/* ---------- mini bar ---------- */
.mini-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; transform: translateY(140%);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px;
  background: #fff; border: var(--rule); box-shadow: var(--shadow-print);
  transition: transform .4s var(--ease-settle);
  max-width: calc(100% - 24px);
}
.mini-bar.on { transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .counter-grid, .hero-grid, .research-grid, .after-grid { grid-template-columns: 1fr; }
  .counter-copy { padding-bottom: 24px; }
  .queue-row { grid-template-columns: 1fr; }
  .stage, .stage-tall, .stage-short { min-height: 400px; order: 2; }
  .slot { left: 0; right: 0; width: auto; bottom: 64px; }
  .mini-bar { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; padding: 6px 6px 6px 12px; }
  .mini-bar .mono { white-space: nowrap; font-size: 11.5px; }
  .stage .cutout { width: clamp(200px, 48vw, 300px); }
  .research-grid .receipt-research { margin-left: 0; max-width: 100%; transform: none; }
  .shelf { grid-template-columns: repeat(6, 78vw); overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 12px; scrollbar-width: none; }
  .shelf-item { scroll-snap-align: start; min-height: 380px; }
  .shelf-item .cutout { width: clamp(180px, 46vw, 240px); }
  .tiers { grid-template-columns: 1fr; }
  .tier-star { order: -1; }
  .presale-fields { grid-template-columns: 1fr; }
  .presale .btn { width: 100%; }
  .accept-actions .btn-big { width: 100%; }
  .answer { grid-template-columns: 72px 1fr; }
  .answer-face { width: 72px; height: 72px; }
  .row-show, .answer-actions { grid-column: 1 / -1; }
  .row { grid-template-columns: auto 1fr; }
  .row .btn { grid-column: 1 / -1; justify-self: start; }
  .chrome { flex-direction: column; gap: 2px; }
  .chrome-r { text-align: left; }
  .label-top { top: 74px; font-size: 14px; }
  .hero { padding-top: 140px; }
  .sticker { position: static; display: inline-block; margin-top: 24px; transform: rotate(-4deg); }
  .mock { padding: 60px 18px 72px; }
  .mock-chrome span:last-child { display: none; }
  .mock-dock { font-size: 12px; gap: 10px; }
  .mock-dock span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@media (max-width: 480px) {
  .label-top { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 40px); }
  .mock-label { white-space: normal; width: max-content; max-width: calc(100% - 36px); text-align: center; }
  .board-big .flap { font-size: clamp(44px, 13vw, 64px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mask-in, .caption .mask-in { transform: none !important; transition: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .label-top { transform: translateX(-50%); }
  .stage .cutout { transform: translate(-50%, 0); transition: none; }
  .tag { transform: none; opacity: 1; transition: none; }
  .caption[data-cap] { position: static; opacity: 1; margin-bottom: 14px; }
  .captions { min-height: 0; }
  .dock { opacity: 1; transform: none; }
  .queue-stage { min-height: 0; }
  .receipt.printing { clip-path: none; animation: none; }
  .cue-arrow, .btn[data-pending]::after { animation: none; }
  .flap.flip { animation: none; }
  .bloom { animation: none; }
  .mini-bar { transition: none; }
}
