/* site.css: ViceCityHQ. Tokens first, then the world, then the copy.
   Do not restyle engine selectors here; this file styles the page's own markup. */

:root {
  --navy: #1b2a41; --cream: #f6e6c8; --pink: #f45d8d; --pink-deep: #d33e74; --coral: #ff9a5c;
  --ink: var(--navy); --ink-soft: #4b566b; --sea: var(--navy);

  --sc-canvas: var(--sea);
  --sc-surface: #24365a;
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--pink);
  --sc-accent-ink: var(--navy);
  --sc-font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sc-font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --olw: 2.5px;
  --bar-h: 4rem;
}
html { background: var(--sea); }
body { color: var(--sc-ink); }
:focus-visible { outline-color: currentColor; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 80; background: var(--navy); color: var(--cream); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--sc-gutter); padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
}
.mark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.mark__sun { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--coral); border: var(--olw) solid currentColor; }
.mark__word { font-family: var(--sc-font-display); font-size: 1.2rem; letter-spacing: .01em; line-height: 1; }
.mark__word b { font-weight: 400; background: var(--ink); color: var(--sky, #f6e6c8); border-radius: 5px; padding: .1em .24em .06em; margin-left: .2em; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; flex: none;
  padding: .62rem 1.05rem; border-radius: 999px; text-decoration: none;
  background: var(--pink); color: var(--navy); border: var(--olw) solid var(--navy);
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: translate 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.cta:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: var(--coral); } }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The map: six waypoints on a line, and a small sun that travels it. */
.track { position: relative; flex: 1 1 auto; min-width: 0; height: 2.75rem; display: flex; align-items: center; gap: .9rem; }
.track__play {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: var(--olw) solid currentColor; background: transparent;
  color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; margin-left: auto;
  transition: scale 140ms var(--sc-ease-out);
}
.track__play:active { scale: .95; }
.track__play span { width: .7rem; height: .8rem; background: currentColor; clip-path: polygon(8% 0, 100% 50%, 8% 100%); }
.track__play[aria-pressed="true"] span { clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
html:not(.js) .track__play { display: none; }
html.is-film .bar, html.is-film .skip { display: none; }
.track__line { position: relative; flex: 1 1 auto; height: 100%; max-width: 26rem; }
.track__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--olw); background: currentColor; opacity: .55; translate: 0 -50%; }
.track ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.track li { position: absolute; top: 0; height: 100%; width: 2.75rem; translate: -50% 0; left: calc(var(--at) * 100%); }
.track li a { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; }
.track li a::before { content: ""; width: var(--olw); height: .7rem; background: currentColor; border-radius: 2px; transition: height 140ms var(--sc-ease-out); }
.track li a[aria-current="true"]::before { height: 1.15rem; }
@media (hover: hover) and (pointer: fine) { .track li a:hover::before { height: 1.15rem; } }
.track li a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.track__sun {
  position: absolute; top: 50%; left: 0; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--coral); border: 2px solid currentColor; translate: -50% -50%; pointer-events: none;
  will-change: transform;
}
.track.is-night .track__sun { background: var(--cream); }
.track__now { flex: none; width: 8.2rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* ---------------------------------------------------------------- stage -- */
.stage {
  position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100svh; z-index: 1; overflow: hidden; overflow: clip;
  background: var(--sky, #f6e6c8);
  --hz: 74%; --sun-x: 78%; --sun-y0: 20%; --sun-d: min(17svh, 11rem);
  pointer-events: none;
}
html:not(.js) .stage { display: none; }
.stage svg { display: block; max-width: none; }
.sky { position: absolute; inset: 0 0 auto 0; height: var(--hz); overflow: hidden; overflow: clip; }
.stars { position: absolute; inset: 12% 0 auto 53%; height: 52%; opacity: 0; will-change: opacity; }
.star { position: absolute; width: var(--r); height: var(--r); background: #f6e6c8; border-radius: 50%; translate: -50% -50%; }
.star--spark { border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sun, .moon { position: absolute; left: var(--sun-x); top: 0; border-radius: 50%; will-change: transform; }
.sun {
  width: var(--sun-d); height: var(--sun-d); margin: calc(var(--sun-d) / -2) 0 0 calc(var(--sun-d) / -2);
  pointer-events: auto; touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent;
}
.sun__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--sun, #ff9a5c); border: var(--olw) solid var(--navy); transition: scale 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .sun:hover .sun__disc { scale: 1.05; } }
.sun.is-dragging .sun__disc { scale: 1.08; }
@media (prefers-reduced-motion: no-preference) {
  /* one small dip on arrival: the disc is something you can pull */
  .js .sun__disc { animation: sun-dip 1100ms var(--sc-ease-in-out) 1400ms 1 both; }
  @keyframes sun-dip { 0%, 100% { translate: 0 0; } 45% { translate: 0 14%; } }
}
.sun.is-dragging { cursor: grabbing; }
html.is-sun-drag { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.moon {
  --d: calc(var(--sun-d) * .58);
  width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  background: #f6e6c8; opacity: 0; overflow: hidden;
}
.moon::after { content: ""; position: absolute; inset: -6% -30% 10% 34%; border-radius: 50%; background: var(--sky, #172238); }
.clouds { position: absolute; inset: 8% 0 auto 48%; height: 62%; will-change: transform; z-index: 0; }
.sun, .moon { z-index: 1; }
.cloud { position: absolute; width: calc(var(--w) * var(--cloud-k, 1) * 1svh); height: auto; overflow: visible; }
.clouds rect { fill: var(--cloud, #fff6e2); }

.plane {
  position: absolute; left: 50%; height: var(--ph); aspect-ratio: var(--ar);
  bottom: calc(100% - var(--hz) - var(--ph) * var(--below, 0));
  translate: calc(-50% + var(--fx, 0px)) 0; transform-origin: 50% var(--oy, 100%);
  will-change: transform;
}
.plane__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plane .is-night { opacity: 0; will-change: opacity; }
.plane--far   { --ar: 3200 / 600; --ph: max(36svh, calc(112vw / 5.3333)); }
.plane--near  { --ar: 3200 / 520; --ph: max(30svh, calc(112vw / 6.1538)); --below: 0.153846; --oy: 84.615%; }
.plane--palms { --ar: 3200 / 480; --ph: max(28svh, calc(112vw / 6.6667)); }

.ol { stroke: var(--navy); stroke-width: var(--olw); vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ol--thin { stroke-width: 1.2px; opacity: .45; }
.ol--grass { stroke-width: 2px; }
.is-night .ol { stroke: #0c1422; }
.f-ol { fill: var(--navy); }
.is-day .f-farA { fill: #f45d8d; } .is-day .f-farB { fill: #f9a8bd; }
.is-day .f-midA { fill: #fff4dc; } .is-day .f-midB { fill: #ffc9a3; }
.is-night .f-farA { fill: #26375a; } .is-night .f-farB { fill: #2c4067; }
.is-night .f-midA { fill: #334a73; } .is-night .f-midB { fill: #2d4169; }
.f-trim { fill: #f45d8d; }
.is-night .neon { fill: #7a2f58; transition: fill 120ms linear; }
.stage.neon-on .is-night .neon { fill: #ff6fa0; }
.is-day .f-sand { fill: #f6e6c8; } .is-night .f-sand { fill: #283a5f; }
.shade { fill: var(--navy); opacity: .11; }
.is-night .shade { fill: #0c1422; opacity: .3; }
.win { fill: var(--navy); opacity: .2; }
.win--near { opacity: .6; }
.lw { fill: #ffe9b8; opacity: 0; transition: opacity 160ms linear; }
.lw.c1 { fill: #ffb38a; } .lw.c2 { fill: #f9a8bd; }
.lw.on { opacity: 1; }
.refl { fill: none; stroke: #ffe9b8; stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 0; transition: opacity 240ms linear; }
.refl.c1 { stroke: #ffb38a; } .refl.c2 { stroke: #f9a8bd; }
.refl.on { opacity: .8; }
.beacon { fill: #ff6f61; }
.clock__board { fill: var(--navy); }
.is-night .clock__board { fill: #0c1422; }
.clock__time { font-family: var(--sc-font-display); font-size: 46px; fill: #f6e6c8; letter-spacing: .01em; }
.stage.neon-on .is-night .clock__time { fill: #ff6fa0; }
.f-palm { fill: #131d2e; }

.sea { position: absolute; inset: var(--hz) 0 0 0; background: var(--sea); }
.sea__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dash { fill: none; stroke: var(--seaDash, #f6e6c8); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .5; }
.sea__glow { position: absolute; top: .9svh; left: var(--sun-x); width: calc(var(--sun-d) * 1.05); translate: -50% 0; opacity: 0; display: grid; gap: 1.05svh; justify-items: center; will-change: opacity; }
.sea__glow i { display: block; height: .62svh; min-height: 4px; border-radius: 99px; background: var(--sun, #ff9a5c); width: calc(var(--w) * 100%); }

.boat { position: absolute; left: 0; top: calc(var(--hz) + 1.4svh); width: 5.4svh; translate: 0 -78%; will-change: transform; }
.boat svg { width: 100%; height: auto; }
.f-sail { fill: #fff4dc; } .f-hull { fill: var(--navy); }
.boat__lamp { fill: #ffe9b8; opacity: 0; }
.stage.is-night .boat__lamp { opacity: 1; }
.stage.is-night .f-sail { fill: #9aa6bd; }

.sandbar { position: absolute; left: -2%; bottom: -1.2svh; width: min(46vw, 40rem); will-change: transform; transform-origin: 0 100%; }
.sandbar svg { width: 100%; height: auto; }
.sandbar .f-sand { fill: var(--sand, #f6e6c8); }
.f-brolly-a { fill: #f45d8d; } .f-brolly-b { fill: #fff4dc; } .f-towel { fill: #ff9a5c; }
.brolly { transition: opacity 500ms linear; }
.stage.is-night .brolly { opacity: 0; }
.sandbar { transition: opacity 600ms linear; }
.stage.is-night .sandbar { opacity: 0; }
/* the hint lives inside the disc, so it can never land on anything else */
.sun__hint {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  font-size: clamp(.6rem, 1.9svh, .78rem); font-weight: 700; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase; color: var(--navy);
  opacity: 0; transition: opacity 300ms linear;
}
.stage.is-top .sun__hint { opacity: .9; }

.flamingo { position: absolute; left: 53%; bottom: 3svh; height: 46svh; aspect-ratio: 420 / 640; translate: -50% 0; transform-origin: 56% 95%; will-change: transform; }
.flamingo__svg { width: 100%; height: 100%; overflow: visible; scale: -1 1; }
.f-flam { fill: #f45d8d; } .f-flamWing { fill: #d33e74; } .f-beak { fill: #f6e6c8; }
.leg { fill: none; stroke: #f45d8d; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.leg--edge { stroke: var(--navy); stroke-width: 13; }
.knee { fill: #f45d8d; stroke: var(--navy); stroke-width: 2.6; }
.flamingo__ripples ellipse { fill: none; stroke: var(--seaDash, #f6e6c8); stroke-width: 3; opacity: .6; }
.flamingo__lid { opacity: 0; }
.stage.is-asleep .flamingo__eye { opacity: 0; }
.stage.is-asleep .flamingo__lid { opacity: 1; }

.leaves { position: absolute; right: -2%; top: 7svh; width: min(26vw, 23rem); transform-origin: 100% 20%; will-change: transform; }
.leaves svg { width: 100%; height: auto; }
.f-leaf { fill: #131d2e; }

/* searchlights: two flat beams that sweep once the city is on */
.beam {
  position: absolute; bottom: 0; left: var(--bx); width: 9svh; height: 78svh; margin-left: -4.5svh;
  transform-origin: 50% 100%; clip-path: polygon(50% 100%, 0 0, 100% 0); background: #f6e6c8; opacity: 0;
  transition: opacity 400ms linear; rotate: var(--r0);
}
.beam--a { --bx: 62%; --r0: -14deg; --r1: 12deg; }
.beam--b { --bx: 91%; --r0: 10deg; --r1: -16deg; }
.stage.neon-on .beam { opacity: .09; }
@media (prefers-reduced-motion: no-preference) {
  .stage.neon-on .beam { animation: sweep 11s var(--sc-ease-in-out) infinite alternate; }
  .stage.neon-on .beam--b { animation-duration: 14s; }
  @keyframes sweep { from { rotate: var(--r0); } to { rotate: var(--r1); } }
}
.birds { position: absolute; left: 0; top: 30%; width: 13svh; opacity: 0; will-change: transform; }
.birds svg { width: 100%; height: auto; overflow: visible; }
.birds path { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.banner { position: absolute; left: 0; top: 11%; width: 46svh; opacity: 0; transform-origin: 0 50%; will-change: transform; }
.banner svg { width: 100%; height: auto; overflow: visible; }
.f-plane { fill: #f45d8d; } .f-banner { fill: #fff4dc; } .tow { stroke-width: 1.5px; }
.banner__text { font-family: var(--sc-font-display); font-size: 27px; fill: var(--navy); letter-spacing: .04em; }
.fx { position: absolute; inset: 0 0 auto 0; width: 100%; height: var(--hz); }

/* the flamingo is alive: it blinks, and it minds being poked */
.flamingo__svg > * { pointer-events: auto; }
.flamingo__svg { cursor: pointer; }
.flamingo__bird { transform-box: fill-box; transform-origin: 50% 100%; }
.flamingo__wing { transform-box: fill-box; transform-origin: 12% 30%; }
.flamingo__eye { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .flamingo__eye { animation: blink 5.2s linear infinite; }
  @keyframes blink { 0%, 95.5%, 100% { scale: 1 1; } 97.5% { scale: 1 .08; } }
  .flamingo.is-flap .flamingo__wing { animation: flap 620ms var(--sc-ease-out) 1; }
  .flamingo.is-flap .flamingo__bird { animation: hop 620ms var(--sc-ease-out) 1; }
  @keyframes flap { 0%, 100% { rotate: 0deg; } 30% { rotate: 24deg; } 60% { rotate: -6deg; } }
  @keyframes hop { 0%, 100% { translate: 0 0; } 35% { translate: 0 -2.6%; } }
}
.stage.is-asleep .flamingo.is-peek .flamingo__eye { opacity: 1; }
.stage.is-asleep .flamingo.is-peek .flamingo__lid { opacity: 0; }
/* the show: it turns on its standing leg to watch the screen. The leg is 56.19% across the
   drawing, so the mirror flips about the middle and the slide puts the leg back where it was.
   Not on a phone: the screen is under it there. world.js tries both poses on to measure them
   (fit-plain, fit-show) with the turn switched off (no-turn). */
.flamingo__svg { transition: scale 520ms var(--sc-ease-in-out), translate 520ms var(--sc-ease-in-out); }
@media (min-width: 860.01px), (orientation: landscape) {
  .stage.is-show:not(.fit-plain) .flamingo__svg, .stage.fit-show .flamingo__svg { scale: 1 1; translate: -12.38% 0; }
}
.stage.no-turn .flamingo__svg { transition: none; }

/* --------------------------------------------------------------- content -- */
main { position: relative; z-index: 20; pointer-events: none; }
.wp { position: relative; height: calc(var(--h, 1.4) * 100vh); height: calc(var(--h, 1.4) * 100svh); }
.wp__anchor { position: absolute; left: 0; top: calc(var(--a, 0) * 100svh); width: 1px; height: 1px; }

.copy { --copy-ink: var(--ink); --copy-soft: var(--ink-soft); color: var(--copy-ink); }
.js .copy {
  position: fixed; z-index: 20; left: var(--sc-gutter); top: max(calc(var(--bar-h) + 2.5svh), 11svh);
  width: min(38rem, 40vw);
  scale: var(--fit, 1); transform-origin: 0 0;   /* world.js fitCopy() keeps the block off the drawing */
}
.copy.is-tight [data-opt] { display: none; }
.copy h1, .copy h2 { font-family: var(--sc-font-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.015em; line-height: .98; }
.copy h1 { font-size: clamp(2.3rem, min(4.5vw, 7.4svh), 5rem); max-width: 12ch; }
.copy h2 { font-size: clamp(1.8rem, min(3.1vw, 5.4svh), 3.5rem); max-width: 16ch; }
.copy p { margin: 0; text-wrap: pretty; }
.copy a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.small { font-size: .875rem; color: var(--copy-soft); }

/* the way in, on the first screen: it looks like the search field it leads to */
.ask {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  width: min(100%, 22rem); min-height: 3.25rem; margin-top: clamp(.9rem, 2.4svh, 1.4rem); padding: 0 .4rem 0 1.15rem;
  border-radius: 999px; border: 2px solid var(--navy); background: var(--cream); color: var(--navy);
  text-decoration: none; font-size: 1.0625rem; box-shadow: 0 0 0 2px var(--cream);
}
.ask span { color: #4d566b; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 160ms linear, translate 160ms var(--sc-ease-out); }
.ask span.is-swap { opacity: 0; translate: 0 .35em; }
.ask b { flex: none; }
.ask b { background: var(--pink); border: 2px solid var(--navy); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .95rem; }
.ask:active { translate: 0 1px; }
.ask:focus-visible { outline: 2px solid var(--copy-ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .ask:hover b { background: var(--coral); } }

/* the countdown is one quiet line */
.count { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; margin-top: clamp(.75rem, 2svh, 1.1rem) !important; font-weight: 600; }
.count span { display: inline-flex; align-items: baseline; gap: .12rem; font-size: .9rem; }
.count b { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(1.2rem, min(1.9vw, 3.4svh), 1.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.count i { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copy-soft); margin-right: .15rem; }
.count__out { font-size: 1rem !important; font-weight: 600; }

/* three facts, three pills */
.facts { list-style: none; margin: clamp(.8rem, 2.2svh, 1.3rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { border: 2px solid var(--copy-ink); border-radius: 999px; padding: .4rem .85rem .44rem; font-size: .95rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.facts b { font-weight: 700; }
.facts + .small { margin-top: .7rem; }
.small a { padding-block: .35rem; }

.places { list-style: none; margin: clamp(.8rem, 2.2svh, 1.4rem) 0 0; padding: 0; display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: .25rem; grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
.places li { font-family: var(--sc-font-display); font-size: clamp(1.25rem, min(1.9vw, 3.6svh), 1.9rem); line-height: 1.12; letter-spacing: -0.01em; white-space: nowrap; }

.stamps { list-style: none; margin: clamp(1rem, 2.6svh, 1.6rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem .8rem; }
.stamps li { border: 2px solid var(--copy-ink); border-radius: 8px; padding: .5rem .7rem .55rem; display: grid; }
.stamps li:nth-child(1) { rotate: -2deg; } .stamps li:nth-child(2) { rotate: 1.2deg; } .stamps li:nth-child(3) { rotate: -1deg; border-style: dashed; }
.stamps b { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

.js .copy--midnight { width: min(47vw, 46rem); }
.copy--midnight h2 { font-size: clamp(3.4rem, min(8.2vw, 15svh), 8rem); max-width: none; letter-spacing: -0.03em; white-space: nowrap; }
.copy--midnight p { font-size: clamp(1.1rem, 1rem + .5vw, 1.5rem); font-weight: 600; margin-top: .6rem; }

/* The arrival: a drive-in screen, on all night. Rockstar's trailers are on it and the search
   sits under it. The cue element itself carries the fill, so the harness grades its type
   against the board and not against the city behind it. world.js decides where it stands:
   beside the flamingo on two legs in the water (.is-low) when the window has room there,
   else in the sky like the other copy, scaled to stay clear of the drawing. */
.sign {
  --copy-ink: var(--cream); color: var(--cream); background: var(--navy);
  border: 3px solid var(--cream); border-radius: 18px; padding: 1rem; display: grid; gap: .75rem;
  box-shadow: 0 0 0 var(--olw) var(--navy);
}
.js .sign { width: min(33rem, 42vw); }
.js .sign.is-low { top: auto; bottom: calc(100% - var(--board-bottom, 57svh)); width: min(40rem, var(--sign-w, 42vw)); scale: none; }
.sign__bulbs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sign__bulbs rect { x: 7px; y: 7px; width: calc(100% - 14px); height: calc(100% - 14px); rx: 11px; fill: none; stroke: var(--pink); stroke-width: 4px; stroke-linecap: round; stroke-dasharray: 0.1 14; }
@media (prefers-reduced-motion: no-preference) {
  .sign__bulbs rect { animation: chase 900ms steps(2, jump-none) infinite; }
  @keyframes chase { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -14.1; } }
}

/* the screen: the one daylight-coloured thing left at midnight */
.screen {
  container-type: inline-size; position: relative; z-index: 1; min-width: 0;
  background: var(--cream); color: var(--navy); border-radius: 10px; padding: .8rem .8rem .9rem; display: grid; gap: .6rem;
}
.screen__label { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.reel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.reel li { display: grid; min-width: 0; }
.reel__tile {
  display: grid; justify-items: center; align-content: start; gap: .4rem; min-width: 0; min-height: 2.75rem; padding: .3rem .1rem;
  border-radius: 8px; text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
}
/* the play button is the sun the visitor pulled down at the top of the page */
.reel__tile i {
  width: 2.6rem; width: clamp(1.6rem, 12cqi, 3.6rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); border: var(--olw) solid var(--navy);
  transition: scale 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.reel__tile i::before { content: ""; width: 34%; height: 42%; translate: 12% 0; background: var(--navy); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.reel__tile b {
  font-family: var(--sc-font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance;
  font-size: .9rem; font-size: clamp(.66rem, 3.9cqi, 1rem);
}
.reel__tile small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1; opacity: .75; font-variant-numeric: tabular-nums; }
.reel__tile:active i { scale: .93; }
@media (hover: hover) and (pointer: fine) { .reel__tile:hover i { background: var(--pink); scale: 1.07; } }
.reel__tile:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* On the landing page, a screen with the room for it plays the newest trailer as the feature,
   its sun as big as the one that set, and lists the other three beside it. A narrow one keeps
   four in a row. (The answers page lays its own screen out in howto.css.) */
@container (min-width: 24rem) {
  @media (min-width: 860.01px) and (min-height: 680px), (orientation: landscape) and (min-height: 680px) {
    .sign .reel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: repeat(3, auto); gap: 0 1rem; }
    .sign .reel li:first-child { grid-row: 1 / 4; }
    .sign .reel li:first-child .reel__tile { align-content: center; gap: .7rem; padding: .5rem .2rem; }
    .sign .reel li:first-child .reel__tile i { width: clamp(4rem, 21cqi, 6rem); }
    .sign .reel li:first-child .reel__tile b { font-size: clamp(1.1rem, 5cqi, 1.5rem); }
    .sign .reel li + li .reel__tile { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; align-content: center; gap: .75rem; min-height: 3.5rem; padding: .35rem .4rem; text-align: left; }
    .sign .reel li + li .reel__tile i { width: 2.4rem; }
    .sign .reel li + li .reel__tile b { font-size: clamp(.95rem, 3.8cqi, 1.15rem); }
    .sign .reel li + li + li { border-top: 2px solid rgb(27 42 65 / .2); border-top-color: color-mix(in srgb, currentColor 22%, transparent); }
  }
}

/* dark until the show starts (world-math SHOW_AT), then the lamp catches: one flicker, and
   the four suns come up one after another. Without script it is simply lit. */
.js .sign:not(.is-on) .screen { background: #0f1828; color: var(--cream); }
.js .sign:not(.is-on) .reel__tile i { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .js .sign.is-on .screen { animation: lamp 460ms steps(1, end) 1 both; }
  @keyframes lamp {
    0% { background-color: #0f1828; color: #f6e6c8; }
    24% { background-color: #f6e6c8; color: #1b2a41; }
    42% { background-color: #0f1828; color: #f6e6c8; }
    60%, 100% { background-color: #f6e6c8; color: #1b2a41; }
  }
  .js .sign.is-on .reel__tile i { animation: sun-up 420ms var(--sc-ease-out) backwards; animation-delay: calc(260ms + var(--n, 0) * 70ms); }
  .reel li:nth-child(2) { --n: 1; } .reel li:nth-child(3) { --n: 2; } .reel li:nth-child(4) { --n: 3; }
  @keyframes sun-up { from { scale: .5; opacity: .35; } to { scale: 1; opacity: 1; } }
}

.sign__form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; position: relative; z-index: 1; }
.sign__form input {
  min-width: 0; height: 2.9rem; padding: 0 .8rem; border-radius: 10px; border: 2px solid var(--cream);
  background: #0f1828; color: var(--cream); font-size: 1rem;
}
.sign__form input::placeholder { color: #9aa6bd; }
.sign__form button {
  height: 2.9rem; padding: 0 1rem; border-radius: 10px; border: 2px solid var(--cream); background: var(--cream); color: var(--navy);
  font-weight: 700; cursor: pointer; transition: translate 120ms var(--sc-ease-out);
}
.sign__form button:active { translate: 0 1px; }
.sign__form :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* two legs and a brace, down into the water just under the far shore */
.sign__legs { display: none; }
.js .sign.is-low .sign__legs {
  display: block; position: absolute; left: 11%; right: 11%; top: calc(100% + 3px); height: calc(var(--legs, 19.8svh) - 3px);
  border-inline: 5px solid var(--cream); pointer-events: none;
}
.sign__legs::before, .sign__legs::after { content: ""; position: absolute; top: 2.1rem; width: 2.97rem; height: 3px; background: var(--cream); opacity: .6; }
.sign__legs::before { left: 0; transform-origin: 0 50%; rotate: -45deg; }
.sign__legs::after { right: 0; transform-origin: 100% 50%; rotate: 45deg; }
.sign__legs i { position: absolute; bottom: -.32rem; left: -2.5px; width: 3.4rem; height: .64rem; translate: -50% 0; border: 2px solid var(--cream); border-radius: 50%; opacity: .45; }
.sign__legs i + i { left: calc(100% + 2.5px); }

/* the small print sits bottom left, in clear water: the sandbar goes out with the daylight */
.js .foot { top: auto; bottom: 1.6svh; left: var(--sc-gutter); width: min(26rem, 38vw); font-size: .74rem; line-height: 1.4; scale: none; }
.foot { color: var(--copy-ink); }
.foot p + p { margin-top: .3rem; opacity: .82; }

/* place names arrive one under another while the block fades in */
@media (prefers-reduced-motion: no-preference) {
  .js .places li { opacity: clamp(0, (var(--sc-p, 1) - var(--from, 0) - var(--i) * 0.012) * 26, 1); translate: 0 calc((1 - clamp(0, (var(--sc-p, 1) - var(--from, 0) - var(--i) * 0.012) * 26, 1)) * .6em); }
}


/* ------------------------------------------------------------- no script -- */
html:not(.js) body { background: var(--cream); }
html:not(.js) .bar { position: sticky; background: var(--cream); }
html:not(.js) .track { visibility: hidden; }
html:not(.js) .wp { height: auto; padding: 3rem var(--sc-gutter); }
html:not(.js) .copy { max-width: 40rem; }
html:not(.js) .copy + .copy { margin-top: 2rem; }
html:not(.js) main { pointer-events: auto; }
html:not(.js) .sign { position: relative; max-width: 30rem; }

/* ----------------------------------------------------------------- phone -- */
@media (max-width: 860px) and (orientation: portrait) {
  :root { --bar-h: 3.5rem; --olw: 2px; }
  .bar { gap: .75rem; }
  .mark__word { font-size: 1.05rem; }
  .cta { padding: .55rem .85rem; font-size: .88rem; }
  .bar .cta { margin-left: auto; }
  .track { position: absolute; left: var(--sc-gutter); right: var(--sc-gutter); top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) - .5rem); }
  .track__line { max-width: none; margin: 0; }
  .track { gap: .7rem; }
  .track__play { margin-left: 0; width: 2.75rem; height: 2.75rem; }
  .track__now { display: none; }

  .stage { --hz: 52%; --sun-x: 74%; --sun-y0: 21%; --sun-d: min(13svh, 6.4rem); }
  .stars { inset: 24% 0 auto 0; height: 50%; }
  .beam { width: 7svh; height: 50svh; margin-left: -3.5svh; }
  .beam--a { --bx: 46%; } .beam--b { --bx: 88%; }
  .birds { width: 9svh; top: 42%; }
  .banner { width: 30svh; top: 26%; }
  .js .copy--midnight { width: auto; }
  .clouds { inset: 27% 44% auto 0; height: 34%; --cloud-k: .5; }
  .plane--far   { --ph: 24svh; --fx: calc((0.5 - 0.665) * 24svh * 5.3333); }
  .plane--near  { --ph: 19svh; --fx: calc((0.5 - 0.645) * 19svh * 6.1538); }
  .plane--palms { --ph: 20svh; --fx: calc((0.5 - 0.668) * 20svh * 6.6667); }
  .flamingo { left: 3%; bottom: 37.5svh; height: 25svh; translate: 0 0; transform-origin: 56% 95%; }
  .sandbar { display: none; }
  .leaves { width: 40vw; right: auto; left: -5%; top: 11svh; scale: -1 1; transform-origin: 0 20%; }
  .dash--near { display: none; }
  .sea__glow { top: .6svh; gap: .8svh; }
  .boat { width: 3.6svh; top: calc(var(--hz) + 1svh); }

  .copy { --copy-ink: var(--cream); --copy-soft: #b9b3a6; }
  .js .copy { top: auto; bottom: max(3.2svh, calc(env(safe-area-inset-bottom, 0px) + 1rem)); left: var(--sc-gutter); right: var(--sc-gutter); width: auto; transform-origin: 0 100%; }
  .copy h1 { font-size: clamp(1.75rem, min(8.6vw, 5.2svh), 2.5rem); }
  .copy h2 { font-size: clamp(1.5rem, min(7vw, 4.4svh), 2.1rem); }
  .ask { width: 100%; max-width: 24rem; border-color: var(--cream); box-shadow: none; }
  .count b { font-size: clamp(1.15rem, 3.2svh, 1.5rem); }
  .places li { font-size: clamp(1.05rem, min(5vw, 3svh), 1.4rem); }
  .facts li { font-size: .9rem; padding: .36rem .7rem .4rem; }
  .stamps { gap: .5rem; }
  .stamps li { padding: .4rem .55rem .45rem; }
  .copy--midnight h2 { font-size: clamp(3rem, min(17vw, 11svh), 5rem); }
  /* the screen floats on the sea under the flamingo; the small print keeps two lines below it */
  .js .sign { right: var(--sc-gutter); left: var(--sc-gutter); width: auto; bottom: calc(max(.8rem, env(safe-area-inset-bottom, 0px)) + 2.5rem); }
  .sign { padding: .65rem; gap: .5rem; border-radius: 14px; }
  .screen { padding: .6rem .5rem .65rem; gap: .45rem; border-radius: 9px; }
  .screen__label { font-size: .62rem; }
  .reel { gap: .2rem; }
  .reel__tile { gap: .3rem; padding: .25rem .05rem; }
  .js .foot { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: max(.8rem, env(safe-area-inset-bottom, 0px)); font-size: .7rem; line-height: 1.35; }
}
@media (max-width: 860px) and (orientation: portrait) and (max-height: 700px) {
  .sign { padding: .4rem; gap: .4rem; }
  .screen { padding: .4rem .35rem; }
  .screen__label { display: none; }
  .reel__tile { gap: .2rem; padding: .1rem 0; }
  .reel__tile i { width: 1.45rem; }
  .sign__form input, .sign__form button { height: 2.75rem; }
  .copy h1 { font-size: clamp(1.6rem, 7.6vw, 2rem); }
}

/* short and wide (a phone on its side): the wide layout, compacted */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: 3rem; --olw: 2px; }
  .mark__word { font-size: 1.05rem; }
  .cta { padding: .5rem .85rem; font-size: .86rem; }
  .track__now { display: none; }
  .track__play { width: 2.25rem; height: 2.25rem; }
  .stage { --hz: 86%; --sun-y0: 30%; }
  .flamingo { height: 42svh; bottom: 1svh; }
  .js .copy { top: calc(var(--bar-h) + 3svh); width: min(25rem, 42vw); }
  .copy h1 { font-size: clamp(1.45rem, 7.4svh, 2.2rem); max-width: none; }
  .copy h2 { font-size: clamp(1.15rem, 6svh, 1.7rem); max-width: none; }
  .ask { min-height: 2.75rem; margin-top: .6rem; width: min(100%, 17rem); font-size: .95rem; }
  .ask b { padding: .34rem .8rem; font-size: .86rem; }
  .count { margin-top: .5rem !important; }
  .count b { font-size: 1.1rem; }
  .facts { margin-top: .55rem; gap: .35rem; }
  .facts li { font-size: .8rem; padding: .26rem .6rem .3rem; }
  .facts + .small { display: none; }
  .places { margin-top: .5rem; }
  .places li { font-size: 1.05rem; }
  .stamps { margin-top: .6rem; gap: .4rem; }
  .stamps li { padding: .26rem .45rem; }
  .stamps b { font-size: .62rem; }
  .js .copy--midnight { width: min(52vw, 30rem); }
  .copy--midnight h2 { font-size: clamp(2.4rem, 20svh, 4.5rem); }
  .js .sign { width: min(22rem, 42vw); }
  .sign { --board-bottom: 69svh; padding: .5rem; gap: .45rem; }
  .screen { padding: .5rem .45rem; gap: .35rem; }
  .screen__label { display: none; }
  .reel__tile { gap: .25rem; padding: .15rem 0; }
  .sign__form input, .sign__form button { height: 2.75rem; }
  .js .foot { top: auto; bottom: 1svh; width: min(22rem, 44vw); font-size: .62rem; line-height: 1.25; }
  .sandbar { width: 34vw; }
}

/* a short window that is not a phone: the screen drops its label and tightens */
@media (min-height: 520.01px) and (max-height: 640px) and (orientation: landscape) {
  .sign { padding: .7rem; gap: .55rem; }
  .screen { padding: .6rem .6rem .65rem; gap: .4rem; }
  .screen__label { display: none; }
}

/* a little life while the page sits still */
@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: cloud-drift 46s ease-in-out infinite alternate; }
  .cloud:nth-child(2n) { animation-duration: 61s; animation-direction: alternate-reverse; }
  @keyframes cloud-drift { from { translate: -1.4svh 0; } to { translate: 1.6svh 0; } }
  .sea__dashes { animation: shimmer 5.5s ease-in-out infinite alternate; }
  @keyframes shimmer { from { opacity: .72; } to { opacity: 1; } }
  .boat svg { animation: bob 4.2s ease-in-out infinite alternate; transform-origin: 50% 90%; }
  @keyframes bob { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
}

@media (prefers-reduced-motion: reduce) {
  .track__play { display: none; }
  .sun { cursor: default; pointer-events: none; }
  .lw, .refl, .is-night .neon { transition: none; }
  .flamingo__svg { transition: none; }   /* it is simply facing the screen on the last stop */
}
