/* Absent Born Labs — "Darkroom Instrument"
   Spec sheet for a machine that runs in the dark.
   Foundation: anti-slop art direction. Signature: the void is the interface. */

/* ---------- palette: dark (default) ---------- */
:root {
  --bg: #F3EFE6;
  --surface: #ECE7DB;
  --surface-2: #E4DED0;
  --hairline: #DAD3C4;
  --hairline-strong: #C7BEAB;
  --text: #12160F;
  --text-2: #4A524A;
  --muted: #6B7369;
  --signal: #A61B10;      /* signal red on paper */
  --signal-dim: #C23726;
  --struct: #9A6B22;      /* ochre */
  --cell-empty: transparent;
  --measure: 66ch;
  --rail-w: 212px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100F12;
    --surface: #171519;
    --surface-2: #1E1C20;
    --hairline: #2C282C;
    --hairline-strong: #3F3A3F;
    --text: #E9E6DB;
    --text-2: #ABA6A8;
    --muted: #7F7A7C;
    --signal: #FF4438;
    --signal-dim: #D2372A;
    --struct: #C9A24B;
  }
}
:root[data-theme="dark"] {
  --bg: #100F12;
  --surface: #171519;
  --surface-2: #1E1C20;
  --hairline: #2C282C;
  --hairline-strong: #3F3A3F;
  --text: #E9E6DB;
  --text-2: #ABA6A8;
  --muted: #7F7A7C;
  --signal: #FF4438;
  --signal-dim: #D2372A;
  --struct: #C9A24B;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums slashed-zero;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type roles ---------- */
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.mono {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums slashed-zero;
}
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin: 0; }

.label {
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- shell: fixed rail + spec-sheet main ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ---------- left rail (the chassis) ---------- */
.rail {
  border-right: 1px solid var(--hairline);
  padding: 26px 22px 26px 26px;
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 30px;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.wordmark svg { display: block; width: 26px; height: 26px; }
.wordmark .glyph-node { fill: var(--signal); }
.wordmark .glyph-void { fill: none; stroke: var(--text); stroke-width: 1.3; opacity: .5; }
.wordmark .name { font-family: "Fragment Mono", monospace; font-size: 12.5px; letter-spacing: .02em; line-height: 1.15; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav a {
  font-family: "Fragment Mono", monospace; font-size: 12.5px;
  text-decoration: none; color: var(--text-2); padding: 4px 0;
  display: flex; gap: 10px; align-items: baseline;
  transition: color .15s var(--ease);
}
.rail-nav a .ix { color: var(--struct); }
.rail-nav a:hover, .rail-nav a[aria-current="page"] { color: var(--text); }
.rail-nav a:hover .ix { color: var(--signal); }

.rail-status { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.rail-status .row {
  font-family: "Fragment Mono", monospace; font-size: 11px;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.rail-status .lamp {
  width: 6px; height: 6px; background: var(--signal); flex: none;
}
.rail-status .lamp.idle { background: var(--hairline-strong); }
.rail-build { font-family: "Fragment Mono", monospace; font-size: 10.5px; color: var(--muted); opacity: .7; }

/* ---------- main column ---------- */
.main { min-width: 0; }
.pad { padding: 0 clamp(22px, 4vw, 56px); }

/* section header: §NN — TITLE + rule */
.sec {
  border-top: 1px solid var(--hairline);
  padding-top: 18px; margin-top: 8px;
}
.sec-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
}
.sec-head .ix { font-family: "Fragment Mono", monospace; font-size: 12px; color: var(--struct); }
.sec-head .seclink {
  margin-left: auto; font-size: 11.5px; color: var(--signal-dim);
  text-decoration: none; border-bottom: 1px solid var(--hairline);
}
.sec-head .seclink:hover { border-color: var(--signal); }
.sec-head h2 { font-family: "Fragment Mono", monospace; font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 44px; }
.hero-frame { position: relative; }
.crop { position: absolute; width: 9px; height: 9px; border: 0; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--hairline-strong); }
.crop::before { width: 9px; height: 1px; top: 0; left: 0; }
.crop::after { width: 1px; height: 9px; top: 0; left: 0; }
.crop.tr { right: 0; transform: scaleX(-1); }
.crop.bl { bottom: 0; transform: scaleY(-1); }
.crop.br { right: 0; bottom: 0; transform: scale(-1, -1); }

.hero .eyebrow { font-family: "Fragment Mono", monospace; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.hero .eyebrow b { color: var(--signal-dim); font-weight: 400; }
.hero h1 {
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(3rem, 1.9rem + 6vw, 6.2rem);
  line-height: .96; letter-spacing: -.02em;
  margin: 16px 0 0; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--text-2); }
.hero .sub {
  margin: 22px 0 0; max-width: 46ch; color: var(--text-2);
  font-size: clamp(16px, 15px + .4vw, 18.5px); line-height: 1.5;
}
.hero .sub b { color: var(--text); font-weight: 600; }

.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- FIG.01 — the negative-space agent field (the signature) ---------- */
.console { position: relative; }
.console .cap {
  font-family: "Fragment Mono", monospace; font-size: 11px; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 16px;
}
.console .cap .live { color: var(--signal-dim); display: inline-flex; align-items: center; gap: 6px; }
.console .cap .live i { width: 6px; height: 6px; background: var(--signal); display: inline-block; }
.void-grid {
  display: grid; gap: 3px; padding: 12px;
  border: 1px solid var(--hairline); background: var(--surface);
  width: 232px;
}
.void-grid .cell {
  width: 100%; aspect-ratio: 1; background: var(--cell-empty);
  outline: 1px solid var(--hairline);
  transition: background .16s var(--ease);
}
.void-grid .cell.on { background: var(--signal); outline-color: var(--signal); }
.void-grid .cell.warm { background: var(--struct); outline-color: var(--struct); }
.console .readout {
  font-family: "Fragment Mono", monospace; font-size: 10.5px; color: var(--muted);
  margin-top: 8px; display: flex; justify-content: space-between;
}

/* ---------- status ticks under hero ---------- */
.specline {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 30px;
  font-family: "Fragment Mono", monospace; font-size: 12px; color: var(--muted);
}
.specline span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.specline b { color: var(--text-2); font-weight: 400; }
.specline i { width: 6px; height: 6px; background: var(--signal); }
.specline i.q { background: var(--struct); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; border: 1px solid var(--hairline); width: fit-content; }
.cta {
  font-family: "Fragment Mono", monospace; font-size: 13px; text-decoration: none;
  padding: 12px 20px; color: var(--text); display: inline-flex; align-items: center; gap: 9px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.cta + .cta { border-left: 1px solid var(--hairline); }
.cta.primary { color: var(--bg); background: var(--signal); }
.cta.primary:hover { background: var(--signal-dim); }
.cta:hover { background: var(--surface); }

/* ---------- work: hairline spec cells (no cards) ---------- */
.entries { border-top: 1px solid var(--hairline); }
.entry {
  display: grid; grid-template-columns: 3ch minmax(0,1fr); gap: 0 20px;
  border-bottom: 1px solid var(--hairline); padding: 22px 0;
}
.entry .no { font-family: "Fragment Mono", monospace; font-size: 12px; color: var(--struct); padding-top: 4px; }
.entry h3 { font-family: "Instrument Serif", serif; font-size: 27px; line-height: 1.05; letter-spacing: -.01em; }
.entry p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.5; max-width: 60ch; }
.entry .meta {
  margin-top: 12px; font-family: "Fragment Mono", monospace; font-size: 11.5px;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.entry .meta a { color: var(--signal-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.entry .meta a:hover { border-color: var(--signal); }

/* ---------- stack ---------- */
.stackline {
  font-family: "Fragment Mono", monospace; font-size: 13px; color: var(--text-2);
  line-height: 2; word-spacing: .1em;
}
.stackline .s { color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.contact h2.big { font-family: "Instrument Serif", serif; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.02em; max-width: 20ch; }
.contact .em { color: var(--text-2); font-style: italic; }
.contact .lines { display: flex; flex-direction: column; gap: 2px; font-family: "Fragment Mono", monospace; font-size: 13.5px; }
.contact .lines a { text-decoration: none; color: var(--text); display: inline-flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hairline); width: fit-content; }
.contact .lines a .k { color: var(--muted); width: 9ch; }
.contact .lines a:hover .v { color: var(--signal-dim); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--hairline); margin-top: 8px;
  padding: 22px 0 60px; display: flex; flex-wrap: wrap; gap: 6px 24px;
  font-family: "Fragment Mono", monospace; font-size: 11px; color: var(--muted);
}

/* ---------- article (writing) ---------- */
.article { max-width: 680px; padding-top: 8px; }
.article h1 { font-family: "Instrument Serif", serif; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 12px; }
.article .amETA, .article .ameta { font-family: "Fragment Mono", monospace; font-size: 12px; color: var(--muted); margin-bottom: 32px; }
.article h2 { font-family: "Instrument Serif", serif; font-size: 26px; line-height: 1.1; margin: 40px 0 12px; letter-spacing: -.01em; }
.article h3 { font-family: "Fragment Mono", monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 28px 0 10px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 20px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 600; }
.article code { font-family: "Fragment Mono", monospace; font-size: .87em; background: var(--surface); padding: 2px 6px; border: 1px solid var(--hairline); }
.article pre { background: var(--surface); border: 1px solid var(--hairline); padding: 16px 18px; overflow-x: auto; margin: 0 0 22px; }
.article pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.55; }
.callout { border-left: 2px solid var(--signal); background: var(--surface); padding: 14px 18px; margin: 0 0 22px; }
.callout p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums slashed-zero; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--hairline); }
th { font-family: "Fragment Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; }
td.num { text-align: right; }
.post-list { display: flex; flex-direction: column; }
.post-item { display: grid; grid-template-columns: 12ch minmax(0,1fr); gap: 0 22px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--hairline); padding: 20px 0; align-items: baseline; }
.post-item:first-child { border-top: 1px solid var(--hairline); }
.post-item .d { font-family: "Fragment Mono", monospace; font-size: 12px; color: var(--struct); }
.post-item h3 { font-family: "Instrument Serif", serif; font-size: 23px; line-height: 1.1; margin-bottom: 6px; letter-spacing: -.01em; }
.post-item p { margin: 0; color: var(--text-2); font-size: 15px; }
.post-item:hover h3 { color: var(--signal-dim); }

/* ---------- responsive: rail becomes a top strip ---------- */
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: 14px 22px; border-right: 0;
    border-bottom: 1px solid var(--hairline); padding: 18px 22px;
  }
  .rail-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .rail-status { margin: 0; flex-direction: row; gap: 14px; }
  .rail-build { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .void-grid .cell { transition: none; }
}

/* ================= v3 "THE DESCENT" ================= */
/* The spec sheet becomes the HUD of your descent vehicle.
   Lime is the instrument; aurora is the atmosphere. They never do each other's job. */

:root {
  --ink: #04070A;
  --rim: #FF4438;
  --sky-0: #100F12;
}

/* the world sits behind the HUD; content stays in normal flow above it */
.sky {
  position: fixed; inset: 0; z-index: -6;
  background: var(--sky-0);
}
.sky::before { /* static nebula — never animated */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 45% at 72% 16%, rgba(77, 211, 192, .05), transparent 70%),
    radial-gradient(50% 40% at 18% 68%, rgba(107, 92, 168, .06), transparent 70%),
    radial-gradient(34% 30% at 46% 42%, rgba(30, 122, 107, .05), transparent 70%);
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -5; pointer-events: none; }
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; pointer-events: none; }

/* the neighborhood */
#planet {
  position: fixed; right: -6vw; top: 8svh;
  width: clamp(240px, 30vw, 460px); height: auto;
  z-index: -5; pointer-events: none; opacity: .9;
  filter: drop-shadow(0 0 26px rgba(30, 58, 70, .5));
  will-change: transform;
}
#moon {
  position: fixed; left: 7vw; top: 30svh;
  width: clamp(30px, 3.4vw, 54px); height: auto;
  z-index: -5; pointer-events: none; opacity: .85;
  will-change: transform;
}
#sat {
  position: fixed; left: -8vw; top: 18svh;
  width: clamp(30px, 3vw, 48px); height: auto;
  z-index: -5; pointer-events: none; opacity: .8;
  will-change: transform;
}
#sat .beacon, #sat2 .beacon { animation: beacon 2.2s steps(2) infinite; }
@keyframes beacon { 50% { opacity: .15; } }
#sat2 {
  position: fixed; left: -8vw; top: 58svh;
  width: clamp(20px, 2vw, 34px); height: auto;
  z-index: -5; pointer-events: none; opacity: .55;
  will-change: transform;
}
.no-motion #planet { opacity: .5; }
.no-motion #moon, .no-motion #sat, .no-motion #sat2 { display: none; }
@media (max-width: 720px) {
  #planet { width: 220px; right: -14vw; }
  #moon { display: none; }
  #sat { width: 26px; }
  #sat2 { display: none; }
}

/* no-webgl fallback: blurred drifting curtains, transform-only, non-divisible loops */
.aurora-css { display: none; }
.no-webgl .aurora-css {
  display: block; position: fixed; inset: -20% -10%; z-index: -4; pointer-events: none;
  opacity: .5; filter: blur(52px);
  background:
    linear-gradient(112deg, transparent 32%, rgba(30,122,107,.24) 46%, rgba(77,211,192,.20) 55%, transparent 70%),
    linear-gradient(70deg, transparent 40%, rgba(107,92,168,.14) 58%, transparent 74%);
  animation: auroraDrift 23s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) skewX(-3deg); }
  to   { transform: translate3d(3%, 2%, 0) skewX(3deg); }
}

/* his ship — ink silhouette, phosphor rim light */
#ship {
  position: fixed; left: 0; top: 0; width: clamp(64px, 9vw, 130px); height: auto;
  z-index: -3; pointer-events: none; opacity: 0;
}
#ship .hull { fill: #222A35; stroke: rgba(255, 68, 56, .6); stroke-width: 1; }
#ship .fin { fill: #171D26; stroke: rgba(255, 68, 56, .4); stroke-width: .8; }
#ship .canopy { fill: rgba(255, 168, 148, .28); }
#ship .pilot { fill: var(--ink); }
#ship .pane { fill: rgba(255, 200, 180, .5); }
#ship .flame { animation: flameFlick .16s steps(2) infinite; transform-origin: 12px 27px; }
#ship .rimglow { filter: drop-shadow(0 0 2px var(--rim)) drop-shadow(0 0 14px rgba(255, 68, 56, .4)); }
@keyframes flameFlick { 50% { transform: scaleX(.72); opacity: .75; } }

/* the planet is alive: surface spins, ring flows, moonlet orbits — all perfect loops */
#planet .bands { animation: bandsDrift 34s linear infinite; }
@keyframes bandsDrift { to { transform: translateX(-472px); } }
#planet .ringback { animation: ringFlowB 52s linear infinite; }
#planet .ringfront { animation: ringFlowF 52s linear infinite; }
@keyframes ringFlowB { to { stroke-dashoffset: -653; } }
@keyframes ringFlowF { to { stroke-dashoffset: -358; } }
#planet .orbiter { animation: orbit 46s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.no-motion #planet .bands, .no-motion #planet .ringback,
.no-motion #planet .ringfront, .no-motion #planet .orbiter { animation: none; }

/* letterbox — the film starts */
.lb {
  position: fixed; left: 0; right: 0; height: 5svh; background: var(--ink);
  z-index: 150; pointer-events: none;
  transition: transform .8s var(--ease);
}
.lb.top { top: 0; transform: translateY(-101%); }
.lb.bot { bottom: 0; transform: translateY(101%); }
.cine .lb.top, .cine-pre .lb.top { transform: translateY(0); }
.cine .lb.bot, .cine-pre .lb.bot { transform: translateY(0); }

/* grain + vignette — one fixed film layer */
.grain {
  position: fixed; inset: -60px; z-index: 140; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainJitter 1.4s steps(8) infinite;
}
@keyframes grainJitter {
  0% { transform: translate(0, 0); } 25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -20px); } 75% { transform: translate(-10px, -8px); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 139; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(4, 7, 10, .45));
}

/* HUD surfaces must let the sky show through */
body { background: transparent; }
.rail { background: rgba(16, 15, 18, .38); backdrop-filter: blur(2px); }

/* hero telemetry line */
.telemetry {
  margin: 26px 0 0; font-size: 11.5px; letter-spacing: .06em; color: var(--muted);
}
.telemetry::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--struct); margin-right: 10px;
}

/* work: mission-record prefixes */
.rec { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); opacity: .8; }

/* the crossing: a long track; the stack rides sticky through the aurora */
#crossing { height: 300vh; position: relative; }
#crossing .pin-frame {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--hairline);
}
.spectro {
  display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 34px;
  font-size: 10.5px; letter-spacing: .06em; color: var(--muted);
}
.spectro span:first-child { color: var(--signal-dim); }
.crossing-cap {
  position: absolute; left: 0; bottom: 16svh; margin: 0;
  font-size: 12px; letter-spacing: .1em; color: var(--text-2); opacity: 0;
}
.crossing-cap::before { content: "▸ "; color: var(--struct); }

/* writing on the descent */
.txfoot { margin-top: 18px; font-size: 12px; }
.txfoot a { color: var(--signal-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.txfoot a:hover { border-color: var(--signal); }
.post-item .d { line-height: 1.6; }

/* sensor array — full-width low-orbit console */
.sensor { padding-bottom: 30px; }
.console.wide .void-grid { width: min(420px, 100%); }
.console.wide { margin: 8px auto; width: fit-content; }

/* touchdown: the lab, lit and empty */
#lab-scene { position: relative; padding-top: 40px; }
.lab-horizon { margin: 10px 0 0; }
#lab-svg { display: block; width: 100%; height: auto; }
#lab-svg .ground { stroke: var(--hairline-strong); stroke-width: 1; }
#lab-svg .bldg { fill: var(--ink); stroke: rgba(255, 68, 56, .25); stroke-width: .7; }
#lab-svg .pole, #lab-svg .mast { stroke: var(--ink); stroke-width: 3; }
#lab-svg .wire { stroke: rgba(233, 230, 219, .18); stroke-width: 1; }
#lab-svg .mastlight { fill: var(--struct); animation: mastBlink 2.6s steps(2) infinite; }
#lab-svg .mastlight.m2 { animation-delay: 1.2s; }
#lab-svg .win { fill: var(--signal); opacity: .8; animation: winBreathe 4s ease-in-out infinite; }
#lab-svg .win.w2 { animation-delay: 1.3s; }
#lab-svg .win.w3 { animation-delay: 2.4s; }
#lab-svg .door { fill: rgba(255, 92, 76, .85); }
#lab-svg .doorlight { fill: rgba(255, 68, 56, .12); }
#lab-svg .grass { stroke: var(--ink); stroke-width: 2; }
@keyframes mastBlink { 50% { opacity: .25; } }
@keyframes winBreathe { 50% { opacity: .5; } }
.labcap {
  margin: 6px 0 34px; font-size: 12px; letter-spacing: .09em; color: var(--text-2);
}
.labcap .warn { color: var(--struct); }
.foot .colo { flex-basis: 100%; opacity: .6; }

/* cursor — the instrument reticle */
.cursor-el { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor-el { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor p, .has-cursor input, .has-cursor textarea, .has-cursor .article { cursor: text; }
#cursor {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: #fff; mix-blend-mode: difference; border-radius: 50%;
  will-change: transform;
}
#cursor-ring {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(255, 68, 56, .6); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-radius .25s var(--ease);
  will-change: transform;
}
.has-cursor #cursor-ring { display: flex; }
#cursor-ring.label {
  width: 62px; height: 26px; margin: -13px 0 0 -31px; border-radius: 3px;
  background: rgba(16, 15, 18, .82); border-color: var(--signal);
}
#cursor-label {
  font-family: "Fragment Mono", monospace; font-size: 9.5px; letter-spacing: .12em;
  color: var(--signal);
}

/* reduced-motion / no-JS: frozen mid-descent, fully readable */
.no-motion .lb, .no-motion .grain, .no-motion #ship, .no-motion .cursor-el { display: none; }
.no-motion .sky { background: #0D1817; }
.no-motion #crossing { height: auto; }
.no-motion #crossing .pin-frame { position: static; min-height: 0; padding: 18px 0 40px; }
.no-motion .crossing-cap { display: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .lb, html:not(.force-motion) .grain,
  html:not(.force-motion) #ship, html:not(.force-motion) .cursor-el { display: none !important; }
  html:not(.force-motion) #crossing { height: auto !important; }
  html:not(.force-motion) #crossing .pin-frame { position: static !important; min-height: 0 !important; }
  html:not(.force-motion) .aurora-css, html:not(.force-motion) #lab-svg .win,
  html:not(.force-motion) #lab-svg .mastlight, html:not(.force-motion) #ship .exhaust { animation: none !important; }
}

/* mobile: same journey, cheaper production */
@media (max-width: 720px) {
  .lb { height: 3svh; }
  #crossing { height: 200vh; }
  .rail { background: rgba(16, 15, 18, .6); }
  .crossing-cap { bottom: 22svh; }
}

/* ---------- boot sequence: the system waking up ---------- */
#boot {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: flex-start;
  padding: clamp(24px, 6vw, 90px);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: clamp(11px, 2.4vw, 13.5px); line-height: 1.75; color: var(--text-2);
  cursor: pointer;
}
#boot.done { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
#boot pre { margin: 0; white-space: pre-wrap; max-width: 680px; }
#boot .t { color: var(--muted); }
#boot .ok { color: var(--signal); }
#boot .warn { color: var(--struct); }
#boot .name { color: var(--text); font-weight: 500; }
#boot .cursor { color: var(--signal); animation: blink 1s steps(1) infinite; }
#boot .skip {
  position: absolute; bottom: clamp(20px, 5vw, 44px); right: clamp(20px, 5vw, 56px);
  color: var(--muted); font-size: 11px; letter-spacing: .05em;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #boot { display: none; } }
