/* Starquest. The page borrows the game's own parts: the HUD's bevelled metal,
   its annunciator lamps, the broadcast blues and the pixel title. */

@font-face { font-family: "Departure Mono"; src: url(/fonts/DepartureMono-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/Barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jersey 15"; src: url(/fonts/Jersey15-Regular.woff2) format("woff2"); font-display: swap; }

:root {
  /* Broadcast blues, dark to light (the game's intro ramp) */
  --space: #03060e;
  --navy: #0b1630;
  --navy-2: #1a2f5c;
  --blue: #34548f;
  --blue-2: #6f93c8;
  --pale: #c8dcf5;
  --ice: #9fe1ff;
  --text: #e8f4ff;
  --dim: #9fb2cc;
  /* Metal, sampled from the ChatGPT interface art (public/img/ui/): outline, the rim and its
     light and dark bevels, the flat face, and its shade. */
  --m-out: #020407;
  --m-rim: #44546a;
  --m-hi: #5c6e86;
  --m-lo: #2c3a4b;
  --m-body: #1a2838;
  --m-shade: #101820;
  --m-recess: #070c12;
  /* Lamps */
  --amber: #ffb32e;
  --amber-hi: #ffd27a;
  --amber-lo: #c77d12;
  --amber-ink: #2a1803;
  /* Factions */
  --federation: #5a8ff5;
  --carbon: #f2a23a;
  --meridian: #3fd8c8;
  --conclave: #e6c25a;

  --display: "Departure Mono", ui-monospace, monospace;
  --body: "Barlow", system-ui, sans-serif;
  /* The column: the hero rig's outer edges (see Hero). The masthead bar and every panel
     share it. */
  --col: 962px;
  --gutter: 24px;
  --measure: 66ch;
  /* The masthead's height as the layout counts it: 10 px above the bar, and the bar. The
     bar itself sits 14 px lower (8 on phones), for air under the window's top; the gaps
     below it take that up, so the pages and their backgrounds keep their places. */
  --head: 74px;
}

* { box-sizing: border-box; }
html { background: var(--space); scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--space) url(/img/stars.png?v=32608044) repeat;
  background-size: 480px 480px;
  image-rendering: pixelated;
  color: var(--text);
  font: 400 1.1875rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { image-rendering: auto; }
.px { image-rendering: pixelated; }
a { color: var(--ice); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: 0; margin: 0 0 0.6em; }
h1 { font-size: 44px; }
h2 { font-size: 44px; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--pale); max-width: var(--measure); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--ice); color: var(--space); font-family: var(--display); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.js [data-hidden] { display: none !important; }

/* Housing: a plate in the interface art's metal: a dark outline, a bevelled rim, a dark
   inner line and a flat face, with chamfered corners. */
.housing {
  --cut: 8px;
  position: relative;
  isolation: isolate;
  background: var(--m-out);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  padding: 16px;
}
.housing::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--m-body);
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
  box-shadow: inset 2px 2px 0 var(--m-hi), inset -2px -2px 0 var(--m-lo), inset 0 0 0 6px var(--m-rim), inset 0 0 0 8px var(--m-out);
}
.recess { background: var(--m-recess); box-shadow: inset 2px 2px 0 #020407, inset -2px -2px 0 var(--m-hi); }

/* Lamps: a lit annunciator is the one loud control on any screen. Lamp and button letters
   are set 10% under the size each rule gives, on a line as tall as that size, so a button
   keeps its height. Departure Mono centres its capitals in that line, so padding is equal
   above and below. */
.lamp {
  --cut: 4px;
  display: inline-block;
  padding: 11px 18px;
  font: 19.8px/calc(1em / 0.9) var(--display);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--amber-ink);
  background: var(--amber);
  box-shadow: inset 0 0 0 2px var(--m-out), inset 0 4px 0 0 var(--amber-hi), inset 0 -4px 0 0 var(--amber-lo);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.lamp:hover { color: var(--amber-ink); background: #ffc24f; }
/* A disabled lamp: amber means a control you can use, so it has none. The face is
   sunk into the metal and stippled with a 2 px checker, and the letters are dim. */
.lamp-soon, .lamp-soon:hover {
  border: 0;
  cursor: not-allowed;
  color: #7d8fa8;
  background: conic-gradient(var(--m-body) 25%, var(--m-shade) 0 50%, var(--m-body) 0 75%, var(--m-shade) 0) 0 0 / 4px 4px;
  box-shadow: inset 0 0 0 2px var(--m-out), inset 4px 4px 0 0 var(--m-recess);
}
.lamp:active { box-shadow: inset 0 0 0 2px var(--m-out), inset 0 4px 0 0 var(--amber-lo), inset 0 -2px 0 0 var(--amber-hi); }
.lamp-big { padding: 17px 26px; }

.button {
  --cut: 4px;
  display: inline-block;
  padding: 11px 18px;
  font: 19.8px/calc(1em / 0.9) var(--display);
  color: var(--pale);
  text-decoration: none;
  background: var(--m-body);
  box-shadow: inset 0 0 0 2px var(--m-out), inset 2px 4px 0 0 var(--m-hi), inset -2px -4px 0 0 var(--m-shade);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.lamp-big + .button { padding: 17px 24px; }
.button:hover { color: var(--text); background: #223040; }
/* Keys press into the metal: the bevel turns over, shadow above and light below, and the
   face drops into shade. A key snaps down when it is pressed; its light and colours fade
   back when it is let go. The video's Play and Sound keys stay down while they are on. */
.lamp, .button { transition: color 160ms ease-out, background-color 160ms ease-out; }
.lamp:active, .button:active { transition-duration: 0s; }
.button:active, .intro-play.on, .intro-sound[aria-pressed="true"] { color: var(--pale); background: var(--m-shade); box-shadow: inset 0 0 0 2px var(--m-out), inset 0 4px 0 0 var(--m-recess), inset 0 -4px 0 0 var(--m-lo); }

/* Masthead: a bar in the rig's metal (public/img/ui/masthead.webp, ChatGPT's art cut to its
   825x69 art pixels). ChatGPT drew it beside the rig, so its pixels are the rig's size, and
   the bar shows at 64/69 (about 0.8 of the rig's pixel size on the column). The end caps
   keep their shape and the plain rim and face between them stretch to the column, so one
   picture serves every width: the slices are 50 art pixels from each end, past the rim's
   corner bolts (the face is 743x37 at 40,15). --cap is the slice at the bar's scale. The logo,
   the links and the Steam lamp sit on the flat face. The logo sits 3 px low, which puts its
   capitals 2 px under the face's middle. The current page's link is lit amber on a screen
   sunk into the face, like the tow's LED sign; the screen sits behind the word, 1 px in from
   the link's top, so the word keeps its place. The bar sits at the top of the page and
   scrolls away with it: held on the screen, it lay over the rig and the screens below. */
.masthead { position: absolute; inset: 0 0 auto; z-index: 20; padding: 24px 12px 0; pointer-events: none; }
.masthead .bar {
  --bar: 64px;
  --cap: 46px;
  position: relative;
  pointer-events: auto;
  max-width: var(--col);
  height: var(--bar);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 calc(var(--cap) + 4px);
  border: 0 solid;
  border-image: url(/img/ui/masthead.webp?v=7ba05b04) 0 50 fill / 0 var(--cap) stretch;
}
.masthead-logo { display: block; line-height: 0; position: relative; top: 3px; }
.masthead-logo img { width: 202px; height: 26px; }
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { display: flex; align-items: center; font: 16.5px/1 var(--display); color: var(--pale); text-decoration: none; padding: 6px 0 3.5px; }
.nav a:hover { color: var(--amber); }
.nav a[aria-current] { position: relative; isolation: isolate; color: var(--amber); text-shadow: 0 0 6px rgb(255 179 46 / 0.45); }
.nav a[aria-current]::before { content: ""; position: absolute; z-index: -1; inset: 1px -10px 0; background: var(--m-recess); box-shadow: inset 2px 2px 0 var(--m-out), inset -2px -2px 0 var(--m-hi); }
.nav-toggle { display: none; }
/* The masthead and hero lamps are unlit: the sunk band on their top edge takes 4 px of the
   face, so their words sit 2 px under the lamp's middle, centred on the face that shows. */
.masthead-lamp { font-size: 14.85px; padding: 6.75px 12px 2.75px; }

main { display: block; }

/* Hero: the rig (public/img/ui/rig.webp, ChatGPT's art cut to its 1203x896 art pixels) is
   the interface, and its outer edges are the column: the masthead bar and every panel
   below use the same two lines. --u is screen pixels per art pixel, and every part of the
   rig sits at its measured place in the art: the black opening at 70,80 (1063x474), the
   panel's flat face at 57,690 (1089x146), the top plate's face at 419,7 (364x55).
   --col steps so the intro video stays crisp: 777 px in a 962 px rig (three device pixels
   a picture pixel on 2x screens), 1036 in 1283 on big tall screens, 518 in 642 on tablets.
   The gaps above and below the headline share the free height, from 96 to 144 px.
   The background (public/img/bg/home.webp, a separate ChatGPT picture) covers the hero
   from the top and dithers out into the page at its foot. Its side bands hold only stars,
   nebula and dust: rocks over 8 art pixels sit between x 440 and 1232 of 1672, so the
   hero is never narrower than 0.86 of its height (min-height at most 116vw), where the
   crop is x 431 to 1241. Below the desktop column the hero stacks its parts and grows too
   tall for the wide picture, so it takes portrait ones (1024x1536): home-tablet.webp, whose
   planet top (about y 300) shows above the rig on upright tablets and stays below the
   headline from 511 px, and home-phone.webp (planet top y 410) at 510 px and under, where
   the headline is bigger against the picture or wraps. Their objects sit inside x 110 to
   914 and x 240 to 784, the narrowest crops at those widths. The picture is on ::before.
   With the script, site.js holds the layer behind the whole page (.held): fixed, at least
   a screen tall, and drifting up (--drift) just fast enough that its foot reaches the
   end of the page as the page ends, so the picture fills the screen all the way down and
   its fade is never seen. */
.hero {
  --u: calc(var(--col) / 1203);
  --fp: 5px;
  --video: 777px;
  --gap: clamp(96px, (100svh - var(--head) - 13 * var(--fp) - 896 * var(--u) - 48px) / 2, 144px);
  position: relative;
  min-height: min(100svh, 116vw);
  padding: calc(var(--head) + var(--gap)) 0 48px;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 224px + 2px) no-repeat, url(/img/fade.svg?v=ea1a7415) bottom / 16px 224px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 224px + 2px) no-repeat, url(/img/fade.svg?v=ea1a7415) bottom / 16px 224px repeat-x;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/img/bg/home.webp?v=0f4c9256) center top / cover no-repeat;
}
.hero-bg.held { position: fixed; height: 100lvh; -webkit-mask: none; mask: none; transform: translate3d(0, var(--drift, 0px), 0); will-change: transform; }
@media (max-width: 1009px) { .hero-bg::before { background-image: url(/img/bg/home-tablet.webp?v=8e2a63ee); } }
@media (max-width: 510px) { .hero-bg::before { background-image: url(/img/bg/home-phone.webp?v=dbd7e3bf); } }
/* Wide screens (16:9 and wider, from 1922 px, where the hero is never taller than the
   picture at the screen's width) scale the picture by its width, which would sink the
   planet behind the rig. As at tablet widths, the picture is set so the planet's top
   (y 225 of 941, 13.457vw) falls 24 px under the headline, never moving down, and never
   rising so far that its foot (100%, the bottom-aligned place) leaves a strip uncovered:
   the held layer is a screen tall, and near 16:9 there is little to spare. */
@media (min-width: 1922px) and (min-aspect-ratio: 16/9) {
  .hero-bg::before {
    background-color: #0d0404;
    background-size: 100% auto;
    background-position: center max(100%, min(0px, var(--head) + var(--gap) + 13 * var(--fp) + 24px - 13.457vw));
  }
}
/* At tablet widths the rig sits a known way down (masthead, gaps, headline), so the tablet
   picture scales with the width and is set so its planet's top (y 317 of 1536, 30.957vw)
   falls 24 px under the headline: the cap shows above the rig in every window shape. The
   picture never moves down, so its top never leaves a gap; any strip it leaves at the
   foot, inside the fade, takes its bottom colour. Narrower windows on their side (phones)
   are short enough for the same rule; narrower upright ones keep the cover. */
@media (min-width: 674px) and (max-width: 1009px), (min-width: 560px) and (min-aspect-ratio: 1/1) and (max-width: 673px) {
  .hero-bg::before {
    background-color: #030305;
    background-size: 100% auto;
    background-position: center min(0px, var(--head) + var(--gap) + 13 * var(--fp) + 24px - 30.957vw);
  }
}
.hero-title { position: relative; margin: 0 24px var(--gap); }
/* Pixel headlines wear the pixel title's colours: near-white, three blue rows at the foot
   of the letters, and the dark shadow one pixel down and right. Jersey 15 is drawn on a
   15 pixel em, so --fp, screen pixels a font pixel, keeps it whole. A 13 row line lifts
   the letters one row: caps on rows 3 to 10, blues on rows 8, 9 and 10 and below. */
.pixel-title {
  --fp: 4px;
  text-align: center;
  font: 400 calc(var(--fp) * 15)/calc(var(--fp) * 13) "Jersey 15", var(--display);
  color: transparent;
  background: linear-gradient(#f4fcff 0 calc(var(--fp) * 8), #c9f2fc 0 calc(var(--fp) * 9), #9de4f7 0 calc(var(--fp) * 10), #5ecff0 0) 0 0 / 100% calc(var(--fp) * 13) repeat;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(var(--fp) var(--fp) 0 #143a4e);
}
.hero .pixel-title { --fp: inherit; }
.pixel-title span { display: inline-block; }
.rig { position: relative; width: var(--col); height: calc(896 * var(--u)); margin: 0 auto; }
.rig-art { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The top plate names what is on the screen, beside a lit amber pin. */
.rig-plate {
  position: absolute;
  left: calc(419 * var(--u));
  top: calc(7 * var(--u));
  width: calc(364 * var(--u));
  height: calc(55 * var(--u));
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 2px;
  font: 16.5px/1 var(--display);
  color: var(--pale);
}
.rig-plate::before { content: ""; width: 8px; height: 8px; background: var(--amber); box-shadow: 0 0 0 2px #5a3a08; }
.rig-screen {
  position: absolute;
  left: calc(70 * var(--u));
  top: calc(80 * var(--u));
  width: calc(1063 * var(--u));
  height: calc(474 * var(--u));
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.intro-screen { line-height: 0; }
.intro-screen:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.intro video { display: block; width: var(--video); height: auto; aspect-ratio: 1036 / 412; background: var(--space); cursor: pointer; }
.intro video.px { image-rendering: pixelated; }
.intro video.on-band { cursor: ew-resize; }
.intro-controls { display: flex; gap: 8px; width: var(--video); }
.intro-controls button { font-size: 14.85px; padding: 6px 12px; border: 0; cursor: pointer; }
/* Play holds both its labels in one grid cell, so it never changes size or moves when it
   changes state. The old label fades out before the new one fades in, so the two never
   show over each other. */
.intro-play, .intro-sound { display: inline-grid; align-items: center; }
.intro-play > span { transition: opacity 120ms ease-out 80ms; }
.intro-play > span[aria-hidden="true"] { opacity: 0; transition: opacity 80ms ease-in; }
/* Play is the transport key: an amber lamp while the video waits, then latched down while it
   plays, with the pause bars lit amber. Each label is centred with its icon. Play's word and
   icon sit 1 px lower than the other buttons' words, by eye. The icons are centred on the
   capitals, which stand 8/11 em above the baseline. */
.intro-play { min-width: calc(7em / 0.9); justify-content: center; }
.intro-play.lamp { padding-top: 7px; padding-bottom: 5px; }
.intro-play > span { grid-area: 1 / 1; justify-self: center; }
.intro-play > span::before { content: ""; display: inline-block; width: 8px; height: 10px; margin-right: 10px; vertical-align: calc(4em / 11 - 5px); background: currentColor; clip-path: polygon(0 0, 25% 0, 25% 10%, 50% 10%, 50% 20%, 75% 20%, 75% 40%, 100% 40%, 100% 60%, 75% 60%, 75% 80%, 50% 80%, 50% 90%, 25% 90%, 25% 100%, 0 100%); }
.intro-play > span + span::before { background: linear-gradient(90deg, var(--amber) 3px, transparent 0 5px, var(--amber) 0); clip-path: none; }
/* Sound is on from the start, latched down with its green LED lit. Off, the key stands up
   like the others, its word dims and the LED is a dark glass bulb: a glint top left and
   shade bottom right on both, a glow round it only when lit. It lights fast and fades
   slowly. */
.intro-sound { margin-left: auto; }
.intro-sound > span { grid-area: 1 / 2; }
.intro-sound::before {
  content: "";
  grid-area: 1 / 1;
  width: 6px;
  height: 6px;
  margin: 0 10px 0 2px;
  background: linear-gradient(rgb(255 255 255 / 0.3) 0 0) 1px 1px / 2px 2px no-repeat, #2f5239;
  box-shadow: inset -1px -1px 0 rgb(0 0 0 / 0.35), 0 0 0 2px #07120b, 0 0 6px 2px rgb(77 255 106 / 0);
  transition: background-color 320ms ease-out, box-shadow 320ms ease-out;
}
.intro-sound[aria-pressed="true"]::before { background-color: #4dff6a; box-shadow: inset -1px -1px 0 rgb(0 0 0 / 0.35), 0 0 0 2px #07120b, 0 0 6px 2px rgb(77 255 106 / 0.5); transition-duration: 80ms; }
.intro-sound[aria-pressed="false"] { color: var(--dim); }
.rig-panel {
  position: absolute;
  left: calc(57 * var(--u));
  top: calc(690 * var(--u));
  width: calc(1089 * var(--u));
  height: calc(146 * var(--u));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 0 26px;
}
.pitch { font-size: 1.0625rem; line-height: 1.5; color: var(--pale); margin: 0; }
.hero-actions { display: grid; justify-items: center; gap: 10px; }
.hero-actions .lamp-big { font-size: 14.85px; padding: 12px 14px 8px; }
.status { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.875rem; color: var(--pale); }
.status li { display: inline-flex; align-items: center; gap: 10px; }
.status li::before { content: ""; width: 8px; height: 8px; background: var(--ice); }

/* Wall screen (public/img/ui/screen.webp, ChatGPT's art cut to 1431x728 art pixels): the
   black opening at 84,85 (1262x521) holds a dithered picture at two CSS pixels an art
   pixel; the name plate's face is at 428,635 (571x68). */
.screen {
  /* The art's size, its opening and its plate's face, in art pixels. */
  --w: 1431; --h: 728;
  --ox: 84; --oy: 85; --ow: 1262; --oh: 521;
  --px: 428; --py: 635; --pw: 571; --ph: 68;
  position: relative;
  display: block;
  aspect-ratio: var(--w) / var(--h);
}
.screen-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-view {
  position: absolute;
  left: calc(var(--ox) / var(--w) * 100%);
  top: calc(var(--oy) / var(--h) * 100%);
  width: calc(var(--ow) / var(--w) * 100%);
  height: calc(var(--oh) / var(--h) * 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.screen-view picture, .terminal-view picture { display: contents; }
.screen-view img { display: block; zoom: 2; image-rendering: pixelated; }
.screen-view canvas, .terminal-view canvas { display: block; image-rendering: pixelated; }
.screen-view.drawn img, .terminal-view.drawn img { display: none; }
.screen-plate {
  position: absolute;
  left: calc(var(--px) / var(--w) * 100%);
  top: calc(var(--py) / var(--h) * 100%);
  width: calc(var(--pw) / var(--w) * 100%);
  height: calc(var(--ph) / var(--h) * 100%);
  display: grid;
  place-items: center;
  padding-top: 2px;
  font: 16.5px/1 var(--display);
  color: var(--pale);
  white-space: nowrap;
}

/* Signposts: four wall screens under the hero, two by two, their outer edges on the
   column's lines. Each has its own calmer screen (public/img/ui/sign-story.webp,
   sign-factions, sign-steam and sign-devlog, 1445x789 art pixels, ChatGPT): siblings with
   the same frame, opening and plate, and their own antenna, dish or work light, vent and top
   plates (the devlog's a hazard-striped one: it is still being built). */
.signpost .screen { --w: 1445; --h: 789; --ox: 95; --oy: 190; --ow: 1255; --oh: 487; --px: 480; --py: 706; --pw: 484; --ph: 64; }
.signposts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; width: var(--col); margin: 0 auto; padding: 0 0 56px; }
.signpost { display: grid; gap: 12px; text-decoration: none; }
/* The notes sit on the home picture's rocks, so they wear a dark outline a font pixel wide. */
.signpost-note { text-align: center; font: 16.5px/1.3 var(--display); color: var(--dim); text-shadow: 1.5px 0 var(--m-out), -1.5px 0 var(--m-out), 0 1.5px var(--m-out), 0 -1.5px var(--m-out), 1.5px 1.5px var(--m-out), -1.5px 1.5px var(--m-out), 1.5px -1.5px var(--m-out), -1.5px -1.5px var(--m-out); }
.signpost:hover .screen-plate, .signpost:focus-visible .screen-plate { color: var(--ice); }
.signpost:hover .signpost-note, .signpost:focus-visible .signpost-note { color: var(--pale); }
.signpost:focus-visible { outline: none; }
.signpost:focus-visible .screen { outline: 2px solid var(--ice); outline-offset: 4px; }

/* Pages: each major page has its own ChatGPT background (public/img/bg/) behind the
   column, and a portrait version (1024x1536) for screens narrower than 9/10. The picture
   is as small as it can be while its subject (from y 90 of the wide pictures' 941, y 150
   of the portrait ones' 1536) clears the masthead by 12 px, and never narrower than the
   screen. It is never so wide that the sides cut the subject (the wide pictures' sit
   inside x 413 to 1259 of 1672, the portrait ones' inside x 240 to 784), nor so tall that
   the headline falls below 60% of a short screen. Where the screen is taller than the
   picture, its foot dithers out into the star field (the hero's fade). site.js makes the
   layer long enough and drifts it up at a tenth of the scroll (--drift), so the interface
   passes over a scene far away. */
:root { --bg-w: max(100vw, min((var(--head) + 12px) * 1672 / 90, 197.6vw, 266.7svh)); }
@media (max-aspect-ratio: 9/10) { :root { --bg-w: max(100vw, min((var(--head) + 12px) * 1024 / 150, 188.2vw, 125svh)); } }
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100lvh;
  overflow: hidden;
  background: var(--space) url(/img/stars.png?v=32608044) 0 0 / 480px 480px;
  transform: translate3d(0, var(--drift, 0px), 0);
  will-change: transform;
}
.page-bg::before {
  content: "";
  display: block;
  width: var(--bg-w);
  margin-left: calc((100% - var(--bg-w)) / 2);
  aspect-ratio: 1672 / 941;
  background: center top / 100% auto no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 224px + 2px) no-repeat, url(/img/fade.svg?v=ea1a7415) bottom / 16px 224px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 224px + 2px) no-repeat, url(/img/fade.svg?v=ea1a7415) bottom / 16px 224px repeat-x;
}
.page-bg[data-bg="story"]::before { background-image: url(/img/bg/story.webp?v=e707dfd0); }
.page-bg[data-bg="factions"]::before { background-image: url(/img/bg/factions.webp?v=e372f0af); }
.page-bg[data-bg="devlog"]::before { background-image: url(/img/bg/devlog.webp?v=25455961); }
.page-bg[data-bg="early-access"]::before { background-image: url(/img/bg/early-access.webp?v=6e44c0a5); }
.page-bg ~ main, .page-bg ~ .foot { position: relative; z-index: 1; }
@media (max-aspect-ratio: 9/10) {
  .page-bg::before { aspect-ratio: 1024 / 1536; }
  .page-bg[data-bg="story"]::before { background-image: url(/img/bg/story-phone.webp?v=67664217); }
  .page-bg[data-bg="factions"]::before { background-image: url(/img/bg/factions-phone.webp?v=3ba9cef1); }
  .page-bg[data-bg="devlog"]::before { background-image: url(/img/bg/devlog-phone.webp?v=38d51943); }
  .page-bg[data-bg="early-access"]::before { background-image: url(/img/bg/early-access-phone.webp?v=82f0e3fe); }
}
/* Each page opens on its scene: the background's subject sits in the top third (above
   y 350 of the wide pictures' 941 in the headline's middle band), so the headline starts
   just below it, at 40% of the picture's height. The portrait pictures' subjects end by
   y 448 of 1536, so there it starts at 32% of the picture's height. */
.page-head { width: var(--col); margin: 0 auto; padding: max(var(--head) + 96px, var(--bg-w) * 0.225) 0 var(--gap-page); }
@media (max-aspect-ratio: 9/10) { .page-head { padding-top: max(var(--head) + 64px, var(--bg-w) * 0.48); } }
.page-head h1 { margin: 0; }
.page-head .lede { max-width: none; margin: 40px 0 0; padding: 30px 48px 28px; text-align: center; text-wrap: balance; }
.page-body { width: var(--col); margin: 0 auto; padding-bottom: 112px; }
.page-head .kicker { margin: 0 0 24px; text-align: center; }
.page-head .byline { justify-content: center; margin: 32px 0 0; }
/* Coming soon (early access): a tug towing an LED sign (public/img/ui/coming-soon.webp,
   ChatGPT's art cut to 852x116), drawn at the footer's scale, one CSS pixel an art pixel on
   the 962 px column. The sign's window is at 41,28 (429x57). With motion, site.js flies it
   in from a screen's width to the left. */
.tow { position: relative; width: calc(852 / 962 * 100%); aspect-ratio: 852 / 116; margin: 40px auto 0; }
.tow-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tow-sign { position: absolute; left: calc(41 / 852 * 100%); top: calc(28 / 116 * 100%); width: calc(429 / 852 * 100%); height: calc(57 / 116 * 100%); margin: 0; display: grid; place-items: center; overflow: hidden; font: 22px/1 var(--display); color: var(--amber); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .js .tow { translate: -100vw; } }
/* Long text reads in a column of about 68 characters in the middle of its plate. */
.prose.housing { padding: 56px max(56px, (100% - 68ch) / 2) 36px; }
.post-list.housing { padding: 12px 40px; border-top: 0; }
.post-list.housing .post-row { border-bottom-color: var(--m-lo); }
.post-list.housing li:last-child .post-row { border-bottom: 0; }
.lost.housing { min-height: 0; padding: 48px 56px 36px; text-align: center; }
.lost .lede { margin: 0 auto 1.4em; }
.page-next { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; width: var(--col); margin: 0 auto; padding: 128px 0 72px; font: 22px/1.3 var(--display); }
:root { --gap-page: clamp(72px, 10svh, 128px); }

/* Story: one chapter a wall screen, its title on the screen's plate and its words on a
   plate below, both on the column's lines. */
.chapters { display: grid; gap: 120px; width: var(--col); margin: 0 auto; }
.chapter { display: grid; gap: 16px; }
.chapter .screen-plate h2 { margin: 0; font: 22px/1 var(--display); color: var(--pale); }
.chapter-text { columns: 2; column-gap: 48px; padding: 36px 44px 30px; }
.chapter-text p { color: var(--pale); }

/* Factions: one dossier a faction, its terminal beside its plate, alternating sides. */
.dossiers { display: grid; gap: 96px; width: var(--col); margin: 0 auto; }
.dossier { --t: 330px; display: grid; grid-template-columns: var(--t) minmax(0, 1fr); gap: 24px; }
.dossier:nth-child(even) { grid-template-columns: minmax(0, 1fr) var(--t); }
.dossier:nth-child(even) .terminal { order: 2; }
.terminal { position: relative; align-self: center; justify-self: center; }
.terminal-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.terminal-view { position: absolute; display: grid; place-items: center; overflow: hidden; }
.terminal-view img { display: block; zoom: 2; image-rendering: pixelated; }
.terminal-plate { position: absolute; margin: 0; display: grid; place-items: center; padding-top: 2px; font: 22px/1 var(--display); color: var(--c); }
.dossier-text { display: grid; align-content: center; gap: 28px; padding: 40px 44px; }
.dossier-text p { margin: 0; color: var(--pale); }
.dossier .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 40px; min-width: 0; }
.dossier .facts dt { font-size: 16.5px; color: var(--c); }
.dossier .facts dd { font-size: 1.0625rem; }
.dossier .quote { margin: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c); }
.dossier .quote blockquote { margin: 0; }
.dossier .quote p { font-size: 1.3125rem; line-height: 1.45; font-style: italic; color: var(--text); text-wrap: balance; }
.dossier .quote figcaption { margin-top: 10px; font: 16.5px/1.3 var(--display); color: var(--c); }

/* Scenes: a fixed stage behind the home page. site.js dithers each section's scene in
   over the one before as the section comes up the screen, through the same 8x8 Bayer
   matrix as the hero's fade, in 2 px cells. The veil keeps text readable on the art. */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--space); }
.scene { position: absolute; inset: 0; background: center / cover no-repeat; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
.stage::after { content: ""; position: absolute; inset: 0; background: rgb(3 6 14 / 0.5); }
.scene[data-name="mining"] { background-image: url(/img/scenes/mining.webp?v=35e99c50); }
.scene[data-name="crossing"] { background-image: url(/img/scenes/crossing.webp?v=f0c2fa32); }
.scene[data-name="capital"] { background-image: url(/img/scenes/capital.webp?v=dfa8c7d4); }
.scene[data-name="far"] { background-image: url(/img/scenes/far.webp?v=3016eec6); }

/* Sections */
.section { position: relative; padding: 104px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head a { font: 22px/1 var(--display); }
.more { margin: 28px 0 0; font: 22px/1.4 var(--display); }

/* Game: five slots of the action bar, and the readout window. */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.slots { display: flex; gap: 10px; padding: 14px; }
.slot {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--m-recess);
}
/* The slot's frame sits over the icon, so the art fills the slot at a whole scale. */
.slot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px var(--m-out), inset 4px 4px 0 0 #020407, inset -2px -2px 0 2px var(--m-hi); }
.slot img { display: block; width: calc(32px * 3); height: calc(32px * 3); max-width: none; opacity: 0.72; transition: opacity 120ms; }
.slot-n { position: absolute; left: 8px; top: 6px; z-index: 2; font: 22px/1 var(--display); color: var(--text); text-shadow: 2px 2px 0 var(--m-out); }
.slot:hover img { opacity: 1; }
.slot[aria-selected="true"]::after { box-shadow: inset 0 0 0 2px var(--m-out), inset 0 0 0 4px var(--amber), inset 0 0 0 6px var(--m-out); }
.slot[aria-selected="true"] img { opacity: 1; }
.readout { margin-top: 12px; padding: 26px 28px 22px; min-height: 196px; }
.feature { display: grid; grid-template-columns: calc(32px * 3) minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.feature-icon { grid-row: 1 / 3; width: calc(32px * 3); height: calc(32px * 3); box-shadow: 0 0 0 2px var(--m-out), 0 0 0 4px var(--m-hi); }
.feature h3 { margin: 4px 0 8px; color: var(--amber); }
.feature p { margin: 0; color: var(--pale); }
html:not(.js) .feature + .feature { margin-top: 24px; }

/* Story */
.story-head .lede { margin: 6px 0 0; }

/* Factions */
.faction-list { display: flex; gap: 8px; margin: 36px 0 0; }
.faction-tab {
  --c: var(--pale);
  flex: 1;
  padding: 16px 12px 18px;
  border: 0;
  cursor: pointer;
  font: 22px/1 var(--display);
  color: var(--dim);
  background: var(--m-recess);
  box-shadow: inset 0 0 0 2px var(--m-out), inset 0 -6px 0 0 var(--m-out), inset 0 -8px 0 0 color-mix(in srgb, var(--c) 35%, var(--m-recess));
}
.faction-tab:hover { color: var(--text); }
.faction-tab[aria-selected="true"] { color: var(--c); background: var(--m-body); box-shadow: inset 0 0 0 2px var(--m-out), inset 2px 2px 0 2px var(--m-hi), inset 0 -6px 0 0 var(--m-out), inset 0 -8px 0 0 var(--c); }
[data-faction="federation"] { --c: var(--federation); }
[data-faction="carbon"] { --c: var(--carbon); }
[data-faction="meridian"] { --c: var(--meridian); }
[data-faction="conclave"] { --c: var(--conclave); }
.faction { margin-top: 8px; padding: 36px 40px 40px; }
.faction h3 { font-size: 33px; color: var(--c); margin-bottom: 24px; }
.faction-hud { margin: 0 0 28px; line-height: 0; }
.faction-hud img { width: calc(325px * 2); height: calc(55px * 2); }
.faction-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.faction-copy p { margin: 0; color: var(--pale); max-width: var(--measure); }
.facts { display: grid; gap: 20px; margin: 0; min-width: 12rem; }
.facts dt { font: 22px/1 var(--display); color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1.25rem; color: var(--text); }
html:not(.js) .faction { margin-top: 16px; }

/* Devlog */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--m-hi); }
.post-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  grid-template-areas: "date title" "date summary";
  gap: 6px 32px;
  padding: 26px 4px;
  border-bottom: 2px solid #142030;
  text-decoration: none;
  color: var(--text);
}
.post-row time { grid-area: date; color: var(--dim); font-size: 1rem; padding-top: 4px; }
.post-title { grid-area: title; font: 22px/1.3 var(--display); color: var(--ice); }
.post-summary { grid-area: summary; color: var(--pale); max-width: var(--measure); }
.post-row:hover .post-title { color: var(--text); }

/* Early access */
.launch-inner { display: grid; gap: 24px; justify-items: start; padding: 40px 44px; }
.launch-badge { width: calc(154px * 2); height: calc(29px * 2); }
.launch-copy h2 { font-size: 33px; margin-bottom: 0.4em; }
.launch-copy p { margin: 0 0 0.6em; color: var(--pale); max-width: 46ch; }
.launch-links { font: 22px/1.3 var(--display); }

/* Pages */
.page-top { padding-top: calc(var(--head) + 88px); }
.page-top h1 { font-size: 44px; }
.kicker { font: 22px/1 var(--display); margin: 0 0 18px; }
.kicker a { text-decoration: none; }
.byline { display: flex; align-items: center; gap: 16px; margin: 0 0 40px; color: var(--dim); font-size: 1rem; }
.byline img { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--m-out), 0 0 0 4px var(--m-hi); }
.byline-name { color: var(--text); font-weight: 600; margin-right: 8px; }
.prose { color: #d6e3f3; }
.prose .lede { color: var(--text); margin-bottom: 1.4em; }
.prose h2 { font-size: 33px; margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose p, .prose ul, .prose ol { max-width: var(--measure); }
.prose li { margin-bottom: 0.4em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 0; box-shadow: 0 0 0 2px var(--m-out), 0 0 0 4px var(--m-hi); }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 0.9em; color: var(--dim); font-size: 0.95rem; line-height: 1.5; max-width: var(--measure); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); color: var(--text); }
/* The early access roadmap: each item wears its stage's lamp, the bulbs of the intro's sound
   key: green lit for done, amber lit for in progress, dark glass for planned. */
.roadmap ul { list-style: none; padding: 0; }
.roadmap li { position: relative; padding-left: 26px; }
.roadmap li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.5lh - 4px);
  width: 8px;
  height: 8px;
  background: linear-gradient(rgb(255 255 255 / 0.3) 0 0) 1px 1px / 2px 2px no-repeat, var(--lamp);
  box-shadow: inset -1px -1px 0 rgb(0 0 0 / 0.35), 0 0 0 2px var(--m-out), 0 0 6px 2px var(--glow);
}
.roadmap.done li::before { --lamp: #4dff6a; --glow: rgb(77 255 106 / 0.45); }
.roadmap.doing li::before { --lamp: var(--amber); --glow: rgb(255 179 46 / 0.45); }
.roadmap.planned li::before { --lamp: #2a3646; --glow: transparent; }
.roadmap.planned li { color: var(--dim); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 28px; border-top: 2px solid var(--m-hi); }
.post-nav a { font: 22px/1.35 var(--display); text-decoration: none; max-width: 48%; }
.post-nav span { display: block; font: 600 0.9375rem/1.4 var(--body); color: var(--dim); margin-bottom: 6px; }
.post-nav .newer { text-align: right; margin-left: auto; }
.lost { min-height: 50vh; }

/* Footer: the studio's screen and the station's base console, side by side on the column
   (public/img/ui/studio.webp, 249x126, and footer.webp, 699x126: one ChatGPT drawing, made
   beside the rig at its pixel size, 14 px apart). --k is the rig's pixel size against the
   drawing's, the column over 962, so the footer's pixels are the rig's on every step.
   The screen's opening is 210x76 at 20,36 (bolt plates cut its lower corners) and the LED
   sign's window above it 148x18 at 50,10; site.js lights the sign and draws the logo.
   The console is a border-image: the caps keep their size (slices 48 71 36 70, past the
   readout window's ends and under it), the plain rims and the readout's middle stretch
   along, and the ends stretch only inside their vents' slots, so the console grows taller
   where its keys wrap. Its readout window is 565x22 at 66,22, its face (#1B2A3A) 628x95 at
   35,16; the keys sit on the face under the readout, at least 8 px clear of it. The browser draws the nine pieces apart and their edges let a faint line of the
   page through, so the face colour is laid under them, inside the art's chamfered outline. */
.foot { --k: 1; position: relative; display: flex; gap: calc(14px * var(--k)); width: var(--col); margin: 40px auto 0; padding: 0 0 32px; }
.studio { position: relative; flex: none; width: calc(249px * var(--k)); height: calc(126px * var(--k)); background: url(/img/ui/studio.webp?v=9010a830) 0 0 / 100% 100%; text-decoration: none; }
.studio-view { position: absolute; left: calc(20px * var(--k)); top: calc(36px * var(--k)); width: calc(210px * var(--k)); height: calc(76px * var(--k)); display: grid; place-items: center; overflow: hidden; }
.studio-view img { display: block; width: 168px; height: auto; }
.studio-view canvas, .led canvas { position: absolute; left: 0; top: 0; }
.studio-view.drawn img { display: none; }
.studio-sign { position: absolute; left: calc(50px * var(--k)); top: calc(10px * var(--k)); width: calc(148px * var(--k)); height: calc(18px * var(--k)); display: grid; place-items: center; overflow: hidden; font: 11px/1 var(--display); color: var(--amber); white-space: nowrap; }
.led.drawn { color: transparent; }
.foot-console { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: calc(126px * var(--k)); padding: calc(46px * var(--k) + 8px) calc(68px * var(--k)) calc(16px * var(--k) + 8px); border: 0 solid;
  border-image: url(/img/ui/footer.webp?v=6d808cf3) 48 71 36 70 fill / calc(48px * var(--k)) calc(71px * var(--k)) calc(36px * var(--k)) calc(70px * var(--k)) stretch;
  background: linear-gradient(#1b2a3a 0 0) calc(24px * var(--k)) calc(24px * var(--k)) / calc(100% - 48px * var(--k)) calc(100% - 48px * var(--k)) no-repeat; }
.foot-note { position: absolute; left: calc(66px * var(--k)); right: calc(68px * var(--k)); top: calc(22px * var(--k)); height: calc(22px * var(--k)); margin: 0; padding-top: calc(11px * var(--k) - 6em / 11); overflow: hidden; font: 11px/calc(12em / 11) var(--display); color: var(--blue-2); text-align: center; white-space: nowrap; }
/* On narrow phones the readout is too short for the whole line, so it keeps the notice. */
@media (max-width: 529px) { .foot-note span { display: none; } }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foot-nav .button { font-size: 14.85px; padding: 6px 12px; }
/* The studio's comms relay, the link to its TikTok, stands on the console's top rim near the
   right cap (public/img/ui/relay.webp, 150x150, drawn standing on the console in its own
   drawing, so its foot is the art's last row; 33 px in from the console's right end). Its
   LED sign's window is 89x18 at 26,115, lit like the screen's sign. The footer leaves room
   above for it, less 16 px: the dish rises into the page's own bottom padding (56 px at
   the least, under the home page's signposts). On hover or focus the sign brightens. */
.foot { margin-top: calc(150px * var(--k) - 16px); }
.relay { position: absolute; right: calc(33px * var(--k)); bottom: 100%; width: calc(150px * var(--k)); height: calc(150px * var(--k)); background: url(/img/ui/relay.webp?v=caadd223) 0 0 / 100% 100%; }
.relay-sign { position: absolute; left: calc(26px * var(--k)); top: calc(115px * var(--k)); width: calc(89px * var(--k)); height: calc(18px * var(--k)); display: grid; place-items: center; overflow: hidden; font: 11px/1 var(--display); color: var(--amber); white-space: nowrap; }
.relay-sign canvas { transition: filter 160ms ease-out; }
.relay:hover .relay-sign canvas, .relay:focus-visible .relay-sign canvas { filter: brightness(1.3); }

/* Width steps keep the pixel art on whole multiples and the intro video crisp. */
@media (min-width: 1331px) and (min-height: 1340px) {
  :root { --col: 1283px; }
  .hero { --fp: 6px; --video: 1036px; }
  .rig-plate { font-size: 22px; gap: 12px; }
  .rig-panel { gap: 44px; padding: 0 36px; }
  .pitch { font-size: 1.3125rem; }
  .hero-actions { gap: 14px; }
  .hero-actions .lamp-big { font-size: 19.8px; padding: 17px 20px 13px; }
  .status { font-size: 1.0625rem; }
  .intro-controls { gap: 10px; }
  .intro-controls button { font-size: 19.8px; padding: 9px 16px; }
  .intro-play.lamp { padding-top: 10px; padding-bottom: 8px; }
  .intro-sound::before { width: 8px; height: 8px; }
  .signposts { gap: 16px 40px; }
  .signpost .screen-plate { font-size: 16.5px; }
  .chapter .screen-plate h2 { font-size: 33px; }
  .chapter-text { padding: 44px 56px 38px; font-size: 1.3125rem; }
  .dossier { --t: 440px; }
  .dossier-text { padding: 52px 56px; }
  .pixel-title { --fp: 5px; }
  /* The footer's art is between whole scales here, so it is smoothed, like the rig. */
  .foot { --k: 1.3337; }
  .studio, .foot-console, .relay { image-rendering: auto; }
  .studio-sign, .relay-sign, .foot-note { font-size: 16.5px; }
  .foot-nav .button { font-size: 19.8px; padding: 9px 16px; }
}
@media (max-width: 1009px) {
  :root { --col: 642px; }
  .nav-toggle {
    display: grid;
    gap: 4px;
    margin-left: auto;
    padding: 12px 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 4px; background: var(--pale); }
  /* The open menu is a second plate under the bar, in the same housing. */
  .nav {
    --cut: 8px;
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    isolation: isolate;
    flex-direction: column;
    gap: 0;
    padding: 14px 30px 18px;
    background: var(--m-out);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  }
  .nav::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: var(--m-body);
    clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
    box-shadow: inset 2px 2px 0 var(--m-hi), inset -2px -2px 0 var(--m-lo), inset 0 0 0 6px var(--m-rim), inset 0 0 0 8px var(--m-out);
  }
  .masthead-lamp { display: none; }
  .masthead.open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 22px; }
  /* Here the rig's panel is too small for the pitch. The opening holds only the picture,
     the controls move onto the panel's face, and the pitch drops below the rig into a
     metal plate the width of the column. */
  .hero { --fp: 3px; --video: 518px; --gap: clamp(48px, 7svh, 80px); min-height: 0; padding-bottom: 40px; }
  .rig { height: auto; padding-top: calc(896 * var(--u) + 16px); }
  .rig-art { height: calc(896 * var(--u)); }
  .rig-plate { font-size: 11px; gap: 8px; }
  .rig-plate::before { width: 6px; height: 6px; }
  .intro-controls { position: absolute; left: calc(-13 * var(--u)); top: calc(610 * var(--u)); width: calc(1089 * var(--u)); height: calc(146 * var(--u)); align-items: center; justify-content: center; }
  .intro-sound { margin-left: 0; }
  .rig-panel { --cut: 8px; position: relative; isolation: isolate; left: 0; top: 0; width: 100%; height: auto; grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; background: var(--m-out); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
  .rig-panel::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--m-body); box-shadow: inset 2px 2px 0 var(--m-hi), inset -2px -2px 0 var(--m-lo), inset 0 0 0 6px var(--m-rim), inset 0 0 0 8px var(--m-out); clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px)); }
  .hero-actions { justify-items: stretch; gap: 12px; }
  .hero-actions .lamp-big { font-size: 19.8px; padding: 19px 12px 15px; text-align: center; }
  .status { font-size: 1rem; }
  .slot img { width: calc(32px * 2); height: calc(32px * 2); }
  .faction-list { display: grid; grid-template-columns: 1fr 1fr; }
  .faction-hud img { width: 325px; height: 55px; }
  .faction-copy { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .post-row { grid-template-columns: 1fr; grid-template-areas: "date" "title" "summary"; }
  .signposts { gap: 12px 24px; }
  .signpost .screen-plate { font-size: 11px; }
  .pixel-title { --fp: 3px; }
  .chapter .screen-plate h2 { font-size: 16.5px; }
  .chapter-text { columns: 1; }
  .dossier { --t: 250px; gap: 20px; }
  .dossier-text { padding: 28px 30px; gap: 22px; }
  .dossier .facts { grid-template-columns: 1fr; gap: 14px; }
  /* The keys need the column's width, so the studio's screen stands above the console.
     Phones keep this scale: at the column's own the screen would be too small to read. */
  .foot { --k: 0.6674; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
  .studio, .foot-console, .relay { image-rendering: auto; }
  .foot-console { flex: none; width: 100%; }
  /* The relay stands beside the screen, the two centred as a pair 16 px apart. */
  .studio { margin-right: calc(150px * var(--k) + 16px); }
  .relay { right: auto; left: calc(50% + (99px * var(--k) + 16px) / 2); }
  .studio-view img { width: 105px; }
  .tow-sign { font-size: 11px; }
}
@media (max-width: 673px) {
  :root { --col: calc(100vw - 32px); }
  .hero { --video: calc(1063 * var(--u) - 20px); }
  /* The top plate is too small for its words here; it stays a plain plate. */
  .rig-plate { display: none; }
  .intro-controls { gap: 6px; }
  .intro-controls button { padding: 6px 8px; }
  .intro-play { min-width: calc(4.8em / 0.9); }
  .signposts { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
  .screen-view img, .terminal-view img { zoom: normal; width: 100%; height: 100%; }
  .chapter .screen-plate h2 { font-size: 11px; }
  .chapter-text { padding: 26px 24px 20px; }
  .dossier, .dossier:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .dossier:nth-child(even) .terminal { order: 0; }
  .dossier .terminal-plate { font-size: 33px; }
  .dossier-text { padding: 26px 24px; }
  .prose.housing { padding: 32px 24px 16px; }
  .post-list.housing { padding: 4px 24px; }
  .lost.housing { padding: 32px 24px 20px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --head: 64px; }
  body { font-size: 1.125rem; }
  h1, h2, .page-top h1 { font-size: 33px; }
  .prose h2 { font-size: 22px; text-wrap: balance; }
  .prose h3 { font-size: 16.5px; }
  .lede { font-size: 1.1875rem; }
  .dossier .quote p { font-size: 1.1875rem; }
  .section { padding: 80px 0; }
  .masthead { padding: 16px 8px 0; }
  .masthead .bar { --bar: 56px; --cap: 41px; gap: 12px; padding: 0 calc(var(--cap) - 4px) 0 calc(var(--cap) + 4px); }
  .masthead-logo { top: 1.5px; }
  .masthead-logo img { width: 101px; height: 13px; }
  .slots { gap: 6px; padding: 10px; }
  .faction-hud img { max-width: 100%; height: auto; }
  .slot-n { font-size: 11px; left: 6px; top: 5px; }
  .readout { padding: 20px; }
  .feature { grid-template-columns: 1fr; }
  .feature-icon { display: none; }
  .faction { padding: 24px 20px; }
  .launch-inner { padding: 28px 22px; }
  .launch-badge { width: 154px; height: 29px; }
  .post-nav a { max-width: none; }
  .post-nav { flex-direction: column; }
  .post-nav .newer { margin-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
