/* style.css — DOM overlay styling. Colors come from theme.json (injected as --c-* by main.js);
   fallbacks below mirror theme.json v0 so the no-JS page still looks intentional. */
:root {
  --c-ink: #0b0b0b; --c-paper: #fffdf5; --c-accent: #f9c74f; --c-danger: #e63946; --c-skyHigh: #14205a; --c-skyLow: #9ad7ee;
  --c-hudText: #ffffff; --c-hudShadow: #000000; --c-coin: #f9c74f; --c-ground: #4caf50;
  --beat-top-offset: -10vh; /* beat panel vertical offset from the package hold line; mobile puts beats BELOW the package */
  --font-pixel: 'Press Start 2P', monospace; --font-body: 'Share Tech Mono', monospace; /* [G-1008] their copy font */
}
@font-face { font-family: 'Share Tech Mono'; src: url('../assets/fonts/ShareTechMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; } /* [G-1008] the team's font file, OFL */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--c-ink); background: var(--c-skyBlue, #27aae1); line-height: 1.5; overflow-x: hidden; } /* [G-0831] purple page ground removed by order */
h1, h2, h3 { font-family: var(--font-pixel); line-height: 1.5; margin: 0 0 .6em; font-weight: 400; }

/* canvas = decoration, fixed behind everything */
#scene { position: fixed; top: 0; left: 0; z-index: 0; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
main { position: relative; z-index: 1; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0 0 auto 0; z-index: 5; pointer-events: none; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,0)); font-family: var(--font-pixel); color: var(--c-hudText); text-shadow: 2px 2px 0 var(--c-hudShadow); font-size: clamp(10px, 1.4vw, 14px); padding: 14px 16px 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.hud-left { letter-spacing: 1px; } .hud-k { opacity: .85; }
.hud-right { display: flex; gap: 18px; align-items: center; }
.hud-btn { pointer-events: auto; font: inherit; color: inherit; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.6); padding: 4px 8px; text-shadow: none; cursor: pointer; opacity: .9; }
.hud-btn[aria-pressed="true"] { opacity: 1; border-color: #fff; }
.hud-hint { position: fixed; left: 50%; bottom: 6vh; transform: translateX(-50%); animation: blink 1.1s steps(2, end) infinite; font-size: clamp(10px, 1.6vw, 14px); transition: opacity .4s; }
.hud-hint.hidden { opacity: 0; animation: none; }
.hud-banner { position: fixed; left: 50%; top: 18vh; transform: translateX(-50%) scale(.9); font-size: clamp(14px, 3.2vw, 34px); color: var(--c-accent); opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; text-shadow: 3px 3px 0 var(--c-hudShadow); }
.hud-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }
#hud.panel-in-view .hud-hint { opacity: 0 !important; animation: none; }
.hud-banner.flash { animation: flash 1s steps(2, end) 4; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flash { 50% { opacity: .15; } }

/* score popups */
.popup { position: fixed; z-index: 6; pointer-events: none; font-family: var(--font-pixel); color: var(--c-coin); text-shadow: 2px 2px 0 var(--c-hudShadow); font-size: clamp(10px, 1.5vw, 14px); transform: translate(-50%, -50%); animation: pop .9s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -40%) } 15% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, -160%) } }

/* ---------- track + hero ---------- */
#track { position: relative; }
.hero { position: absolute; top: 0; left: 0; right: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 12vh 4vw 12vh calc(var(--wall-px, 120px) + 4vw); max-width: calc(var(--wall-px, 120px) + 4vw + min(640px, 46vw)); } /* [G-1008] the copy clears the wall: padding reads the wall's base width */
.hero-brand { font-family: var(--font-pixel); color: var(--c-brandBlue, var(--c-accent)); /* [G-1008] their light blue on the wordmark */ font-size: clamp(10px, 1.4vw, 13px); letter-spacing: 2px; text-shadow: 2px 2px 0 var(--c-hudShadow); margin: 0 0 1.2em; }
.hero h1 { color: #fff; font-size: clamp(18px, 3.4vw, 34px); text-shadow: 3px 3px 0 var(--c-hudShadow); max-width: none; }
.hero-copy { color: #fff; font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; text-shadow: 1px 1px 0 rgba(0,0,0,.6); background: rgba(11,11,11,.28); padding: .6em .8em; border-left: 4px solid var(--c-accent); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.2em; }

/* ---------- beats (real HTML, pinned beside the action) ---------- */
.beat { position: absolute; width: min(440px, 42vw); padding: 20px 22px 22px; background: rgba(255,253,245,.94); border: 3px solid var(--c-ink); box-shadow: 6px 6px 0 var(--c-ink); opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.beat.side-left { left: 6vw; } .beat.side-right { right: 6vw; }
.beat.active { opacity: 1; transform: translateY(0); }
.beat-label { font-family: var(--font-pixel); font-size: clamp(9px, 1.1vw, 11px); color: var(--c-accent); /* [G-1008] the team's ask: the red to the site's yellow */ margin: 0 0 1.2em; letter-spacing: 1px; }
.beat h2 { font-size: clamp(12px, 1.6vw, 16px); color: var(--c-accent); text-shadow: 1px 1px 0 var(--c-ink); } /* [G-1008] the one name per box, bold, in the site's yellow */
.beat-copy { font-size: 18px; margin: 0; }

/* ---------- stall variant: sticky centered beats + typewriter ---------- */
.beat-hold-track { position: absolute; left: 0; right: 0; pointer-events: none; }
.beat-hold-track .beat { position: -webkit-sticky; position: sticky; width: min(520px, 88vw); margin: 0 auto; transform: translateY(10px); pointer-events: auto; }
.beat-hold-track .beat.active { transform: translateY(0); }
.ch { display: inline; }
.ch-hid { visibility: hidden; }

/* sampler text treatments */
.beat.scrollbox { background: rgba(10,12,24,.93); color: var(--c-paper); border-color: var(--c-paper); box-shadow: 6px 6px 0 rgba(0,0,0,.55); }
.beat.scrollbox .beat-label { color: var(--c-accent); }
.mq-window { display: block; overflow: hidden; white-space: nowrap; padding: 6px 0 4px; }
.mq-inner { display: inline-block; font-family: var(--font-pixel); font-size: clamp(11px, 1.4vw, 14px); line-height: 1.8; will-change: transform; }
.beat.posted .post-line { transition: opacity .2s; }
.post-line.line-hid { visibility: hidden; }
.stage-card { position: fixed; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(5,8,20,.85); opacity: 0; pointer-events: none; transition: opacity .25s; font-family: var(--font-pixel); text-align: center; }
.stage-card.show { opacity: 1; }
.stage-kicker { color: var(--c-danger); font-size: clamp(10px, 1.6vw, 14px); margin: 0; letter-spacing: 2px; }
.stage-title { color: var(--c-paper); font-size: clamp(18px, 4vw, 40px); margin: 0; text-shadow: 4px 4px 0 #000; }

/* ---------- landing / form / leaderboard ---------- */
#landing { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8vh 5vw; }
@media (min-width: 1000px) { #landing { justify-content: flex-end; padding-right: 6vw; } }
.panel { width: min(540px, 92vw); background: var(--c-paper); border: 4px solid var(--c-ink); box-shadow: 10px 10px 0 var(--c-ink); padding: 28px clamp(18px, 4vw, 36px) 30px; }
#landing.landed .panel { animation: floatin .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes floatin { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
.land-kicker { font-family: var(--font-pixel); color: var(--c-ground); font-size: 12px; margin: 0 0 .8em; }
.land-banner { font-family: var(--font-pixel); color: var(--c-danger); font-size: clamp(16px, 3vw, 26px); margin: 0 0 .4em; }
.land-score { font-family: var(--font-pixel); font-size: 14px; margin: 0 0 1.6em; }
.land-title { font-size: clamp(13px, 2vw, 18px); }
.land-intro { font-size: 18px; margin: 0 0 1.2em; }
.initials-row { display: flex; gap: 12px; margin-bottom: 1.2em; }
.initial { width: 58px; height: 62px; text-align: center; font-family: var(--font-pixel); font-size: 24px; border: 3px solid var(--c-ink); background: #fff; text-transform: uppercase; }
.initial:focus, #score-form input:focus, #score-form select:focus { outline: 3px solid var(--c-accent); outline-offset: 1px; }
#score-form label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 .9em; }
#score-form input:not(.initial), #score-form select { display: block; width: 100%; font: 16px var(--font-body); padding: 10px 12px; border: 3px solid var(--c-ink); background: #fff; margin-top: 4px; min-height: 44px; }
.btn-arcade, .btn-ghost { display: inline-block; font-family: var(--font-pixel); font-size: 12px; padding: 14px 18px; border: 3px solid var(--c-ink); text-decoration: none; cursor: pointer; min-height: 44px; line-height: 1.2; }
.btn-arcade { background: var(--c-accent); color: var(--c-ink); box-shadow: 4px 4px 0 var(--c-ink); transition: transform .08s, box-shadow .08s; }
.btn-arcade:hover, .btn-arcade:focus { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-ink); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.land-reassure { font-size: 15px; opacity: .8; margin: 1em 0 0; }
.form-error { color: var(--c-danger); font-weight: 600; }
.leaderboard { list-style: none; margin: 0 0 1.2em; padding: 0; font-family: var(--font-pixel); font-size: clamp(10px, 1.5vw, 14px); }
.leaderboard li { display: grid; grid-template-columns: 2.2em 4em 1fr auto; gap: 14px; padding: 8px 6px; border-bottom: 2px dashed rgba(11,11,11,.25); white-space: pre; }
.leaderboard li.you { background: var(--c-accent); animation: youpulse 1.2s steps(2, end) 3; }
@keyframes youpulse { 50% { background: var(--c-paper); } }
.leaderboard .pts { text-align: right; } .leaderboard .tag { color: var(--c-danger); }
.confirm-line { font-size: 18px; font-weight: 600; }
.site-foot { padding: 20px 5vw 40px; color: #fff; font-size: 14px; opacity: .8; text-align: center; }

/* ---------- [G-0827] THE ARCADE SCREENS: the form and the board are PAGES, not sections ----------
   Grammar: game over → ENTER YOUR INITIALS owns the display → SUBMIT → HIGH SCORES owns the display.
   Both are the same DOM nodes the panel always held (#initials-screen, #confirm), repositioned to a
   fixed full-viewport view. No scrolling is involved in either, so the HUD collision, the cut-off
   panel and the footer creeping over the top are all structurally impossible.
   Dark backdrop + paper-bordered box = the .stage-card / .beat.scrollbox vocabulary already in use. */
.confirm-kicker { font-family: var(--font-pixel); color: var(--c-danger); font-size: clamp(14px, 2.6vw, 22px); margin: 0 0 .9em; }
.confirm-back { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 1px; color: var(--c-ink); background: none; border: 2px solid rgba(11,11,11,.45); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.confirm:not(.takeover) .confirm-back, .initials:not(.takeover) .confirm-back { display: none; }
/* [G-0831 RULED — final]: the white in-flow panel presentation is DEAD. The dark full-screen
   takeover is THE ONLY form presentation, ever. The panel node renders nothing in the page flow
   in any state; while a takeover screen is open the node passes through (display:contents) so
   its fixed-position screens can render. */
#landing-panel { display: none; }
/* [G-1118] after the screen is closed (or the score is in) the landing section is a page end: the ground, then the footer, no empty screen of sky between */
html.form-dismissed #landing, html.confirm-closed #landing { min-height: 0; padding: 0; }
html.takeover-open #landing-panel { display: contents; }
.confirm[hidden] { display: none; }  /* author rules beat the UA's [hidden] — say it out loud */
/* in flow the initials screen is the panel it always was: the wrappers carry no box at all */
.initials, .initials-inner { display: contents; }
.initials[hidden] { display: none; }

/* --- shared screen vocabulary (either screen up) --- */
html.takeover-open { overflow: hidden; }                       /* nothing scrolls behind a screen */
/* the panel's finished `floatin` keeps a filled identity transform, which would make it the containing
   block for our fixed screens — clear it while one is up (it is behind the backdrop anyway) */
html.takeover-open #landing .panel { animation: none; transform: none; }
/* the screen owns the display: the ride's HUD, the site nav and any stage card step aside (main is
   z-index 1, so its children can never paint over them from their own stacking contexts) */
html.takeover-open #hud, html.takeover-open #site-header, html.takeover-open .stage-card { display: none; }
.confirm.takeover, .initials.takeover { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(5,8,20,.92); overflow-y: auto; animation: ct-in .18s steps(3, end) both; }
.confirm.takeover .confirm-inner, .initials.takeover .initials-inner { display: block; margin: auto; text-align: center; color: var(--c-ink); background: var(--c-paper); border: 4px solid var(--c-ink); box-shadow: 10px 10px 0 rgba(0,0,0,.55); }
.confirm.takeover .confirm-back, .initials.takeover .confirm-back { color: var(--c-ink); border-color: rgba(11,11,11,.45); }
.confirm.takeover .confirm-back:hover, .confirm.takeover .confirm-back:focus,
.initials.takeover .confirm-back:hover, .initials.takeover .confirm-back:focus { color: var(--c-accent); border-color: var(--c-accent); }
.confirm.takeover .land-title, .initials.takeover .land-title { letter-spacing: 2px; }
@keyframes ct-in { from { opacity: 0 } to { opacity: 1 } }

/* --- screen 1: ENTER YOUR INITIALS --- */
.initials.takeover { padding: clamp(10px, 2.4vh, 30px) 4vw; }
.initials.takeover .initials-inner { width: min(680px, 94vw); padding: clamp(18px, 2.6vw, 28px); }
.initials.takeover .land-kicker { font-size: clamp(10px, 1.7vw, 13px); letter-spacing: 2px; margin: 0 0 1em; }
.initials.takeover .land-banner { font-size: clamp(17px, 3.2vw, 28px); text-shadow: 3px 3px 0 #000; margin: 0 0 .5em; animation: flash 1s steps(2, end) 2; }
.initials.takeover .land-score { font-size: clamp(11px, 1.6vw, 14px); margin: 0 0 1.8em; }
.initials.takeover .land-title { font-size: clamp(12px, 2vw, 17px); margin: 0 0 .9em; }
.initials.takeover .land-intro { font-size: 16px; max-width: 46em; margin: 0 auto 1.4em; opacity: .9; }
.initials.takeover .initials-row { justify-content: center; gap: clamp(10px, 2vw, 18px); margin: 0 0 1.6em; }
.initials.takeover .initial { width: clamp(56px, 9vw, 76px); height: clamp(62px, 10vw, 82px); font-size: clamp(24px, 4vw, 32px); }
.initials.takeover .form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(12px, 2vw, 20px); text-align: left; }
.initials.takeover #score-form label { margin: 0 0 .7em; }

.initials.takeover #score-form button[type=submit] { margin: .4em 0 0; box-shadow: 4px 4px 0 rgba(0,0,0,.55); }
.initials.takeover .land-reassure { font-size: 14px; margin: 1em auto 1.4em; max-width: 44em; }
.initials.takeover .form-error { margin: 0 0 1.2em; }

/* --- screen 2: HIGH SCORES (the confirmation) --- */
.confirm.takeover { padding: clamp(14px, 4vh, 48px) 5vw; }
.confirm.takeover .confirm-inner { width: min(560px, 92vw); padding: clamp(20px, 3.4vw, 34px); }
.confirm.takeover .confirm-kicker { font-size: clamp(15px, 3vw, 26px); text-shadow: 3px 3px 0 #000; animation: flash 1s steps(2, end) 4; }
.confirm.takeover .land-title { margin: 0 0 1.4em; }
.confirm.takeover .leaderboard { text-align: left; margin: 0 0 1.3em; }

.confirm.takeover .leaderboard li.you { color: var(--c-ink); }
.confirm.takeover .confirm-line { margin: 0 0 1.5em; }

/* ---------- website chrome (framing round v1: simple) ---------- */
#site-header { position: fixed; inset: 0 0 auto 0; z-index: 7; height: 54px; display: flex; align-items: center; gap: 26px; padding: 0 clamp(14px, 3vw, 32px); background: rgba(9, 10, 14, .92); border-bottom: 2px solid rgba(255,255,255,.08); }
.sh-logo { display: block; line-height: 0; }
.sh-logo img { height: 36px; width: auto; display: block; } /* [G-1008] their logo, dropped in to be looked at */
.sh-logo-text { font-family: var(--font-pixel); font-size: 13px; color: var(--c-brandBlue, var(--c-accent)); text-decoration: none; letter-spacing: 1px; }
.sh-logo span { color: #fff; }
.sh-nav { display: flex; gap: 20px; margin-left: auto; }
.sh-nav a { color: #e8eaf0; text-decoration: none; font: 500 14px var(--font-body); opacity: .85; }
.sh-nav a:hover { opacity: 1; color: var(--c-accent); }
#site-header .sh-cta { font-size: 10px; padding: 10px 14px; min-height: 0; }
body.chrome-site #hud { top: 54px; background: none; padding-top: 10px; padding-bottom: 10px; }
body.chrome-site .hud-left, body.chrome-site .hud-right { background: rgba(0,0,0,.35); padding: 6px 10px; border-radius: 4px; }
.sf-site { background: #0b0c10; color: #c9cdd6; text-align: left; padding: 40px clamp(16px, 5vw, 60px) 28px; font-size: 14px; opacity: 1; }
.sf-cols { display: flex; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; padding-bottom: 22px; }
.sf-col { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.sf-col a { color: #c9cdd6; text-decoration: none; }
.sf-col a:hover { color: var(--c-accent); }
.sf-h { font-family: var(--font-pixel); font-size: 10px; color: #ffffff; margin: 0 0 6px; }
.sf-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; margin: 0; font-size: 12px; opacity: .7; }
/* [G-1117] the page names stay in the header on the phone (his 11/17: the links to the other pages did not show on the phone); the 9/3 nav-link rules below now apply to every page, not only the ?nav=link variant */

/* ---------- reduced motion: stepped scenes, everything readable ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beat, .hud-banner, .hud-hint, .popup, #landing.landed .panel, .leaderboard li.you, .btn-arcade, .stage-card, .post-line,
  .confirm.takeover, .confirm.takeover .confirm-kicker, .initials.takeover, .initials.takeover .land-banner { transition: none; animation: none; }
  .beat { opacity: 1; transform: none; }
}

/* ---------- no-JS / crawler: clean stacked page ---------- */
/* [G-1118] THE COVER BEFORE THE REEL: index.html's head script sets html.cinema-pending when the cinema will play; opening.js removes it once the
   overlay is in the page. Black like the reel's bars, under the header (7) and the reel (6), so the descent never flashes under a refresh. */
html.cinema-pending body::before { content: ""; position: fixed; inset: 0; background: #000; z-index: 5; pointer-events: none; }
html.no-js #scene, html.no-js #hud { display: none; }
html.no-js body { background: var(--c-skyHigh); }
html.no-js #track { height: auto !important; padding: 4vh 0; }
html.no-js .hero { position: static; min-height: 0; }
html.no-js .beat { position: static; opacity: 1; transform: none; width: min(640px, 90vw); margin: 24px auto; }
html.boot-failed #scene, html.boot-failed #hud { display: none; }
html.boot-failed .beat { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  :root { --beat-top-offset: 9vh; }
  .hero { max-width: none; justify-content: flex-end; padding-bottom: 7vh; }
  .hero .hero-brand { margin-bottom: .8em; }
  .hero h1.hero-h1, .hero h1 { font-size: 16px !important; max-width: none; }
  .hero .hero-copy { font-size: 16px; padding: .5em .7em; }
  .hero-ctas { gap: 10px; }
  #hud { font-size: 10px; }
  .beat { width: 86vw; left: 7vw !important; right: auto !important; padding: 16px; }
  .beat-copy { font-size: 17px; }
  /* [G-1010 his note] on the phone the copy, the box and the buttons stay between the walls' full profiles: the right padding reads the widest ledge; the text tightened, the cliffs kept */
  .hero { padding: 14vh calc(var(--wall-full-px, 70px) + 2vw) 14vh calc(var(--wall-px, 40px) + 4vw); max-width: none; }
  .hero .hero-copy { font-size: 14px; padding: .45em .6em; max-width: none; }
  .hero-ctas .btn-arcade, .hero-ctas .btn-ghost { font-size: 11px; padding: 10px 12px; }
  .sh-logo img { height: 28px; }
  .hud-right { gap: 10px; }
  /* the initials screen is a long form: tighten it so the whole page fits a phone without inner scroll */
  .initials.takeover { padding: 8px; }
  .initials.takeover .initials-inner { padding: 16px 14px 18px; }
  .initials.takeover .form-fields { grid-template-columns: 1fr; }
  .initials.takeover .land-kicker { margin-bottom: .7em; }
  .initials.takeover .land-score { margin-bottom: 1.2em; }
  .initials.takeover .land-intro { font-size: 15px; margin-bottom: 1.1em; }
  .initials.takeover .initials-row { margin-bottom: 1.1em; }
  .initials.takeover #score-form label { margin-bottom: .5em; font-size: 15px; }
  .initials.takeover .land-reassure { font-size: 13px; margin: .8em auto 1.1em; }
}

/* [G-0903 link-mode sketch] the hard cut between one-station movies, and the station links kept on phones */
#link-cut { position: fixed; inset: 0; background: #000; z-index: 40; display: none; }
#link-cut.on { display: block; }
@media (max-width: 720px) {
  body #site-header { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; gap: 10px; box-sizing: border-box; width: 100%; overflow: hidden; }
  body #site-header .sh-logo img { height: 26px; }
  body #site-header .sh-cta { margin-left: auto; font-size: 8px; padding: 7px 9px; white-space: nowrap; }
  body .sh-nav { display: flex; order: 5; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 4px 14px; margin-left: 0; }
  body .sh-nav a { font-size: 11px; white-space: nowrap; }
  body.chrome-site #hud { top: var(--nl-header-h, 54px); }   /* the HUD sits under the taller header, never behind it */
}

/* ---------- [G-1008] the two call-to-action buttons in every station box, same place in each ---------- */
.beat-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.beat-btn { font-size: 9px; padding: 10px 12px; min-height: 0; }
.beat .btn-ghost, .page-card .btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.beat .btn-ghost:hover, .beat .btn-ghost:focus { background: rgba(0,0,0,.06); }

/* ---------- [G-1008] the regular pages: plain text, the site's header and footer ("baby steps") ---------- */
body.page { background: var(--c-skyBlue, #27aae1); }
.page-main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 96px clamp(16px, 5vw, 40px) 60px; }
.page-card { background: rgba(255,253,245,.96); border: 3px solid var(--c-ink); box-shadow: 6px 6px 0 var(--c-ink); padding: clamp(20px, 4vw, 36px); }
.page-card h1 { font-size: clamp(14px, 2.4vw, 22px); margin-bottom: 1em; }
.page-card h2 { font-size: clamp(11px, 1.6vw, 14px); margin: 1.8em 0 .6em; }
.page-card .page-outcome { border-left: 4px solid var(--c-accent); padding: 8px 14px; background: rgba(0,0,0,.04); }
.page-card .page-note { font-size: 14px; opacity: .75; border-top: 1px dashed var(--c-ink); padding-top: 12px; margin-top: 24px; }
.page-card .page-kicker { font-family: var(--font-pixel); font-size: 10px; color: var(--c-accent); letter-spacing: 1px; margin: 0 0 1.2em; }
.page-card p, .page-card li { font-size: 17px; }
.page-card ul { padding-left: 1.2em; }
.page-card .page-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
body.page .site-foot { margin-top: 20px; }

/* ---------- [G-1008] the Advertising plane's banner: the words are page text over the cloth the scene draws ---------- */
.banner-text { position: fixed; top: 0; left: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: flex-end; padding-right: .4em; box-sizing: border-box; background: rgba(255,253,245,.94); border: 2px solid var(--c-ink); font-family: var(--font-body); color: transparent; white-space: nowrap; overflow: hidden; letter-spacing: 0; line-height: 1; }   /* [G-1008] the thin paper strip the plane pulls: the text boxes' paper and ink; the words show once the strip is fully out */
.banner-text.revealed { color: var(--c-ink); justify-content: center; padding-right: 0; }
.banner-text[hidden] { display: none; }

/* [G-1013 15:30] the pages' bold text in the site's yellow (the headings and anything bold), the box's register */
.page-card h1, .page-card h2, .page-card strong { color: var(--c-accent); text-shadow: 1px 1px 0 var(--c-ink); }

/* [G-1021 11:38] PARK MODE inside the station's page (index.html?park=<beat> in the band's frame): the station alone; the document
   cannot scroll (a wheel over the band scrolls the page); no score bar, no text boxes, no hero, no hint */
html:has(body.park), body.park { height: 100%; overflow: hidden; }   /* the band's document is exactly the band (iOS sizes a frame to its content) */
body.park #track { height: 100% !important; }
body.park #hud, body.park .beat, body.park #hero, body.park .hud-hint { display: none; }
/* THE BAND at the top of a station's page: the sky's own blue, no border (his 10/21: no split screen); it becomes the window on the button */
.station-band { position: relative; z-index: 2; width: 100%; height: 300px; background: var(--c-skyBlue, #27aae1); overflow: hidden; }   /* [G-1021 12:01] the height is set by the station itself (a 'size' message: its room at the engine's scale) */
.station-band iframe { display: block; width: 100%; height: 100%; border: 0; }
body.page.band-open .station-band { position: fixed; top: var(--site-head-h, 54px); left: 0; right: 0; bottom: 0; height: auto; z-index: 6; }
body.page .page-main { padding-top: 10px; }   /* [G-1021 11:56] the content right under the platform */
body.page .page-card .page-ctas { margin-top: 24px; }

/* ---------- [G-1023 12:57] LUKE'S PAGES: his static background under the header, the site's card where his mockup put it ----------
   The scene is a fixed layer the size of the window under the header (object-fit cover, the picture's focus point kept by --pg-focus);
   the card scrolls over it on the left (Strategy, Advertising) or in the middle (Full Service), about a third of the window wide as in
   his mockups. On the phone (Luke's phone version): the scene is a band on top, the card under it, the sky's blue around. */
body.page-bg { background: var(--c-skyBlue, #27aae1); }
body.page-bg .page-scene { position: fixed; top: 54px; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; background: var(--c-skyBlue, #27aae1); }
/* [G-1023 14:24] the scene is a BOX with the picture's own aspect, sized to cover the window (the same as object-fit cover) and placed by the
   focus point (the same as object-position); the picture fills the box and any piece on it (Luke's planes and blimps) sits in percent of
   the box, so the pieces ride with the picture on every window. */
body.page-bg .page-scene { --scene-h: calc(100vh - 54px); --fx: var(--fx-desk, 50%); --fy: var(--fy-desk, 50%); }
body.page-bg .scene-box { position: absolute; aspect-ratio: var(--scene-aspect, 1557/1010); width: max(100%, calc(var(--scene-h) * (var(--scene-aspect, 1557/1010)))); left: var(--fx); top: var(--fy); transform: translate(calc(-1 * var(--fx)), calc(-1 * var(--fy))); }
body.page-bg .scene-box .scene-bg { display: block; width: 100%; height: 100%; }
body.page-bg .scene-box .scene-piece { position: absolute; display: block; height: auto; }
body.page-bg .page-main { max-width: none; margin: 0; padding: 94px clamp(16px, 4vw, 60px) 60px; display: flex; }
body.page-bg.card-left .page-main { justify-content: flex-start; }
body.page-bg.card-center .page-main { justify-content: center; }
body.page-bg .page-card { width: min(520px, 100%); box-sizing: border-box; background: rgba(255,253,245,.97); }
body.page-bg .page-card p, body.page-bg .page-card li { font-size: 16px; }
body.page-bg .site-foot { position: relative; z-index: 1; }
@media (max-width: 760px) {
  body.page-bg .page-scene { position: relative; top: 0; height: 46vh; min-height: 240px; margin-top: 54px; }
  body.page-bg .page-scene { --scene-h: max(46vh, 240px); --fx: var(--fx-phone, 50%); --fy: var(--fy-phone, 50%); }
  body.page-bg .page-main { padding: 14px 16px 40px; }
  body.page-bg .page-card { width: 100%; }
}
body.page-bg.card-right .page-main { justify-content: flex-end; }   /* [G-1023 13:12] Strategy's card on the right, his word */

/* ---------- [G-1027 13:07] LUKE'S SCREEN PAGE (Creative): the cockpit's screen is the whole page, no paper card ("Try to follow his mock
   as closely as possible"). The picture is the scene box of 10/23; the title band is his own pixels placed on it as a piece; the five
   sample boxes live in .page-screen, a layer with the SAME geometry as the scene box (the same width, focus and translate), so each box
   lands on its rectangle of his Illustrator file on every window. A box: white, the sample inside (rotate: pictures crossfading;
   scroll: a tall picture riding from its top to its bottom and back; video: the loop), his icon straddling the top-left corner, the
   label under it in the pixel font (his layer 'Titles'). On the phone: the picture is the band on top, the boxes stack under it on the
   screen's own dark blue. */
body.page-screen { background: #012d5d; }
/* [G-1118] the two buttons every page ends with, under the control panel (his placement for now): a band between the screen and the footer */
body.page-screen .page-ctas-screen { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0; padding: 34px 16px 14px; background: #012d5d; }
body.page-screen .page-main { min-height: 100vh; padding: 0; }   /* the screen fills the first window; the footer under the fold (the main starts at the page's top under the fixed header, so its height is the whole window) */
body.page-screen .page-screen { position: fixed; top: 54px; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; pointer-events: none;
  --scene-h: calc(100vh - 54px); --fx: var(--fx-desk, 50%); --fy: var(--fy-desk, 50%); }
body.page-screen .screen-box { position: absolute; aspect-ratio: var(--scene-aspect, 1536/1024); width: max(100%, calc(var(--scene-h) * (var(--scene-aspect, 1536/1024)))); left: var(--fx); top: var(--fy); transform: translate(calc(-1 * var(--fx)), calc(-1 * var(--fy))); container-type: inline-size; }
body.page-screen .screen-h1, body.page-screen .screen-p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: -1px; }   /* the words are in the title band's picture; these are for a reader that cannot see it */
body.page-screen .sbox { position: absolute; margin: 0; pointer-events: auto; }
body.page-screen .sbox-win { position: absolute; inset: 0; background: #fff; overflow: hidden; container-type: size; }
body.page-screen .sbox-win img, body.page-screen .sbox-win video { display: block; width: 100%; }
body.page-screen .sbox-rotate .sbox-win img { position: absolute; inset: 0; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s ease; }
body.page-screen .sbox-rotate .sbox-win img.on { opacity: 1; }
body.page-screen .sbox-scroll .sbox-win img { height: auto; }
body.page-screen .sbox-scroll.ready .sbox-win img { animation: screen-ride var(--scroll-dur, 14s) ease-in-out infinite alternate; }
@keyframes screen-ride { from { transform: translateY(0); } to { transform: translateY(calc(100cqh - 100%)); } }
body.page-screen .sbox-video .sbox-win video { height: 100%; object-fit: cover; }
body.page-screen .sbox-label { position: absolute; left: 0; right: 0; top: 100%; margin-top: calc(var(--label-gap, 0.9) * 0.01 * 100cqw * 1024 / 1536); display: flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--font-pixel); font-size: 0.62cqw; line-height: 1.4; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.5); white-space: nowrap; }
body.page-screen .sbox-icon { height: 2.4em; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }   /* his icon beside his label, under the box; nothing covers a sample */
/* [G-1027 13:52] the framing and the icon HIS WAY (Luke's dashed mockup): a light-blue pixel border around each box, the icon in a
   blue-framed square sitting on the box's top-left corner; the sizes in percent of the screen's width (3 px and a 70 px square at 1536) */
body.page-screen .screen-framed .sbox-win { outline: calc(var(--frame-w, 0.2) * 1cqw) solid var(--frame-color, #00b4f5); outline-offset: 0; border-radius: calc(0.15 * 1cqw); }
body.page-screen .screen-framed .sbox-iconbox { position: absolute; left: calc(-1 * var(--icon-off, 0.5) * 1cqw); top: calc(-1 * var(--icon-off, 0.5) * 1cqw); width: calc(var(--icon-box, 4.6) * 1cqw); aspect-ratio: 1; box-sizing: border-box; border: calc(var(--frame-w, 0.2) * 1cqw) solid var(--frame-color, #00b4f5); border-radius: calc(0.3 * 1cqw); background: var(--frame-fill, #074f91); display: flex; align-items: center; justify-content: center; }
body.page-screen .screen-framed .sbox-iconbox .sbox-icon { height: var(--icon-pct, 88%); width: auto; filter: none; }
/* [G-1027 14:06] the labels as Luke's own pixels under each box, at his positions (top in percent of the picture); the words stay for a reader */
body.page-screen .sbox-label-piece { margin: 0; display: block; }   /* its top is set inline from Luke's measured position, in percent of the box */
body.page-screen .sbox-label-img { display: block; width: 100%; height: auto; }
body.page-screen .sbox-label-piece .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { body.page-screen .sbox-rotate .sbox-win img { transition: none; } body.page-screen .sbox-scroll.ready .sbox-win img { animation: none; } }
@media (max-width: 760px) {
  body.page-screen .page-scene { height: 46vh; min-height: 240px; }
  body.page-screen .page-screen { position: relative; top: 0; bottom: auto; height: auto; overflow: visible; padding: 18px 16px 10px; --fx: 0%; --fy: 0%; }
  body.page-screen .screen-box { position: relative; aspect-ratio: auto; width: 100%; left: 0; top: 0; transform: none; display: flex; flex-direction: column; gap: 34px; }
  body.page-screen .sbox { position: relative; left: 0 !important; top: 0 !important; width: 100% !important; height: auto !important; aspect-ratio: var(--box-aspect, 4/3); margin: 0 0 18px; }
  body.page-screen .sbox-label { margin-top: 10px; font-size: 11px; }
  body.page-screen .sbox-icon { height: 30px; }
  body.page-screen .screen-framed .sbox-win { outline-width: 3px; border-radius: 2px; }
  body.page-screen .screen-framed .sbox-iconbox { width: 52px; left: -6px; top: -7px; border-width: 3px; border-radius: 5px; }
  body.page-screen .sbox-label-piece { position: absolute; top: 100% !important; left: 0; right: 0; height: 30px; margin-top: 8px; }
  body.page-screen .sbox-label-img { position: static; width: auto; height: 16px; display: block; margin: 0 auto; image-rendering: pixelated; }
  body.page-screen .page-main { min-height: 0; }
}

/* [G-1028 12:53] the phone's band: a still of each sample at its box's place in the screen (Luke 9:50 AM: "fill the screen at the top with
   thumbnails of the examples"); hidden on the desk, where the real boxes sit there */
body.page-screen .scene-box .screen-thumb { display: none; object-fit: contain; background: #fff; outline: 1px solid var(--frame-color, #00b4f5); }
@media (max-width: 760px) { body.page-screen .scene-box .screen-thumb { display: block; } }
/* ---------- [G-1027 14:44] THE SCROLLABLE SCENE (Creative; his 14:38 "the background and the content are just tied together... falls out if the
   page is too small... no way to scroll to it"; his go "Agreed, let's do it"): on a desktop window the picture is not fixed and not cut:
   it sits under the header at the window's full width and its own height, the screen's boxes on it as before (the same geometry, now
   simply the picture's), and the page scrolls over the whole picture; the main holds the picture's height so the footer sits under it.
   The phone is untouched (the band and the stack). */
@media (min-width: 761px) {
  body.page-screen.scene-scroll .page-scene, body.page-screen.scene-scroll .page-screen { position: absolute; top: 54px; left: 0; right: 0; bottom: auto; width: 100%; height: auto; aspect-ratio: var(--scene-aspect, 1536/1024); overflow: hidden; }
  body.page-screen.scene-scroll .scene-box, body.page-screen.scene-scroll .screen-box { width: 100%; left: 0; top: 0; transform: none; }
  body.page-screen.scene-scroll .page-main { min-height: calc(100vw * (1 / (var(--scene-aspect, 1536/1024))) + 54px); }
}
