/* =========================================================
   YouTube Music Skip Solution: one-page comic
   Mobile-first. Animations use transform / opacity only
   (clip-path is used once per panel for the "ink in" wipe).
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-normal.woff2?v=202611062356") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2?v=202611062356") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bangers";
  src: url("../assets/fonts/bangers-latin-400-normal.woff2?v=202611062356") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks to limit layout shift while fonts swap in */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"), local("Roboto Condensed"), local("Arial");
  size-adjust: 92%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI"), local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Bangers Fallback";
  src: local("Impact"), local("Haettenschweiler"), local("Arial Black");
  size-adjust: 88%;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #121827;
  --ink: #090D18;
  --slate: #273448;
  --slate-2: #46536A;
  --red: #ED2446;
  --red-ui: #DB1D3E;           /* brand red, a hair darker so white text passes AA */
  --deep-red: #6F172A;
  --coral: #F4778D;
  --white: #F8F4F6;
  --muted: #BFC8D2;
  --green: #3DDC84;            /* ONLY for the "ON" state */

  --f-display: "Archivo", "Archivo Fallback", "Arial Narrow", Impact, system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, "Segoe UI", Arial, sans-serif;
  --f-sfx: "Bangers", "Bangers Fallback", Impact, "Arial Black", sans-serif;

  --nav-h: 60px;
  --gut: 10px;                 /* comic gutter */
  --pad: 16px;                 /* page side padding */
  --bw: 4px;                   /* panel border */
  --maxw: 1240px;
  --shadow: 5px 5px 0 var(--ink);
  --bloom: 0 0 56px -22px rgba(237, 36, 70, .24);
  --bloom-strong: 0 0 70px -18px rgba(237, 36, 70, .45);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-ink: cubic-bezier(.75, 0, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.7, .5, 1);
}
@media (min-width: 900px) {
  :root { --gut: 14px; --pad: 32px; --bw: 5px; --shadow: 7px 7px 0 var(--ink); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net: tilted art never causes sideways scroll */
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
/* faint print grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--coral); text-underline-offset: .18em; }
a:hover { color: var(--white); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 16px; background: var(--white); color: var(--ink);
  font-weight: 700; border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: .005em;
}
.display > span { display: block; }
.hl-white {
  color: var(--white);
  text-shadow: 0 .045em 0 var(--ink), 0 0 .5em rgba(9, 13, 24, .6);
}
.hl-red {
  color: var(--red);
  text-shadow:
    0 0 .05em rgba(237, 36, 70, .9),
    0 0 .28em rgba(237, 36, 70, .55),
    0 0 .7em rgba(237, 36, 70, .3),
    0 .045em 0 var(--ink);
}
.kicker, .chapter__no {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px 5px;
  font: 800 .8rem/1 var(--f-display);
  font-stretch: 100%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red-ui);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

/* ---------- Halftone (comic print dot screen) ---------- */
/* ~3px pitch, rotated 30deg, low opacity, multiply. */
.panel__art::after {
  content: "";
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(9, 13, 24, .9) .75px, transparent 1.3px);
  background-size: 3px 3px;
  transform: rotate(30deg);
  mix-blend-mode: multiply;
  opacity: .18;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .75em 1.25em;
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 88%;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn__icon {
  width: 1.35em; height: 1.35em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn__mark { width: 1.9em; height: 1.9em; flex: none; fill: currentColor; color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn__txt { display: flex; flex-direction: column; align-items: flex-start; gap: .28em; text-align: left; }
.btn__label { display: block; }
.btn__sub {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .85;
}
.btn--store { background: var(--slate); color: #fff; padding-block: .6em; }
.btn--store:hover { color: #fff; background: var(--slate-2); }
.btn--store.is-primary {
  background: var(--red-ui);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink), var(--bloom);
}
.btn--store.is-primary:hover { background: var(--red); color: #fff; box-shadow: 6px 6px 0 var(--ink), var(--bloom); }
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
.store-row .btn { flex: 1 1 200px; }
.store-row--center { justify-content: center; }
@media (min-width: 600px) {
  .store-row .btn { flex: 0 0 auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 13, 24, .94);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 1px 0 rgba(244, 119, 141, .12);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(9, 13, 24, .8);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
  }
}
.nav__inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand__logo { width: 34px; height: 34px; border-radius: 8px; }
.brand__name {
  font: 900 1.05rem/1 var(--f-display);
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.brand__yt { display: none; }
.btn--nav {
  min-height: 44px;
  padding: .55em .9em;
  font-size: .82rem;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--red-ui);
  color: #fff;
}
.btn--nav:hover { color: #fff; background: var(--red); box-shadow: 4px 4px 0 var(--ink); }
.nav__menu {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--slate-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav__menu svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; }
.nav__links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 8px 12px 16px;
  background: var(--ink);
  border-bottom: 3px solid var(--red-ui);
  flex-direction: column;
}
.nav__links.is-open { display: flex; }
.nav__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: var(--white);
  text-decoration: none;
  font: 800 1.15rem/1 var(--f-display);
  font-stretch: 80%;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(191, 200, 210, .12);
}
.nav__links a:hover { color: var(--coral); }
@media (max-width: 359px) {
  .brand__name { display: none; }
}
@media (min-width: 860px) {
  .nav__inner { padding: 0 24px; gap: 20px; }
  .nav__menu { display: none; }
  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    border: 0;
    gap: 4px;
  }
  .nav__links a {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    font: 600 .92rem/1 var(--f-body);
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    position: relative;
  }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s var(--ease-out);
  }
  .nav__links a:hover { color: var(--white); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .btn--nav { font-size: .9rem; padding: .55em 1.1em; }
}
@media (min-width: 1100px) {
  .brand__yt { display: inline; }
}

/* ---------- Shared section frame ---------- */
.cover, .chapter, .section {
  position: relative;
  overflow: hidden;
}
@supports (overflow: clip) {
  .cover, .chapter, .section { overflow: clip; }
}
.section, .chapter {
  padding: clamp(48px, 6vw, 88px) var(--pad);
}
.chapter + .chapter { padding-top: clamp(32px, 4vw, 56px); }
.section > *, .chapter > * {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section__head, .chapter__head { margin-bottom: clamp(24px, 4vw, 44px); }
.section__title, .chapter__title { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .94; }
.section__title .hl-red, .chapter__title .hl-red { text-shadow: 0 0 .18em rgba(237, 36, 70, .45), 0 .045em 0 var(--ink); }
.section__head { text-align: center; }

/* ---------- Comic panels ---------- */
.panel { position: relative; margin: 0; min-width: 0; }
.panel__art {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow), var(--bloom);
}
.panel__art > picture { width: 100%; height: 100%; }
.panel__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* soft inner vignette so art sits "printed" in the frame */
.panel__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(248, 244, 246, .06), inset 0 0 50px rgba(9, 13, 24, .55);
}
/* parallax layer: slightly oversized so translate never shows an edge */
.panel__art > [data-parallax] {
  position: absolute;
  inset: -6%;
  width: auto;
  height: auto;
  will-change: transform;
}

/* caption boxes (narration) */
.caption {
  position: absolute;
  z-index: 4;
  max-width: min(30ch, 78%);
  margin: 0;
  padding: .55em .8em .5em;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(.86rem, 1.5vw, 1.18rem);
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.caption--tl { top: calc(var(--bw) + 10px); left: calc(var(--bw) + 10px); }
.caption--br { bottom: calc(var(--bw) + 10px); right: calc(var(--bw) + 10px); }
.caption--red { background: var(--red-ui); color: #fff; }
.caption--alarm { background: var(--deep-red); color: var(--white); transform: rotate(-1.5deg); }

/* speech bubbles */
.bubble {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: .6em 1.15em .55em;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50% / 46%;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}
.bubble::before, .bubble::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, 100% 0, 85% 100%);
}
.bubble::before { right: 22%; bottom: -21px; width: 26px; height: 24px; background: var(--ink); }
.bubble::after  { right: calc(22% + 6px); bottom: -14px; width: 17px; height: 17px; background: #fff; }

/* SFX lettering: Bangers only here */
.sfx {
  position: absolute;
  z-index: 5;
  margin: 0;
  font-family: var(--f-sfx);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--white);
  -webkit-text-stroke: .09em var(--ink);
  paint-order: stroke fill;
  text-shadow: .07em .07em 0 var(--ink);
  transform: rotate(var(--r, -8deg));
  pointer-events: none;
  user-select: none;
}

/* "page turn" cliffhanger caption at the end of a chapter */
.turn {
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(100%, 34ch);
  margin: clamp(22px, 3vw, 36px) 0 0 auto !important;
  padding: .6em 2.4em .55em .9em;
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 800 clamp(.95rem, 1.6vw, 1.25rem)/1.2 var(--f-display);
  font-stretch: 82%;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.turn::after {
  content: "";
  position: absolute;
  right: .8em; top: 50%;
  width: .8em; height: .8em;
  margin-top: -.4em;
  background: var(--red-ui);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.chapter > .turn { margin-right: max(0px, calc((100% - var(--maxw)) / 2)) !important; }
.turn--ominous {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  max-width: none;
  font-weight: 900;
  font-stretch: 64%;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .9;
  color: var(--red);
  text-shadow: 0 0 .06em rgba(237, 36, 70, .9), 0 0 .35em rgba(237, 36, 70, .55), 0 .05em 0 var(--ink);
  transform: rotate(-3deg);
}
.turn--ominous::after { display: none; }
.turn--calm { background: var(--slate); color: var(--white); }

/* ---------- Cover ---------- */
.cover {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: var(--gut);
  isolation: isolate;
  background: var(--navy);
  --glow: radial-gradient(ellipse 80% 50% at 70% 35%, rgba(237, 36, 70, .18), transparent 70%);
}
.cover::after { /* same soft-edged glow layer as the sections */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--glow);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.cover__frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow), 0 0 90px -20px rgba(237, 36, 70, .5);
  perspective: 1200px;
}
.cover__frame::after { /* halftone over the whole cover */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(9, 13, 24, .9) .75px, transparent 1.3px);
  background-size: 3px 3px;
  transform: rotate(30deg);
  mix-blend-mode: multiply;
  opacity: .3;
}
.cover__art {
  position: absolute;
  z-index: 0;
  top: 0; left: 0; right: 0;
  height: 64%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.cover__art picture, .cover__art img { width: 100%; height: 100%; }
.cover__art img {
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.06);
}
.cover__frame::before { /* red bloom behind the title */
  content: "";
  position: absolute;
  z-index: 1;
  left: -10%; bottom: -10%;
  width: 90%; height: 60%;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 70%, rgba(111, 23, 42, .75), transparent 65%);
}
.cover__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}
.issue {
  display: grid;
  place-content: center;
  width: 84px; height: 84px;
  margin: 0;
  flex: none;
  text-align: center;
  background: var(--red-ui);
  color: #fff;
  clip-path: polygon(50% 0, 61% 14%, 79% 9%, 79% 27%, 96% 32%, 87% 48%, 98% 63%, 81% 70%, 82% 89%, 64% 86%, 50% 100%, 37% 86%, 19% 90%, 19% 71%, 2% 64%, 12% 49%, 3% 32%, 21% 27%, 21% 9%, 38% 14%);
  transform: rotate(-10deg);
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: .9;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.issue span { font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.issue b { font-size: 1.75rem; font-weight: 900; font-stretch: 70%; }
.cover__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 7px 12px 6px;
  background: rgba(9, 13, 24, .78);
  border: 2px solid rgba(248, 244, 246, .18);
  border-radius: 999px;
  font: 800 .7rem/1.15 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--white);
}
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; flex: none; }
.eq i {
  width: 3px; height: 100%;
  background: var(--red);
  border-radius: 1px;
  transform-origin: 50% 100%;
  box-shadow: 0 0 6px rgba(237, 36, 70, .7);
}
.eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.2s; }
.eq i:nth-child(3) { animation-duration: 1.2s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.1s; }
.eq i:nth-child(5) { animation-duration: 1.05s; animation-delay: -.35s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

.cover__body {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 0 16px 20px;
  will-change: transform;
}
.cover__title { font-size: clamp(2.9rem, 13.4vw, 7.2rem); margin-bottom: 14px; }
.cover__title .hl-red { margin-top: .03em; }
.cover__tagline {
  margin: 0 0 4px;
  font: 800 clamp(1.25rem, 2.6vw, 1.9rem)/1.15 var(--f-display);
  font-stretch: 85%;
  color: var(--white);
}
.cover__sub { margin: 0 0 18px; max-width: 48ch; color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.45; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border: 2px solid var(--coral);
  border-radius: 999px;
  background: rgba(9, 13, 24, .7);
  font-weight: 700;
  font-size: .88rem;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.cover__wave {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 52%;
  height: 46px;
  overflow: hidden;
  pointer-events: none;
  opacity: .8;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.wave-scroll {
  width: 200%;
  max-width: none;
  height: 100%;
  /* Only the ambient cover waveform loops; story beats remain arrival-driven. */
  animation: wave-scroll 10s linear infinite;
  animation-play-state: paused;
}
.js .cover.is-wave-visible .wave-scroll { animation-play-state: running; }
.wave-scroll path { fill: none; stroke: var(--red); stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(237, 36, 70, .9)); }
.wave-scroll .wave-2 { stroke: var(--coral); stroke-width: 1.4; opacity: .7; }
@keyframes wave-scroll { to { transform: translateX(-50%); } }
.cover__next {
  position: absolute;
  z-index: 3;
  right: 12px; bottom: 12px;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font: 700 .78rem/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.cover__next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 50% { transform: translateY(4px); } }

@media (min-width: 600px) {
  .cover__body { padding: 0 28px 28px; }
  .cover__top { padding: 18px 22px; }
  .issue { width: 100px; height: 100px; }
  .issue b { font-size: 2.1rem; }
  .cover__kicker { font-size: .78rem; }
}
@media (min-width: 900px) {
  .cover__art {
    left: auto;
    width: 74%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
    mask-image: linear-gradient(to right, transparent 0, #000 34%);
  }
  .cover__art img { object-position: 50% 50%; }
  .cover__body { max-width: 58%; padding: 0 clamp(28px, 4vw, 64px) clamp(28px, 4vw, 56px); }
  .cover__title { font-size: clamp(4rem, 7.4vw, 7.4rem); }
  .cover__wave { top: auto; bottom: 0; height: 70px; left: 30%; }
  .cover__next { display: inline-flex; }
}

/* static equalizer (no autonomous loops) */
.eq i:nth-child(1) { transform: scaleY(.55); } .eq i:nth-child(2) { transform: scaleY(.9); }
.eq i:nth-child(3) { transform: scaleY(.4); } .eq i:nth-child(4) { transform: scaleY(.75); } .eq i:nth-child(5) { transform: scaleY(.5); }

/* ---------- Chapter heads & backgrounds ---------- */
.chapter__head { display: flex; flex-direction: column; align-items: flex-start; }
.chapter__no { margin-bottom: 16px; }
.chapter__no--calm { background: var(--slate-2); }
.story { position: relative; }
.ch1 { --glow: radial-gradient(ellipse 70% 45% at 85% 30%, rgba(237, 36, 70, .13), transparent 70%); }
.ch2 { --glow: radial-gradient(ellipse 90% 50% at 50% 55%, rgba(9, 13, 24, .55), transparent 75%); }
.ch3 { --glow: radial-gradient(ellipse 80% 45% at 40% 50%, rgba(111, 23, 42, .55), transparent 75%), radial-gradient(ellipse 100% 60% at 50% 50%, rgba(9, 13, 24, .5), transparent 80%); }
.ch4 { --glow: radial-gradient(ellipse 80% 45% at 50% 40%, rgba(70, 83, 106, .38), transparent 75%); }
.ch1, .ch2, .ch3, .ch4, .section { isolation: isolate; background: var(--navy); }
.chapter::after, .section::after { /* section glow: fades to nothing well before the edges, so sections blend */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--glow, none);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.chapter::before, .section::before { /* section halftone: 3px dot screen, rotated 30deg, faded from one spot */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(70, 83, 106, .6) .8px, transparent 1.35px);
  background-size: 3px 3px;
  -webkit-mask-image: radial-gradient(ellipse 30% 22% at calc(25% + var(--hx, 88%) / 2) calc(25% + (22% + var(--hy, 8%) * .56) / 2), #000, transparent 72%);
  mask-image: radial-gradient(ellipse 30% 22% at calc(25% + var(--hx, 88%) / 2) calc(25% + (22% + var(--hy, 8%) * .56) / 2), #000, transparent 72%);
  transform: rotate(30deg);
  opacity: .35;
}
.ch2 { --hx: 8%; --hy: 30%; }
.ch3 { --hx: 50%; --hy: 50%; }
.ch4 { --hx: 15%; --hy: 12%; }

/* ---------- Chapters: shared flow layout (phones, reduced motion, no JS) ---------- */
.sfx { --r: -8deg; }

/* step badge on chapter 4 panels */
.step-badge {
  position: absolute;
  z-index: 4;
  left: -6px; top: -12px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 .78rem/1 var(--f-display);
  font-stretch: 80%;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.step-badge b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--red-ui); color: #fff; font-size: .85rem; }

/* ---------- Chapter 1 ---------- */
.p-mug img { object-position: 50% 100%; }
.p-lamp img { object-position: 50% 20%; }
.bubble--head { top: 14%; left: 8%; }
.sfx--slurp { left: 6%; top: 8%; --r: -12deg; color: var(--coral); font-size: clamp(1.8rem, 4vw, 3.2rem); }

/* ---------- Chapter 2 ---------- */
.sfx--tap { right: 6%; bottom: 8%; --r: 6deg; font-size: clamp(1.3rem, 2.8vw, 2.2rem); color: var(--muted); }
.tabs { /* static browser tab strip: music stays open in the background */
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex;
  gap: 3px;
  padding: 6px 6px 0;
  background: rgba(9, 13, 24, .88);
  border-bottom: 2px solid var(--slate-2);
  font: 700 clamp(.62rem, 1vw, .78rem)/1 var(--f-body);
}
.tabs__tab {
  flex: 0 1 50%;
  padding: 7px 8px 6px;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.tabs__tab.is-active { background: var(--slate); color: var(--white); border-top: 2px solid var(--red); }

/* ---------- Chapter 3: chaos ---------- */
.chaos { gap: calc(var(--gut) + 6px); }
.c-main { --r: -1deg; transform: rotate(var(--r)); }
.c-screen { --r: 1.6deg; transform: rotate(var(--r)); }
.c-head { --r: -2deg; transform: rotate(var(--r)); }
.ch3 .panel__art, .ch3 .skip-tile { box-shadow: var(--shadow), var(--bloom-strong); }
.cover .btn--store.is-primary { box-shadow: 4px 4px 0 var(--ink), var(--bloom-strong); }
.caption--alarm { --r: -1.5deg; }
.skip-tile {
  display: block;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink), 0 0 24px -6px rgba(237, 36, 70, .7);
  background: var(--ink);
  overflow: hidden;
  transform: rotate(var(--r, 0deg));
}
.skip-tile img { width: 100%; height: 100%; aspect-ratio: 290 / 220; object-fit: cover; }
.skip-tile:nth-child(1) { --r: -7deg; }
.skip-tile:nth-child(2) { --r: 5deg; }
.skip-tile:nth-child(3) { --r: -4deg; }

.sfx--skip   { right: 4%; top: 6%; --r: -12deg; color: var(--red); font-size: clamp(2.4rem, 6vw, 5.6rem); }
.sfx--bzzt   { right: 4%; top: 6%; --r: 9deg; color: var(--white); font-size: clamp(1.8rem, 3.6vw, 3rem); }
.sfx--next1, .sfx--next2, .sfx--next3 { color: var(--red); font-size: clamp(1.6rem, 3.6vw, 3rem); }
.sfx--next1 { left: 36%; top: 22%; --r: 10deg; }
.sfx--next2 { left: 50%; top: 42%; --r: -8deg; color: var(--white); }
.sfx--next3 { left: 30%; top: 62%; --r: 7deg; color: var(--coral); }

/* fake YouTube-style prompt: secondary to the skipping */
.yt-dialog {
  position: absolute;
  z-index: 5;
  left: 5%;
  bottom: 8%;
  width: min(180px, 46%);
  padding: 9px 11px 7px;
  background: #212938;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink), 0 12px 40px rgba(0, 0, 0, .55);
  font-family: var(--f-body);
  --r: 2deg;
  transform: rotate(var(--r));
}
.yt-dialog__text { margin: 0 0 6px; font-size: .74rem; font-weight: 600; line-height: 1.3; color: var(--white); }
.yt-dialog__btn {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-weight: 800;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* HTML-drawn YouTube-Music-style queue (scroll-linked: JS sets is-skipped / is-current) */
.queue {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  background:
    radial-gradient(circle at center, rgba(237, 36, 70, .22) .8px, transparent 1.4px) 0 0 / 4px 4px,
    linear-gradient(160deg, #1b2335, #0d1220);
  color: var(--white);
  font-family: var(--f-body);
}
.queue__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 900 1rem/1 var(--f-display); font-stretch: 78%; text-transform: uppercase; letter-spacing: .04em; }
.queue__logo { width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--red); flex: none; }
.queue__tag { margin-left: auto; padding: 3px 7px; background: var(--slate); border: 2px solid var(--ink); font: 700 .68rem/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.queue__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; align-content: start; }
.queue__list li {
  position: relative;
  display: grid;
  grid-template-columns: 1.6em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 2px solid transparent;
  font-size: clamp(.78rem, 4.2cqw, 1rem);
  font-weight: 600;
  transition: background-color .15s, color .15s;
}
.queue__no { color: var(--muted); font-weight: 800; text-align: right; }
.queue__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue__skip {
  padding: 2px 6px;
  background: var(--red-ui);
  color: #fff;
  border: 2px solid var(--ink);
  font: 900 .66rem/1 var(--f-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-8deg) scale(.4);
  opacity: 0;
  transition: opacity .15s, transform .25s var(--ease-pop);
}
.queue__list li.is-current { background: var(--red-ui); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); color: #fff; }
.queue__list li.is-current .queue__no { color: #fff; }
.queue__list li.is-skipped { color: #6f7a8d; }
.queue__list li.is-skipped .queue__title { text-decoration: line-through 2px var(--red); }
.queue__list li.is-skipped .queue__skip { opacity: 1; transform: rotate(-8deg); }
.queue__now { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding-top: 8px; border-top: 2px solid var(--slate); font-size: clamp(.74rem, 3.8cqw, .9rem); font-weight: 700; color: var(--coral); }
.queue__eq { width: 14px; height: 12px; flex: none; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 13px, transparent 13px); -webkit-mask: linear-gradient(to top, #000 60%, transparent 60%); mask: linear-gradient(to top, #000 60%, transparent 60%); }
.queue.is-burned .queue__now { color: var(--red); }

/* ---------- Chapter 4: action first, then the reward ---------- */
.k-store, .k-pop, .p-on, .p-mug4 { --r: 0deg; }
.p-mug4 img { object-position: 50% 100%; }
.p-on img { object-position: 76% 30%; }

.art-ui {
  container-type: size;
  display: grid;
  place-items: center;
  padding: 8%;
  background:
    radial-gradient(circle at center, rgba(70, 83, 106, .45) .8px, transparent 1.4px) 0 0 / 4px 4px,
    radial-gradient(ellipse at 50% 40%, #273448, #121827 75%);
}
.ui-store, .ui-pop {
  position: relative;
  width: min(100%, 112cqh);
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-body);
}
.ui-bar { border-radius: 5px 5px 0 0; }
.ui-bar { display: flex; align-items: center; gap: 3px; padding: 4px 6px; background: #d9dee6; border-bottom: 2px solid var(--ink); font-size: max(7px, 5cqmin); color: #46536a; white-space: nowrap; overflow: hidden; }
.ui-bar i { width: 5px; height: 5px; border-radius: 50%; background: #9aa3b1; flex: none; }
.ui-bar span { margin-left: 3px; overflow: hidden; text-overflow: ellipsis; }
.ui-store__body { display: flex; align-items: center; gap: 6%; padding: 9% 7% 6%; }
.panel__art .ui-icon { width: 24%; height: auto; flex: none; border-radius: 18%; object-fit: contain; }
.ui-store__name { margin: 0; font: 900 max(9px, 7.4cqmin)/1.1 var(--f-display); font-stretch: 80%; }
.ui-store__meta { margin: 3px 0 0; font-size: max(7px, 5cqmin); color: #46536a; }
.ui-btn {
  position: relative;
  display: grid;
  margin: 0 7% 9%;
  padding: 6% 4%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red-ui);
  color: #fff;
  font: 800 max(8px, 6.2cqmin)/1 var(--f-body);
  text-align: center;
  white-space: nowrap;
}
.ui-btn__a, .ui-btn__b { grid-area: 1 / 1; transition: opacity .15s; }
.ui-pop { padding: 8% 7% 0; }
.ui-pop__head { display: flex; align-items: center; gap: 6%; font: 900 max(9px, 7.4cqmin)/1 var(--f-display); font-stretch: 80%; }
.panel__art .ui-pop__head .ui-icon { width: 20%; }
.ui-pop__txt { margin: 7% 0; font-size: max(7.5px, 5.6cqmin); line-height: 1.35; color: #2a3346; }
.ui-pop .ui-btn { margin: 0 0 6%; }
.ui-pop__small { margin: 0 0 8%; text-align: center; font-size: max(7px, 5cqmin); color: #46536a; }
.ui-cursor {
  position: absolute;
  z-index: 3;
  left: 62%; top: 38%;
  width: max(18px, 11cqmin); height: auto;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(2px 2px 0 var(--ink));
  transform-origin: 15% 10%;
}
.sfx--k1, .sfx--k2 { right: 4%; top: 6%; --r: -10deg; color: var(--white); font-size: clamp(1.4rem, 3vw, 2.4rem); }
.sfx--on { right: 6%; top: 8%; --r: -8deg; color: var(--green); font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.caption--ahh { right: 8%; top: 12%; font-size: clamp(1rem, 2vw, 1.4rem); }

.toggle {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--bw) + 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: rgba(9, 13, 24, .92);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font: 800 .66rem/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.toggle__label { color: var(--white); }
.toggle__track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--slate-2); overflow: hidden; }
.toggle__state { position: relative; display: inline-grid; min-width: 2.2em; }
.toggle__off, .toggle__onw { grid-area: 1 / 1; }
@media (max-width: 699px) { .p-on .toggle__label { display: none; } }

/* ---------- How it works ---------- */
.how { --glow: radial-gradient(ellipse 90% 45% at 50% 60%, rgba(9, 13, 24, .45), transparent 75%); --hx: 12%; --hy: 6%; }
.beats {
  display: grid;
  gap: calc(var(--gut) + 10px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.beat {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--slate);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.beat::after { /* halftone */
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(9, 13, 24, .8) .75px, transparent 1.3px);
  background-size: 3px 3px;
  transform: rotate(30deg);
  opacity: .35;
}
.beat__no {
  position: absolute;
  top: 0; right: 0;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--red-ui);
  color: #fff;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  font: 900 1.9rem/1 var(--f-display);
  font-stretch: 70%;
}
.beat__icon {
  width: 46px; height: 46px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(244, 119, 141, .35));
}
.beat__strike { stroke: var(--white); stroke-width: 3.4; }
.beat__title {
  margin: 0 0 8px;
  font: 900 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--f-display);
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: .01em;
  padding-right: 40px;
}
.beat p { margin: 0; color: #e0e5eb; font-size: 1rem; line-height: 1.55; }
@media (min-width: 900px) {
  .beats { grid-template-columns: repeat(3, 1fr); }
  .beat:nth-child(1) { transform: rotate(-.6deg); }
  .beat:nth-child(3) { transform: rotate(.6deg); }
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  width: 100%;
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 60px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: 900 1.15rem/1.1 var(--f-display);
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.step__no {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red-ui);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 1.1rem;
}
.step + .step::before { /* connector arrow */
  content: "";
  position: absolute;
  left: 30px; top: -24px;
  width: 16px; height: 18px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@media (min-width: 760px) {
  .steps { flex-direction: row; gap: 40px; }
  .step { flex: 1; }
  .step + .step::before { left: -31px; top: 50%; margin-top: -9px; width: 20px; height: 18px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
}
.about {
  max-width: 64ch !important;
  margin-top: clamp(36px, 5vw, 56px) !important;
  text-align: center;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
}
.about strong { color: var(--white); }
.about p { margin: 0; }

/* ---------- Before / after demo ---------- */
.demo { --glow: radial-gradient(ellipse 70% 45% at 50% 55%, rgba(111, 23, 42, .35), transparent 72%); --hx: 50%; --hy: 90%; }
.demo__toggle {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px !important;
  padding: 4px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 #05070d;
}
.demo__btn {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 800 .9rem/1.1 var(--f-display);
  font-stretch: 85%;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.demo__btn[aria-pressed="true"] { background: var(--red-ui); color: #fff; }
.demo__btn[data-mode="with"][aria-pressed="true"] { background: var(--white); color: var(--ink); }
.demo__screen {
  /* The player is narrower than .page__fit; center the constrained block itself.
     Auto margins work before/after fit zoom, in both demo states and all widths. */
  width: 100%;
  margin-inline: auto;
  max-width: 860px !important;
  background: #0b101c;
  border: var(--bw) solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow), var(--bloom);
  overflow: hidden;
}
.demo__bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 10px 0;
  background: var(--slate);
  border-bottom: 3px solid var(--ink);
  font-size: .78rem;
  font-weight: 600;
  min-width: 0;
}
.demo__dots { display: flex; gap: 5px; align-self: center; margin: 0 6px 8px 2px; }
.demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-2); }
.demo__tab {
  padding: 8px 12px 7px;
  border-radius: 8px 8px 0 0;
  background: var(--navy);
  color: var(--white);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo__tab--bg { background: transparent; color: var(--muted); }
.demo__tab small { font-size: .7rem; opacity: .75; }
.demo__tab:first-of-type { flex: none; }
@media (max-width: 479px) {
  .demo__tab small { display: none; }
  .demo__toggle { width: 100%; }
  .demo__btn { flex: 1; padding: 0 10px; }
}
.demo__player {
  position: relative;
  padding: clamp(18px, 4vw, 36px);
  overflow: hidden;
}
.demo__bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(2px, .6vw, 6px);
  height: clamp(110px, 20vw, 170px);
}
.demo__bars i {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--deep-red), var(--red) 55%, var(--coral));
  transform-origin: 50% 100%;
  transform: scaleY(var(--h));
  box-shadow: 0 0 10px rgba(237, 36, 70, .35);
}
.demo.in-view .demo__bars i {
  animation: bar 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.13s);
}
@keyframes bar { from { transform: scaleY(calc(var(--h) * .25)); } to { transform: scaleY(var(--h)); } }
.demo__timeline {
  position: relative;
  height: 8px;
  margin: 22px 0 18px;
  background: var(--slate);
  border-radius: 999px;
}
.demo__progress {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(.35);
}
.demo.in-view .demo__progress { animation: progress 14s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.demo__mark {
  position: absolute;
  left: var(--x);
  top: -26px;
  padding: 2px 6px;
  background: var(--red-ui);
  color: #fff;
  border: 2px solid var(--ink);
  font: 900 .7rem/1 var(--f-display);
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(6px) scale(.6);
  transition: opacity .2s, transform .3s var(--ease-pop);
}
.demo__mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 3px; height: 16px;
  margin-left: -1.5px;
  background: var(--red);
}
.demo__mark.is-shown { opacity: 1; transform: none; }
.demo__status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; min-height: 1.6em; }
.demo__led { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); flex: none; }
.demo__glitch {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(0deg, rgba(9, 13, 24, .55) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, rgba(237, 36, 70, .25), transparent 40%, rgba(244, 119, 141, .2));
}
.demo__prompt {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 4vw, 36px);
  top: clamp(12px, 3vw, 28px);
  width: min(260px, 72%);
  padding: 14px 16px 10px;
  background: #212938;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  transform: scale(.7) rotate(-3deg);
  transition: opacity .2s, transform .35s var(--ease-pop);
}
.demo__prompt p { margin: 0 0 8px; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.demo__prompt span { display: block; width: -moz-fit-content; width: fit-content; margin-left: auto; color: var(--coral); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
/* states (set by JS) */
.demo__screen[data-state="frozen"] .demo__bars i,
.demo__screen[data-state="skipping"] .demo__bars i,
.demo__screen[data-state="paused"] .demo__bars i,
.demo__screen[data-state="frozen"] .demo__progress,
.demo__screen[data-state="skipping"] .demo__progress,
.demo__screen[data-state="paused"] .demo__progress { animation-play-state: paused !important; }
.demo__screen[data-state="frozen"] .demo__led,
.demo__screen[data-state="skipping"] .demo__led,
.demo__screen[data-state="paused"] .demo__led { background: var(--red); box-shadow: 0 0 10px var(--red); }
.demo__screen[data-state="frozen"] .demo__bars,
.demo__screen[data-state="paused"] .demo__bars { opacity: .45; }
.demo__screen[data-state="skipping"] .demo__glitch { animation: demo-glitch .5s steps(2) 2; }
.demo__screen[data-state="skipping"] .demo__bars { animation: jolt .25s steps(2) 3; }
.demo__screen[data-state="paused"] .demo__prompt { opacity: 1; transform: none; }
.demo__screen[data-mode="with"] .demo__led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.demo__bars { transition: opacity .3s; }
@keyframes demo-glitch { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes jolt { 0% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 100% { transform: none; } }
.demo__note { margin-top: 14px !important; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- Benefits ---------- */
.benefits { --hx: 90%; --hy: 20%; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gut) + 6px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--slate);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.card svg {
  grid-row: span 2;
  width: 52px; height: 52px;
  padding: 11px;
  border-radius: 50%;
  background: var(--red-ui);
  border: 3px solid var(--ink);
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 2px 0 4px;
  font: 900 1.35rem/1.15 var(--f-display);
  font-stretch: 74%;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.card p { margin: 0; color: #e0e5eb; font-size: 1rem; line-height: 1.55; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 1fr; padding: 26px; }
  .card svg { grid-row: auto; margin-bottom: 14px; width: 60px; height: 60px; padding: 13px; }
}

/* ---------- Benefits: headline trio (store copy, verbatim) ---------- */
.ben__intro {
  max-width: 62ch !important;
  margin: 0 auto clamp(24px, 3.5vw, 40px) !important;
  text-align: center;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: #e0e5eb;
}
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--gut) + 6px);
  margin: 0 auto calc(var(--gut) + 10px);
  padding: 0;
  list-style: none;
}
.trio__item {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--white);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.trio__title {
  display: flex;
  align-items: center;
  gap: .4em;
  margin: 0 0 8px;
  font: 900 clamp(1.5rem, 2.6vw, 2rem)/1.05 var(--f-display);
  font-stretch: 68%;
  letter-spacing: .01em;
  color: var(--red-ui);
}
.trio__title span { color: var(--ink); font-size: .8em; }
.trio__item p { margin: 0; font-size: 1.02rem; line-height: 1.55; font-weight: 600; color: #2a3346; }
.ben__strap {
  max-width: 900px !important;
  margin: clamp(28px, 4vw, 44px) auto 0 !important;
  padding: 16px 22px;
  text-align: center;
  background: var(--red-ui);
  color: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font: 900 clamp(1.15rem, 2.2vw, 1.6rem)/1.2 var(--f-display);
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: .01em;
  transform: rotate(-.8deg);
}
@media (min-width: 900px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio__item:nth-child(1) { transform: rotate(-.8deg); }
  .trio__item:nth-child(3) { transform: rotate(.8deg); }
}

/* ---------- Origin story: "Why I built it" caption sequence ---------- */
.origin { --glow: radial-gradient(ellipse 70% 45% at 50% 55%, rgba(111, 23, 42, .3), transparent 72%); --hx: 85%; --hy: 15%; }
.origin__seq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: beat;
}
.origin__beat {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 0;
  counter-increment: beat;
}
.origin__thumb {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
}
.origin__thumb img { width: 100%; height: 100%; object-fit: cover; }
.origin__thumb::after { /* panel number */
  content: counter(beat);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--red-ui);
  color: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font: 900 1rem/1 var(--f-display);
}
.caption.origin__cap {
  position: relative;
  inset: auto;
  max-width: none;
  margin: 0 0 0 -10px;
  padding: 12px 14px 12px 22px;
  font-size: .98rem;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}
.origin__cap strong { text-transform: uppercase; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; letter-spacing: .02em; }
.origin__sig {
  margin-top: 22px !important;
  text-align: right;
  max-width: var(--maxw);
  font: italic 600 .95rem/1.4 var(--f-body);
  color: var(--muted);
}
@media (min-width: 900px) {
  .origin__seq { grid-template-columns: repeat(4, 1fr); gap: var(--gut); align-items: start; }
  .origin__beat { grid-template-columns: 1fr; }
  .origin__thumb { aspect-ratio: 4 / 3; }
  .caption.origin__cap { margin: -18px 10px 0; padding: 12px 14px; }
  .origin__beat:nth-child(odd) .caption.origin__cap { transform: rotate(-1deg); }
  .origin__beat:nth-child(even) .caption.origin__cap { transform: rotate(1deg); }
  .origin__beat .caption--alarm.origin__cap { transform: rotate(-1.8deg); }
}

/* "Offers in-app purchases": store-style label under the buttons */
.iap-note {
  margin: 12px 0 0;
  font: 600 .8rem/1.3 var(--f-body);
  letter-spacing: .02em;
  color: var(--muted);
  text-align: center;
}
.tag .iap-note { color: #39445a; margin-bottom: 4px; }

/* ---------- Pricing tag ---------- */
.pricing { --glow: radial-gradient(ellipse 60% 42% at 50% 52%, rgba(237, 36, 70, .22), transparent 72%); --hx: 50%; --hy: 50%; }
.tag {
  position: relative;
  max-width: 560px !important;
  padding: 84px clamp(18px, 5vw, 44px) 28px;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  box-shadow: 9px 9px 0 var(--ink), 0 0 120px -20px rgba(237, 36, 70, .6);
  transform: rotate(-1.5deg);
}
.tag__hole {
  position: absolute;
  top: 18px; left: 50%;
  width: 22px; height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--ink);
}
.tag__burst {
  position: absolute;
  top: -40px; right: -12px;
  display: grid;
  place-items: center;
  width: 126px; height: 126px;
  margin: 0;
  padding: 18px;
  background: var(--red-ui);
  color: #fff;
  clip-path: polygon(50% 0, 61% 14%, 79% 9%, 79% 27%, 96% 32%, 87% 48%, 98% 63%, 81% 70%, 82% 89%, 64% 86%, 50% 100%, 37% 86%, 19% 90%, 19% 71%, 2% 64%, 12% 49%, 3% 32%, 21% 27%, 21% 9%, 38% 14%);
  transform: rotate(12deg);
  font: 900 .8rem/1 var(--f-display);
  font-stretch: 62%;
  letter-spacing: .02em;
  text-transform: uppercase;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.tag__lead { margin: 0 0 4px; font: 900 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--f-display); font-stretch: 76%; text-transform: uppercase; }
.tag__price {
  margin: 0;
  font: 900 clamp(4.6rem, 15vw, 7.4rem)/1 var(--f-display);
  font-stretch: 66%;
  color: var(--red-ui);
  text-shadow: 4px 4px 0 var(--ink);
}
.tag__price small { font-size: .3em; color: var(--ink); text-shadow: none; text-transform: uppercase; letter-spacing: .06em; }
.tag__text { margin: 6px 0 22px; font-weight: 600; font-size: 1.05rem; color: #2a3346; }
.tag .btn--store:not(.is-primary) { background: var(--navy); color: #fff; }
.tag .btn--store:not(.is-primary):hover { background: var(--slate); color: #fff; }
.tag__small { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; font-size: .85rem; color: #39445a; }
@media (max-width: 599px) {
  .tag { transform: none; padding-top: 76px; }
  .tag__burst { width: 96px; height: 96px; right: 0; top: -28px; padding: 14px; font-size: .7rem; }
}
.tag__small svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- FAQ ---------- */
.faq { --hx: 10%; --hy: 15%; }
.faq__list { max-width: 820px !important; display: grid; gap: 14px; }
.faq details {
  background: var(--slate);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 14px 56px 14px 18px;
  cursor: pointer;
  list-style: none;
  font: 800 clamp(1.02rem, 1.8vw, 1.18rem)/1.25 var(--f-display);
  font-stretch: 88%;
  letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--coral), var(--coral)) 50% 50% / 100% 3px no-repeat,
    linear-gradient(var(--coral), var(--coral)) 50% 50% / 3px 100% no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 2px dashed rgba(191, 200, 210, .2); }
.faq summary:hover { color: var(--coral); }
.faq details p { margin: 0; padding: 14px 18px 0; color: var(--muted); }
.faq details p:last-child { padding-bottom: 18px; }

/* ---------- Final CTA ---------- */
.final { --hx: 50%; --hy: 40%; }
.final__panel {
  position: relative;
  padding: clamp(40px, 7vw, 84px) clamp(18px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(237, 36, 70, .3), transparent 70%),
    linear-gradient(180deg, #1a2234, var(--ink));
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow), 0 0 120px -30px rgba(237, 36, 70, .6);
  overflow: hidden;
  isolation: isolate;
}
.final__panel::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(70, 83, 106, .7) .8px, transparent 1.35px);
  background-size: 3px 3px;
  transform: rotate(30deg);
  opacity: .35;
}
.final__title { font-size: clamp(3rem, 10vw, 8rem); margin-bottom: clamp(24px, 4vw, 40px); }
.recap {
  display: grid;
  gap: 10px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
  text-align: left;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}
.recap li { position: relative; padding-left: 34px; }
.recap li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-ui);
  border: 2px solid var(--ink);
}
.recap li::after {
  content: "";
  position: absolute;
  left: 7px; top: calc(.15em + 5px);
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
@media (min-width: 760px) {
  .recap { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.store-row--big .btn { min-height: 60px; font-size: 1.2rem; padding: .8em 1.6em; }
.final__trial { margin: 6px 0 4px; font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 3px solid #05070d;
  color: var(--muted);
  font-size: .9rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad) 44px;
  display: grid;
  gap: 12px;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  color: var(--white);
  font: 900 1.1rem/1 var(--f-display);
  font-stretch: 74%;
  text-transform: uppercase;
}
.footer__brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__disclaimer, .footer__copy { margin: 0; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__disclaimer, .footer__copy { grid-column: 1 / -1; }
}

/* =========================================================
   Reveal motion (only when JS is running)
   ========================================================= */
.js [data-reveal="ink"]:not(.panel),
.js .panel[data-reveal="ink"] > .panel__art {
  clip-path: inset(-220px 100% -220px -220px);
  transition: clip-path .95s var(--ease-ink) var(--d, 0s);
}
.js [data-reveal="ink"] .panel__art img {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out) var(--d, 0s);
}
.js [data-reveal="ink"].is-in:not(.panel),
.js .panel[data-reveal="ink"].is-in > .panel__art { clip-path: inset(-220px -220px -220px -220px); }
.js [data-reveal="ink"].is-in .panel__art img { transform: none; }
.js [data-reveal="ink"].is-done:not(.panel),
.js .panel[data-reveal="ink"].is-done > .panel__art { clip-path: none; }

.js [data-reveal="caption"] {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .45s ease calc(var(--d, 0s) + .45s), transform .6s var(--ease-out) calc(var(--d, 0s) + .45s);
}
.js .caption--br[data-reveal="caption"] { transform: translateX(28px); }
.js [data-reveal="caption"].is-in { opacity: 1; transform: none; }

.js [data-reveal="slide"] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s);
}
.js [data-reveal="slide"].is-in { opacity: 1; transform: none; }
.js .turn--ominous[data-reveal="slide"].is-in { transform: rotate(-3deg); }
.js .turn--ominous[data-reveal="slide"] { transform: translateX(40px) rotate(-3deg); transition-duration: .4s, 1s; transition-delay: .3s; }

.js [data-reveal="pop"] {
  opacity: 0;
  transform: scale(.4) rotate(-8deg);
  transition: opacity .2s ease var(--d, 0s), transform .55s var(--ease-pop) var(--d, 0s);
}
.js [data-reveal="pop"].is-in { opacity: 1; transform: none; }
@media (min-width: 600px) { .js .tag[data-reveal="pop"].is-in { transform: rotate(-1.5deg); } }

.js [data-reveal="sfx"] { opacity: 0; }
.js [data-reveal="sfx"].is-in { animation: sfx-pop .6s var(--ease-pop) var(--d, 0s) both; }
@keyframes sfx-pop {
  0%   { opacity: 0; transform: scale(.2) rotate(calc(var(--r, -8deg) - 25deg)); }
  60%  { opacity: 1; transform: scale(1.22) rotate(calc(var(--r, -8deg) + 6deg)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--r, -8deg)); }
}
/* pause decorative loops while their section is off-screen */
.js [data-loop]:not(.in-view) .loop,
.js [data-loop]:not(.in-view) .loop *,
.js [data-loop]:not(.in-view) .eq i { animation-play-state: paused; }

/* =========================================================
   Reduced motion: static, no parallax, no shake
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-reveal] > .panel__art,
  .js [data-reveal] .panel__art img {
    opacity: 1 !important;
    clip-path: none !important;
  }
  .js [data-reveal="caption"], .js [data-reveal="slide"], .js [data-reveal="pop"], .js [data-reveal] .panel__art img { transform: none !important; }
  .js .tag[data-reveal="pop"] { transform: rotate(-1.5deg) !important; }
  @media (max-width: 599px) { .js .tag[data-reveal="pop"] { transform: none !important; } }
  .js .turn--ominous[data-reveal] { transform: rotate(-3deg) !important; }
  .panel__art > [data-parallax], .cover__art, .cover__body { transform: none !important; }
  .js [data-reveal="sfx"] { opacity: 1 !important; }
}


/* =========================================================
   Hover parallax (fine pointers only; JS sets --tx/--ty -1..1)
   ========================================================= */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-hover] {
    transform: perspective(900px) rotateX(calc(var(--ty, 0) * -4deg)) rotateY(calc(var(--tx, 0) * 4deg));
    transition: transform .5s var(--ease-out);
  }
  [data-hover] img, [data-hover] .ui-store, [data-hover] .ui-pop, [data-hover] .queue__list {
    translate: calc(var(--tx, 0) * 12px) calc(var(--ty, 0) * 12px);
    transition: translate .5s var(--ease-out), scale .5s var(--ease-out), transform 1.4s var(--ease-out);
  }
  [data-hover].is-hover { transition-duration: .18s; }
  [data-hover].is-hover img { scale: 1.035; transition: translate .18s linear, scale .4s var(--ease-out), transform 1.4s var(--ease-out); }
}

/* =========================================================
   Round 3 components
   ========================================================= */
/* "Also works on" Chromium row */
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 12px 0 0;
  font: 700 .86rem/1.2 var(--f-body);
  color: var(--muted);
}
.store-row--center + .also, .tag .also, .final .also { justify-content: center; }
.also__lead { font: 800 .74rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.also a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.also a:hover, .also a:focus-visible { border-bottom-color: var(--red); }
.also a.is-you { color: #fff; border-bottom-color: var(--red); }
.also svg { width: 20px; height: 20px; flex: none; }
.also sup { font-size: .7em; color: var(--coral); }
.also__note { margin: 4px 0 0; font-size: .76rem; line-height: 1.4; color: var(--muted); max-width: 52ch; }
.also__note a { color: inherit; text-underline-offset: 2px; }
[data-browser="opera"] .also__note { color: var(--white); font-weight: 600; }
.tag .also, .tag .also a { color: var(--ink); }
.tag .also a.is-you { color: var(--red-ui); }
.tag .also__note { color: #39445a; margin-left: auto; margin-right: auto; text-align: center; }
.final .also__note, .pricing .also__note { margin-left: auto; margin-right: auto; text-align: center; }

/* FAQ lists */
.faq details ul { margin: 8px 0 0; padding: 0 18px 18px 38px; color: var(--muted); display: grid; gap: 6px; }
.faq details ul + p, .faq details p + ul { margin-top: 0; }
.faq details a { color: var(--white); }

/* Demo: playlist queue that burns through in the WITHOUT state */
.dq {
  position: absolute;
  z-index: 3;
  left: clamp(12px, 4vw, 36px);
  top: clamp(12px, 3vw, 28px);
  width: min(220px, 52%);
  padding: 8px 8px 6px;
  background: rgba(9, 13, 24, .92);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-body);
}
.dq__head { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; font: 800 .7rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dq__count { color: var(--coral); white-space: nowrap; }
.dq__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.dq__list li {
  position: relative;
  padding: 3px 6px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
  border-radius: 3px;
}
.dq__list li.is-current { background: var(--red-ui); color: #fff; }
.demo__screen[data-mode="with"] .dq__list li.is-current { background: var(--slate); box-shadow: inset 3px 0 0 var(--green); }
.dq__list li.is-skipped { color: #6f7a8d; text-decoration: line-through 2px var(--red); }
.dq__list li.is-skipped::after {
  content: "SKIP";
  position: absolute;
  right: 4px; top: 50%;
  padding: 1px 4px;
  background: var(--red-ui);
  color: #fff;
  font: 900 .56rem/1 var(--f-display);
  letter-spacing: .08em;
  transform: translateY(-50%) rotate(-6deg);
}
@media (max-width: 639px) {
  .dq { position: relative; left: auto; top: auto; width: 100%; margin-bottom: 14px; }
  .dq__list { grid-template-columns: 1fr 1fr; column-gap: 6px; }
  .demo__prompt { top: auto; bottom: 70px; }
}
@media (min-width: 640px) { .demo__bars { margin-left: 240px; } .demo__player { min-height: 270px; } }
.demo__screen[data-state="burned"] .demo__bars { opacity: .2; }
.demo__screen[data-state="burned"] .demo__bars i,
.demo__screen[data-state="burned"] .demo__progress { animation-play-state: paused !important; }
.demo__screen[data-state="burned"] .demo__led { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* =========================================================
   Round 4: chapters are centred comic pages (one viewport each)
   that build themselves beat by beat (js: CHAPTER_PACING)
   ========================================================= */
.chapter { padding: 0 var(--pad); scroll-margin-top: var(--nav-h); }
.chapter + .chapter { padding-top: 0; }
.chapter:focus { outline: none; }
.page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 460px;
  padding: clamp(10px, 2.2vh, 24px) 0 clamp(6px, 1.2vh, 12px);
}

/* head: number + title. While .is-title it sits alone in the middle of the page */
.page__head {
  flex: none;
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  margin: 0 auto clamp(8px, 1.6vh, 16px);
  text-align: center;
}
.page__head .chapter__no { margin: 0; }
.page__head .chapter__title { font-size: clamp(1.75rem, 2.2vw + 1.7vh, 3.3rem); line-height: .95; }
.page__head .chapter__title > span { display: inline; }
.js .page__head[data-reveal] {
  transition: opacity .5s ease, transform .6s var(--ease-out), translate .8s var(--ease-out), scale .8s var(--ease-out);
}
.chapter.is-title .page__head { translate: 0 var(--hd, 0px); scale: 1.4; }

/* stage: the grid keeps its designed ratio (--R) and is scaled to fit the space left */
.page__stage {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
  display: grid;
  place-items: center;
}
.page__grid {
  --R: 1.9;
  position: relative;
  display: grid;
  gap: var(--gut);
  width: min(100cqw, 100cqh * var(--R));
  height: min(100cqh, 100cqw / var(--R));
}
.page__grid > * { min-width: 0; min-height: 0; }
.page__grid .panel__art { height: 100%; min-height: 0; aspect-ratio: auto; }

/* foot: progress, "show all" while building, then the NEXT CHAPTER tab */
.page__foot {
  flex: none;
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-top: clamp(8px, 1.4vh, 14px);
}
.page__count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 800 .74rem/1 var(--f-display);
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.page__dots { display: flex; gap: 6px; }
.page__dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--slate-2); }
.page__dots i.is-on { background: var(--red); border-color: var(--red); box-shadow: 0 0 6px rgba(237, 36, 70, .6); }
.page__skip {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: rgba(191, 200, 210, .6);
  font: 700 .74rem/1 var(--f-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.page__skip:hover, .page__skip:focus-visible { color: var(--white); }
.js .chapter[data-state="building"] .page__skip { display: inline-flex; }

.next-tab {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 48px;
  margin-left: auto;
  padding: 7px 26px 8px 16px;
  background: var(--red-ui);
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink), var(--bloom);
  transform: rotate(-1.5deg);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s;
}
.next-tab::after { /* dog-eared page corner */
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 18px; height: 18px;
  background: linear-gradient(315deg, var(--navy) 0 50%, #ff9aab 50% 100%);
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
}
.next-tab:hover { color: #fff; background: var(--red); transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink), var(--bloom); }
.next-tab:active { transform: translate(2px, 2px) rotate(-1.5deg); box-shadow: 2px 2px 0 var(--ink); }
.next-tab__kicker {
  grid-column: 1;
  font: italic 700 .72rem/1.15 var(--f-display);
  font-stretch: 85%;
  letter-spacing: .04em;
  opacity: .9;
}
.next-tab__label {
  grid-column: 1;
  font: 900 .98rem/1.05 var(--f-display);
  font-stretch: 76%;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.next-tab__chev { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.js .chapter:not([data-state="done"]) .next-tab { display: none; }
.js .chapter[data-state="done"] .next-tab { animation: tab-pop .5s var(--ease-pop) backwards; }
@keyframes tab-pop {
  from { opacity: 0; transform: scale(.5) rotate(-9deg); }
  to   { opacity: 1; transform: rotate(-1.5deg); }
}

/* panel extras appear with their panel */
.js [data-chapter] .panel[data-reveal] > .step-badge,
.js [data-chapter] .panel[data-reveal] > .toggle { transition: opacity .35s ease .45s; }
.js [data-chapter] .panel[data-reveal]:not(.is-in) > .step-badge,
.js [data-chapter] .panel[data-reveal]:not(.is-in) > .toggle { opacity: 0; }
/* tilts live on the individual rotate property so pop / caption reveals keep them */
.skip-tile { transform: none; rotate: var(--r, 0deg); }
.yt-dialog { transform: none; rotate: 2deg; }
.caption--alarm { transform: none; rotate: -1.5deg; }

/* ---------- Chapter 1 ---------- */
.ch1__grid { --R: 1.8; grid-template-columns: 74fr 13fr 13fr; grid-template-rows: 1fr 1fr .9fr; grid-template-areas: "w h h" "w m l" "s s s"; }
.p-wide { grid-area: w; } .p-head { grid-area: h; } .p-mug { grid-area: m; } .p-lamp { grid-area: l; } .p-strip { grid-area: s; }
.p-head img { object-position: 50% 30%; }

/* ---------- Chapter 2 ---------- */
.ch2__grid { --R: 2.5; grid-template-columns: 77fr 23fr; grid-template-rows: 1fr 1fr; grid-template-areas: "m c" "m h"; }
.p-main { grid-area: m; } .p-code { grid-area: c; } .p-head2 { grid-area: h; }
.ch2 .turn--ominous {
  grid-area: m;
  align-self: end;
  justify-self: start;
  position: relative;
  z-index: 5;
  margin: 0 0 3% 3% !important;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

/* ---------- Chapter 3 ---------- */
.chaos { --R: 2.4; grid-template-columns: 64fr 36fr; grid-template-rows: 1.45fr 1fr; grid-template-areas: "m q" "m s"; }
.c-main { grid-area: m; } .c-queue { grid-area: q; } .c-screen { grid-area: s; }
.c-head { /* comic inset over the big panel's corner */
  grid-area: m;
  place-self: end end;
  z-index: 4;
  width: 30%;
  aspect-ratio: 900 / 728;
  margin: 0 -1.2% -1.5% 0;
}
.c-skips {
  position: absolute;
  z-index: 4;
  left: 3%;
  bottom: 5%;
  width: 40%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  pointer-events: none;
}
.c-main .yt-dialog { left: auto; bottom: auto; right: 4%; top: 30%; }
.sfx--skip { top: 4%; }
.queue { container-type: size; padding: 10px 10px 8px; }
.queue__head { margin-bottom: 6px; }
.queue__list { gap: 2px; overflow: hidden; }
.queue__list li { padding: 2px 8px; font-size: clamp(.7rem, min(4.2cqw, 4.4cqh), 1rem); }
.queue__now { margin-top: 6px; padding-top: 6px; font-size: clamp(.7rem, min(3.8cqw, 4cqh), .9rem); }
@container (max-height: 230px) {
  .queue__tag, .queue__now { display: none; }
  .queue__list li { padding: 1px 6px; }
}

/* ---------- Chapter 4: the four steps in one row, the reward below them ---------- */
.ch4__grid { --R: 1.9; grid-template-columns: repeat(4, 1fr); grid-template-rows: 19fr 32fr; grid-template-areas: "a b c d" "s s s s"; row-gap: calc(var(--gut) + 6px); }
.k-store { grid-area: a; } .k-pop { grid-area: b; } .p-on { grid-area: c; } .p-mug4 { grid-area: d; }
.splash { grid-area: s; justify-self: center; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1920 / 963; margin: 0; }
.splash .panel__art { box-shadow: var(--shadow), 0 0 120px -30px rgba(61, 220, 132, .25), var(--bloom); }
.p-mug4 img { object-position: 50% 62%; filter: brightness(1.15); }

/* drawn store card + popup: pressed / cursor / switch states (final state without JS) */
.ui-btn__a, .ui-btn__b { transition: opacity .15s; }
.ui-btn__a { opacity: 0; }
.ui-btn__b { opacity: 1; }
.ui-press { background: #1f9d57; transition: background-color .2s; }
.js .k-store:not(:has(.sfx--k1.is-in)) .ui-btn__a,
.js .k-pop:not(:has(.sfx--k2.is-in)) .ui-btn__a { opacity: 1; }
.js .k-store:not(:has(.sfx--k1.is-in)) .ui-btn__b,
.js .k-pop:not(:has(.sfx--k2.is-in)) .ui-btn__b { opacity: 0; }
.js .k-store:not(:has(.sfx--k1.is-in)) .ui-press,
.js .k-pop:not(:has(.sfx--k2.is-in)) .ui-press { background: var(--red-ui); }
.ui-cursor { transform: none; opacity: 1; transition: transform .65s var(--ease-out) .3s, opacity .25s ease .3s; }
.js [data-chapter] .panel:not(.is-in) .ui-cursor { transform: translate(40cqmin, 30cqmin); opacity: 0; }
.js .k-store:has(.sfx--k1.is-in) .ui-cursor,
.js .k-pop:has(.sfx--k2.is-in) .ui-cursor { animation: cursor-press .3s ease; }
@keyframes cursor-press { 50% { scale: .82; } }
.toggle__on-bg { opacity: 1; transition: opacity .25s; }
.toggle__knob { transform: translateX(18px); transition: transform .25s var(--ease-out); }
.toggle__off { color: var(--muted); opacity: 0; transition: opacity .2s; }
.toggle__onw { color: var(--green); opacity: 1; transition: opacity .2s; }
.js .p-on:not(:has(.sfx--on.is-in)) .toggle__on-bg { opacity: 0; }
.js .p-on:not(:has(.sfx--on.is-in)) .toggle__knob { transform: none; }
.js .p-on:not(:has(.sfx--on.is-in)) .toggle__off { opacity: 1; }
.js .p-on:not(:has(.sfx--on.is-in)) .toggle__onw { opacity: 0; }
/* readable mock text: never below 12px; narrow panels get a simplified mock */
.ui-store__name, .ui-pop__head { font-size: max(12px, 7.4cqmin); }
.ui-store__meta, .ui-pop__small { font-size: max(12px, 5cqmin); }
.ui-pop__txt { font-size: max(12px, 5.6cqmin); }
.ui-btn { font-size: max(12px, 6.2cqmin); }
.ui-bar { font-size: max(12px, 5cqmin); }
@container (max-width: 250px) {
  .ui-bar span, .ui-store__meta, .ui-pop__txt, .ui-pop__small, .ui-wide { display: none; }
  .ui-store__body { padding: 10% 6% 8%; }
  .ui-btn { margin: 0 5% 8%; padding: 7% 3%; }
  .ui-pop { padding: 9% 6% 2%; }
  .ui-pop__head { margin-bottom: 10%; }
  .ui-pop .ui-btn { margin: 0 0 8%; }
}

/* ---------- Phones: own compositions, still one screen per chapter ---------- */
@media (max-width: 699px) {
  .ch1__grid { --R: .64; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 54fr 56fr 18fr; grid-template-areas: "w w w" "h m l" "s s s"; }
  .ch2__grid { --R: .66; grid-template-columns: 1fr 1fr; grid-template-rows: 56fr 44fr; grid-template-areas: "m m" "c h"; }
  .chaos { --R: .66; grid-template-columns: 58fr 42fr; grid-template-rows: 50fr 19fr 34fr; grid-template-areas: "m m" "q s" "q h"; }
  .c-head { grid-area: h; place-self: stretch; width: auto; aspect-ratio: auto; margin: 0; }
  .ch4__grid { --R: .62; grid-template-columns: 1fr 1fr; grid-template-rows: 43fr 43fr 48fr; grid-template-areas: "a b" "c d" "s s"; }
  .page__head { gap: 4px 10px; }
  .page .caption { font-size: .7rem; padding: .4em .6em .35em; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); max-width: 82%; }
  .page .caption--tl { top: 6px; left: 6px; }
  .page .caption--br { bottom: 6px; right: 6px; }
  .page .bubble { font-size: .9rem; padding: .45em .8em .4em; }
  .sfx--slurp, .sfx--tap, .sfx--bzzt, .sfx--k1, .sfx--k2 { font-size: 1.15rem; }
  .sfx--next1, .sfx--next2, .sfx--next3, .sfx--on { font-size: 1.4rem; }
  .sfx--skip { font-size: 2rem; }
  .ch2 .turn--ominous { font-size: 1.9rem; }
  .c-main .yt-dialog { width: 44%; padding: 6px 8px 5px; top: 34%; }
  .c-main .yt-dialog__text { font-size: .62rem; margin-bottom: 4px; }
  .c-main .yt-dialog__btn { font-size: .58rem; padding: 2px 8px; }
  .c-skips { width: 46%; gap: 5px; }
  .step-badge { font-size: .66rem; padding: 3px 7px 3px 3px; top: -10px; }
  .step-badge b { width: 18px; height: 18px; }
  .caption--ahh { font-size: .8rem; }
  .toggle { padding: 4px 8px; gap: 6px; }
  .page__foot { min-height: 52px; gap: 8px; }
  .page__count { font-size: .68rem; gap: 7px; }
  .page__dots i { width: 8px; height: 8px; }
  .next-tab { padding: 6px 22px 7px 12px; column-gap: 6px; }
  .next-tab__kicker { font-size: .64rem; }
  .next-tab__label { font-size: .82rem; }
  .next-tab__chev { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .page__count > span:last-child { display: none; }
}

/* ---------- Store CTAs (browser-aware) ---------- */
.cta-row { align-items: center; }
.btn--auto .btn__mark { width: 1.9em; height: 1.9em; }
.cta-alt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--muted);
  font: 700 .86rem/1 var(--f-body);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.cta-alt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cta-alt:hover { color: var(--white); }
.store-row .cta-alt { flex: 0 0 auto; }
.btn--nav .btn__mark { width: 1.35em; height: 1.35em; }
.btn--nav .btn__short { display: none; }
@media (max-width: 479px) {
  .btn--nav .btn__label { display: none; }
  .btn--nav .btn__short { display: inline; }
}
.download { scroll-margin-top: calc(var(--nav-h) + 16px); }
.download__line { margin: 10px auto 0; text-align: center; font-size: .86rem; font-weight: 700; color: #39445a; }
.cta-tip { /* Opera: Chrome Web Store needs Opera's add-on first */
  position: absolute;
  z-index: 20;
  left: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: min(300px, 86vw);
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 600 .8rem/1.35 var(--f-body);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
  pointer-events: none;
}
.has-tip { position: relative; }
.btn--auto:hover ~ .cta-tip, .btn--auto:focus-visible ~ .cta-tip, .cta-tip.is-shown { opacity: 1; visibility: visible; }
.nav .cta-tip { left: auto; right: 0; }

/* =========================================================
   Round 5: the whole site is a comic you click through.
   Every [data-page] is one centred page box between the nav and the page counter.
   ========================================================= */
:root { --bar-h: 40px; }
@media (max-width: 699px) { :root { --bar-h: 36px; } }
html:not(.js) { --bar-h: 0px; }
html.js {
  scroll-padding-top: var(--nav-h);
  scroll-padding-bottom: var(--bar-h);
  scroll-snap-type: y proximity;   /* gentle: scrolling settles on pages, never forced */
}
.js body { padding-bottom: var(--bar-h); }
html, html.js { scroll-padding-top: var(--nav-h); }
[data-page], .chapter, .download { scroll-margin-top: 0; }
.js [data-page] { scroll-snap-align: start; }
/* Navigation focuses a named region for assistive technology. Browser caret browsing
   can paint an insertion caret in its static text: hide only that presentation here,
   never editable carets or keyboard focus. */
[data-page] { caret-color: transparent; }
[data-page] :is(input, textarea, [contenteditable]:not([contenteditable="false"])),
[data-page] [contenteditable]:not([contenteditable="false"]) * { caret-color: auto; }
[data-page]:focus { outline: none; }
[data-page]:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.page { height: calc(100vh - var(--nav-h) - var(--bar-h)); height: calc(100svh - var(--nav-h) - var(--bar-h)); min-height: 400px; }

/* replay / reset: class toggles with transitions switched off for an instant */
.is-resetting, .is-resetting * { transition: none !important; animation: none !important; }

/* ---------- section pages ---------- */
.pg { padding: 0 var(--pad); }
.pg > .page { display: flex; flex-direction: column; padding: clamp(8px, 2vh, 22px) 0 clamp(6px, 1.2vh, 12px); }
html:not(.js) .pg > .page { height: auto; min-height: calc(100svh - var(--nav-h)); padding: 48px 0; }
.pg .page__head { flex-direction: column; gap: 6px; margin: 0 auto clamp(8px, 2vh, 22px); }
.pg .page__head .kicker { margin: 0; }
.pg .page__head .section__title { font-size: clamp(1.7rem, 1.4vw + 2.4vh, 3.6rem); line-height: .95; }
.pg .page__head .section__title > span { display: inline; }
.page__body { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
html:not(.js) .page__body { flex: none; }
.page__fit { width: 100%; max-width: var(--maxw); margin: auto 0; }
.pg .section__head { margin-bottom: clamp(8px, 2vh, 22px); }

/* ---------- cover as page 1 ---------- */
.cover { display: block; min-height: 0; padding: 0 var(--gut); }
.cover > .page { display: flex; flex-direction: column; padding: var(--gut) 0 clamp(6px, 1.2vh, 12px); }
.js .cover__frame { flex: 1 1 0; min-height: 0; }
html:not(.js) .cover > .page { height: auto; min-height: calc(100svh - var(--nav-h)); }
html:not(.js) .cover__frame { min-height: 560px; }
.cover__body { transform-origin: 0 100%; }
.cover .page__foot { justify-content: flex-end; }

/* ---------- page foot: < PREVIOUS · replay · show all · NEXT > ---------- */
.page__foot { gap: 10px; }
.prev-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(1deg);
  font: 800 .8rem/1 var(--f-display);
  font-stretch: 78%;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s var(--ease-out), color .16s;
}
.prev-tab:hover { color: var(--red-ui); transform: translate(-1px, -1px) rotate(1deg); }
.prev-tab:active { transform: translate(2px, 2px) rotate(1deg); box-shadow: 1px 1px 0 var(--ink); }
.prev-tab__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.prev-tab__short { display: none; }
.page__replay {
  display: none;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: rgba(191, 200, 210, .7);
  font: 800 .74rem/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.page__replay > span:first-child { font-size: 1.2rem; line-height: 1; }
.page__replay:hover, .page__replay:focus-visible { color: var(--white); }
.js [data-page][data-state="done"] .page__replay { display: inline-flex; }
.js [data-page][data-state="building"] .page__skip { display: inline-flex; }
.js [data-page]:not([data-state="done"]) .next-tab { display: none; }
.js [data-page][data-state="done"] .next-tab { animation: tab-pop .5s var(--ease-pop) backwards; }
.next-tab { text-decoration: none; }
.next-tab--plain { padding-top: 10px; padding-bottom: 10px; }
.next-tab--plain .next-tab__chev { grid-row: 1; }
.next-tab--cta { grid-template-columns: auto auto auto; padding-left: 12px; }
.next-tab--cta .next-tab__mark { grid-column: 1; grid-row: 1 / span 2; width: 26px; height: 26px; margin-right: 2px; }
.next-tab--cta .next-tab__kicker, .next-tab--cta .next-tab__label { grid-column: 2; }
.next-tab--cta .next-tab__chev { grid-column: 3; }
.next-tab--cta .next-tab__kicker { font-style: normal; }
.next-tab--cta:not(.is-store) .next-tab__mark { display: none; }
.next-tab--cta:not(.is-store) { grid-template-columns: auto auto; }
.next-tab--cta:not(.is-store) .next-tab__kicker, .next-tab--cta:not(.is-store) .next-tab__label { grid-column: 1; }
.next-tab--cta:not(.is-store) .next-tab__chev { grid-column: 2; }
.page__foot .cta-tip { top: auto; bottom: calc(100% + 10px); left: auto; right: 0; }

/* ---------- the page counter (whole site) ---------- */
.pbar { display: none; }
.js .pbar {
  position: fixed;
  z-index: 60;
  left: 0; right: 0; bottom: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 12px;
  background: rgba(9, 13, 24, .95);
  border-top: 2px solid #05070d;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .35);
}
.pbar__count { margin: 0; font: 800 .72rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pbar__count b { color: var(--white); font-weight: 900; }
.pbar__dots { display: flex; align-items: center; }
.pbar__dot { display: grid; place-items: center; width: 22px; height: var(--bar-h); }
.pbar__dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 2px solid var(--slate-2);
  transition: width .2s var(--ease-out), background-color .2s, border-color .2s;
}
.pbar__dot.is-chapter::before { border-color: rgba(237, 36, 70, .6); }
.pbar__dot:hover::before { border-color: var(--white); }
.pbar__dot.is-active::before { width: 18px; background: var(--red); border-color: var(--red); box-shadow: 0 0 6px rgba(237, 36, 70, .6); }
.pbar__dot:focus-visible { outline-offset: -6px; }
.pbar__skip { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); font: 700 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pbar__skip:hover { color: var(--white); }
.pbar__skip-short { display: none; }

/* ---------- swipe rows (phones) ---------- */
.swipe-dots { display: none; }
@media (max-width: 699px) {
  .js .swipe {
    display: flex !important;
    gap: 12px;
    max-width: none;
    margin: 0;
    padding: 8px 4px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .js .swipe::-webkit-scrollbar { display: none; }
  .js .swipe > li { flex: 0 0 82%; margin: 0; scroll-snap-align: center; }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 4px; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--slate-2); transition: width .2s, background-color .2s; }
  .swipe-dots i.is-on { width: 16px; background: var(--red); }
}

/* ---------- page contents, compact so each page fits one screen ---------- */
.origin__seq { margin-bottom: 0; }
.origin__sig { margin: clamp(8px, 1.6vh, 16px) auto 0; }
.how .beats { margin-bottom: clamp(10px, 2vh, 22px); }
.how .steps { margin-bottom: clamp(10px, 2vh, 22px); }
.demo__note { margin-top: 8px !important; margin-bottom: 0; }
.ben__intro { margin-bottom: clamp(10px, 2vh, 22px); }
.trio { margin-bottom: 0; }
.cards--rest { margin-bottom: clamp(10px, 2vh, 22px); }
.ben__strap { margin: 0 auto; }
.tag__cta { margin: 0 0 12px; display: flex; justify-content: center; }
.tag__cta .btn { max-width: 100%; }
.faq__list { gap: 8px; margin: 0 auto; }
.faq summary { padding-top: 12px; padding-bottom: 12px; }
.faq__a { max-height: var(--faq-a-max, 38vh); overflow: auto; overscroll-behavior: contain; }
.page__begin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(191, 200, 210, .7);
  font: 800 .74rem/1.2 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.page__begin:hover, .page__begin:focus-visible { color: var(--white); }
@media (max-width: 699px) {
  .page__begin { min-width: 0; max-width: 110px; padding: 0 6px; letter-spacing: .06em; }
}
.final .page__body { align-items: center; }
.final__panel { padding: clamp(14px, 3vh, 40px) clamp(14px, 4vw, 48px); }
.final__title { font-size: clamp(2.2rem, 2.6vw + 3vh, 5.6rem); margin-bottom: clamp(10px, 2.2vh, 26px); }
.recap { margin-bottom: clamp(12px, 2.4vh, 24px); }
.final__small { margin-top: 10px; }
.final__small p { margin: 4px 0 0; }
.final .download__line { color: var(--muted); }
@media (max-width: 699px) {
  .recap { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 6px; font-size: .84rem; }
  .recap li { padding-left: 28px; }
  .final .store-row .btn { flex: 1 1 100%; }
  .page__foot { gap: 6px; }
  .prev-tab { padding: 6px 10px 6px 6px; }
  .prev-tab__long { display: none; }
  .prev-tab__short { display: inline; }
  .page__replay-txt { display: none; }
  .page__replay { padding: 0 6px; }
  .pbar__word { display: none; }
  .js .pbar { gap: 8px; padding: 0 8px; }
  .pbar__dot { width: 15px; }
  .pbar__dot::before { width: 7px; height: 7px; border-width: 1.5px; }
  .pbar__dot.is-active::before { width: 13px; }
  .pbar__skip-long { display: none; }
  .pbar__skip-short { display: inline; }
  .pg .page__head { gap: 3px; }
}

/* ---------- chapter 3: one-shot chaos, then a still, frantic composition ---------- */
.js [data-reveal="slam"] {
  opacity: 0;
  scale: 1.55;
  translate: 0 -16px;
  transition: opacity .12s ease var(--d, 0s), scale .42s var(--ease-pop) var(--d, 0s), translate .42s var(--ease-pop) var(--d, 0s);
}
.js [data-reveal="slam"].is-in { opacity: 1; scale: 1; translate: none; }
.ch3 [data-reveal="sfx"], .ch3 [data-reveal="slam"] { --d: 0s !important; }
.ch3 [data-reveal="sfx"].is-in { animation: sfx-slam .46s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes sfx-slam {
  0%   { opacity: 0; transform: scale(1.6) rotate(calc(var(--r, -8deg) + var(--rj, 0deg))); }
  45%  { opacity: 1; transform: scale(.9) rotate(calc(var(--r, -8deg) + var(--rj, 0deg) * .3)); }
  75%  { transform: scale(1.06) rotate(calc(var(--r, -8deg) + var(--rj, 0deg) * .5)); }
  100% { opacity: 1; transform: scale(1) rotate(calc(var(--r, -8deg) + var(--rj, 0deg) * .5)); }
}
.sfx--next4 { left: 60%; top: 10%; --r: -14deg; color: var(--white); }
.c-queue { transform: rotate(1.2deg); }
.c-screen { --r: 3deg; }
.c-head { --r: -4.5deg; }
.ch3 .c-main .panel__art, .ch3 .c-queue .panel__art { outline: 4px solid rgba(237, 36, 70, 0); outline-offset: -4px; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="slam"] { opacity: 1 !important; scale: none !important; translate: none !important; }
  .js .pbar__dot::before { transition: none; }
}
/* head + content sit together in the middle of the page box, the foot at the bottom */
.pg > .page > .page__head { margin-top: auto; }
.pg > .page > .page__body { flex: 0 1 auto; }
.pg > .page > .page__foot { margin-top: auto; }
.pg.final > .page > .page__body { margin-top: auto; }
.pricing .tag { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
  .faq__list { max-width: 1160px !important; grid-template-columns: 1fr 1fr; align-items: start; column-gap: 16px; }
}
.back-story { order: -1; align-self: center; font: 700 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 6px 4px; }
.back-story:hover { color: var(--white); text-decoration: underline; }

/* ---------- phones: compact pages so text stays readable (little or no scaling) ---------- */
@media (max-width: 699px) {
  .how .beat { padding: 14px 14px 12px; }
  .how .beat__icon { width: 34px; height: 34px; margin-bottom: 6px; }
  .how .beat__title { font-size: 1.05rem; margin-bottom: 4px; }
  .how .beat p { font-size: .86rem; line-height: 1.4; margin: 0; }
  .how .steps { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
  .how .step { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 4px; min-height: 0; font-size: .74rem; line-height: 1.15; text-align: center; }
  .how .step + .step::before { display: none; }
  .how .step__no { width: 22px; height: 22px; font-size: .8rem; }
  .how .about { padding: 10px 12px; font-size: .8rem; line-height: 1.4; }
  .how .about p { margin: 0; }
  .faq summary { padding: 9px 40px 9px 12px; font-size: .84rem; line-height: 1.25; min-height: 44px; }
  .faq__list { gap: 5px; }
  .final__panel { padding: 12px 12px 10px; }
  .final .store-row { flex-wrap: nowrap; gap: 8px; }
  .final .store-row .btn { flex: 1 1 0; min-width: 0; padding: 8px 8px; }
  .final .store-row .btn__sub { display: none; }
  .final .store-row .btn__label { font-size: .8rem; white-space: normal; line-height: 1.1; }
  .final .also { margin: 8px 0 4px; }
  .final .also__note, .final .download__line { font-size: .74rem; margin: 2px 0; }
  .final__small { margin-top: 6px; font-size: .78rem; line-height: 1.35; }
}
