/* papadimitropoulos.com, round 4: night, the flat floor plan as the stage. Shared CSS (tokens, type, header, hero, plan, footer).
   One palette: the page is the hospital at 3 a.m.; wayfinding blue, signal yellow and go-live green are the
   accents, warm window light is what a room gives off when it goes live. */
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/atkinson-next-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/atkinson-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #060B12;     /* page */
  --stage: #070E17;     /* behind the plan */
  --night-2: #0B1520;   /* raised: unlit rooms, tiles */
  --night-3: #0E1825;   /* panels: readout bar, front desk */
  --rule: #22344A;      /* hairlines (decorative only) */
  --wall: #5F7FA6;      /* plan walls and line drawings (decorative only) */
  --text: #EEF2F5;      /* body text, 17.5:1 on night */
  --paper: #F3EEE4;     /* the name and big type, 17:1 */
  --muted: #A3B3C2;     /* secondary text, 9.2:1 on night, 8.3:1 on night-3 */
  --link: #8EADFF;      /* links on night (wayfinding blue, lit), 9:1 */
  --blue: #1F3C88;      /* wayfinding blue: the contact slab */
  --haze: #C8D3EE;      /* secondary text on blue, 6.8:1 */
  --signal: #FFD23F;    /* the one thing to press; you-are-here; focus ring */
  --live: #3EE6A0;      /* go-live green on night, 12:1 */
  --window: #FFC56B;    /* warm window light */
  --lit-in: #FFE6AE; --lit-out: #F3AC4E; --lit-ink: #3A2404; /* a lit room, and text on it (7.5:1 at its darkest) */
  --sign: #72F5BA; --sign-plate: #0A0F15; /* an application sign, lit (14:1) */
  --white: #FFFFFF;
  --lit: 0;             /* 0..1, how much of the floor is live (set by golive.js) */

  --sans: "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;

  --t-2: clamp(2.4rem, 1.6rem + 3.2vw, 4.6rem);
  --t-3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: .875rem;
  --t-mono: .875rem;

  --gut: 20px;
  --wrapw: 1280px;
  --header: 56px;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --gut: 32px; --header: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); background: var(--night); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; color: var(--text); background: transparent;
  font: 420 var(--t-body)/1.6 var(--sans);
  font-kerning: normal; text-rendering: optimizeLegibility;
  overflow-x: hidden; position: relative;
}
/* dawn: when the whole floor is live, the page warms a little ("Following the sun sometimes") */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background:
    radial-gradient(120% 60% at 70% 118%, rgba(255, 152, 84, .2), transparent 62%),
    linear-gradient(to top, rgba(110, 60, 80, .16), transparent 55%);
  transition: opacity 4s ease;
}
html.dawn body::before { opacity: 1; }

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; text-wrap: balance; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-weight: 500; font-size: var(--t-mono); letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--wrapw); margin-inline: auto; padding-inline: var(--gut); }
.h2 { font-family: var(--display); font-size: var(--t-2); font-weight: 800; line-height: .9; letter-spacing: .005em; color: var(--paper); text-transform: uppercase; }
.lede { font-size: 1.1875rem; max-width: 46ch; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* links */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-thickness .12s, color .12s; }
a:hover { text-decoration-thickness: 2px; color: #B5CAFF; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* buttons: square sign blocks */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.2em; border: 2px solid transparent; border-radius: 0;
  font: 700 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .06s, background-color .12s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--night); }
.btn-signal:hover { background: #ffe07a; color: var(--night); }
.btn-line { background: transparent; border-color: currentColor; color: inherit; }

/* skip link */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: .6em 1em; background: var(--signal); color: var(--night); font-weight: 700; }
.skip:focus { top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(6, 11, 18, .92); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 800 1.375rem/1 var(--display); letter-spacing: .04em; flex: none; }
.mark:hover { color: var(--paper); }
.mark-glyph { width: 26px; height: 26px; fill: none; stroke: var(--wall); stroke-width: 1.6; stroke-linecap: square; }
.mark-glyph .mg-lit { fill: var(--window); stroke: none; }
.nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: .5em .7em; color: var(--text); text-decoration: none; font-weight: 650; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--window); }
.nav a:focus-visible { outline-offset: -3px; }
.nav a[href="/play/"] { border: 1px solid var(--signal); color: var(--signal); margin-left: 6px; }
.nav a[href="/play/"]:hover { background: var(--signal); color: var(--night); }
@media (max-width: 520px) {
  .top-in { gap: 10px; }
  .nav a { padding: .55em .5em; font-size: .9375rem; }
  .mark span { display: none; }
}
@media (max-width: 360px) {
  .top-in { gap: 6px; }
  .nav a { padding: .55em .3em; font-size: .8125rem; }
  .nav a[href="/play/"] { margin-left: 2px; padding-inline: .45em; }
  .mark-glyph { width: 20px; height: 20px; }
}

/* hero, round 4: the floor plan is the stage. Phones: name, then the plan edge to edge, then the board, then the
   intro. Desktop (below): the plan fills the hero and the text sits in the building's lobby. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
/* In the source the intro and links come right after the name (so on desktop, where they sit above the plan, they
   are also reached first by keyboard). On phones the wrapper dissolves and the plan is shown between the two. */
.lobby { display: contents; }
.hero-text { order: 1; padding: 18px var(--gut) 16px; container-type: inline-size; }
.plan { order: 2; }
.hero-more { order: 3; padding: 22px var(--gut) 36px; }
.badge { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.me {
  flex: none; width: 56px; height: auto; aspect-ratio: 600 / 582; border-radius: 50%; background: var(--night-2);
  box-shadow: 0 0 0 2px var(--night), 0 0 0 4px color-mix(in srgb, var(--window) calc(var(--lit) * 100%), var(--rule)),
    0 0 calc(var(--lit) * 26px) calc(var(--lit) * 2px) rgba(255, 197, 107, calc(var(--lit) * .55));
  transition: box-shadow .5s;
}
.kicker { margin: 0; font-family: var(--mono); font-weight: 500; font-size: .8125rem; line-height: 1.45; color: var(--muted); max-width: 40ch; }
h1 { font-family: var(--display); font-weight: 800; color: var(--paper); line-height: .84; letter-spacing: .004em; }
h1 .n1, h1 .n2 { display: block; width: fit-content; }
h1 .n1 { font-size: 9.6cqi; }
h1 .n2 { font-size: 14.3cqi; text-transform: uppercase; margin-top: .04em; }
/* the name is the building's sign: each letter a lit tube. They switch on in the first half second, three of them
   with a flicker, then glow steadily; at first light the glow eases off. */
h1 .n2 span { color: #FFF6E6; text-shadow: 0 0 .05em rgba(255, 240, 214, .9), 0 0 .3em rgba(255, 170, 84, .55), 0 0 .9em rgba(255, 150, 70, .25); transition: text-shadow 4s; }
html.dawn h1 .n2 span { text-shadow: 0 0 .05em rgba(255, 240, 214, .7), 0 0 .3em rgba(255, 170, 84, .3); }
@media (prefers-reduced-motion: no-preference) {
  h1 .n2 span { animation: sign-on .12s steps(1, end) both; }
  h1 .n2 span.f { animation: sign-flick .62s steps(1, end) both; }
  h1 .n2 span:nth-child(1) { animation-delay: 60ms; }
  h1 .n2 span:nth-child(2) { animation-delay: 121ms; }
  h1 .n2 span:nth-child(3) { animation-delay: 108ms; }
  h1 .n2 span:nth-child(4) { animation-delay: 132ms; }
  h1 .n2 span:nth-child(5) { animation-delay: 193ms; }
  h1 .n2 span:nth-child(6) { animation-delay: 180ms; }
  h1 .n2 span:nth-child(7) { animation-delay: 204ms; }
  h1 .n2 span:nth-child(8) { animation-delay: 265ms; }
  h1 .n2 span:nth-child(9) { animation-delay: 252ms; }
  h1 .n2 span:nth-child(10) { animation-delay: 276ms; }
  h1 .n2 span:nth-child(11) { animation-delay: 337ms; }
  h1 .n2 span:nth-child(12) { animation-delay: 324ms; }
  h1 .n2 span:nth-child(13) { animation-delay: 348ms; }
  h1 .n2 span:nth-child(14) { animation-delay: 409ms; }
  h1 .n2 span:nth-child(15) { animation-delay: 396ms; }
  h1 .n2 span:nth-child(16) { animation-delay: 420ms; }
  h1 .n2 span:nth-child(17) { animation-delay: 481ms; }
}
@keyframes sign-on { 0% { color: #1C2533; text-shadow: none; } }
@keyframes sign-flick { 0% { color: #1C2533; text-shadow: none; } 18% { color: #FFF6E6; } 30% { color: #2A3444; text-shadow: none; } 46% { color: #FFF6E6; } 56% { color: #2A3444; text-shadow: none; } 66% { color: #FFF6E6; } }
@supports not (font-size: 1cqi) { h1 .n1 { font-size: 2.4rem; } h1 .n2 { font-size: 3.4rem; } }
.hook { margin: 16px 0 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; max-width: 27ch; color: var(--text); text-wrap: balance; }
.intro { margin-top: 0; font-size: 1.125rem; line-height: 1.55; max-width: 42ch; color: var(--muted); text-wrap: pretty; }
.hero-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 650; }
.hero-links .mono { font-size: 1rem; }
.hero-links li { min-height: 28px; }
@media (max-width: 380px) { .hero-links .mono { font-size: .875rem; } .kicker { font-size: .75rem; } }

/* the plan */
.plan { position: relative; margin: 0; background: var(--stage); display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--rule); }
.plan-stage { position: relative; flex: 1 1 auto; aspect-ratio: 390 / 520; background: #050A11; }
.plan-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-wide { display: none; }
.plan canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s; touch-action: manipulation; cursor: pointer; }
.plan canvas.on { opacity: 1; }
.plan canvas:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }

/* the board under the plan: what a command center watches. Readout, a cell per room in the order they go live,
   the count by state, the go-live clock. */
.plan-bar { --bu: 1px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "board" "btn"; align-items: start; gap: 10px 14px; padding: 12px var(--gut) 14px; background: var(--night-3); border-top: 1px solid var(--rule); }
.pb-text { grid-area: text; min-width: 0; }
.pb-board { grid-area: board; min-width: 0; }
.readout { margin: 0; font-weight: 700; font-size: calc(var(--bu) * 17); line-height: 1.35; min-height: 1.35em; color: var(--white); }
.readout b { font-family: var(--display); font-weight: 800; font-size: 1.2em; letter-spacing: .01em; color: var(--sign); }
.pb-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.clock { flex: none; margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: calc(var(--bu) * 17); line-height: 1; color: var(--window); text-shadow: 0 0 10px rgba(255, 197, 107, .45); }
.cap { margin: 2px 0 0; font-size: calc(var(--bu) * 15); line-height: 1.4; color: var(--muted); }
.nobr { white-space: nowrap; }
.census { flex: 1 1 auto; display: flex; gap: calc(var(--bu) * 3); height: calc(var(--bu) * 14); min-width: 0; }
.census:empty { display: none; }
.census i { flex: 1 1 0; max-width: calc(var(--bu) * 13); min-width: 0; background: var(--night-2); box-shadow: inset 0 0 0 1px #3A516E; }
.census i.tr { background: var(--window); box-shadow: 0 0 7px rgba(255, 197, 107, .7); }
.census i.on { background: var(--c, var(--window)); box-shadow: 0 0 7px color-mix(in srgb, var(--c, var(--window)) 55%, transparent); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: calc(var(--bu) * 13); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend b { font-weight: 500; color: var(--white); min-width: 2ch; }
.legend b:empty { display: none; }
.k { display: inline-block; width: calc(var(--bu) * 11); height: calc(var(--bu) * 11); border: 1px solid #6F8FB5; }
.k-wait { background: var(--night-2); }
.k-train { border: 0; border-radius: 50%; background: var(--window); box-shadow: 0 0 8px rgba(255, 197, 107, .8); }
.k-live { border: 0; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px rgba(62, 230, 160, .8); }
.k-walk { width: calc(var(--bu) * 18); height: calc(var(--bu) * 6); border: 0; background: linear-gradient(90deg, transparent, var(--window)); border-radius: 0 3px 3px 0; }
.k-here { border-radius: 50%; background: var(--signal); border: 2px solid var(--sign-plate); box-shadow: 0 0 0 1px var(--signal); }
.plan-bar .btn { grid-area: btn; padding: .7em 1em; font-size: calc(var(--bu) * 16); }
@media (max-width: 420px) {
  .plan-bar { gap: 10px 12px; }
  .legend { gap: 4px 12px; }
}
/* the narrowest phones: a taller plan, so the rows are high enough for two-line signs */
@media (max-width: 345px) { .plan-stage { aspect-ratio: 320 / 468; } }

/* still picture: only without JavaScript (half the floor lit). With JavaScript the canvas draws the floor dark
   within a few hundred ms and the go-live starts from there. */
.pf { fill: #0B1520; }
.pr { fill: #09121C; }
.pv { fill: #0C1622; }
.pq { fill: #0F1B29; stroke: #1E3148; stroke-width: 1; }
.pq2 { fill: none; stroke: #1E3148; stroke-width: 1; }
.pc { fill: #16273B; }
.ps { stroke: rgba(142, 173, 255, .28); stroke-width: 1; stroke-dasharray: 5 6; }
.pw2 { fill: none; stroke: var(--wall); stroke-width: 1.25; stroke-linecap: square; }
.pw3 { fill: none; stroke: var(--wall); stroke-width: 1; opacity: .55; }
.po { fill: none; stroke: #88A6CC; stroke-width: 2.5; }
.pt { fill: none; stroke: var(--window); stroke-width: 2; opacity: .5; }
.pp { fill: #22364C; }
.pd { font-family: var(--sans); font-weight: 650; fill: #A9B9CA; }
.pa { font-family: var(--display); font-weight: 800; fill: #9BB0C7; }
.pb { fill: #0A121C; stroke: rgba(143, 165, 189, .22); stroke-width: 1; }
.pm { fill: none; stroke: #6F8FB5; stroke-width: 1; }
.pm2 { fill: #6F8FB5; opacity: .75; }
.pn { display: none; fill: var(--live); }
.pg { fill: none; }
.py { fill: var(--signal); stroke: var(--sign-plate); stroke-width: 2; }
.pk { fill: var(--window); }
@media (scripting: enabled) { .plan-still { visibility: hidden; } }
@media (scripting: none) {
  .pb-top { display: none; }
  .pl .pr { fill: #F2A94C; }
  .pl.l-soft .pr { fill: #F3C87E; } .pl.l-cool .pr { fill: #A9C9EA; } .pl.l-green .pr { fill: #8FD3AD; } .pl.l-rose .pr { fill: #EFA78B; }
  .pl.l-blue .pr { fill: #2C4E8C; } .pl.l-dim .pr { fill: #5E4026; } .pl.l-cmd .pr { fill: #78ABF2; } .pl.l-train .pr { fill: #F7BB58; }
  .plan-wide .pl .pg { fill: url(#whl); }
  .plan-tall .pl .pg { fill: url(#thl); }
  .pl .pq { fill: rgba(255, 255, 255, .46); stroke: rgba(58, 36, 4, .5); }
  .pl .pq2 { stroke: rgba(58, 36, 4, .5); }
  .pl .pc { fill: #C4FFE6; }
  .pl .pd { fill: #F3EEE4; }
  .pl .pa { fill: var(--sign); }
  .pl .pb { fill: #070B11; stroke: var(--window); }
  .pl .pm, .pl .pm2 { display: none; }
  .pl .pn { display: inline; }
  .pl .pp { fill: rgba(40, 26, 6, .85); }
}

/* wide screens without scripting (or a browser that cannot tell): name left, the plan in a panel on the right */
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); min-height: max(620px, calc(100svh - var(--header))); }
  .lobby { display: block; grid-column: 1; align-self: center; min-width: 0; padding-left: max(var(--gut), calc((100vw - var(--wrapw)) / 2 + var(--gut))); padding-right: 48px; }
  .hero-text { padding: 28px 0 0; }
  .hero-more { padding: 22px 0 32px; }
  .plan { grid-column: 2; border-top: 0; border-left: 1px solid var(--rule); }
  .plan-stage { aspect-ratio: auto; min-height: 500px; }
  .plan-wide { display: block; }
  .plan-tall { display: none; }
  .me { width: 72px; }
  h1 .n1 { font-size: min(10cqi, 4.2rem); }
  h1 .n2 { font-size: min(14.6cqi, 6.4rem); }
  .plan-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text btn" "board btn"; }
  .plan-bar .btn { align-self: end; }
}

/* Wide screens, the real thing: the plan fills the hero, edge to edge, and the text sits in the building's lobby
   (the top left of the plan). golive.js reads --lobby, measures .lobby and cuts the rooms round it.
   The hero is exactly one window high (header, lobby, every row of rooms and the board on the first screen), so
   everything in it is sized from the window:
   - compact (below): drawn for a 1131 x 664 window; --d is one of its pixels. The lobby is wide and low, with the
     name and hook in one column and the intro and links in a second, and takes the top half of the plan.
   - tall (windows 860 px high and more, further down): drawn for 1440 x 900; --u is one of its pixels. The lobby is
     one column, as first built.
   The floor is a window 600 px high (536 px of hero under the 64 px header): laptops with a bookmarks bar or a
   browser notice showing still get everything on the first screen. Below that the hero stays 536 px high and the
   page scrolls; --d is taken from the same 536 px so the type and the lobby stop shrinking together. */
@media (min-width: 980px) and (scripting: enabled) {
  body:has(.hero) .top .wrap { max-width: 2240px; padding-inline: 40px 30px; }
  .hero { --lobby: 1; --bar: 66px;
    --d: min(calc(100vw / 1131), calc(max(536px, 100svh - var(--header)) / 600));
    height: clamp(536px, calc(100svh - var(--header)), min(1300px, 70vw)); min-height: 0; max-width: 2240px; margin-inline: auto;
    grid-template-columns: min(calc(var(--d) * 792), calc(100% - 310px)) minmax(0, 1fr);
    grid-template-rows: minmax(max-content, calc((100% - var(--bar)) / 2 + 6px)) minmax(0, 1fr); }
  .lobby { display: grid; grid-template-columns: 59.5fr 40.5fr; align-content: start; align-self: stretch; grid-column: 1; grid-row: 1; position: relative; z-index: 2; min-width: 0; padding: 0; }
  .plan { grid-column: 1 / -1; grid-row: 1 / -1; border: 0; min-height: 0; }
  .plan-stage { min-height: 0; aspect-ratio: auto; }
  .hero-text { min-width: 0; padding: calc(var(--d) * 28) calc(var(--d) * 12) calc(var(--d) * 12) calc(var(--d) * 40); }
  .hero-more { min-width: 0; padding: calc(var(--d) * 31) calc(var(--d) * 20) calc(var(--d) * 12) calc(var(--d) * 12); }
  .badge { gap: calc(var(--d) * 12); margin-bottom: calc(var(--d) * 9); }
  .me { width: calc(var(--d) * 42); }
  .kicker { font-size: max(12px, calc(var(--d) * 12.5)); line-height: 1.35; max-width: none; }
  h1 .n1 { font-size: 8.3cqi; }
  h1 .n2 { font-size: 13.7cqi; }
  .hook { margin-top: calc(var(--d) * 11); max-width: none; font-size: max(19px, calc(var(--d) * 20)); line-height: 1.22; }
  .intro { max-width: none; font-size: max(15px, calc(var(--d) * 15.5)); line-height: 1.45; }
  .hero-links { margin-top: calc(var(--d) * 10); gap: 2px calc(var(--d) * 16); }
  .hero-links li { min-height: 0; }
  .hero-links a { font-size: max(14px, calc(var(--d) * 14.5)); }
  .hero-links .mono { font-size: max(13px, calc(var(--d) * 13.5)); }
  /* the board: one low band. Cells over a two-line legend, the clock beside them */
  .plan-bar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "text board btn"; align-items: center; gap: 6px 26px; padding: 7px 30px 8px 40px; min-height: var(--bar); }
  .plan-bar .btn { align-self: center; }
  .pb-board { display: grid; grid-template-columns: auto auto; grid-template-areas: "census clock" "legend clock"; align-items: center; gap: calc(var(--bu) * 5) calc(var(--bu) * 20); }
  .pb-top { display: contents; }
  .census { grid-area: census; height: calc(var(--bu) * 12); }
  .census i { flex: none; width: calc(var(--bu) * 9.5); }
  .clock { grid-area: clock; margin: 0; font-size: calc(var(--bu) * 21); }
  .legend { grid-area: legend; max-width: calc(var(--bu) * 300); gap: 1px 12px; font-size: calc(var(--bu) * 12.5); line-height: 1.3; }
  .cap { font-size: calc(var(--bu) * 14); }
  .readout { font-size: calc(var(--bu) * 16); }
}
/* room for the whole legend on one line */
@media (min-width: 1400px) and (scripting: enabled) {
  .pb-board { display: block; }
  .pb-top { display: flex; margin-bottom: calc(var(--bu) * 6); }
  .census { height: calc(var(--bu) * 14); }
  .census i { width: calc(var(--bu) * 12); }
  .clock { margin-left: auto; font-size: calc(var(--bu) * 20); }
  .legend { max-width: none; gap: 4px 16px; font-size: calc(var(--bu) * 13); }
  .cap { font-size: calc(var(--bu) * 15); }
  .readout { font-size: calc(var(--bu) * 17); }
  .plan-bar { gap: 8px 32px; padding-block: 8px 9px; }
}
/* tall windows: one column in the lobby, the type back to full size (hook 24 px and intro 18 px at 1440 x 900),
   and everything growing with the window up to 2240 x 1300 */
@media (min-width: 980px) and (min-height: 860px) and (scripting: enabled) {
  .hero { --u: min(calc(100vw / 1440), calc((100svh - var(--header)) / 836), 1.556px); --bar: calc(clamp(1px, var(--u), 1.4px) * 66);
    grid-template-columns: min(calc(var(--u) * 662), calc(100% - 310px)) minmax(0, 1fr); }
  .lobby { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: calc(var(--u) * 34) calc(var(--u) * 26) 0 calc(var(--u) * 46); }
  .hero-more { padding: calc(var(--u) * 12) calc(var(--u) * 26) calc(var(--u) * 20) calc(var(--u) * 46); }
  .badge { gap: calc(var(--u) * 14); margin-bottom: calc(var(--u) * 12); }
  .me { width: calc(var(--u) * 54); }
  .kicker { font-size: max(12px, calc(var(--u) * 13)); line-height: 1.45; }
  h1 .n1 { font-size: 8.2cqi; }
  h1 .n2 { font-size: 13.5cqi; }
  .hook { margin-top: calc(var(--u) * 14); font-size: max(19px, calc(var(--u) * 24)); line-height: 1.25; }
  .intro { font-size: max(15px, calc(var(--u) * 18)); line-height: 1.5; }
  .hero-links { margin-top: calc(var(--u) * 12); gap: calc(var(--u) * 4) calc(var(--u) * 20); }
  .hero-links a { font-size: max(14px, calc(var(--u) * 16)); }
  .hero-links .mono { font-size: max(13.5px, calc(var(--u) * 15)); }
  .plan-bar { --bu: clamp(1px, var(--u), 1.4px); padding-inline: calc(var(--u) * 46) 30px; }
}

/* footer */
.foot { background: var(--night); border-top: 1px solid var(--rule); color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; font-size: var(--t-small); }
.foot p { margin: 0; }
.foot a { color: var(--link); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
