/* Dino Carnage — dinocarnage.com
 *
 * Hand-written, no framework. Three faces, all hosted here:
 *   DC Screen  — the rig's three-by-five screen letters (site/tools/pixelfont.py)
 *   IBM Plex Sans / Mono — ZenGen's corporate voice, as in the game's menus (OFL)
 * DC Screen is drawn on a 125-unit pixel in a 1000-unit em, so at a font size
 * that is a multiple of 8px each letter pixel lands on whole screen pixels.
 */

@font-face { font-family: "DC Screen"; src: url("/assets/fonts/dc-screen.0ed77be598.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/plex-sans-400.3ec508eee3.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/plex-sans-600.a1a73d1c7b.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-400.ddc4d2bc90.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0d0a08;        /* the marks' outline black */
  --ink-2: #15100d;
  --ink-3: #201915;
  --line: #3a2e26;
  --cream: #f4efe2;      /* DINO */
  --cream-dim: #c9bfad;
  --muted: #a39784;
  --red: #d92433;        /* CARNAGE */
  --red-hi: #ef3a49;
  --amber: #f2a93b;      /* the drawings' callouts, the rig's trim */
  --discord: #5865f2;
  --gutter: 16px;
  --max: 1200px;
  --px: "DC Screen", "Plex Mono", ui-monospace, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
strong { font-weight: 600; color: var(--cream); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 8px 12px; font-weight: 600;
}
.skip:focus { top: 8px; }

/* The pixel face: sizes in whole multiples of 8px. */
.px { font-family: var(--px); font-weight: 400; text-transform: uppercase; line-height: 1.25; letter-spacing: 0; -webkit-font-smoothing: none; font-smooth: never; }
.px-small { font-family: var(--px); font-size: 16px; text-transform: uppercase; -webkit-font-smoothing: none; }
.pixelated, .wordmark img, .bar-mark img, .roles img, .foot-logo, .memo-co img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  --b: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 400 16px/1 var(--px); text-transform: uppercase; text-decoration: none;
  color: var(--cream); background: var(--b);
  border: 0; box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
  -webkit-font-smoothing: none;
}
.btn:hover { color: var(--cream); background: var(--red-hi); transform: translate(-1px, -1px); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--ink), 1px 1px 0 2px var(--ink); }
.btn-discord { --b: var(--discord); }
.btn-discord:hover { background: #6d78f5; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 24px; }

/* ---------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  background: linear-gradient(var(--ink), rgba(13, 10, 8, 0));
  transition: background .25s ease, box-shadow .25s ease;
}
.bar.solid { background: rgba(13, 10, 8, .94); box-shadow: 0 1px 0 var(--line); }
.bar-mark { display: block; flex: none; }
.bar-nav { display: flex; gap: 18px; margin-right: auto; }
.bar-nav a { font: 16px/1 var(--px); text-transform: uppercase; color: var(--cream-dim); text-decoration: none; padding: 8px 0; -webkit-font-smoothing: none; }
.bar-nav a:hover { color: var(--cream); }
@media (max-width: 899.98px) {
  .bar-nav { display: none; }
  .bar .btn { margin-left: auto; }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100vh, 980px);
  display: grid; align-items: end;
  padding: 120px var(--gutter) 64px;
  overflow: hidden;
}
@supports (min-height: 100svh) { .hero { min-height: min(100svh, 980px); } }
.hero-art { position: absolute; inset: 0; z-index: -2; background: #0b0908; }
.hero-art picture, .hero-art img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 45% 50%; transform-origin: 50% 55%; animation: drift 40s ease-in-out infinite alternate; }
/* The loop fades in over its poster once it is actually playing (site.js),
   so a slow connection only ever sees the still. */
.hero-video { object-fit: cover; object-position: 45% 50%; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
.hero-art::after { /* dusk falls to black under the copy */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 10, 8, .7) 0%, rgba(13, 10, 8, .35) 35%, transparent 60%),
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(13, 10, 8, .55) 100%),
    linear-gradient(to bottom, rgba(13, 10, 8, .35) 0%, transparent 25%, transparent 45%, rgba(13, 10, 8, .8) 72%, var(--ink) 100%);
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, 1%); } }

/* CCTV overlay: scanlines, corners, a REC light and the camera's clock. */
.cctv { position: absolute; inset: 0; z-index: -1; pointer-events: none; font: 16px/1 var(--px); color: var(--cream); text-transform: uppercase; -webkit-font-smoothing: none; }
.cctv::before {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .0) 0 2px, rgba(0, 0, 0, .55) 2px 3px);
}
.cctv::after { /* the tracking glitch: a torn band that slides through now and then */
  content: ""; position: absolute; left: 0; right: 0; top: 30%; height: 7%;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 226, .12) 20%, rgba(217, 36, 51, .10) 50%, rgba(244, 239, 226, .12) 80%, transparent);
  mix-blend-mode: screen; opacity: 0;
  animation: tear 9s steps(1, end) infinite;
}
@keyframes tear {
  0%, 91% { opacity: 0; transform: translate(0, 0); }
  92% { opacity: 1; transform: translate(-3%, -120%); }
  93% { opacity: .8; transform: translate(4%, 180%); height: 3%; }
  94% { opacity: 1; transform: translate(-2%, 420%); }
  95%, 100% { opacity: 0; }
}
.cctv-cam, .cctv-rec, .cctv-time { position: absolute; text-shadow: 2px 2px 0 var(--ink); opacity: .85; }
.cctv-cam { left: max(28px, calc((100vw - var(--max)) / 2)); top: 84px; }
.cctv-rec { right: max(28px, calc((100vw - var(--max)) / 2)); top: 84px; display: flex; gap: 8px; align-items: center; color: var(--red-hi); }
.cctv-rec i { width: 12px; height: 12px; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cctv-time { right: max(28px, calc((100vw - var(--max)) / 2)); bottom: 24px; }
.cctv-corner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(244, 239, 226, .55); }
.cctv-corner.tl { left: 12px; top: 72px; border-right: 0; border-bottom: 0; }
.cctv-corner.tr { right: 12px; top: 72px; border-left: 0; border-bottom: 0; }
.cctv-corner.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; }
.cctv-corner.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }

.hero-copy { width: 100%; max-width: var(--max); margin: 0 auto; }
.wordmark { margin: 0 0 20px; line-height: 0; }
.wordmark img { width: 321px; height: 33px; animation: split 7s steps(1, end) infinite; }
@media (min-width: 560px) { .wordmark img { width: 535px; height: 55px; } }
@media (min-width: 1100px) { .wordmark img { width: 642px; height: 66px; } }
@keyframes split { /* a chromatic tear across the wordmark, once in a while */
  0%, 94%, 100% { filter: none; transform: none; }
  95% { filter: drop-shadow(-4px 0 0 rgba(217, 36, 51, .9)) drop-shadow(4px 0 0 rgba(80, 200, 255, .5)); transform: translateX(3px); }
  96% { filter: drop-shadow(6px 0 0 rgba(217, 36, 51, .9)); transform: translateX(-4px) skewX(-6deg); }
  97% { filter: none; transform: translateX(1px); }
}
.hero-tag { max-width: 34ch; margin: 0 0 10px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
@media (max-width: 559.98px) { .hero-tag br { display: none; } }
.hero-sub { margin: 0 0 28px; color: var(--cream-dim); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-sub strong { color: var(--cream); }

/* The portal's status line, over the wordmark. */
.portal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--cream-dim); text-shadow: 2px 2px 0 var(--ink); -webkit-font-smoothing: none; }
.portal-dot { width: 10px; height: 10px; background: var(--red-hi); box-shadow: 0 0 10px var(--red); }
.portal-warn { color: var(--red-hi); }
@media (max-width: 559.98px) { .portal-sep { display: none; } .portal-warn { flex-basis: 100%; padding-left: 20px; } }
@media (max-width: 699.98px) { .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; } .play-tri { border-width: 14px 0 14px 23px; margin-left: 6px; } }

/* The countdown: ZenGen's own clock for when the island is out of its hands.
   site.js fills it and flips <html data-launch> to "live" at the hour; the
   build sets the starting state, so a page built after launch is right
   without script too. */
.countdown { display: inline-block; margin: 0 0 24px; padding: 14px 18px 12px; border: 2px solid rgba(217, 36, 51, .75); background: rgba(8, 4, 4, .72); box-shadow: 0 0 0 1px var(--ink), 0 0 32px rgba(217, 36, 51, .25) inset; }
.cd-label { margin: 0 0 6px; font: 16px/1 var(--px); text-transform: uppercase; color: var(--amber); -webkit-font-smoothing: none; }
.cd-clock { margin: 0 0 8px; font: 32px/1 var(--px); text-transform: uppercase; color: var(--red-hi); text-shadow: 0 0 12px rgba(239, 58, 73, .55); white-space: nowrap; -webkit-font-smoothing: none; }
.cd-n { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.cd-u { margin-left: 2px; color: var(--cream-dim); text-shadow: none; }
.cd-when { margin: 0; font-size: 15px; color: var(--cream); }
.cd-now { margin: 0; font: 32px/1.1 var(--px); text-transform: uppercase; color: var(--cream); -webkit-font-smoothing: none; }
@media (min-width: 700px) { .cd-clock, .cd-now { font-size: 48px; } }
@media (max-width: 379.98px) { .cd-clock { font-size: 24px; } }
.cd-live { display: none; }
[data-launch="live"] .cd-soon { display: none; }
[data-launch="live"] .cd-live { display: block; }
[data-launch="live"] .countdown { border-color: var(--amber); box-shadow: 0 0 0 1px var(--ink), 0 0 40px rgba(242, 169, 59, .25) inset; }
[data-launch="live"] [data-steam-big] { min-height: 64px; padding: 18px 32px; font-size: 24px; }

/* The four taglines on a hazard strip under the hero. Held still: moving
   text would need a pause control. */
.ticker { position: relative; overflow: hidden; background: #6e0d16; border-block: 2px solid var(--ink); box-shadow: 0 0 0 1px rgba(217, 36, 51, .5); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 1; background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, var(--ink) 8px 16px); }
.ticker::before { left: 0; }
.ticker::after { right: 0; }
.ticker p { margin: 0; padding: 12px 40px; font: 16px/1.5 var(--px); text-transform: uppercase; text-align: center; color: var(--cream); -webkit-font-smoothing: none; }
.ticker span { white-space: nowrap; }
@media (min-width: 700px) { .ticker p { padding: 14px 40px; font-size: 24px; } }
.ticker b { margin: 0 .6em; font-weight: 400; color: var(--amber); }
.after-hours .ticker span:nth-child(odd) { animation: hum 6s steps(1, end) infinite; }
.after-hours .ticker span:nth-of-type(3) { animation-delay: -2.5s; }
@keyframes hum { 0%, 100% { opacity: 1; } 47% { opacity: .78; } 48% { opacity: 1; } }
.soon { margin: 16px 0 0; color: var(--cream-dim); font-size: 15px; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }  /* teaser builds only */

/* ----------------------------------------------------------- sections -- */
.section { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 96px var(--gutter); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.kicker { margin: 0 0 12px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--amber); -webkit-font-smoothing: none; }
h2.px { margin: 0 0 16px; font-size: 32px; color: var(--cream); }
@media (min-width: 700px) { h2.px { font-size: 48px; } }
h3.px { margin: 0 0 12px; font-size: 24px; }
@media (min-width: 700px) { h3.px { font-size: 32px; } }
.lede { margin: 0; color: var(--cream-dim); font-size: 19px; }

/* Headings tear in once as they arrive (site.js adds .seen). */
.glitch { position: relative; }
.glitch.seen { animation: tear-in .5s steps(1, end) 1; }
@keyframes tear-in {
  0% { clip-path: inset(0 0 60% 0); transform: translateX(-6px); color: var(--red); }
  20% { clip-path: inset(40% 0 0 0); transform: translateX(5px); color: var(--cream); }
  40% { clip-path: inset(0 0 20% 0); transform: translateX(-2px); text-shadow: 3px 0 0 var(--red); }
  60%, 100% { clip-path: none; transform: none; text-shadow: none; }
}

/* A torn edge between sections: a strip of scan noise. */
.section + .section::before, .memo-wrap + .section::before {
  content: ""; display: block; height: 4px; margin: -96px 0 92px;
  background: repeating-linear-gradient(90deg, var(--red) 0 24px, transparent 24px 32px, var(--line) 32px 88px, transparent 88px 96px);
  opacity: .5;
}

/* --------------------------------------------------------------- memo -- */
.memo-wrap { padding: 96px var(--gutter) 96px; background: radial-gradient(80% 60% at 50% 0%, #1d1511, var(--ink)); }
.memo {
  position: relative; max-width: 780px; margin: 0 auto; padding: 32px 22px;
  background: #e9e2d0; color: #1b1512;
  font-family: var(--mono); font-size: 16px; line-height: 1.7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px #000;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 4px);
}
@media (min-width: 700px) { .memo { padding: 48px 56px; } }
.memo a { color: #8d1420; }
.memo strong { color: #8d1420; }
.memo-co { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 16px/1 var(--px); text-transform: uppercase; color: #1b1512; -webkit-font-smoothing: none; }
.memo-head h2.px { color: #1b1512; font-size: 24px; margin: 0 0 18px; }
@media (min-width: 700px) { .memo-head h2.px { font-size: 32px; } }
.memo-fields { margin: 0 0 24px; padding: 12px 0; border-top: 2px solid #1b1512; border-bottom: 2px solid #1b1512; }
.memo-fields div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.memo-fields dt { font-weight: 400; text-transform: uppercase; color: #5b4f45; }
.memo-fields dd { margin: 0; }
.redact { background: #1b1512; color: #1b1512; letter-spacing: -1px; user-select: none; }
.memo-body p { margin: 0 0 16px; }
.memo-steps { margin: 0 0 16px; padding-left: 1.6em; }
.memo-steps li { margin: 0 0 4px; padding-left: 4px; }
.memo-steps li::marker { font-weight: 600; color: #8d1420; }
.memo-sign { margin-top: 24px !important; }
.memo-sign em { font-style: normal; font-family: var(--px); font-size: 16px; text-transform: uppercase; color: #8d1420; -webkit-font-smoothing: none; }
.stamp {
  position: absolute; right: 18px; top: 18px; margin: 0;
  padding: 6px 10px; border: 3px solid #b01c2a; color: #b01c2a;
  font: 16px/1 var(--px); text-transform: uppercase; transform: rotate(8deg); opacity: .8;
  -webkit-font-smoothing: none;
}
@media (min-width: 700px) { .stamp { right: 40px; top: 40px; font-size: 24px; } }
.memo-foot { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 28px; padding-top: 20px; border-top: 1px dashed #8b7f70; }
.roster { margin: 0; }
.roster ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.roster li { display: grid; justify-items: center; gap: 2px; font-size: 12px; text-transform: uppercase; color: #5b4f45; }
.roster img { width: 64px; height: 64px; background: #1b1512; }
.roster figcaption { font: 16px/1.2 var(--px); text-transform: uppercase; color: #8d1420; -webkit-font-smoothing: none; }
.roster-assets figcaption { color: #1b1512; }
/* The dinosaurs: a full row of their own, tiles in a tidy grid (4 across
   on a phone, 6 from 520 px). */
.roster-dinos { flex-basis: 100%; }
.roster-dinos ul { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; }
@media (min-width: 520px) { .roster-dinos ul { grid-template-columns: repeat(6, 64px); } }

/* ---------------------------------------------------------------- rig -- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; }
.tabs button {
  appearance: none; cursor: pointer; min-height: 44px; padding: 10px 12px;
  font: 16px/1 var(--px); text-transform: uppercase; color: var(--cream-dim);
  background: var(--ink-2); border: 1px solid var(--line); border-bottom-color: transparent;
  -webkit-font-smoothing: none;
}
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.dwg { margin: 0; border: 1px solid var(--line); background: #0b0c10; }
.dwg-link { display: block; }
.dwg img { width: 100%; }
.dwg figcaption { padding: 10px 14px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); -webkit-font-smoothing: none; }
.stations { display: grid; gap: 1px; margin: 32px 0 0; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .stations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stations { grid-template-columns: repeat(4, 1fr); } }
.stations div { padding: 18px 18px 20px; background: var(--ink-2); }
.stations dt { margin-bottom: 6px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--amber); -webkit-font-smoothing: none; }
.stations dd { margin: 0; color: var(--cream-dim); font-size: 15px; line-height: 1.5; }
/* The stations grouped by where they stand in the rig, front to back. */
.zones { display: grid; gap: 24px 16px; margin: 32px 0 0; }
@media (min-width: 700px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zones .stations { margin: 0; grid-template-columns: 1fr; }
.zone-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--cream); -webkit-font-smoothing: none; }
.zone-head span { color: var(--red); }

/* ----------------------------------------------------------- features -- */
.feature { display: grid; gap: 20px; align-items: center; margin: 0 0 64px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr 1.25fr; }
  .feature:nth-of-type(even) .feature-art { order: 2; }
}
.feature-art { position: relative; border: 1px solid var(--line); background: var(--ink-2); }
.feature-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px); }
.feature-n { margin: 0 0 6px; font: 16px/1 var(--px); color: var(--red); -webkit-font-smoothing: none; }
.feature-copy p:last-child { margin: 0; color: var(--cream-dim); font-size: 18px; }
.feature-copy p:not(.feature-n):not(:last-child) { margin: 0 0 14px; color: var(--cream-dim); font-size: 18px; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; padding: 6px 0; font-size: 18px; color: var(--cream); border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); flex: none; width: 1.2em; font: 18px/1.4 var(--px); color: var(--amber); -webkit-font-smoothing: none; }
.jobs { margin: 0 0 16px; }
.jobs div { display: grid; grid-template-columns: 4.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.jobs dt { font: 16px/1.5 var(--px); text-transform: uppercase; color: var(--amber); -webkit-font-smoothing: none; }
.jobs dd { margin: 0; color: var(--cream-dim); font-size: 17px; line-height: 1.45; }
.also { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.also li { padding: 10px 14px; border: 1px solid var(--line); background: var(--ink-2); color: var(--cream-dim); font-size: 15px; }
.also li::before { content: "+ "; color: var(--amber); font-family: var(--px); }

/* ------------------------------------------------------------ gallery -- */
.shots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots a { position: relative; display: block; overflow: hidden; background: var(--ink-2); outline-offset: -2px; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease, filter .35s ease; filter: saturate(.9); }
.shots a:hover img, .shots a:focus-visible img { transform: scale(1.04); filter: saturate(1.1); }
.shots a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(244, 239, 226, .08); pointer-events: none; }
.shot-big { grid-column: span 2; }
@media (min-width: 1000px) { .shot-big { grid-row: span 2; } .shot-big img, .shot-big video { height: 100%; } }
/* The recovered clips: a still until it scrolls into view, then a muted loop
   laid over it (site.js); the lightbox plays it bigger. */
.shots video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.shots video.playing { opacity: 1; }
.shot-tag { position: absolute; left: 10px; top: 8px; z-index: 1; display: flex; align-items: center; gap: 6px; font: 16px/1 var(--px); color: var(--cream); text-shadow: 2px 2px 0 var(--ink); -webkit-font-smoothing: none; }
.shot-tag::before { content: ""; width: 8px; height: 8px; background: var(--red-hi); box-shadow: 0 0 6px var(--red); }

/* ------------------------------------------------------------ trailer -- */
.player { position: relative; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; background: #000; }
.player-poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: inherit; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.player-poster:hover img { opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center; background: var(--red); box-shadow: 0 0 0 3px var(--ink), 6px 6px 0 3px var(--ink);
  transition: transform .1s ease;
}
.player-poster:hover .play { transform: scale(1.06); }
.play-tri { width: 0; height: 0; margin-left: 8px; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent var(--cream); }
.player-label { position: absolute; left: 16px; top: 14px; font: 16px/1 var(--px); color: var(--cream); text-shadow: 2px 2px 0 var(--ink); -webkit-font-smoothing: none; }
.player-alt { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
.linkish { appearance: none; padding: 6px 0; border: 0; background: none; color: var(--amber); font: 16px/1 var(--px); text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; -webkit-font-smoothing: none; }
.linkish:hover, .linkish[aria-pressed="true"] { color: var(--cream); }
.player-alt a { font: 16px/1 var(--px); text-transform: uppercase; padding: 6px 0; -webkit-font-smoothing: none; }

/* ------------------------------------------------------------ discord -- */
.comms { position: relative; isolation: isolate; overflow: hidden; padding: 112px var(--gutter); background: #000; }
.comms-art { position: absolute; inset: 0; z-index: -1; }
.comms-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.comms-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .85) 45%, rgba(0, 0, 0, .1) 100%); }
.comms-panel { max-width: var(--max); margin: 0 auto; }
.comms-panel > * { max-width: 620px; }
.comms-panel > p:not(.kicker) { color: var(--cream-dim); font-size: 18px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 28px 0 32px; padding: 0; list-style: none; }
@media (min-width: 700px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roles li { display: flex; align-items: center; gap: 10px; font: 16px/1.2 var(--px); text-transform: uppercase; color: var(--cream); -webkit-font-smoothing: none; }
.roles img { flex: none; width: 64px; height: 64px; margin: -6px 0; }
.fine { margin-top: 20px; font-size: 13px; color: var(--muted) !important; }

/* ---------------------------------------------------------------- faq -- */
.qa { max-width: 820px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 19px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 24px/1 var(--px); color: var(--amber); }
.qa details[open] summary::after { content: "-"; }
.qa details p { margin: 0 0 22px; color: var(--cream-dim); max-width: 70ch; }

/* ------------------------------------------------------------- footer -- */
.foot { padding: 64px var(--gutter) 48px; text-align: center; border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-logo { margin: 0 auto 24px; width: 321px; height: 33px; max-width: 100%; }
.foot-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 24px; }
.foot-nav a { font: 16px/1 var(--px); text-transform: uppercase; padding: 8px 0; -webkit-font-smoothing: none; }
.foot-small { margin: 8px auto 0; max-width: 60ch; color: var(--muted); font-size: 13px; }
.foot-small.px-small { color: var(--red); font-size: 16px; }

/* ----------------------------------------------------------- lightbox -- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 4, 3, .96); color: var(--cream); }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 56px 12px 16px; max-width: 100%; max-height: 100%; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: min(96vw, 1600px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; box-shadow: 0 0 0 1px var(--line); }
.lightbox video { width: min(96vw, 1280px, calc((100vh - 140px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--line); }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.lightbox figcaption { max-width: 80ch; text-align: center; color: var(--cream-dim); font-size: 15px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  font: 32px/1 var(--sans); color: var(--cream); background: rgba(13, 10, 8, .8); border: 1px solid var(--line); cursor: pointer;
}
.lb-btn:hover { background: var(--red); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------------------------------------------------------- press page -- */
.press-hero { padding: 128px var(--gutter) 48px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.press-hero h1 { margin: 0 0 16px; font-size: 32px; }
@media (min-width: 700px) { .press-hero h1 { font-size: 48px; } }
.press-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 1fr 340px; } }
.facts { margin: 0; border: 1px solid var(--line); background: var(--ink-2); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 16px/1.4 var(--px); text-transform: uppercase; color: var(--amber); -webkit-font-smoothing: none; }
.facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.prose p { max-width: 70ch; color: var(--cream-dim); }
.prose h2 { margin-top: 48px; }
.downloads { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.downloads li { border: 1px solid var(--line); background: var(--ink-2); }
.downloads a { display: block; text-decoration: none; color: var(--cream); }
.downloads a:hover { color: var(--amber); }
.downloads .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.downloads .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.downloads .thumb.contain img { object-fit: contain; padding: 16px; }
.downloads .meta { display: block; padding: 10px 12px; font-size: 14px; }
.downloads .meta b { display: block; font-weight: 600; }
.downloads .meta span { color: var(--muted); }
.note { padding: 14px 16px; border-left: 4px solid var(--amber); background: var(--ink-2); color: var(--cream-dim); }

/* ----------------------------------------------------------- 404 page -- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255, 255, 255, .03) 2px 3px), var(--ink); }
.lost h1 { font-size: 32px; margin: 0 0 16px; }
@media (min-width: 700px) { .lost h1 { font-size: 64px; } }
.lost p { color: var(--cream-dim); }

/* ======================================================== AFTER HOURS ==
 * The launch-week skin: the portal failing. Emergency red, a beacon sweep,
 * flicker, drifting fog, CRT scanlines, tearing headings, and a torch that
 * lights the dark sections where the mouse points. It all hangs off
 * body.after-hours (scripts/site_build.ps1, $AFTER_HOURS, or ?theme=calm /
 * ?theme=after-hours to look). Take the class off and the page is the plain
 * dark site. None of it carries content, and none of it sits over text at
 * more than a faint haze: the torch darkens section backgrounds and
 * pictures only, never headings, copy or buttons.
 */
:root { --tx: 50vw; --ty: 42vh; --beam: 440px; }
.fx { display: none; }
.after-hours .fx { display: block; position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.fx > div { position: absolute; inset: 0; }

/* Fog: one tileable cloud (site/tools/make_media.py), two copies drifting
   at different speeds. */
.fx-fog i {
  position: absolute; top: 0; left: 0; height: 100%; width: calc(100vw + 200vh);
  background: url("/assets/img/fog.ed3d388109.webp") repeat-x 0 0 / 200vh 100vh;
  opacity: .11; animation: fog 110s linear infinite; will-change: transform;
}
.fx-fog i + i { top: 22vh; opacity: .07; background-position: 70vh 0; animation-duration: 170s; animation-direction: reverse; }
@keyframes fog { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-200vh, 0, 0); } }

/* Emergency light: a red edge, a slow beacon sweep, and the supply dipping
   now and then. The dips are small (well under a 10% change in brightness)
   and rare: no flashing. */
.fx-alarm { background: radial-gradient(135% 105% at 50% 42%, transparent 58%, rgba(150, 8, 20, .28) 100%); animation: dip 9.5s steps(1, end) infinite; }
.fx-alarm::before {
  content: ""; position: absolute; left: 50%; top: -70vmax; width: 140vmax; height: 140vmax; margin-left: -70vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(255, 36, 48, .065) 89%, transparent 97%);
  animation: beacon 8s linear infinite;
}
@keyframes beacon { to { transform: rotate(1turn); } }
@keyframes dip { 0%, 100% { opacity: 1; } 38% { opacity: .55; } 38.6% { opacity: 1; } 40% { opacity: .7; } 40.8% { opacity: 1; } 81% { opacity: .8; } 82% { opacity: 1; } }

/* CRT scanlines, and a faint roll bar. */
.fx-scan { background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .14) 2px 3px); }
.fx-scan::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(transparent, rgba(244, 239, 226, .03), transparent); animation: roll 9s linear infinite; }
@keyframes roll { to { transform: translateY(620%); } }

/* The hero: the feed browns out now and then, red light pooling low. */
.after-hours .hero-art { animation: brownout 13s steps(1, end) infinite; }
.after-hours .hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 70% at 72% 100%, rgba(170, 10, 25, .30), transparent 70%); }
@keyframes brownout { 0%, 100% { filter: none; } 61% { filter: brightness(.55); } 61.7% { filter: none; } 63% { filter: brightness(.7) saturate(.8); } 63.5% { filter: none; } }
.after-hours .portal-dot { animation: blink 1.4s steps(1, end) infinite; }

/* Headings: a red/cyan split that holds, and a torn slice that jumps
   through every few seconds. The slices are copies (data-text) kept out of
   the accessible name with the `/ ""` alt text. */
.after-hours h2.glitch { text-shadow: 2px 0 0 rgba(217, 36, 51, .6), -2px 0 0 rgba(90, 200, 255, .2); }
.after-hours .glitch::before, .after-hours .glitch::after {
  content: attr(data-text); content: attr(data-text) / "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0; text-shadow: none;
}
.after-hours .glitch::before { color: var(--red-hi); animation: slice-a 5.5s steps(1, end) infinite; }
.after-hours .glitch::after { color: #8fdcff; animation: slice-b 7.7s steps(1, end) infinite; }
@keyframes slice-a { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .9; clip-path: inset(12% 0 58% 0); transform: translateX(-5px); } 95% { opacity: .9; clip-path: inset(62% 0 10% 0); transform: translateX(4px); } 96% { opacity: 0; } }
@keyframes slice-b { 0%, 88%, 100% { opacity: 0; } 89% { opacity: .7; clip-path: inset(40% 0 35% 0); transform: translateX(6px); } 90.5% { opacity: 0; } }
.after-hours .kicker { color: #ff6b5e; }

/* The torch. A lit section's background is a facility wall; a layer over it
   (under the content) is dark except for a beam. With a mouse (site.js adds
   body.torch) the beam follows the pointer: the layer's gradient is fixed to
   the viewport at --tx/--ty. Touch, keyboard-only and reduced motion get a
   still glow near the top of each section instead. */
.after-hours .lit { position: relative; isolation: isolate; }
.after-hours .lit::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 420px at 50% 120px, rgba(255, 208, 150, .07), rgba(4, 2, 2, .25) 60%, rgba(4, 2, 2, .62) 100%),
    repeating-linear-gradient(90deg, rgba(244, 239, 226, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(244, 239, 226, .045) 0 1px, transparent 1px 64px),
    linear-gradient(#221a16, #171110);
}
.after-hours.torch .lit::after {
  background:
    radial-gradient(circle var(--beam) at var(--tx) var(--ty), rgba(255, 214, 160, .10), rgba(255, 214, 160, .04) 30%, rgba(4, 2, 2, .1) 55%, rgba(4, 2, 2, .93) 100%) fixed,
    repeating-linear-gradient(90deg, rgba(244, 239, 226, .08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(244, 239, 226, .08) 0 1px, transparent 1px 64px),
    linear-gradient(#2e231c, #241a15);
}
/* Pictures in the dark sections dim outside the beam (never below about
   half), and light up under it, or on hover and keyboard focus. */
.after-hours.torch .lit .feature-art::before, .after-hours.torch .lit .shots a::before, .after-hours.torch .lit .dwg-link::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle var(--beam) at var(--tx) var(--ty), transparent 35%, rgba(4, 2, 2, .58) 100%) fixed;
  transition: opacity .3s ease;
}
.after-hours.torch .dwg-link { position: relative; }
.after-hours.torch .lit a:hover::before, .after-hours.torch .lit a:focus-visible::before { opacity: 0; }

@media (forced-colors: active) { .fx { display: none !important; } }
@media print { .fx, .ticker { display: none !important; } }

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-art img { transform: scale(1.02); }
  .hero-video { display: none; }
  .cd-s { display: none; }
  .fx-alarm::before, .fx-scan::after, .after-hours .glitch::before, .after-hours .glitch::after { display: none; }
}

/* Name-only teaser ($SHOW empty): the wordmark alone, in the middle of the
   screen. */
.hero:not(:has(.hero-art)) {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 16px;
}
.hero:not(:has(.hero-art)) .hero-copy {
  position: static;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  max-width: 100%;
}
.hero:not(:has(.hero-art)) .wordmark img {
  max-width: min(642px, 86vw);
  height: auto;
}
.hero:not(:has(.hero-art)) .hero-copy { justify-self: center; width: auto; }
.hero:not(:has(.hero-art)) .wordmark { display: flex; justify-content: center; margin: 0; }
