/* ============================================================
   onkey — styles
   The look is lifted from Nobey One's animation frames:
   plum wall, periwinkle floor, cardboard box, banana peels,
   the doctor's sage-green office. Flat, cel-shaded, ink outlines.
   ============================================================ */

:root {
  --plum: #4b2545;
  --plum-deep: #33172f;
  --plum-light: #5e2f57;
  --peri: #6c6b9b;
  --peri-deep: #55548a;
  --peri-light: #8785b8;
  --lav: #cfcdee;
  --card: #8f8332;
  --card-deep: #6f6524;
  --card-light: #a89b3f;
  --card-flap: #9b8f37;
  --banana: #d9e42a;
  --banana-deep: #b6c11c;
  --fur: #8c4a2a;
  --tan: #d8a56b;
  --sage: #5f8474;
  --sage-light: #7ea393;
  --mint: #d9f0c2;
  --red: #d42323;
  --ink: #1a0f1c;
  --cream: #f6eddb;
  --paper: #fbf5e6;

  --display: 'Shrikhand', 'Baloo 2', cursive;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --body: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;

  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 18px 26px 14px 30px / 28px 14px 30px 16px;
  --line: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --bounce: cubic-bezier(.2, 1.6, .4, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--banana); color: var(--ink); }

/* Banana cursor on pointer devices */
@media (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Cpath d='M54 10C64 32 46 56 12 50 30 44 46 34 50 14Z' fill='%23d9e42a' stroke='%231a0f1c' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M52 12l4-7' stroke='%231a0f1c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 6 26, auto;
  }
  a, button, [role="button"], label, summary {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 64 64'%3E%3Cpath d='M54 10C64 32 46 56 12 50 30 44 46 34 50 14Z' fill='%23fff27a' stroke='%231a0f1c' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M52 12l4-7' stroke='%231a0f1c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") 6 26, pointer;
  }
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--banana); color: var(--ink); padding: .5rem 1rem;
  border: var(--line) solid var(--ink); font-weight: 800;
}
.skip:focus { top: 1rem; }

/* Paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--banana);
  margin: 0 0 .35rem;
  letter-spacing: .01em;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 .75rem;
  color: var(--cream);
  text-shadow: 4px 4px 0 var(--ink);
  hyphens: none;
}
.lede { font-size: 1.2rem; max-width: 52ch; margin: 0; color: rgba(246, 237, 219, .85); }
.section-head { margin-bottom: 3.5rem; max-width: 720px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.topbar.scrolled {
  background: rgba(51, 23, 47, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 var(--line) 0 var(--ink);
  padding: .55rem 1.25rem;
}
.brand {
  font-family: var(--display); font-size: 1.9rem; line-height: 1;
  color: var(--banana); text-decoration: none; text-shadow: 3px 3px 0 var(--ink);
}
.topnav { display: flex; gap: 1.5rem; }
.topnav a {
  text-decoration: none; font-weight: 800; font-size: 1rem;
  border-bottom: 3px solid transparent; padding-bottom: 2px;
  transition: border-color .2s, transform .2s;
}
.topnav a:hover { border-color: var(--banana); transform: rotate(-2deg); }
.topbar-actions { display: flex; gap: .5rem; }
.pill {
  text-decoration: none; font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: .35rem .85rem; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 7rem 1.25rem 3rem;
  display: grid; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: var(--peri);
  border-top: var(--line) solid var(--ink);
  z-index: -1;
}
.hero-grid {
  width: 100%; max-width: 1180px; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "title stage" "rest stage";
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 2.5rem;
}
.title {
  grid-area: title;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(5.5rem, 10.6vw, 10.5rem);
  line-height: .82; margin: 0 0 1.25rem -0.04em;
  white-space: nowrap;
  color: var(--banana);
  text-shadow: 6px 6px 0 var(--ink);
  letter-spacing: .005em;
}
.title span { display: inline-block; opacity: 0; transform: translateY(40px) rotate(6deg) scale(.7); }
.ready .title span {
  animation: pop .75s var(--bounce) forwards;
  animation-delay: calc(var(--i) * 80ms + 120ms);
}
@keyframes pop { to { opacity: 1; transform: none; } }

.hero-rest { grid-area: rest; opacity: 0; transform: translateY(18px); }
.ready .hero-rest { animation: fade-up .7s ease-out .55s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.pitch { font-size: clamp(1.15rem, 1.6vw, 1.35rem); max-width: 34ch; margin: 0 0 1.5rem; line-height: 1.4; }
.hint { font-family: var(--hand); font-size: 1.15rem; color: var(--banana); margin: 1rem 0 0; opacity: .9; }

/* Contract address pill */
.ca {
  display: flex; align-items: center; gap: .6rem;
  background: var(--cream); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--wobble);
  padding: .45rem .45rem .45rem 1rem;
  box-shadow: var(--shadow);
  max-width: 100%;
  margin-bottom: 1.25rem;
}
.ca-label { font-family: var(--hand); font-size: 1.1rem; color: var(--fur); flex: none; }
.ca code {
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.copy {
  flex: none;
  font-family: var(--hand); font-size: 1.1rem; line-height: 1;
  background: var(--banana); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: .45rem .9rem;
  transition: transform .15s var(--bounce), background .2s;
}
.copy:hover { transform: rotate(-4deg) scale(1.06); }
.copy.done { background: var(--mint); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row--tight { margin-top: 1.25rem; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 800; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .8rem 1.25rem;
  color: var(--ink); background: var(--cream);
  border: var(--line) solid var(--ink); border-radius: var(--wobble);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s var(--bounce), box-shadow .15s;
}
.btn--primary { background: var(--banana); }
.btn--peri { background: var(--lav); }
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* The stage: box + onkey + phone */
.stage {
  grid-area: stage;
  position: relative;
  width: min(100%, 640px);
  margin-inline: auto;
  padding-bottom: 6rem;
  align-self: center;
}
.box { position: relative; aspect-ratio: 700 / 470; }
.box-back { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bx-top   { fill: var(--card-light); }
.bx-left  { fill: var(--card-deep); }
.bx-right { fill: #7d7229; }
.bx-floor { fill: var(--card); }
.bx-wall  { fill: #857a2e; }
.bx-flap  { fill: var(--card-flap); }
.ink { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.ink-r { fill: none; stroke: var(--ink); stroke-width: 4; }
.box-front {
  position: absolute; top: 100%; left: -6.5%; width: 113%; height: 26%;
  overflow: visible; filter: drop-shadow(0 10px 0 rgba(26, 15, 28, .35));
}
.box::before { /* box drops in */
  content: none;
}
.box { opacity: 0; transform: translateY(30px) scale(.96); }
.ready .box { animation: box-in .6s var(--bounce) forwards; }
@keyframes box-in { to { opacity: 1; transform: none; } }

.onkey-clip {
  position: absolute; left: 9%; right: 9%; bottom: 0;
  aspect-ratio: 763 / 441;
  overflow: hidden;
}
.onkey-rise { transform: translateY(104%); height: 100%; }
.ready .onkey-rise { animation: rise 1.15s var(--bounce) .45s forwards; }
@keyframes rise { to { transform: translateY(0); } }
.onkey-idle { height: 100%; animation: idle 4.2s ease-in-out infinite; animation-delay: 1.6s; }
@keyframes idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-1deg); }
}
.onkey {
  position: relative; height: 100%; aspect-ratio: 763 / 441; margin-inline: auto;
  outline: none; -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--bounce);
  transform-origin: 50% 90%;
}
.onkey:hover { transform: scale(1.02); }
.onkey:focus-visible { filter: drop-shadow(0 0 0 4px var(--banana)); }
.onkey img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; pointer-events: none; }
.onkey.speaking { animation: speak-bounce .38s ease-in-out 6 alternate; }
@keyframes speak-bounce { from { transform: scale(1, 1); } to { transform: scale(1.02, .985) translateY(-1.5%); } }

/* Eyes that follow the banana */
.eye {
  position: absolute; background: #fff; border-radius: 50%;
  overflow: hidden;
}
.eye--l { left: 38.9%; top: 50.4%; width: 8.2%; height: 13%; }
.eye--r { left: 56.7%; top: 49%;   width: 7.7%; height: 12.4%; }
.pupil {
  position: absolute; left: 50%; top: 50%;
  width: 76%; aspect-ratio: 1; background: #0a0508; border-radius: 50%;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  transition: transform .12s ease-out;
}
.lid {
  position: absolute; background: var(--fur); border-radius: 50% 50% 46% 46%;
  transform: scaleY(0); transform-origin: top;
  box-shadow: inset 0 -3px 0 var(--ink);
}
.lid--l { left: 38.6%; top: 50%;   width: 8.8%; height: 13.8%; }
.lid--r { left: 56.4%; top: 48.6%; width: 8.3%; height: 13.2%; }
.lid.blink { animation: blink .18s ease-in-out; }
@keyframes blink { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* Speech bubble */
.bubble {
  position: absolute; left: 56%; top: 9%;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--ink);
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--wobble-2);
  padding: .55rem .95rem; box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; transform: scale(.5) rotate(-6deg); transform-origin: 20% 110%;
  transition: opacity .2s, transform .3s var(--bounce);
  pointer-events: none; white-space: nowrap;
}
.bubble::after {
  content: ""; position: absolute; left: 14%; bottom: -14px;
  width: 16px; height: 16px; background: var(--cream);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}
.bubble.show { opacity: 1; transform: scale(1) rotate(-3deg); }

/* The phone (you are the guy recording him) */
.phone {
  position: absolute; right: -9%; bottom: -1.75rem; z-index: 3;
  width: 176px;
  background: #2b2140; border: var(--line) solid var(--ink); border-radius: 22px;
  padding: 10px; box-shadow: var(--shadow);
  transform: rotate(-8deg) translateX(60px); opacity: 0;
}
.ready .phone { animation: phone-in .8s var(--bounce) .95s forwards; }
@keyframes phone-in { to { opacity: 1; transform: rotate(-8deg) translateX(0); } }
.screen {
  background: #0f0a14; border-radius: 14px; padding: .65rem .7rem .5rem;
  color: var(--cream); font-size: .78rem; line-height: 1.3;
}
.rec { display: flex; align-items: center; gap: .35rem; margin-bottom: .45rem; font-weight: 800; letter-spacing: .08em; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec-blink 1.2s steps(1) infinite; }
@keyframes rec-blink { 50% { opacity: .15; } }
.rec-label { color: var(--red); font-size: .72rem; }
.rec-time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .72rem; opacity: .8; }
.stats-list { margin: 0; display: grid; gap: .15rem; }
.stats-list div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.stats-list dt { font-family: var(--hand); font-size: .9rem; color: var(--banana); }
.stats-list dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
#st-change.up { color: #9fe88a; }
#st-change.down { color: #ff8b8b; }
.screen-foot { margin: .5rem 0 0; font-size: .66rem; opacity: .7; display: flex; gap: .3rem; align-items: center; }
.sound { background: none; border: 0; padding: 0; font-family: var(--hand); font-size: .85rem; color: var(--banana); }
.sound[aria-pressed="false"] { opacity: .6; text-decoration: line-through; }

/* Hero on small screens: title, box, then the rest */
@media (max-width: 900px) {
  .hero { padding-top: 5.5rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "stage" "rest";
    row-gap: 1.5rem;
  }
  .hero-grid > * { min-width: 0; }
  .topbar:not(.scrolled) .brand { opacity: 0; pointer-events: none; }
  .brand { transition: opacity .3s; }
  .title { font-size: clamp(5rem, 26vw, 9rem); margin-bottom: 0; }
  .stage { width: min(100%, 520px); padding-bottom: 9.5rem; }
  .phone { width: 140px; right: 0; bottom: -.25rem; }
  .bubble { font-size: 1.2rem; top: 5%; left: 50%; }
  .pitch { max-width: 100%; }
}
@media (max-width: 600px) {
  .ca { flex-wrap: wrap; padding: .7rem .8rem; gap: .5rem .75rem; }
  .ca code { white-space: normal; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.3; flex-basis: 100%; }
  .ca-label { order: -1; }
  .copy { margin-left: auto; }
}
@media (max-width: 520px) {
  .stage { padding-bottom: 9rem; }
  .phone { width: 132px; }
  .screen { font-size: .7rem; }
}

/* ---------- Ticker ---------- */
.ticker-wrap { overflow: hidden; position: relative; z-index: 2; padding: .35rem 0; margin: -.35rem 0 -.6rem; }
.ticker {
  position: relative; z-index: 2;
  background: var(--banana); color: var(--ink);
  border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  overflow: hidden; padding: .55rem 0;
  font-family: var(--hand); font-size: 1.55rem; line-height: 1;
  transform: rotate(-1.2deg) scale(1.03);
  margin: -1px 0 -.25rem;
  box-shadow: 0 6px 0 var(--ink);
}
.ticker-track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: ticker 42s linear infinite; }
.ticker-track span { white-space: nowrap; }
.tk-banana { width: 30px; height: 30px; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Lore ---------- */
.lore {
  position: relative; background: var(--plum-deep);
  padding: 7rem 0 5rem; overflow: hidden;
}
.lore .container { position: relative; z-index: 1; }
.peels { position: absolute; inset: 0; pointer-events: none; }
.peel {
  position: absolute; width: clamp(64px, 8vw, 112px); height: auto; aspect-ratio: 80 / 64;
  transform: scale(0) rotate(var(--r, 0deg)); opacity: .92;
  transition: transform .7s var(--bounce);
  filter: drop-shadow(3px 4px 0 rgba(26, 15, 28, .5));
}
.peel.dropped { transform: scale(1) rotate(var(--r, 0deg)); }

.storyboard {
  list-style: none; margin: 0; padding: 2rem 0 0; position: relative;
  counter-reset: beat;
}
.storyboard::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  border-left: 4px dashed var(--peri-light); opacity: .55; transform: translateX(-50%);
}
.panel {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin-bottom: 5.5rem; counter-increment: beat;
}
.panel::before {
  content: counter(beat);
  position: absolute; left: 50%; top: -1.2rem; transform: translateX(-50%) rotate(var(--tilt, 0));
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--banana); color: var(--ink);
  border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center; z-index: 2;
}
.panel:nth-child(even) .still { order: 2; }

.still { margin: 0; position: relative; transform: rotate(var(--tilt, 0)); }
.still img {
  display: block; width: 100%;
  border: var(--line) solid var(--ink); border-radius: var(--wobble-2);
  box-shadow: var(--shadow-lg); background: #111;
}
.still figcaption {
  font-family: var(--hand); font-size: 1.05rem; color: var(--peri-light);
  margin-top: .9rem; text-align: right;
}
.still--stack .inset {
  position: absolute; right: -6%; bottom: 2.4rem; width: 42%;
  transform: rotate(6deg); box-shadow: 6px 6px 0 var(--ink);
  border-width: 3px;
}
.still--sticker img { background: #0f0a14; aspect-ratio: 1; object-fit: cover; max-width: 380px; margin-inline: auto; }
.still--you img {
  border: 0; box-shadow: none; background: none; border-radius: 0;
  filter: drop-shadow(8px 8px 0 var(--ink));
}
.you-stamp {
  position: absolute; left: 6%; top: -4%;
  font-family: var(--hand); font-size: 1.6rem; color: var(--red);
  border: 3px solid var(--red); border-radius: 6px; padding: .1em .5em;
  transform: rotate(-9deg); text-transform: uppercase; letter-spacing: .06em;
  background: rgba(246, 237, 219, .08);
}

.card {
  position: relative;
  background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--wobble-2);
  padding: 2rem 2rem 1.75rem; box-shadow: var(--shadow-lg);
  transform: rotate(calc(var(--tilt, 0) * -.6));
}
.card::before { /* tape */
  content: ""; position: absolute; top: -16px; left: 50%;
  width: 120px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(217, 228, 42, .8); border: 2px solid rgba(26, 15, 28, .35);
}
.stamp {
  display: inline-block; font-family: var(--hand); font-size: 1.05rem; line-height: 1.1;
  color: var(--red); border: 2.5px solid var(--red); border-radius: 5px;
  padding: .18em .55em; transform: rotate(-2.5deg);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem;
}
.card h3 {
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1; margin: 0 0 .7rem; color: var(--plum); hyphens: none;
}
.card p { margin: 0 0 1rem; max-width: 50ch; }
.card p a { color: var(--plum); font-weight: 800; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-family: var(--hand); font-size: 1rem; line-height: 1;
  background: var(--banana); border: 2.5px solid var(--ink); border-radius: 999px; padding: .32em .75em;
}
.more {
  display: inline-block; font-weight: 800; text-decoration: none; margin-right: 1rem;
  border-bottom: 3px solid var(--banana); transition: border-color .2s, transform .2s;
}
.more::after { content: " →"; }
.more:hover { border-color: var(--plum); transform: translateX(3px); }

@media (max-width: 860px) {
  .storyboard::before { left: 1.35rem; }
  .panel { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 3.25rem; margin-bottom: 4rem; }
  .panel::before { left: 1.35rem; top: 0; width: 2.7rem; height: 2.7rem; font-size: 1.35rem; }
  .panel:nth-child(even) .still { order: 0; }
  .card { padding: 1.5rem 1.35rem; }
  .still--stack .inset { right: -2%; width: 40%; }
}

/* The originals */
.originals { margin-top: 2rem; padding-top: 3.5rem; border-top: 4px dashed var(--peri-light); }
.originals-title { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 .3rem; text-shadow: 3px 3px 0 var(--ink); }
.originals-lede { margin: 0 0 1.75rem; color: rgba(246, 237, 219, .85); }
.embed-note { margin: -1rem 0 1.75rem; font-family: var(--hand); font-size: 1.05rem; color: var(--banana); max-width: 60ch; }
.embed-note code { font-family: var(--body); font-weight: 800; background: rgba(217, 228, 42, .18); padding: 0 .3em; border-radius: 4px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.yt-card { margin: 0; }
.yt {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .4s, opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--banana); border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  display: grid; place-items: center; color: var(--ink);
  transition: transform .2s var(--bounce);
}
.yt-play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-play:hover { transform: translate(-50%, -50%) scale(1.1) rotate(-4deg); }
.yt-card figcaption { font-family: var(--hand); font-size: 1.1rem; margin-top: .8rem; color: var(--peri-light); }
.yt-card figcaption strong { color: var(--cream); font-weight: 400; }

.credit {
  margin-top: 3.5rem; max-width: 720px;
  background: var(--banana); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--wobble);
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow); transform: rotate(-.8deg);
}
.credit p { margin: 0 0 .75rem; max-width: 60ch; }
.credit-eyebrow { font-family: var(--hand); font-size: 1.2rem; color: var(--fur); margin-bottom: .25rem !important; }
.credit a { font-weight: 800; color: var(--ink); }
.credit-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.credit-links a {
  text-decoration: none; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
  padding: .25rem .8rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Meme wall ---------- */
.memes { background: var(--peri); padding: 6rem 0; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.memes .eyebrow { color: var(--banana); }
.memes h2 { color: var(--cream); }
.memes .lede { color: rgba(246, 237, 219, .9); }
.wall { columns: 3 260px; column-gap: 1.75rem; }
.pola {
  display: block; break-inside: avoid; margin: 0 0 1.75rem; position: relative;
  background: #fff8ec; border: 3px solid var(--ink); padding: .6rem .6rem 1.1rem;
  box-shadow: var(--shadow); transform: rotate(var(--r, 0deg));
  transition: transform .25s var(--bounce), box-shadow .25s;
  text-align: left; width: 100%; color: var(--ink);
}
.pola::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px;
  transform: translateX(-50%) rotate(var(--tr, -3deg));
  background: rgba(217, 228, 42, .8); border: 2px solid rgba(26, 15, 28, .3);
}
.pola:hover { transform: rotate(0) scale(1.03) translateY(-4px); box-shadow: 10px 10px 0 var(--ink); z-index: 2; }
.pola img { display: block; width: 100%; border: 2px solid var(--ink); background: #111; }
.pola-cap { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; margin-top: .7rem; font-family: var(--hand); font-size: 1.25rem; line-height: 1.1; }
.pola-by { font-size: .85rem; opacity: .6; font-family: var(--body); font-weight: 700; }
.pola--add {
  background: transparent; border: 3px dashed var(--cream); color: var(--cream);
  display: grid; place-items: center; text-align: center; aspect-ratio: 1; padding: 1.25rem;
  text-decoration: none; box-shadow: none;
}
.pola--add::before { content: none; }
.pola--add:hover { box-shadow: none; border-color: var(--banana); }
.pola--add span { font-family: var(--hand); font-size: 1.35rem; }
.pola--add strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; text-shadow: 3px 3px 0 var(--ink); margin-bottom: .25rem; }

/* ---------- Facts ---------- */
.facts {
  background: radial-gradient(ellipse 70% 55% at 50% 0%, var(--sage-light), var(--sage) 70%);
  padding: 6rem 0 7rem;
}
.facts .eyebrow { color: var(--mint); }
.notes-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.75rem 1.5rem;
}
.note {
  position: relative; aspect-ratio: 1;
  background: var(--banana); color: var(--ink);
  padding: 1.35rem 1.15rem 1.1rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  box-shadow: 7px 9px 0 rgba(26, 15, 28, .5);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s var(--bounce), box-shadow .25s;
}
.note::before { /* pushpin */
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--ink); box-shadow: 2px 3px 0 rgba(26, 15, 28, .4);
}
.note:hover { transform: rotate(0) translateY(-5px); box-shadow: 9px 13px 0 rgba(26, 15, 28, .5); z-index: 2; }
.note--cream { background: var(--paper); }
.note--mint { background: var(--mint); }
.note--lav { background: var(--lav); }
.note-k { font-family: var(--hand); font-size: 1.05rem; line-height: 1.1; color: rgba(26, 15, 28, .75); }
.note-v { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; overflow-wrap: anywhere; hyphens: none; }
.note-v--sm { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.note-s { font-size: .85rem; line-height: 1.25; font-weight: 600; opacity: .8; margin-top: .3rem; }
.note--wide { grid-column: span 2; aspect-ratio: auto; min-height: 190px; }
.note-v--addr { font-family: var(--body); font-weight: 800; font-size: 1.05rem; line-height: 1.3; word-break: break-all; }
.note-actions { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; }
.note-actions a { font-weight: 800; }
.copy--note { font-size: 1rem; padding: .35rem .8rem; }
@media (max-width: 480px) { .note--wide { grid-column: span 1; } .notes-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; } }

/* ---------- How to buy ---------- */
.buy {
  background: var(--card);
  background-image: repeating-linear-gradient(90deg, transparent 0 26px, rgba(26, 15, 28, .07) 26px 29px);
  padding: 6rem 0; border-top: var(--line) solid var(--ink);
}
.sheet {
  position: relative; max-width: 780px; margin-inline: auto;
  background: var(--paper); color: var(--ink);
  border: var(--line) solid var(--ink); padding: 2.75rem 2.75rem 2.5rem;
  box-shadow: var(--shadow-lg); transform: rotate(-.8deg);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: -16px; width: 110px; height: 30px;
  background: rgba(217, 228, 42, .8); border: 2px solid rgba(26, 15, 28, .35);
}
.sheet::before { left: 8%; transform: rotate(-6deg); }
.sheet::after { right: 8%; transform: rotate(5deg); }
.sheet-eyebrow { font-family: var(--hand); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fur); margin: 0 0 .25rem; }
.sheet h2 { color: var(--plum); text-shadow: none; margin-bottom: 1.75rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.35rem; }
.steps li { display: grid; grid-template-columns: 3.6rem 1fr; grid-template-rows: auto auto; column-gap: .75rem; row-gap: .15rem; align-items: start; }
.steps li > * { grid-column: 2; }
.steps li::before {
  grid-column: 1; grid-row: 1 / span 2;
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-size: 2.6rem; line-height: .9; color: var(--fur);
  text-shadow: 3px 3px 0 var(--banana);
}
.steps h3 { font-family: var(--body); font-weight: 800; font-size: 1.2rem; margin: 0 0 .15rem; }
.steps p { margin: 0; max-width: 56ch; }
.steps a { color: var(--plum); font-weight: 800; }
.steps code { font-family: var(--body); font-weight: 800; background: var(--banana); padding: 0 .3em; border-radius: 4px; }
@media (max-width: 600px) { .sheet { padding: 2rem 1.35rem; } .steps li { grid-template-columns: 2.6rem 1fr; } .steps li::before { font-size: 2rem; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--plum-deep); padding: 5rem 0 0; text-align: center; overflow: hidden; border-top: var(--line) solid var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.75rem; margin-bottom: 1.75rem; }
.footer-links a { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--banana); }
.footer-links a:hover { border-color: var(--cream); }
.footer-credit { margin: 0 auto .75rem; max-width: 60ch; }
.footer-credit a { font-weight: 800; }
.disclaimer { margin: 0 auto 1rem; max-width: 62ch; font-size: .88rem; color: rgba(246, 237, 219, .65); }
.copyright { font-family: var(--hand); font-size: 1.1rem; color: var(--banana); margin: 0 0 1rem; }
.peek { height: 215px; overflow: hidden; margin-top: 1rem; }
.peek img { width: min(440px, 72%); display: block; margin-inline: auto; transform: translateY(24%); filter: drop-shadow(0 -6px 0 var(--ink)); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(26, 15, 28, .92);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; text-align: center; min-width: 0; }
.lb-fig img { max-width: min(90vw, 1100px); max-height: 78vh; border: var(--line) solid var(--ink); background: #111; box-shadow: var(--shadow-lg); animation: lb-in .3s var(--bounce); }
@keyframes lb-in { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }
.lb-fig figcaption { font-family: var(--hand); font-size: 1.4rem; margin-top: 1rem; color: var(--cream); }
.lb-close, .lb-nav {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--banana); border: var(--line) solid var(--ink); color: var(--ink);
  font-size: 2rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--bounce);
}
.lb-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.8rem; }
.lb-close:hover, .lb-nav:hover { transform: scale(1.08) rotate(-6deg); }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; padding: 1rem; } .lb-nav { position: absolute; bottom: 1rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } }

/* ---------- Confetti ---------- */
.confetti {
  position: fixed; left: var(--x); top: var(--y); width: 26px; height: 26px; z-index: 160; pointer-events: none;
  animation: confetti 1.1s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes confetti {
  0%   { transform: translate(-50%, -50%) rotate(0) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px) rotate(var(--tilt, 0)) scale(.97);
  transition: opacity .6s ease-out, transform .8s var(--bounce);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.in { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0)) scale(1); }
.panel.reveal { transform: translateY(36px) scale(.97); }
.panel.reveal.in { transform: none; }
.note.reveal { transform: translateY(36px) rotate(var(--r, 0deg)) scale(.9); }
.note.reveal.in { transform: rotate(var(--r, 0deg)); }
.sheet.reveal { transform: translateY(36px) rotate(-.8deg) scale(.97); }
.sheet.reveal.in { transform: rotate(-.8deg); }
.credit.reveal { transform: translateY(36px) rotate(-.8deg); }
.credit.reveal.in { transform: rotate(-.8deg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .title span, .hero-rest, .box, .phone { opacity: 1; transform: none; }
  .onkey-rise { transform: none; }
  .phone { transform: rotate(-8deg); }
  .reveal { opacity: 1; transform: none; }
  .peel { transform: scale(1) rotate(var(--r, 0deg)); }
  .ticker-track { animation: none; }
}
