/* THE COUNTDOWN BOARD: Cedar Ridge Motors (sample store), New Year's.
   A station hall at midnight: near-black, champagne gold, flap and mono type. Phone first; desk at 900px.
   Motion is transform/opacity only (js/flap.js); prefers-reduced-motion stills everything. */

:root {
  --night: #06060a; --hall: #0a0a0f;
  --flapA: #27262d; --flapB: #1d1c22; --flapC: #18171c; --flapD: #111015;
  --gold: #E6CF9C; --gold2: #C8A867; --goldDim: #8f7b53; --ink: #F1E6C8; --ember: #C8432E; --go: #9fe08a;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --flap: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --g: 16px;            /* the side gutter */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { font-family: var(--mono); overflow-x: clip; min-height: 100svh; background: var(--night); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--gold); color: var(--night); padding: 10px 14px; font: 700 12px var(--mono); border-radius: 3px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------- header ---------------- */
.top { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--g) 10px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font: 700 11.5px var(--mono); letter-spacing: .16em; color: var(--ink); }
.wm i { font: 500 9px var(--mono); font-style: normal; letter-spacing: .38em; color: var(--goldDim); margin-top: 4px; }
.tag { font: 500 9px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(230, 207, 156, .45); border-radius: 2px; padding: 5px 7px 4px; white-space: nowrap; }

/* ---------------- one split flap ---------------- */
.flaps { display: flex; gap: var(--gap, 3px); }
.c { position: relative; flex: none; display: block; width: var(--w, 22px); height: var(--h, 30px);
  perspective: calc(var(--h, 30px) * 5); contain: layout paint style;
  font-family: var(--flap); font-weight: 600; font-size: calc(var(--h, 30px) * .8); color: var(--ink);
  text-align: center; }
.c > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c .t, .c .lf { top: 0; border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--flapA), var(--flapB)); }
.c .bt, .c .lb { bottom: 0; border-radius: 1px 1px 3px 3px; background: linear-gradient(var(--flapC), var(--flapD)); }
.c b { position: absolute; left: 0; right: 0; top: 0; height: var(--h, 30px); line-height: calc(var(--h, 30px) * 1.03); font-weight: 600;
  text-shadow: 0 0 calc(var(--h, 30px) * .14) rgba(241, 230, 200, .16); }
.c .bt b, .c .lb b { top: auto; bottom: 0; }
.c .lf { transform-origin: 50% 100%; transform: rotateX(-90deg); z-index: 2; }
.c .lb { transform-origin: 50% 0; transform: rotateX(90deg); z-index: 2; }
.c .s { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.c .bt .s { background: linear-gradient(#000, rgba(0, 0, 0, .3)); }
/* the split and the hinge pins */
.c::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: #040406; z-index: 3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.c::before { content: ''; position: absolute; left: -1px; right: -1px; top: calc(50% - 2.5px); height: 5px; z-index: 4;
  background: radial-gradient(circle at 1.5px 2.5px, #45434d 1.3px, transparent 1.8px), radial-gradient(circle at calc(100% - 1.5px) 2.5px, #45434d 1.3px, transparent 1.8px); }
.gold .c, .c.gold { color: var(--gold); }
.gold .c b, .c.gold b { text-shadow: 0 0 calc(var(--h, 30px) * .2) rgba(230, 207, 156, .28); }

/* ---------------- the hall ---------------- */
.hall { position: relative; display: grid; grid-template-columns: 100%;
  grid-template-areas: 'board' 'stage' 'deps'; }
.air { position: absolute; left: 0; right: 0; top: -70px; height: 560px; pointer-events: none; z-index: 0; opacity: .3;
  background: radial-gradient(62% 52% at 50% 0%, rgba(230, 207, 156, .2), transparent 72%),
              radial-gradient(28% 26% at 86% 6%, rgba(230, 207, 156, .1), transparent 70%); }
.confetti { position: absolute; left: 0; right: 0; top: -70px; height: 100svh; max-height: 900px; overflow: hidden; pointer-events: none; z-index: 5; }
.cf { position: absolute; left: 0; top: 0; display: block; border-radius: 1px; opacity: 0;
  background: linear-gradient(135deg, #fff3d2, var(--gold) 45%, var(--gold2)); box-shadow: 0 0 6px rgba(230, 207, 156, .55); }
.cf.soft { filter: blur(1.6px); }
.spark { position: absolute; left: 0; top: 0; display: block; opacity: 0;
  background: radial-gradient(circle, #fff8e4 0 20%, rgba(230, 207, 156, 0) 62%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }

.board { grid-area: board; position: relative; z-index: 3; margin: 14px var(--g) 0; padding: 10px 10px 11px;
  background: linear-gradient(#131318, #0b0b0f); border-radius: 6px;
  box-shadow: 0 0 0 1px #1e1e25, 0 1px 0 0 #2c2c35 inset, 0 30px 60px -22px rgba(0, 0, 0, .95), 0 -24px 80px -40px rgba(230, 207, 156, .3); }
.board::before, .board::after { content: ''; position: absolute; top: -14px; width: 2px; height: 14px; background: linear-gradient(#000, #2c2c33); }
.board::before { left: 22%; } .board::after { right: 22%; }
.bh { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 8.5px var(--mono);
  letter-spacing: .26em; text-transform: uppercase; color: var(--goldDim); margin: 0 2px 9px; white-space: nowrap; }
.lamp { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold);
  margin-right: 7px; vertical-align: 1px; }
.lamp--red { background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.giant { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; --h: 68px; }
.giant .c { width: auto; }
/* the board's clock, in its header: 23:59 clacks to 00:00; the event name beside it, readable */
.bh--hall { margin-bottom: 10px; }
.bh--hall .ev { font: 700 10px var(--mono); letter-spacing: .2em; color: var(--ink); }
.clock { --w: 15px; --h: 22px; --gap: 2px; }
.clock .c.colon { --w: 9px; }
.store { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .flaps { --w: min(24px, calc((100vw - 32px - 20px - 34px - 30px) / 11)); --h: 31px; --gap: 3px; }

/* the platform: a whole SUV, night-graded, standing on the gold edge */
.stage { grid-area: stage; position: relative; z-index: 1; height: calc(var(--top) + 75vw * var(--wl) + 50px); margin-top: -8px; overflow: hidden;
  --top: -18vw; --box: 100%; --wl: .853; }
.carbox { position: absolute; left: 0; top: var(--top); width: var(--box); aspect-ratio: 860 / 645; }
.carbox .car { width: 100%; height: 100%; }
.lamp-glow { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%) scale(.4); mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 246, 222, .95) 0 6%, rgba(255, 226, 168, .55) 16%, rgba(255, 214, 150, .14) 42%, transparent 70%); }
/* the car is leaving: its tail lights (and the high brake light) come on at the clack */
.lamp-glow.tail { background: radial-gradient(circle, rgba(255, 214, 190, .95) 0 5%, rgba(255, 92, 58, .6) 15%, rgba(220, 50, 30, .16) 40%, transparent 70%); }
.lamp-glow.l1 { left: 4.9%; top: 54.6%; width: 16%; }
.lamp-glow.l2 { left: 50.8%; top: 54.2%; width: 18%; }
.lamp-glow.l3 { left: 28.8%; top: 35.1%; width: 12%; }
.lamp-glow.on { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: opacity .5s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.lamp-glow.flash { animation: flash .9s steps(1) 1; }
@keyframes flash { 0%, 50% { opacity: .15; } 25%, 75% { opacity: 1; } }
.grade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0%, rgba(6, 6, 10, .4) 9%, rgba(6, 6, 10, 0) 22%),
              linear-gradient(90deg, rgba(6, 6, 10, .4) 0%, rgba(6, 6, 10, 0) 18%),
              linear-gradient(200deg, rgba(40, 60, 130, .16), rgba(0, 0, 0, 0) 55%); }
.bokeh { position: absolute; inset: 0 0 30% 0; pointer-events: none; }
.bk { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; }
.plat { position: absolute; right: var(--g); top: 14px; z-index: 3; font: 500 9px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.plat em { font-style: normal; display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 2px; background: var(--gold); color: var(--night); font-weight: 700; letter-spacing: 0; }
/* the floor sits at the wheel line (85.3% of the photo) */
.floor { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--top) + 75vw * var(--wl)); z-index: 2;
  background: linear-gradient(rgba(10, 10, 14, .96), var(--night) 70%); }
.edge { position: absolute; left: 0; right: 0; top: 0; height: 11px; overflow: hidden;
  background: radial-gradient(circle, rgba(230, 207, 156, .6) 1.1px, transparent 1.6px) 0 0 / 7px 5.5px, linear-gradient(rgba(230, 207, 156, .14), rgba(230, 207, 156, .03));
  border-top: 1px solid rgba(230, 207, 156, .8); box-shadow: 0 -10px 26px -8px rgba(230, 207, 156, .35); }
.rake { position: absolute; top: -1px; bottom: 0; left: 0; width: 40%; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 205, .85) 50%, transparent); transform: translateX(-110%); }
.rake.go { animation: rake 1.6s cubic-bezier(.4, 0, .2, 1) 1 forwards; }
@keyframes rake { 0% { opacity: 0; transform: translateX(-110%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(260%); } }

.now { position: absolute; left: var(--g); right: var(--g); top: calc(var(--top) + 75vw * var(--wl) + 12px); z-index: 3; display: flex; align-items: center; gap: 8px; }
.now .flaps { --w: 19px; --h: 26px; --gap: 2px; }
.now .gate { margin-left: 2px; }
.st { display: flex; flex-direction: column; gap: 3px; font: 700 9.5px var(--mono); letter-spacing: .14em; color: var(--gold); white-space: nowrap; line-height: 1.2; }
.sl { display: flex; align-items: center; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--go); box-shadow: 0 0 8px var(--go); margin-right: 6px; animation: blink 1.2s steps(1) infinite; }
.so { font: 500 7.5px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--goldDim); }

/* departures */
.deps { grid-area: deps; position: relative; z-index: 3; padding: 30px var(--g) 8px; }
.dtitle { margin-bottom: 14px; }
.dtitle .flaps { --w: calc((100vw - 32px - 9 * 3px) / 10); --h: 44px; --gap: 3px; }
.dh { display: none; }
.rows { list-style: none; display: grid; gap: 10px; }
.dep { display: grid; width: 100%; text-align: left; cursor: pointer; background: linear-gradient(#0f0f14, #0b0b0f);
  border: 0; border-radius: 5px; padding: 11px 10px 10px; box-shadow: 0 0 0 1px #1c1c23;
  grid-template-columns: auto 1fr; grid-template-areas: 'dest st' 'gate gate' 'unit unit'; row-gap: 9px; column-gap: 10px;
  transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
.dep:active { transform: scale(.985); }
.dep[aria-pressed='true'] { box-shadow: 0 0 0 1px rgba(230, 207, 156, .55), 0 0 30px -12px rgba(230, 207, 156, .5); }
.dep .dest { grid-area: dest; --w: 19px; --h: 26px; --gap: 2px; }
.dep .gate { grid-area: gate; --w: calc((100vw - 32px - 20px - 9 * 3px) / 10); --h: 46px; --gap: 3px; }
.dep .st { grid-area: st; justify-self: end; align-items: flex-end; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.dep .unit { grid-area: unit; font: 500 10px var(--mono); letter-spacing: .08em; color: rgba(241, 230, 200, .62); opacity: 0; transition: opacity .5s ease .1s; }
.dep.in .st, .dep.in .unit { opacity: 1; transform: none; }
.dep .st .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: none; }
.dep[data-s='BOARDING'] .st .dot { background: var(--go); box-shadow: 0 0 8px var(--go); animation: blink 1.2s steps(1) infinite; }
.dep[data-s='FINAL CALL'] .st .dot { background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: blink .8s steps(1) infinite; }
.dep .no { display: none; }

.cta { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 4px;
  font: 700 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(#f0deb2, #c9a867); color: #0b0a08; box-shadow: 0 0 0 1px #f6e6bd inset, 0 8px 24px -8px rgba(230, 207, 156, .6); }
.btn.line { border: 1px solid rgba(230, 207, 156, .6); color: var(--gold); background: rgba(6, 6, 10, .4); }

/* ---------------- platform 1 ---------------- */
.platform { position: relative; padding: 40px 0 10px; }
/* the same car side-on at the platform: the gold edge hides where the frame cuts its wheels */
.gatecar { position: relative; overflow: hidden; height: calc(44px + 45.16vw + 4px); }
.carbox2 { position: absolute; left: 0; top: 44px; width: 100%; aspect-ratio: 1550 / 700; }
.carbox2 .car { width: 100%; height: 100%; }
.lamp-glow.g1 { left: 7.4%; top: 56.4%; width: 15%; }
.lamp-glow.g2 { left: 96.4%; top: 59%; width: 9%; }
.grade2 { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0%, var(--night) 44px, rgba(6, 6, 10, .3) 30%, rgba(6, 6, 10, 0) 48%); }
.edge2 { top: calc(44px + 45.16vw - 7px); z-index: 2; }
.sign { position: absolute; left: var(--g); top: 6px; z-index: 3; display: grid; gap: 4px; justify-items: start; }
.sk { display: flex; align-items: center; gap: 10px; font: 500 9px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.sk em { font-style: normal; padding: 2px 6px; border-radius: 2px; background: var(--gold); color: var(--night); font-weight: 700; letter-spacing: 0; }
.sk b { font-weight: 500; color: var(--goldDim); letter-spacing: .22em; }
.sign .flaps { --w: 20px; --h: 28px; --gap: 2px; }

.reserve { padding: 26px var(--g) 10px; }
.reserve h2 { font: 600 34px/1 var(--flap); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.pass-form { display: grid; gap: 16px; }
.pass { position: relative; background: linear-gradient(#141419, #0c0c10); border-radius: 6px; padding: 12px 12px 11px 22px;
  box-shadow: 0 0 0 1px #24242c, 0 24px 50px -24px rgba(0, 0, 0, .9); display: grid; gap: 7px; }
.pass::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 3px;
  background: radial-gradient(circle, var(--goldDim) 1.2px, transparent 1.7px) 0 0 / 3px 7px; }
.ph { display: flex; justify-content: space-between; font: 500 8.5px var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.pl { display: grid; gap: 4px; }
.k { font: 500 8.5px var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--goldDim); }
.pass .flaps { --w: calc((100vw - 32px - 34px - 9 * 2px) / 10); --h: 34px; --gap: 2px; }
.pass .flaps.fine { --w: calc((100vw - 32px - 34px - 17 * 2px) / 18); --h: 24px; }   /* phone or email: 18 narrow flaps */
.stamp { min-height: 0; }
.stamp .flaps { --h: 26px; --w: calc((100vw - 32px - 34px - 9 * 2px) / 10); }
.field { display: grid; gap: 7px; }
.field input { height: 48px; border-radius: 4px; border: 1px solid rgba(230, 207, 156, .35); background: #0d0d12; padding: 0 14px;
  font: 700 16px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field input::placeholder { color: #5d5644; text-transform: none; letter-spacing: .04em; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 207, 156, .18); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 7px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; height: 44px; padding: 0 13px; border-radius: 3px; border: 1px solid rgba(230, 207, 156, .3);
  font: 700 11px var(--mono); letter-spacing: .14em; color: rgba(241, 230, 200, .75); transition: background .15s, color .15s, border-color .15s; }
.chips input:checked + span { background: var(--gold); color: var(--night); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.print { width: 100%; height: 52px; }
.print[disabled] { cursor: default; background: none; color: var(--gold); box-shadow: 0 0 0 1px rgba(230, 207, 156, .6) inset; }   /* held: the gold has gone to the pass */
/* the correction sits on the field's own label line, in the board's small type (round 6): nothing moves when it appears */
.kr { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 12px; }
.why { font: 700 12.5px/1.25 var(--mono); font-style: normal; letter-spacing: .02em; color: #ff8a70; text-align: right; }   /* r7: legible at arm's length (was 10 px) */
.done[data-need] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* said aloud; the eye reads it at the field */
.field.need input { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(200, 67, 46, .22); }
.pass.need { animation: passNo .36s cubic-bezier(.3, .6, .3, 1); }
@keyframes passNo { 0%, 100% { transform: none; } 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } 82% { transform: translateX(-2px); } }
.stamp.held { animation: stampIn .5s cubic-bezier(.2, 1.5, .4, 1); transform-origin: 0 50%; }
@keyframes stampIn { 0% { transform: scale(1.12); } 100% { transform: none; } }
.unhold { background: none; border: 0; cursor: pointer; justify-self: start; min-height: 44px; min-width: 96px; margin-top: -12px; padding: 0 2px; font: 500 10px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(241, 230, 200, .7); text-decoration: underline; text-decoration-color: rgba(230, 207, 156, .45); text-underline-offset: 6px; text-align: left; }
.dock { transition: transform .3s ease, opacity .3s ease; }
.dock.away { transform: translateY(100%); opacity: 0; pointer-events: none; }   /* the form has the screen while it is being filled */
@media (prefers-reduced-motion: reduce) { .pass.need, .stamp.held { animation: none; } .dock { transition: none; } }
.done { font: 500 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--gold); min-height: 1.6em;
  scroll-margin-bottom: calc(84px + env(safe-area-inset-bottom)); }  /* the line clears the phone's dock */
.done:empty { display: none; }

/* ---------------- final call ---------------- */
.visit { padding: 50px 0 26px; }
.board--visit { margin: 0 var(--g); padding-bottom: 14px; }
.board--visit h2 { margin: 4px 0 10px; }
.board--visit h2 .flaps { --w: calc((100vw - 32px - 20px - 6 * 4px) / 7); --h: 62px; --gap: 4px; }
.tel .flaps { --w: calc((100vw - 32px - 20px - 13 * 2px) / 14); --h: 32px; --gap: 2px; }
.city { margin: 18px var(--g) 14px; font: 500 10px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--goldDim); }
.visit-btns { display: flex; gap: 8px; margin: 0 var(--g); }
.visit-btns .btn { flex: 1; padding: 0 10px; }

/* ---------------- footer + dock ---------------- */
.foot { padding: 34px var(--g) calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid #17171d; display: grid; gap: 14px; justify-items: start; }
.foot .legal { font: 500 10.5px/1.7 var(--mono); color: rgba(241, 230, 200, .55); max-width: 62ch; }
.foot .credits { font: 500 10.5px var(--mono); color: rgba(241, 230, 200, .55); }
.foot .credits a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px;
  padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(6, 6, 10, 0), rgba(6, 6, 10, .95) 32%); }
.dock .btn { flex: 1; padding: 0 10px; }

/* ---------------- desk ---------------- */
@media (min-width: 900px) {
  :root { --g: 48px; }
  .top { padding: 22px var(--g) 18px; }
  .brand svg { width: 36px; height: 36px; }
  .wm b { font-size: 14px; } .wm i { font-size: 10px; }
  .tag { font-size: 10px; }

  .hall { grid-template-columns: minmax(600px, 50%) 1fr; grid-template-areas: 'board board' 'deps stage'; }
  .air { height: 760px; }
  .board { margin: 14px var(--g) 0; padding: 16px 22px 18px; }
  .bh { font-size: 10px; margin-bottom: 12px; }
  .bh--hall .ev { font-size: 12px; }
  .clock { --w: 20px; --h: 30px; --gap: 3px; }
  .clock .c.colon { --w: 11px; }
  .giant { grid-template-columns: repeat(14, 1fr); gap: 6px; --h: min(118px, calc((100vw - 140px) / 14 * 1.28)); }
  .store { margin-top: 14px; }
  .store svg { width: 36px; height: 36px; }
  .store .flaps { --w: 30px; --h: 42px; --gap: 4px; }

  .stage { grid-row: 2; grid-column: 1 / 3; height: 520px; margin-top: -12px; --box: 820px; --top: -50px; }
  .carbox .car { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%); mask-image: linear-gradient(90deg, transparent, #000 7%); }
  .carbox { left: auto; right: -80px; }
  .lamp-glow { width: 20%; }
  .grade { background: linear-gradient(180deg, var(--night) 0%, rgba(6, 6, 10, .4) 10%, rgba(6, 6, 10, 0) 28%),
    linear-gradient(90deg, var(--night) 0%, var(--night) 44%, rgba(6, 6, 10, .5) 48%, rgba(6, 6, 10, 0) 53%, rgba(6, 6, 10, 0) 92%, rgba(6, 6, 10, .6) 100%),
    linear-gradient(200deg, rgba(40, 60, 130, .18), rgba(0, 0, 0, 0) 60%); }
  .floor { top: calc(var(--top) + var(--box) * .75 * var(--wl)); }
  .plat { top: auto; bottom: 22px; right: var(--g); font-size: 10px; }
  .now { display: none; }

  .deps { grid-row: 2; grid-column: 1; padding: 36px 0 0 var(--g); align-self: start; }
  .dtitle { display: none; }
  .dh { display: grid; grid-template-columns: 220px 290px 1fr; font: 500 9.5px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--goldDim); margin-bottom: 12px; }
  .rows { gap: 8px; }
  .dep { grid-template-columns: 220px 290px 1fr; grid-template-areas: 'dest gate st' 'dest gate unit'; row-gap: 0; padding: 0; background: none; box-shadow: none; border-radius: 3px; align-items: center; }
  .dep[aria-pressed='true'] { box-shadow: none; }
  .dep[aria-pressed='true'] .dest .c, .dep[aria-pressed='true'] .gate .c { box-shadow: 0 6px 18px -8px rgba(230, 207, 156, .5); }
  .dep .dest { --w: 23px; --h: 36px; --gap: 3px; }
  .dep .gate { --w: 24px; --h: 36px; --gap: 3px; }
  .dep .st { justify-self: start; align-items: flex-start; align-self: end; }
  .dep .unit { align-self: start; font-size: 9.5px; margin-top: 4px; }
  .dep:hover .gate .c { color: #fff1cf; }
  .cta { display: flex; gap: 12px; margin-top: 34px; }
  .cta .btn { height: 54px; padding: 0 26px; font-size: 12px; }

  .platform { display: grid; grid-template-columns: 1fr minmax(420px, 36%); align-items: center; gap: 56px; padding: 24px var(--g) 30px; }
  .gatecar { border-radius: 4px; width: 100%; max-width: 700px; justify-self: end; height: auto; aspect-ratio: 1550 / 700; }
  .carbox2 { top: 0; }
  .edge2 { top: calc(100% - 9px); }
  .grade2 { background: linear-gradient(180deg, var(--night) 0%, rgba(6, 6, 10, .35) 22%, rgba(6, 6, 10, 0) 45%), linear-gradient(90deg, rgba(6, 6, 10, .7), rgba(6, 6, 10, 0) 18%, rgba(6, 6, 10, 0) 82%, rgba(6, 6, 10, .7)); }
  .sign { left: 22px; top: 18px; }
  .sign .flaps { --w: 26px; --h: 36px; --gap: 3px; }
  .reserve { padding: 0; }
  .reserve h2 { font-size: 46px; }
  .pass .flaps { --w: 30px; --h: 40px; --gap: 3px; }
  .stamp .flaps { --w: 30px; --h: 30px; }
  .pass .flaps.fine { --w: 16px; --h: 30px; --gap: 2.5px; }

  .visit { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'board city' 'board btns'; align-items: end; column-gap: 48px; padding: 90px var(--g) 60px; }
  .board--visit { grid-area: board; margin: 0; padding: 16px 22px 20px; }
  .board--visit h2 .flaps { --w: 76px; --h: 100px; --gap: 6px; }
  .tel .flaps { --w: 36px; --h: 50px; --gap: 3px; }
  .city { grid-area: city; margin: 0 0 18px; font-size: 11px; }
  .visit-btns { grid-area: btns; margin: 0; align-self: start; }
  .visit-btns .btn { flex: none; height: 54px; padding: 0 26px; }

  .foot { padding: 40px var(--g) 50px; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; }
  .foot .legal, .foot .credits { grid-column: 2; }
  .foot .brand--foot { grid-row: 1 / 3; }
  .foot .back { grid-column: 3; grid-row: 1 / 3; }
  .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lamp-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .dep .st, .dep .unit { opacity: 1; transform: none; transition: none; }
  .dot, .lamp--red { animation: none; }
  .air { opacity: 1; }
}
.clock .c.colon.tick { animation: blink 1s steps(1) infinite; }

/* ---------------- desk, round 8: the screens below the board are set for a desk ----------------
   All of it is behind (min-width: 900px): a phone never reads a line of this. Motion stays transform / opacity. */
@media (min-width: 900px) {
  /* PLATFORM 1: the car stands the width of the left column on its gold edge, and the pass is the platform's own
     departure board under it, spelling the form on the right as it is filled */
  .platform { container-type: inline-size; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 56px; padding: 40px var(--g) 50px;
    --c1: calc((100cqw - 56px) * .6); --c2: calc((100cqw - 56px) * .4);
    --fw: calc((var(--c1) - 46px - 28px) / 20 - 3px); --fh: calc(var(--fw) * 1.36); --passh: calc(130px + 3 * var(--fh)); }
  .gatecar { max-width: none; justify-self: stretch; margin-bottom: calc(var(--passh) + 18px); }
  .grade2 { background: linear-gradient(180deg, rgba(6, 6, 10, .7) 0%, rgba(6, 6, 10, .22) 24%, rgba(6, 6, 10, 0) 46%), linear-gradient(90deg, rgba(6, 6, 10, .45), rgba(6, 6, 10, 0) 14%, rgba(6, 6, 10, 0) 88%, rgba(6, 6, 10, .45)); }
  .sign { left: 26px; top: 22px; }
  .sign .flaps { --w: calc(var(--fw) * .9); --h: calc(var(--fh) * .9); }
  .pass { position: absolute; left: var(--g); top: calc(40px + var(--c1) * .4516 + 18px); width: var(--c1); height: var(--passh);
    padding: 16px 18px 16px 28px; grid-template-columns: auto auto; justify-content: space-between; align-content: start; gap: 12px 28px; }
  .pass .ph { grid-column: 1 / -1; height: 12px; line-height: 12px; font-size: 9.5px; }
  .pass .pl { grid-template-rows: 12px auto; }
  .pass .k { line-height: 12px; font-size: 9.5px; }
  .pass .pl:nth-child(2) { grid-area: 2 / 1; } .pass .pl:nth-child(3) { grid-area: 2 / 2; }
  .pass .pl:nth-child(4) { grid-area: 3 / 1; } .pass .stamp { grid-area: 3 / 2; }
  .pass .pl:nth-child(5) { grid-area: 4 / 1 / 5 / -1; }
  .pass .flaps, .stamp .flaps, .pass .flaps.fine { --w: var(--fw); --h: var(--fh); --gap: 3px; }
  .reserve h2 { font-size: calc(var(--c2) / 7.9); margin-bottom: 26px; }   /* never nowrap: the fallback face is wider until the flap face loads */
  .pass-form { gap: 20px; }
  .field input { height: 56px; }
  .chips span { height: 48px; padding: 0 16px; font-size: 12px; }
  .print { height: 58px; font-size: 13px; }
  .done { font-size: 12.5px; }

  /* FINAL CALL: the closing board is as wide as the opening one */
  .visit { grid-template-columns: 1fr auto; grid-template-areas: 'board board' 'city btns'; align-items: center; gap: 26px 48px; padding: 80px var(--g) 70px; }
  .board--visit { padding: 16px 22px 22px; }
  .board--visit h2 { margin: 6px 0 8px; }
  .board--visit h2 .flaps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; --h: min(260px, 13.6vw); }
  .tel .flaps { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; --h: min(118px, calc((100vw - 140px) / 14 * 1.28)); }
  .board--visit h2 .c, .tel .c { width: auto; }
  .city { margin: 0; font-size: 12px; }
  .visit-btns { align-self: center; gap: 12px; }
}
@media (min-width: 1700px) {
  .field input { height: 64px; font-size: 18px; }
  .chips span { height: 54px; padding: 0 20px; font-size: 13px; }
  .chips { gap: 10px; }
  .pass-form { gap: 26px; }
  .print { height: 66px; font-size: 14px; }
  .k { font-size: 10px; }
  .visit-btns .btn, .cta .btn { height: 60px; padding: 0 30px; font-size: 13px; }
}

/* hover and focus, for a mouse at a desk: the gold lights up and lifts, an outline button fills with gold.
   Only transform and opacity move; colours switch at once, the way a lamp does. */
@media (hover: hover) and (min-width: 900px) {
  .btn { position: relative; isolation: isolate; transition: transform .16s cubic-bezier(.2, .8, .2, 1); }
  .btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
  .btn.gold::before { background: linear-gradient(#fffaea, #ecd193); box-shadow: 0 0 0 1px #fff3d2 inset, 0 12px 30px -8px rgba(230, 207, 156, .85); }
  .btn.line::before { inset: -1px; background: linear-gradient(#f0deb2, #c9a867); }
  .btn:not([disabled]):hover, .btn:not([disabled]):focus-visible { transform: translateY(-2px); }
  .btn:not([disabled]):hover::before, .btn:not([disabled]):focus-visible::before { opacity: 1; }
  .btn.line:hover, .btn.line:focus-visible { color: #0b0a08; }
  .btn:not([disabled]):active { transform: translateY(0) scale(.98); }
  /* a choice lifts and takes a gold rim */
  .chips span { position: relative; transition: transform .16s cubic-bezier(.2, .8, .2, 1), background .15s, color .15s, border-color .15s; }
  .chips span::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--gold); box-shadow: 0 0 14px -4px rgba(230, 207, 156, .7); opacity: 0; pointer-events: none; transition: opacity .16s ease; }
  .chips label:hover span { transform: translateY(-2px); }
  .chips label:hover span::after { opacity: 1; }
  .chips label:hover input:not(:checked) + span { color: var(--ink); }
  .field input:hover { border-color: rgba(230, 207, 156, .7); }
  .dep:focus-visible .gate .c { color: #fff1cf; }
  .dep .st { transition: opacity .4s ease, transform .4s ease; }
  .dep.in:hover .st, .dep.in:focus-visible .st { transform: translateX(6px); }
  .unhold:hover, .unhold:focus-visible { color: var(--gold); text-decoration-color: var(--gold); }
  .top .brand svg { transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
  .top .brand:hover svg, .top .brand:focus-visible svg { transform: translateY(-3px); }
  .foot .credits a:hover, .foot .credits a:focus-visible { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .btn, .btn::before, .chips span, .chips span::after, .dep .st, .top .brand svg { transition: none; }
}
