/* 30 Days to Prom: The Game. Landing page.
   Every section sits on one of the series' own backdrops (kit/sets.jsx): the mint sunburst, Milo's bedroom wall,
   his carpet, and the coral sunburst behind his profile picture. Type and the HUD follow kit/ui.jsx and the covers. */

:root {
  --ink: #16112a;
  --navy: #141a40;
  --cream: #fbf3e4;
  --coral: #ff5a5f;
  --yellow: #ffd23f;
  --mint: #3ddc97;
  --sky: #5ec8ff;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --page: 1120px;
  --ring: var(--ink);
  /* The kit's Backdrop: 18 rays and a soft glow over a two-colour fall. */
  --rays: repeating-conic-gradient(from -2.5deg at 50% var(--burst, 40%), rgba(255, 255, 255, 0.1) 0deg 5deg, rgba(255, 255, 255, 0) 5.4deg 19.6deg, rgba(255, 255, 255, 0.1) 20deg);
  --glow: radial-gradient(ellipse 70% 46% at 50% var(--burst, 40%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 17px/1.5 var(--ui);
  overflow-x: hidden;
}
main { display: block; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---- scenes ---- */
.scene { position: relative; isolation: isolate; }
.scene-mint { background: var(--glow), var(--rays), linear-gradient(#7ee0b5, #1f8f7a); --burst: 34%; }
.scene-wall {
  --ring: var(--yellow);
  color: var(--cream);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 5px, rgba(255, 255, 255, 0) 6px) 0 0 / 112px 360px,
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 5px, rgba(255, 255, 255, 0) 6px) 56px 180px / 112px 360px,
    linear-gradient(#2f7378, #1f4f55);
}
/* The bedroom's string of lights, along the top of the wall. */
.scene-wall::before {
  content: ""; position: absolute; z-index: -2; inset: 0 0 auto; height: 62px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='62' viewBox='0 0 300 62'%3E%3Cdefs%3E%3CradialGradient id='a'%3E%3Cstop stop-color='%23ffd23f' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%23ffd23f' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b'%3E%3Cstop stop-color='%23ff8fb1' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%23ff8fb1' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c'%3E%3Cstop stop-color='%235ec8ff' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%235ec8ff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0 8C40 30 60 30 100 20S160 12 200 20S260 30 300 8' fill='none' stroke='%2320323a' stroke-width='4'/%3E%3Ccircle cx='50' cy='36' r='26' fill='url(%23a)'/%3E%3Cellipse cx='50' cy='36' rx='7' ry='10' fill='%23ffd23f'/%3E%3Ccircle cx='150' cy='27' r='26' fill='url(%23b)'/%3E%3Cellipse cx='150' cy='27' rx='7' ry='10' fill='%23ff8fb1'/%3E%3Ccircle cx='250' cy='35' r='26' fill='url(%23c)'/%3E%3Cellipse cx='250' cy='35' rx='7' ry='10' fill='%235ec8ff'/%3E%3C/svg%3E") repeat-x center top;
}
/* The pink-to-violet sunburst behind Ava's first post (Day 1). */
.scene-ava { background: var(--glow), var(--rays), linear-gradient(#ff9ec4, #7b5cff); --burst: 30%; }
.scene-coral { background: var(--glow), var(--rays), linear-gradient(#ff9f68, #e0567a); --burst: 62%; }

/* The cover headline: Anton, white with an ink outline, one part in yellow. */
.cover {
  font: 400 clamp(58px, 17.5vw, 104px)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.075em 0 var(--ink);
}
.cover .y { color: var(--yellow); }
.cover-s { font-size: clamp(38px, 8vw, 60px); text-align: center; text-wrap: balance; }

/* ---- the "coming soon" bar across the very top ---- */
.announce {
  padding: 9px 16px 8px; border-bottom: 4px solid var(--ink); background: var(--coral);
  text-align: center; font: 800 13px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---- top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--page); margin: 0 auto; padding: 20px 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; text-transform: uppercase; font: 400 20px/1 var(--display); letter-spacing: 0.03em; white-space: nowrap; }
.brand-tag { padding: 4px 8px 3px; border: 3px solid var(--ink); border-radius: 9px; background: var(--yellow); font-size: 14px; }
.top-link { padding: 8px 14px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.top-link:hover { background: #fff; }
@media (max-width: 439px) { .brand-tag { display: none; } }

/* ---- hero ---- */
.hero { display: grid; gap: 40px; max-width: var(--page); margin: 0 auto; padding: 32px 16px 64px; }
.pitch { min-width: 0; }
.lede { margin-top: 26px; max-width: 32em; font-size: clamp(17px, 2.2vw, 19px); font-weight: 700; text-wrap: pretty; }
.lede strong { font-weight: 800; background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); }

/* ---- waitlist form ---- */
.join { margin-top: 28px; max-width: 520px; scroll-margin-top: 24px; }
.join-form { display: grid; gap: 10px; }
.join-form input[type="email"] {
  width: 100%; min-width: 0; height: 58px; padding: 0 18px; border: 4px solid var(--ink); border-radius: 18px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 17px;
}
.join-form input::placeholder { color: #8f879f; font-weight: 500; }
.join-form button, .btn {
  display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 24px; border: 4px solid var(--ink); border-radius: 18px;
  background: var(--yellow); color: var(--ink); font: 800 16px/1 var(--ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: translate 0.08s, box-shadow 0.08s, background-color 0.15s;
}
.join-form button:hover, .btn:hover { background: #ffe066; }
.join-form button:active, .btn:active { translate: 0 4px; box-shadow: 0 2px 0 var(--ink); }
.join-form button[disabled] { background: #d9cfa6; cursor: progress; }
.trap { position: absolute; left: -9999px; }
.join-note { display: inline-block; margin-top: 12px; padding: 7px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--cream); font-size: 14px; font-weight: 800; color: #b3122e; }
.join-note:empty { display: none; }
.join-fine { margin-top: 12px; font-size: 13px; font-weight: 700; opacity: 0.78; }
.joined { padding: 20px 22px; border: 4px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 0 6px 0 var(--ink); }
.joined-title { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.joined-title::before { content: "✓"; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border: 3px solid var(--ink); border-radius: 50%; background: var(--mint); font: 800 16px/1 var(--ui); vertical-align: 3px; }
.joined-text { margin-top: 8px; font-weight: 700; font-size: 15px; }
.join.is-done .join-form, .join.is-done .join-note, .join.is-done .join-fine { display: none; }

/* ---- the console: stage on top, controls below ---- */
.console {
  width: 100%; max-width: 400px; margin: 0 auto; border: 5px solid var(--ink); border-radius: 30px; overflow: hidden;
  background: var(--cream); box-shadow: 0 12px 0 var(--ink);
}
.stage {
  --u: calc(100cqw / 1080);                 /* one pixel of the 1080-wide episode canvas */
  position: relative; container-type: inline-size; aspect-ratio: 1080 / 1660; overflow: hidden; background: #2f7378;
}
.layer, .layer-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.is-live .poster { display: none; }
.stage .once .fl { animation-iteration-count: 1; animation-fill-mode: forwards; }

/* The HUD, laid out as in kit/ui.jsx. */
.hud { position: absolute; left: calc(60 * var(--u)); right: calc(60 * var(--u)); top: calc(26 * var(--u)); display: flex; gap: calc(20 * var(--u)); }
.hud-panel { position: relative; height: calc(156 * var(--u)); border: calc(6 * var(--u)) solid var(--ink); border-radius: calc(26 * var(--u)); background: var(--navy); }
.hud-days { width: calc(310 * var(--u)); text-align: center; }
.hud-meter { flex: 1; padding-left: calc(20 * var(--u)); }
.hud-label { display: block; padding-top: calc(14 * var(--u)); font: 800 calc(38 * var(--u))/1 var(--ui); text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.hud-meter .hud-label { color: var(--mint); }
.hud-num { display: block; margin-top: calc(8 * var(--u)); font: 800 calc(78 * var(--u))/1 var(--mono); color: #fff; }
.bar { position: absolute; left: calc(240 * var(--u)); top: calc(86 * var(--u)); width: calc(360 * var(--u)); height: calc(30 * var(--u)); border-radius: 999px; background: #2c335e; overflow: hidden; }
.bar i { display: block; width: 2%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--yellow)); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }

.bump {
  position: absolute; right: calc(70 * var(--u)); top: calc(205 * var(--u)); padding: calc(10 * var(--u)) calc(26 * var(--u));
  border: calc(6 * var(--u)) solid var(--ink); border-radius: 999px; background: var(--coral); color: var(--ink);
  font: 800 calc(56 * var(--u))/1.1 var(--mono); rotate: -4deg; opacity: 0;
}
.bump.is-on { animation: bump 1.7s both; }
@keyframes bump { 0% { opacity: 0; scale: 0.4; } 12% { opacity: 1; scale: 1.12; } 20% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.caption {
  position: absolute; left: 5%; right: 5%; top: calc(1318 * var(--u)); text-align: center; text-wrap: balance;
  font: 800 calc(60 * var(--u))/1.14 var(--ui); text-transform: uppercase; color: #fff;
  -webkit-text-stroke: calc(13 * var(--u)) var(--ink); paint-order: stroke fill; text-shadow: 0 calc(7 * var(--u)) 0 var(--ink);
}
.caption b { color: var(--yellow); font-weight: 800; }
.caption.is-on { animation: pop 0.28s both; }
@keyframes pop { 0% { scale: 0.86; opacity: 0.2; } 60% { scale: 1.04; opacity: 1; } 100% { scale: 1; } }

.deck { padding: 16px 16px 16px; border-top: 5px solid var(--ink); }
.deck-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.deck-title { padding: 6px 10px 5px; border: 3px solid var(--ink); border-radius: 10px; background: var(--yellow); font: 800 13px/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; }
.deck-count { font: 700 12px/1.2 var(--ui); color: #6b6480; white-space: nowrap; }
/* The pick: two fixes on the table with an OR between them, as on the series' vote card. */
.picks { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 136px; padding: 14px 12px;
  border: 4px solid var(--ink); border-radius: 20px; background: #ff9f43; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: translate 0.08s, box-shadow 0.08s, opacity 0.2s, background-color 0.15s;
}
.pick-b { background: var(--sky); }
.pick:hover:enabled { translate: 0 -2px; box-shadow: 0 7px 0 var(--ink); }
.pick:active:enabled { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.pick:disabled { cursor: default; opacity: 0.4; }
.pick.is-picked { opacity: 1; background: var(--mint); }
.pick-name { font: 400 28px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.pick-why { font: 700 13px/1.3 var(--ui); }
.pick-tag { position: absolute; left: 10px; top: -11px; padding: 3px 8px 2px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font: 800 10px/1.2 var(--ui); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.or { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; translate: -50% -50%; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font: 800 13px/1 var(--ui); text-transform: uppercase; pointer-events: none; }

/* The night: what Milo's phone does, in the series' chat colours. */
.night { display: grid; gap: 10px; }
.thread-where { font: 800 11px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: #6b6480; }
.thread { display: grid; gap: 8px; }
.msg { display: flex; align-items: flex-end; gap: 7px; font: 700 14px/1.3 var(--ui); animation: msg-in 0.26s both; animation-delay: calc(var(--i, 0) * 0.5s); }
@keyframes msg-in { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
.msg span { max-width: 86%; padding: 8px 12px; border-radius: 16px 16px 16px 5px; background: #e6deff; }
.msg img, .msg-anon { flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; }
.msg-anon { background: #c9d3e0; }
.msg-milo { justify-content: flex-end; }
.msg-milo span { border-radius: 16px 16px 5px 16px; background: #3b82f6; color: #fff; }
.msg-sys { justify-content: center; padding: 9px 10px; border: 2px dashed #b9b3d0; border-radius: 12px; font-size: 13px; color: #4a4460; text-align: center; }
.night-note { font: 500 13px/1.4 var(--ui); color: #3a3350; }
.btn-next { width: 100%; height: 46px; font-size: 14px; box-shadow: 0 5px 0 var(--ink); }
/* Ava's vibe, as the kit's AvaMeter sticker: a navy panel with a cold-to-hot track. */
.vibe { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--navy); color: #fff; font: 800 12px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; }
.vibe-label { white-space: nowrap; }
.vibe-track { display: flex; flex: 1; gap: 3px; }
.vibe-track i { flex: 1; height: 10px; border-radius: 3px; background: #2c335e; transition: background-color 0.3s; }
.vibe-value { min-width: 5.6em; text-align: right; color: var(--sky); white-space: nowrap; }

.deck-end { text-align: center; padding: 18px 16px 22px; }
.end-art { width: 100%; max-width: 250px; height: auto; margin: 0 auto 12px; }
.end-title { font: 400 36px/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.end-text { margin-top: 8px; font-size: 15px; font-weight: 700; color: #3a3350; }
.end-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 16px; }
.end-actions .btn { width: 100%; }
.link { padding: 6px 8px; border: 0; background: none; font-weight: 800; font-size: 13px; color: #6b6480; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }

/* ---- sections ---- */
.band { max-width: var(--page); margin: 0 auto; padding: 64px 16px; }
.band > .cover-s { margin-bottom: 36px; }
.ava { padding-top: 132px; }
.cast { padding-top: 120px; }

/* ---- Ava: her post, what she has said so far, and the question that starts the countdown ---- */
.band > .ava-lede { margin: -16px auto 40px; max-width: 30em; text-align: center; font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; text-wrap: balance; }
.ava-grid { display: grid; gap: 32px; align-items: center; }
.post { width: 100%; max-width: 420px; margin: 0 auto; padding: 14px 14px 18px; border: 4px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: 0 10px 0 var(--ink); rotate: -2.5deg; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 17px; }
.post-head img { width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; }
.post-head strong { font-weight: 800; }
.post-photo { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 18px; }
.post-likes { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 800; }
.post-likes svg { width: 26px; height: 26px; fill: var(--coral); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.post figcaption { margin-top: 2px; font-size: 16px; font-weight: 700; color: #3a3350; }

.traits { display: grid; gap: 16px; }
.trait { padding: 18px 18px 20px; border: 4px solid var(--ink); border-radius: 24px; background: var(--cream); box-shadow: 0 8px 0 var(--ink); }
.trait h3 { font: 400 27px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.said { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.said img { flex: none; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; }
.said q { quotes: none; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: #e6deff; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: #3a3350; text-wrap: pretty; }

.ava-ask { display: grid; gap: 16px; align-items: center; margin-top: 36px; padding: 20px 22px 22px; border: 4px solid var(--ink); border-radius: 26px; background: var(--navy); color: #fff; box-shadow: 0 8px 0 var(--ink); }
.ask-chat { font: 800 12px/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0bf; }
.ava-ask .said { margin-top: 10px; }
.ava-ask .said q { background: #fff; font-size: 18px; }
.ask-line { font: 400 clamp(28px, 6.4vw, 38px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--yellow); text-wrap: balance; }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Three cards in two columns: the third sits centred under the pair. */
.person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
.person { border: 4px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--cream); color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 4px solid var(--ink); }
.art::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, 0) 0 10deg, rgba(255, 255, 255, 0.14) 10deg 20deg); }
.art img { position: absolute; left: 50%; top: 5%; width: 88%; height: auto; max-width: none; translate: -50% 0; }
.person-nana .art { background: linear-gradient(#ffe08a, #ff9f43); }
.person-dee .art { background: linear-gradient(#bfe3ff, #6a9ef5); }
.person-sal .art { background: linear-gradient(#ffd6e4, #e8457a); }
.person h3 { padding: 14px 14px 0; font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.person p { padding: 6px 14px 16px; font-size: 14px; line-height: 1.4; color: #3a3350; }

.series { padding-top: 120px; padding-bottom: 0; }
.series-card { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 28px 22px; border: 4px solid var(--ink); border-radius: 28px; background: var(--cream); box-shadow: 0 8px 0 var(--ink); }
.series-face { width: 84px; height: 84px; border: 4px solid var(--ink); border-radius: 50%; }
.series h2 { font: 400 30px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.series p { margin-top: 6px; font-weight: 700; color: #3a3350; }

.last { text-align: center; padding-bottom: 88px; }
.last .join { margin: 0 auto; text-align: left; }
.last .join-fine { text-align: center; }

.foot { padding: 26px 16px 36px; background: var(--ink); color: #b9b3d0; text-align: center; font-size: 14px; }
.foot a { font-weight: 700; color: var(--cream); }

/* ---- the cast, leaning in from the sides of the screen ----
   Each is a full rig standing just outside the edge and tilted in, so the head and an arm cross into view. */
.peek { position: absolute; z-index: -1; width: calc(var(--h) * 0.545); height: var(--h); pointer-events: none; }
.peek-right { right: calc(var(--h) * -0.5); --tilt: -35deg; --away: 90%; }
.peek-left { left: calc(var(--h) * -0.5); --tilt: 35deg; --away: -90%; }
.peek-slide { display: block; width: 100%; height: 100%; transition: translate 0.75s cubic-bezier(0.3, 1.45, 0.5, 1); }
.peeks-wait .peek:not(.is-in) .peek-slide { translate: var(--away) 0; }
.peek img { width: 100%; height: 100%; max-width: none; transform-origin: 50% 100%; rotate: var(--tilt); animation: lean 4.6s ease-in-out infinite alternate; }
.peek-flip img { scale: -1 1; }
@keyframes lean { from { rotate: calc(var(--tilt) * 0.94); } to { rotate: calc(var(--tilt) * 1.06); } }

/* Nana leans in beside the headline. The other three lean in where one section meets the next: their heads sit just
   under the join, clear of the section above, and their bodies pass behind their own section's cards. */
.peek-nana { --h: 270px; top: 70px; }
.peek-dee, .peek-sal, .peek-milo { --h: 280px; top: -74px; }

/* ---- wider screens ---- */
@media (min-width: 560px) {
  .join-form { grid-template-columns: minmax(0, 1fr) auto; }
  .people { gap: 20px; }
  .person:last-child:nth-child(odd) { width: calc(50% - 10px); }
  .person p { font-size: 15px; }
  .peek-nana { display: none; }
}
@media (min-width: 640px) {
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .ava-ask { grid-template-columns: auto 1fr; gap: 36px; padding: 24px 30px 26px; }
  .ask-line { text-align: right; }
  .series-card { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; padding: 26px 30px; }
  .peek-dee, .peek-sal, .peek-milo { --h: clamp(330px, 36vw, 520px); top: calc(var(--h) * -0.22); }
}
@media (min-width: 940px) {
  .top { padding-inline: 24px; }
  .hero { padding-inline: 24px; }
  .band { padding: 80px 24px; }
  .ava, .cast, .series { padding-top: 128px; }
  .series { padding-bottom: 0; }
  .ava-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 52px; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
  .person:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
  .cover-s { font-size: 60px; }
}
/* Two columns: the pitch, and the console laid on its side with the fixes as a menu beside the stage. */
@media (min-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 34px 24px 96px; }
  .cover { font-size: clamp(84px, 8.2vw, 104px); }
  .console { display: grid; grid-template-columns: 320px 236px; width: auto; max-width: none; margin: 0; }
  .deck { display: flex; flex-direction: column; padding: 18px 18px; border-top: 0; border-left: 5px solid var(--ink); }
  .deck-head { flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 16px; }
  .picks { flex: 1; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .pick { min-height: 124px; }
  .night { flex: 1; align-content: start; grid-template-rows: auto auto 1fr auto; }
  .btn-next { align-self: end; }
  .vibe { flex-wrap: wrap; justify-content: space-between; row-gap: 8px; margin-top: 16px; }
  .vibe-track { order: 3; flex-basis: 100%; }
  .deck-end { justify-content: center; }
  /* Nana fits in whatever margin the screen leaves beside the console. */
  .peek-nana { display: block; --h: clamp(250px, calc((100vw - 1120px) * 1.28 + 51px), 520px); top: calc(330px - var(--h) * 0.37); }
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bump.is-on, .caption.is-on { animation-duration: 0.01s; }
  .msg { animation: none; }
  .bump.is-on { opacity: 0; }
  .peek img { animation: none; }
  .peeks-wait .peek:not(.is-in) .peek-slide { translate: none; }
  * { transition-duration: 0.01s !important; }
}
