/* ==========================================================================
   WOLF_101 — ROOM 101
   The page is one fixed camera feed (.feed) and a column of scenes that scroll
   over it. Each scene tells the camera where to look (data-cam in index.html);
   script.js moves it. Mobile-first. No framework. Tokens live in :root.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The room: black, charcoal, dirty teal, concrete, off-white. */
  --void: #040605;
  --bone: #e4e2d9;
  --bone-dim: rgba(228, 226, 217, 0.74);
  --concrete: #9aa59f;
  --concrete-dim: #7d8a85;
  --line: rgba(154, 178, 170, 0.24);
  --line-strong: rgba(154, 178, 170, 0.46);
  --phosphor: #86d9a8;      /* CRT output. Used sparingly. */
  --rec: #c4432f;           /* the REC lamp, nothing else */
  --amber: #dc9a33;         /* the wolf's eyes. Actions only. */
  --amber-hi: #efb04c;

  /* Three voices: monument, thought, machine. */
  --f-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-micro: 0.6875rem;
  --fs-sys: 0.75rem;
  --fs-note: 0.75rem;
  --fs-shot: clamp(2.875rem, 13.4vw, 4.75rem);
  --fs-title: clamp(2.75rem, 12vw, 4.25rem);
  --fs-quote: clamp(1.5rem, 6.3vw, 2.125rem);
  --fs-value: 1.375rem;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gut: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gut-l: var(--gut);
  --gut-r: var(--gut);
  --bar: 56px;              /* system header height */
  --foot: 46px;             /* room kept clear for the telemetry strip */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d0: 0s;                 /* intro delay; the camera boot pushes it back */

  /* One stacking scale */
  --z-feed: 0;
  --z-main: 10;
  --z-frame: 20;
  --z-dock: 25;
  --z-bar: 45;
  --z-terminal: 40;
  --z-boot: 60;
  --z-reticle: 70;
  --z-skip: 80;
}
html.is-booting { --d0: 1.2s; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  background: var(--void);
  scrollbar-color: #27332f var(--void);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
button, .btn, .dock__btn, .sys a, .index a, .terminal a {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
strong { font-weight: 500; color: var(--bone); }
::selection { background: #2c554d; color: #fff; }

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: calc(8px + var(--safe-t));
  left: var(--gut);
  z-index: var(--z-skip);
  padding: 12px 16px;
  background: var(--bone);
  color: var(--void);
  font-size: var(--fs-note);
  letter-spacing: 0.12em;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Type system
   ========================================================================== */

/* Machine voice: every label the surveillance system prints. */
.sysline {
  font-family: var(--f-mono);
  font-size: var(--fs-sys);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* Monument voice: one sentence per shot. */
.shot__text,
.title {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.shot__text { font-size: var(--fs-shot); }
.title { font-size: var(--fs-title); }
.shot__text, .title, .ask__q, .file__symbol, .mission__figure, .mission__when { width: max-content; max-width: none; }
.ln { display: block; white-space: nowrap; }

/* Thought voice: the wolf speaking. */
.quote blockquote,
.entry__line,
.archive__lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Data rows: thin rule, label, value. Used by the subject file and FILE_101. */
.row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 7px 0 6px;
  border-top: 1px solid var(--line);
}
.row dt {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  color: var(--concrete);
}
.row dd {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-value);
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.redact { color: #33403c; letter-spacing: -0.06em; }

/* ==========================================================================
   The feed
   ========================================================================== */
.feed {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;                /* stable while the mobile URL bar moves */
  z-index: var(--z-feed);
  overflow: hidden;
  pointer-events: none;
  background: var(--void);
}
/* Without JS the camera is a plain cover crop on the wolf's face. */
.feed__cam {
  position: absolute;
  inset: 0;
  background: var(--void) url("poster.jpg") 50% 30% / cover no-repeat;
}
/* With JS the camera box is the whole video frame; script.js pans and zooms it. */
.cam-on .feed__cam {
  inset: auto;
  top: 0; left: 0;
  width: var(--cam-w, 100%);
  height: var(--cam-h, 100%);
  background-position: 50% 50%;
  transform-origin: 0 0;
  will-change: transform;
}
.feed__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 0.6s linear;
}
.cam-on .feed__video { object-position: 50% 50%; }
.feed__video.is-playing { opacity: 1; }
.feed__video::-webkit-media-controls { display: none !important; }
.feed__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Per-scene light control. Opacity only, set by script.js. */
.feed__shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.feed__shade--dim { background: #030504; }
.feed__shade--left {
  background: linear-gradient(90deg, rgba(3, 5, 4, 0.9) 0%, rgba(3, 5, 4, 0.66) 24%, rgba(3, 5, 4, 0) 50%);
}
.feed__shade--right {
  background: linear-gradient(270deg, rgba(3, 5, 4, 0.9) 0%, rgba(3, 5, 4, 0.66) 24%, rgba(3, 5, 4, 0) 50%);
}
.feed__shade--floor {
  background: linear-gradient(0deg, rgba(3, 5, 4, 0.95) 0%, rgba(3, 5, 4, 0.8) 32%, rgba(3, 5, 4, 0) 66%);
}
.no-js .feed__shade--dim { opacity: 0.36; }

.feed__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3, 5, 4, 0.78) 0%, rgba(3, 5, 4, 0.5) 6%, rgba(3, 5, 4, 0) 17%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.5) 100%);
}
/* Scan lines: there if you look for them. */
.feed__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1px, transparent 1px, transparent 3px);
  opacity: 0.12;
}
/* Grain: one static noise tile, shifted with transform only. */
.feed__grain {
  position: absolute;
  inset: -8%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 1.1s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -3%, 0); }
  60%  { transform: translate3d(-2%, -1%, 0); }
  80%  { transform: translate3d(3%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* The rare signal fault: ~130ms, fired by script.js at a handful of moments. */
.feed__tear {
  position: absolute;
  left: -4%; right: -4%;
  top: var(--tear-y, 40%);
  height: var(--tear-h, 3%);
  background-color: rgba(200, 220, 212, 0.05);
  box-shadow: 0 1px 0 rgba(220, 235, 228, 0.16), 0 -1px 0 rgba(0, 0, 0, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0;
}
.feed.is-glitch { transform: translate3d(var(--gx, 7px), 0, 0); }
.feed.is-glitch .feed__cam { filter: contrast(1.3) brightness(1.25) saturate(0.5); }
.feed.is-glitch .feed__tear { opacity: 1; transform: translate3d(-2.5%, 0, 0); }
main.is-glitch { transform: translate3d(-3px, 0, 0); }

/* Object tracker: brackets that stay locked to something inside the footage. */
.track {
  position: absolute;
  top: 0; left: 0;
  width: 10px; height: 10px;
  opacity: 0;
  transition: opacity 0.5s linear;
}
.track.is-on { opacity: 1; }
.track i {
  position: absolute;
  width: 11px; height: 11px;
  border: 0 solid rgba(228, 226, 217, 0.62);
}
.track i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.track i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.track i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.track i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.track__label {
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  font-size: var(--fs-micro);
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--bone-dim);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   Camera boot (first visit of the session only)
   ========================================================================== */
.boot { display: none; }
html.is-booting .boot {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 var(--gut-l);
  background: #000;
  font-size: var(--fs-sys);
  letter-spacing: 0.2em;
  color: var(--concrete);
  pointer-events: none;
  animation: boot-out 0.16s linear 1.08s forwards;
}
.boot__line { opacity: 0; animation: boot-print 1ms steps(1, start) forwards; }
.boot__line:nth-child(1) { animation-delay: 0.06s; }
.boot__line:nth-child(2) { animation-delay: 0.24s; }
.boot__line--ok { animation-delay: 0.78s; color: var(--phosphor); }
.boot__dots { animation: boot-dots 0.45s steps(3, end) 0.24s both; display: inline-block; overflow: hidden; vertical-align: bottom; width: 3ch; }
@keyframes boot-print { to { opacity: 1; } }
@keyframes boot-dots { from { width: 0; } to { width: 3ch; } }
@keyframes boot-out {
  0%   { opacity: 1; visibility: visible; }
  40%  { opacity: 0.4; transform: translate3d(9px, 0, 0); }
  100% { opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   System frame: header, index, telemetry
   ========================================================================== */
.sys {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-bar);
  display: flex;
  align-items: center;
  gap: 20px;
  height: calc(var(--bar) + var(--safe-t));
  padding: var(--safe-t) var(--gut) 0;
}
.js .sys, .js .telemetry, .js .index { animation: frame-in 0.7s linear var(--d0) both; }
@keyframes frame-in { from { opacity: 0; } }

.sys__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
}
.sys__nav ul { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.sys__nav a, .sys__enter, .sys__audio, .sys__menu {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  font-size: var(--fs-sys);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  transition: color 0.25s var(--ease-out);
}
.sys__nav, .sys__enter, .sys__audio { display: none; }
.no-js .sys__menu { display: none; }
.sys__nav a { gap: 0; }
.sys__nav a span { color: var(--concrete-dim); white-space: pre; }
.sys__nav a[aria-current] { color: var(--bone); }
.sys__menu { padding: 0 2px 0 14px; color: var(--bone); }
.sys__enter { color: var(--bone); }
.sys__enter.is-live { display: inline-flex; color: var(--amber); }

/* Telemetry strip: what the camera is doing, printed along the bottom edge. */
.telemetry {
  position: fixed;
  left: var(--gut);
  right: var(--gut);
  bottom: calc(12px + var(--safe-b));
  z-index: var(--z-frame);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-micro);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--concrete);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  transition: opacity 0.4s linear;
}
.telemetry__rec { display: inline-flex; align-items: center; gap: 7px; color: var(--bone-dim); }
.rec-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rec);
  animation: rec 2s steps(1) infinite;
}
@keyframes rec { 50% { opacity: 0.25; } }
.telemetry__cam, .telemetry__data { display: none; }
.telemetry__count { margin-left: auto; }

.index { display: none; }

/* The frame steps back over the credits, behind the terminal and above the buy bar. */
.at-credits .telemetry,
.at-credits .index,
.at-credits .frame,
.dock-on .telemetry { opacity: 0 !important; }

/* ---------- Navigation terminal (small screens) ---------- */
.terminal[hidden] { display: none; }
.terminal {
  position: fixed;
  inset: 0;
  z-index: var(--z-terminal);
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar) + var(--safe-t) + 18px) var(--gut) calc(18px + var(--safe-b));
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0.35) 1px, transparent 1px, transparent 3px),
    #050807;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.terminal__head {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sys);
  letter-spacing: 0.2em;
  color: var(--concrete);
}
.terminal__head span:last-child { color: var(--phosphor); }
.terminal nav { margin-block: auto; padding-block: 20px; }
.terminal__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 12.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.terminal__list a span {
  width: 2.2em;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: var(--fs-sys);
  letter-spacing: 0.18em;
  color: var(--concrete);
}
.terminal__list a:active { color: var(--concrete); }
.terminal__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.terminal__foot button {
  min-height: 48px;
  font-size: var(--fs-sys);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.terminal__close { margin-left: auto; }
/* The terminal prints itself line by line. */
.terminal.is-open .terminal__head span,
.terminal.is-open .terminal__list li,
.terminal.is-open .terminal__foot {
  animation: boot-print 1ms steps(1, start) both;
  opacity: 0;
}
.terminal.is-open .terminal__head span:nth-child(1) { animation-delay: 0.03s; }
.terminal.is-open .terminal__head span:nth-child(2) { animation-delay: 0.09s; }
.terminal.is-open .terminal__list li:nth-child(1) { animation-delay: 0.16s; }
.terminal.is-open .terminal__list li:nth-child(2) { animation-delay: 0.21s; }
.terminal.is-open .terminal__list li:nth-child(3) { animation-delay: 0.26s; }
.terminal.is-open .terminal__list li:nth-child(4) { animation-delay: 0.31s; }
.terminal.is-open .terminal__list li:nth-child(5) { animation-delay: 0.36s; }
.terminal.is-open .terminal__foot { animation-delay: 0.44s; }

/* ==========================================================================
   Scenes
   ========================================================================== */
main { position: relative; z-index: var(--z-main); }

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.scene--hold { min-height: 125vh; min-height: 125svh; }

/* The pinned frame a scene composes into. On phones everything sits low,
   under the wolf's face; on wide screens it splits left / wolf / right. */
.scene__pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: end;
  gap: 22px;
  height: 100vh;
  height: 100svh;
  padding: calc(var(--bar) + var(--safe-t) + 12px) var(--gut-r) calc(var(--foot) + var(--safe-b)) var(--gut-l);
}
.no-js .scene__pin { position: relative; }

/* ---------- 01 ENTRY ---------- */
.entry__feed {
  position: absolute;
  top: calc(var(--bar) + var(--safe-t) + 2px);
  left: var(--gut-l);
  color: var(--bone-dim);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
.entry__name {
  width: max-content;
  margin-left: -0.03em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 21.5vw, 7.25rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.entry__line {
  margin-top: 14px;
  font-size: clamp(1.375rem, 6vw, 1.875rem);
  line-height: 1.2;
}

.js .entry__feed,
.js .entry__id > * { animation: rise 1.1s var(--ease-out) both; }
.js .entry__feed { animation-delay: calc(var(--d0) + 0.05s); }
.js .entry__name { animation-name: cut-in; animation-delay: calc(var(--d0) + 0.12s); }
.js .entry__line { animation-delay: calc(var(--d0) + 0.38s); }
.js .entry__actions { animation-delay: calc(var(--d0) + 0.55s); }
.js .ca--hero { animation-delay: calc(var(--d0) + 0.7s); }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes cut-in {
  from { clip-path: inset(0 0 100% 0); transform: translate3d(0, 0.16em, 0); }
  to   { clip-path: inset(-12% -6% -12% -6%); transform: none; }
}

/* ---------- 02 SUBJECT ---------- */
.readout__title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 9px;
  color: var(--phosphor);
}
.readout__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.readout__prior {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
}

/* ---------- Story shots ---------- */
.shot__whisper { color: var(--bone-dim); padding-bottom: 8px; }

.quote blockquote {
  font-size: var(--fs-quote);
  line-height: 1.3;
  text-wrap: balance;
}
.quote blockquote p + p { margin-top: 0.55em; }
.quote__pause { color: var(--bone-dim); }
.quote figcaption {
  margin-top: 20px;
  color: var(--bone-dim);
}

/* ---------- Interrogation ---------- */
.ask__body { display: grid; }
.ask__sys { color: var(--phosphor); }
.ask__num { margin-top: 4px; }
.ask__q {
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 10.4vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.ask__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 16px;
}
.ask__opt {
  min-height: 46px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  transition: color 0.4s var(--ease-out), opacity 0.6s var(--ease-out);
}
.ask__opt:active { color: var(--bone); }
.ask__opt[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.is-answered .ask__opt[aria-pressed="false"] { opacity: 0.4; }
.ask__answer {
  margin-top: 22px;
  min-height: 1.6em;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--phosphor);
}
.js .ask__answer { visibility: hidden; }
.js .is-answered .ask__answer { visibility: visible; animation: type-on 0.9s steps(25, end) both; }
@keyframes type-on {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 -2% 0 0); }
}
/* The options surface one at a time, slowly. */
.js .ask__opts li {
  opacity: 0;
  transition: opacity 0.9s linear;
  transition-delay: calc(0.9s + var(--k, 0) * 0.38s);
}
.js .is-in .ask__opts li { opacity: 1; }

/* ---------- 03 TRANSMISSION ARCHIVE ---------- */
.archive__inner {
  display: grid;
  gap: 34px;
  padding: 46vh var(--gut-r) 18vh var(--gut-l);
  padding-top: 46svh;
}
.archive__lede {
  max-width: 30ch;
  margin-top: 18px;
  font-size: clamp(1.1875rem, 5vw, 1.5rem);
  line-height: 1.3;
  color: var(--bone-dim);
}
.archive__list { border-bottom: 1px solid var(--line); }
.rec { border-top: 1px solid var(--line); }
.rec__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "id state" "title act";
  align-items: baseline;
  gap: 2px 14px;
  width: 100%;
  padding: 13px 0 12px;
  text-align: left;
}
.rec__id, .rec__meta, .rec__state, .rec__act {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--concrete);
  font-variant-numeric: tabular-nums;
}
.rec__id { grid-area: id; }
.rec__state { grid-area: state; justify-self: end; }
.rec__meta { display: none; }
.rec__title {
  grid-area: title;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 8.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-out);
}
.rec__act { grid-area: act; justify-self: end; color: var(--bone); font-weight: 500; }
.rec--live .rec__state { color: var(--phosphor); }
.rec--pending .rec__title { color: var(--concrete-dim); }
.rec--live .rec__row:active .rec__title { transform: translate3d(6px, 0, 0); }
.archive__empty { padding: 18px 0; border-top: 1px solid var(--line); }
.archive__monitor { display: none; }

/* ---------- 04 FILE_101 ---------- */
.file__access { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.file__granted { color: var(--phosphor); }
.file__symbol {
  margin: 0.2em 0 0 -0.035em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(6.5rem, 38vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.record { border-bottom: 1px solid var(--line); }

/* Contract + access */
.asset .scene__pin { gap: 30px; }
.ca {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}
.ca__value {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 10px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: left;
  color: var(--bone);
  -webkit-user-select: text;
  user-select: text;
}
.ca__value.is-empty { cursor: default; }
.ca__bars { display: block; overflow: hidden; white-space: nowrap; color: #33403c; letter-spacing: -0.06em; line-height: 1.1; }
.ca__none { display: block; margin-top: 5px; font-size: var(--fs-micro); letter-spacing: 0.18em; color: var(--concrete); }
.ca__full { display: none; overflow-wrap: anywhere; word-break: break-all; }
.ca__value[aria-expanded="true"] .ca__full { display: inline; }
.ca__value[aria-expanded="true"] .ca__short { display: none; }
.ca__copy {
  flex: none;
  min-width: 92px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--bone);
  font-size: var(--fs-sys);
  font-weight: 500;
  letter-spacing: 0.18em;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.12s var(--ease-out);
}
.ca__copy:active:not(:disabled) { transform: scale(0.97); }
.ca__copy.is-copied { border-color: var(--phosphor); color: var(--phosphor); }
.ca__copy:disabled { border: 1px dashed var(--line-strong); color: var(--concrete-dim); cursor: default; }

.verify { margin-top: 22px; }
.verify__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: 0.03em;
}
.verify p + p {
  max-width: 44ch;
  margin-top: 8px;
  font-size: var(--fs-note);
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--concrete);
}

.access__note { margin-top: 12px; letter-spacing: 0.08em; text-transform: none; font-size: var(--fs-note); }

/* ---------- 05 MISSION ---------- */
.mission__body { container-type: inline-size; }
.mission__label { color: var(--phosphor); }
.mission__figure {
  margin: 0.12em 0 0 -0.02em;
  padding-bottom: 0.07em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19.4vw;
  font-size: 21.6cqi;
  line-height: 0.82;
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
  text-shadow: 0 0 46px rgba(0, 0, 0, 0.6);
}
.mission__when {
  margin-top: 0.22em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 10.4cqi, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--bone-dim);
}
.mission__foot { display: grid; gap: 14px; margin-top: 22px; }
.mission__creed {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.7em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.mission__disclaimer {
  max-width: 52ch;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-note);
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/* ---------- Channels ---------- */
.channels__list { margin-top: 12px; border-bottom: 1px solid var(--line); }
.channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
}
.channel__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 8.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease-out);
}
.channel__state {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  color: var(--phosphor);
}
.channel[aria-disabled="true"] { cursor: default; }
.channel[aria-disabled="true"] .channel__name { color: var(--concrete-dim); }
.channel[aria-disabled="true"] .channel__state { color: var(--concrete); }
.channel[href]:active .channel__name { transform: translate3d(6px, 0, 0); }

/* ---------- 06 EXIT ---------- */
.exit__body { display: grid; justify-items: start; gap: 18px; }

/* ==========================================================================
   Mobile BUY bar (only when pumpfunUrl is set)
   ========================================================================== */
.dock[hidden] { display: none; }
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-dock);
  padding: 0 0 var(--safe-b);
  background: var(--amber);
  transform: translate3d(0, 110%, 0);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.dock.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease-out), visibility 0s;
}
.dock__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 var(--gut);
  color: #0b0702;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.dock__btn:active { background: var(--amber-hi); }
.is-locked .dock { visibility: hidden; }
/* Pinned content keeps clear of the bar. */
.has-dock .scene[data-index="04"],
.has-dock .scene[data-index="05"],
.has-dock .scene[data-index="06"] { --foot: 74px; }

/* ==========================================================================
   Credits
   ========================================================================== */
.credits {
  position: relative;
  z-index: var(--z-main);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 120px var(--gut) calc(72px + var(--safe-b));
  background: var(--void);
  text-align: center;
}
.credits__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.credits__domain { font-size: var(--fs-note); letter-spacing: 0.14em; color: var(--concrete); }
.credits__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 22px;
  margin-top: 30px;
}
.credits__channels a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-sys);
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.credits__channels a[aria-disabled="true"] { color: var(--concrete-dim); cursor: default; }
.credits__legal {
  max-width: 54ch;
  margin-top: 30px;
  font-size: var(--fs-note);
  line-height: 1.75;
  color: var(--concrete);
}
.credits__copy {
  margin-top: 34px;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  color: var(--concrete-dim);
}

/* ==========================================================================
   Transmission player
   ========================================================================== */
.player {
  width: min(92vw, 430px);
  max-height: 92vh;
  max-height: 92svh;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: #050807;
  color: var(--bone);
}
.player::backdrop { background: rgba(0, 0, 0, 0.88); }
.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 0 14px;
}
.player__close {
  min-height: 44px;
  padding: 0 10px;
  font-size: var(--fs-sys);
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.player video { width: 100%; max-height: 78vh; max-height: 78svh; background: #000; }

/* ==========================================================================
   Reveal system (content is fully visible without JS)
   data-reveal containers get .is-in once; --i staggers the children.
   ========================================================================== */
.js [data-reveal] .ln {
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 0.18em, 0);
  transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
}
.js [data-reveal].is-in .ln {
  clip-path: inset(-12% -6% -12% -6%);
  transform: none;
}
.js [data-reveal] .fade,
.js [data-reveal] .row,
.js [data-reveal] .rec {
  opacity: 0;
  transition: opacity 0.9s linear, filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal] .fade { filter: blur(5px); }
.js [data-reveal].is-in .fade,
.js [data-reveal].is-in .row,
.js [data-reveal].is-in .rec { opacity: 1; filter: blur(0); }

/* Reticle is only created for fine pointers; hidden by default. */
.reticle { display: none; }

/* ==========================================================================
   Hover (real pointers only — touch never gets a stuck hover)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .sys__nav a:hover, .sys__audio:hover, .index a:hover, .credits__channels a[href]:hover, .player__close:hover, .terminal__foot button:hover { color: var(--bone); }
  .sys__enter.is-live:hover { color: var(--amber-hi); }
  .ask__opt:hover { color: var(--bone); }
  .rec--live .rec__row:hover .rec__title,
  .channel[href]:hover .channel__name { transform: translate3d(8px, 0, 0); }
  .ca__copy:not(:disabled):not(.is-copied):hover { background: var(--bone); color: var(--void); }
  .terminal__list a:hover { color: var(--concrete); }

  /* Observation reticle replaces the cursor */
  .has-reticle, .has-reticle * { cursor: none !important; }
  .has-reticle dialog, .has-reticle dialog * { cursor: auto !important; }
  .has-reticle .reticle {
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-reticle);
    display: block;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    pointer-events: none;
    opacity: 0;
    color: var(--bone);
    transition: opacity 0.2s linear, color 0.2s linear;
    will-change: transform;
  }
  .reticle.is-on { opacity: 1; }
  .reticle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 3px; height: 3px;
    margin: -1.5px 0 0 -1.5px;
    background: currentColor;
  }
  .reticle i {
    position: absolute;
    width: 7px; height: 7px;
    border: 0 solid currentColor;
    transition: transform 0.25s var(--ease-out);
  }
  .reticle i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
  .reticle i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
  .reticle i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
  .reticle i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
  /* The brackets open over anything that can be pressed, and close on press. */
  .reticle.is-link i:nth-child(1) { transform: translate3d(-10px, -10px, 0); }
  .reticle.is-link i:nth-child(2) { transform: translate3d(10px, -10px, 0); }
  .reticle.is-link i:nth-child(3) { transform: translate3d(-10px, 10px, 0); }
  .reticle.is-link i:nth-child(4) { transform: translate3d(10px, 10px, 0); }
  .reticle.is-down i:nth-child(1) { transform: translate3d(3px, 3px, 0); }
  .reticle.is-down i:nth-child(2) { transform: translate3d(-3px, 3px, 0); }
  .reticle.is-down i:nth-child(3) { transform: translate3d(3px, -3px, 0); }
  .reticle.is-down i:nth-child(4) { transform: translate3d(-3px, -3px, 0); }
  .reticle.is-buy { color: var(--amber); }
  .reticle__label {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s linear;
  }
  .reticle.has-label .reticle__label { opacity: 1; }
}

/* ==========================================================================
   Short phones (360 × 640 – 700)
   ========================================================================== */
@media (max-height: 700px) and (max-width: 899px) {
  :root { --fs-value: 1.1875rem; --fs-shot: clamp(2.5rem, 12vw, 4rem); }
  .row { padding: 5px 0 4px; }
  .stills { display: none; }
  .file__symbol { font-size: clamp(5rem, 30vw, 8rem); }
  .scene__pin { gap: 14px; }
}

/* Landscape phones: too short to pin a composition, so scenes simply flow. */
@media (max-height: 520px) {
  .scene__pin { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .scene--hold { min-height: 100vh; min-height: 100svh; }
}
/* ...and the wolf moves to the right of the frame (script.js), text keeps left. */
@media (max-height: 520px) and (max-width: 899px) {
  :root { --fs-shot: clamp(2.25rem, 15vh, 3.5rem); }
  .scene__pin > *:not(.entry__feed):not(.mission__body) { max-width: 54%; }
  .stills { display: none; }
  .entry__name { font-size: clamp(3rem, 24vh, 5.5rem); }
  .file__symbol { font-size: clamp(4rem, 34vh, 7rem); }
  .archive__inner { max-width: 60%; padding-top: 30vh; }
}

/* ==========================================================================
   ≥ 900px — the wide frame: left column / the wolf / right column
   ========================================================================== */
@media (min-width: 900px) {
  :root {
    --gut-l: clamp(36px, 4vw, 96px);
    --gut-r: clamp(36px, 4vw, 96px);
    --bar: 68px;
    --foot: 58px;
    --fs-micro: clamp(0.6875rem, 0.62vw, 0.8125rem);
    --fs-sys: clamp(0.75rem, 0.68vw, 0.875rem);
    --fs-note: clamp(0.75rem, 0.74vw, 0.9375rem);
    --fs-shot: clamp(3.5rem, 6vw, 9rem);
    --fs-title: clamp(3.25rem, 5vw, 7.5rem);
    --fs-quote: clamp(1.625rem, 2.35vw, 3rem);
    --fs-value: clamp(1.375rem, 1.7vw, 2rem);
  }

  .sys { padding-inline: var(--gut-l) var(--gut-r); gap: 34px; }
  .sys__brand { font-size: 1.5rem; }
  .sys__menu, .dock { display: none; }
  .has-dock .scene { --foot: 58px; }
  .sys__nav, .sys__enter { display: block; }
  .sys__nav ul { gap: 30px; flex-wrap: nowrap; }
  .sys__audio:not([hidden]) { display: inline-flex; }
  .sys__enter { display: inline-flex; }
  .terminal { display: none; }

  .telemetry { left: var(--gut-l); right: var(--gut-r); bottom: 22px; gap: 20px; }
  .telemetry__cam, .telemetry__data { display: inline; }

  .scene__pin {
    grid-template-columns: minmax(0, 34fr) minmax(0, 32fr) minmax(0, 34fr);
    grid-template-rows: minmax(0, 1fr);
    grid-auto-rows: 0;
    align-content: stretch;
    gap: 0;
    padding-top: calc(var(--bar) + 28px);
    padding-bottom: calc(var(--foot) + 22px);
  }
  .col-l    { grid-column: 1; grid-row: 1; }
  .col-r    { grid-column: 3; grid-row: 1; }
  .col-full { grid-column: 1 / -1; grid-row: 1; }
  .v-top { align-self: start; }
  .v-mid { align-self: center; }
  .v-bot { align-self: end; }

  .entry__feed { top: calc(var(--bar) + 6px); }
  .entry__name { font-size: clamp(5.5rem, 8.6vw, 12.5rem); }
  .entry__line { margin-top: 18px; font-size: clamp(1.625rem, 2.2vw, 2.75rem); }

  .row { grid-template-columns: 8.5rem minmax(0, 1fr); padding: 10px 0 9px; }
  .row dt { font-size: var(--fs-sys); }
  .readout__prior { font-size: var(--fs-sys); padding-top: 10px; }

  .shot__text--mega { font-size: clamp(4rem, 7.6vw, 11.5rem); }
  .shot__whisper { padding-bottom: 0; }

  .ask__q { font-size: clamp(2.5rem, 3.7vw, 5.5rem); margin-top: 24px; }
  .ask__opts { gap: 0 26px; margin-top: 22px; }
  .ask__opt { font-size: clamp(1.5rem, 1.8vw, 2.25rem); }
  .ask__answer { margin-top: 28px; }

  /* The archive owns the left of the frame; the room's monitors own the right. */
  .archive__inner {
    width: 60%;
    gap: 44px;
    padding-top: 30vh;
    padding-right: 0;
    padding-bottom: 24vh;
  }
  .archive__lede { max-width: 34ch; font-size: clamp(1.25rem, 1.6vw, 1.875rem); margin-top: 22px; }
  .rec__row {
    grid-template-columns: minmax(6.5rem, max-content) minmax(max-content, 1fr) minmax(9.5rem, max-content) max-content;
    grid-template-areas: "id title state act";
    gap: 0 20px;
    padding: 16px 0 14px;
  }
  .rec__id, .rec__meta, .rec__state, .rec__act { font-size: var(--fs-sys); }
  .rec__state { justify-self: start; }
  .rec__id, .rec__meta, .rec__state, .rec__act, .rec__title { white-space: nowrap; }
  .rec__act { min-width: 13.5em; text-align: right; }
  .rec__title { font-size: clamp(2rem, 3vw, 4.75rem); }
  .archive__monitor:not([hidden]) {
    position: fixed;
    right: var(--gut-r);
    bottom: 96px;
    display: block;
    width: clamp(150px, 12vw, 220px);
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line-strong);
    background: #000;
    opacity: 0;
    transition: opacity 0.25s linear;
    pointer-events: none;
  }
  .archive__monitor.is-live { opacity: 1; }
  .archive__monitor video { width: 100%; height: 100%; object-fit: cover; }

  .file__symbol { font-size: clamp(9rem, 15.5vw, 22rem); }
  .asset .scene__pin { gap: 0; }
  .ca__value { font-size: clamp(0.6875rem, 0.78vw, 0.9375rem); letter-spacing: 0.02em; }
  .ca__full { display: inline; }
  .ca__short { display: none; }
  .verify { margin-top: 30px; }
  .verify__title { font-size: clamp(1.625rem, 1.9vw, 2.5rem); }

  .mission__foot {
    grid-template-columns: minmax(0, 34fr) minmax(0, 32fr) minmax(0, 34fr);
    align-items: end;
    gap: 0;
    margin-top: 30px;
  }
  .mission__creed { font-size: clamp(1.125rem, 1.35vw, 1.625rem); flex-direction: column; }
  .mission__disclaimer { grid-column: 3; }

  .credits { padding-top: 160px; }
  .credits__name { font-size: 3.5rem; }
}

/* ≥ 1500px — archive rows also carry duration and date */
@media (min-width: 1500px) {
  .rec__row {
    grid-template-columns: minmax(6.5rem, max-content) minmax(max-content, 1fr) max-content minmax(9.5rem, max-content) max-content;
    grid-template-areas: "id title meta state act";
  }
  .rec__meta { display: block; grid-area: meta; }
}

/* ≥ 1100px — room for the observation index on the right edge */
@media (min-width: 1100px) {
  :root { --gut-r: clamp(196px, 13vw, 270px); }
  .sys { padding-right: clamp(36px, 4vw, 96px); }
  .telemetry__count { display: none; }
  .index {
    position: fixed;
    top: 50%;
    right: clamp(36px, 4vw, 96px);
    z-index: var(--z-frame);
    display: block;
    transform: translateY(-50%);
    transition: opacity 0.4s linear;
  }
  .index a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 30px;
    font-size: var(--fs-micro);
    letter-spacing: 0.18em;
    color: var(--concrete-dim);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    transition: color 0.3s linear;
  }
  .index a::after {
    content: "";
    width: 10px;
    height: 1px;
    background: currentColor;
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
  }
  .index a[aria-current] { color: var(--bone); }
  .index a[aria-current]::after { transform: scaleX(2.6); }
}

/* ==========================================================================
   Reduced motion: still frame, hard cuts, nothing moving
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .feed__grain, .rec-dot { animation: none; }
  .js [data-reveal] .ln { transform: none; }
  .js [data-reveal] .fade { filter: none; }
}

/* ===== v3 ==================================================================
   Viewfinder frame, plaque, buttons, first-screen BUY + contract,
   lit eyes, torch, the desk monitor, evidence stills, archive tiles.
   ========================================================================== */

/* ---------- Viewfinder: four corners around the picture area ---------- */
.frame {
  position: fixed;
  top: calc(var(--bar) + var(--safe-t));
  right: 8px;
  bottom: calc(var(--foot) - 10px + var(--safe-b));
  left: 8px;
  z-index: var(--z-frame);
  pointer-events: none;
  transition: opacity 0.4s linear;
}
.js .frame { animation: frame-in 0.7s linear var(--d0) both; }
.frame i {
  position: absolute;
  width: 13px; height: 13px;
  border: 0 solid rgba(228, 226, 217, 0.36);
}
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.dock-on .frame { opacity: 0; }

/* How deep into the file you are */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-bar);
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--bone);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- The door plaque, as the mark ---------- */
.plaque {
  display: inline-grid;
  place-items: center;
  padding: 0.16em 0.42em 0.1em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.7em;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #161c1a;
  text-shadow: none;
  background: linear-gradient(172deg, #cfd3cc 0%, #a4aaa4 48%, #7f8781 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.7);
}
.plaque--lg { margin-right: 0.35em; vertical-align: 0.12em; }

/* ---------- Buttons ---------- */
.arrow {
  flex: none;
  width: 18px; height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease-out);
}
.arrow--down { transform: rotate(90deg); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 6, 5, 0.46);
  font-family: var(--f-mono);
  font-size: var(--fs-sys);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.975); }
.btn__text { display: grid; gap: 3px; text-align: left; }
.btn__meta { font-size: var(--fs-micro); letter-spacing: 0.16em; }

/* BUY: the one amber thing on the site. */
.btn--buy { min-height: 66px; padding: 10px 18px 9px; will-change: transform; }
.btn--buy .btn__label {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.03em;
}
.btn--buy[href] { background: var(--amber); border-color: var(--amber); color: #0b0702; }
.btn--buy[href]:active { background: var(--amber-hi); }
/* Not live: the slot is there, the door is not open yet. */
.btn--buy[aria-disabled="true"] {
  border: 1px dashed rgba(220, 154, 51, 0.6);
  color: var(--bone-dim);
  cursor: not-allowed;
}
.btn--buy[aria-disabled="true"] .btn__meta { color: var(--concrete); }
.btn--buy[aria-disabled="true"] .arrow { opacity: 0.3; }
.btn--xl { width: 100%; min-height: 92px; padding: 16px 22px 14px; }
.btn--xl .btn__label { font-size: clamp(2.75rem, 12vw, 3.5rem); }
.btn--xl .arrow { width: 26px; height: 14px; }

.sys__enter .arrow { width: 14px; height: 8px; }
.dock__btn .arrow { width: 20px; height: 11px; stroke-width: 1.6; }

/* ---------- First screen: BUY + contract ---------- */
.entry__actions { display: grid; gap: 10px; margin-top: 18px; }
.entry__actions .btn--ghost { min-height: 46px; }
.ca--hero {
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(4, 6, 5, 0.46);
}
.ca--hero .ca__tag {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  color: var(--concrete);
}
.ca--hero .ca__value {
  min-height: 46px;
  padding: 7px 12px;
  border: 0;
  font-size: 0.8125rem;
}
.ca--hero .ca__none { margin-top: 3px; }
.ca--hero .ca__copy {
  min-width: 78px;
  min-height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
}
.ca--hero .ca__copy:disabled { border: 0; border-left: 1px solid var(--line); }
.ca--hero .ca__copy.is-copied { border-color: var(--line); }

/* ---------- His eyes stay lit in the dark ---------- */
.feed__eyes { display: none; }
.cam-on .feed__eyes {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: var(--cam-w, 100%);
  height: var(--cam-h, 100%);
  transform-origin: 0 0;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.feed__eyes i {
  position: absolute;
  top: 30.7%;
  width: 2.4%;
  aspect-ratio: 1.45;
  margin: -0.83% 0 0 -1.2%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 120, 1) 0%, rgba(236, 160, 56, 0.62) 34%, rgba(220, 154, 51, 0) 100%);
  animation: eyes 5.2s ease-in-out infinite;
}
.feed__eyes i:first-child { left: 46.2%; }
.feed__eyes i:last-child { left: 53.9%; }
@keyframes eyes { 50% { opacity: 0.7; } }

/* ---------- Torch: the pointer opens the darkness (script.js moves it) ---------- */
.feed__shade--dim {
  -webkit-mask-image: radial-gradient(circle var(--torch-r, 0px) at var(--torch-x, 50%) var(--torch-y, 50%), rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.6) 52%, #000 100%);
  mask-image: radial-gradient(circle var(--torch-r, 0px) at var(--torch-x, 50%) var(--torch-y, 50%), rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.6) 52%, #000 100%);
}
.shot__hint { margin-top: 20px; color: var(--concrete); }

/* ---------- The dead monitor on the desk prints the system status ---------- */
.crt { display: none; }
.cam-on .crt {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  align-content: start;
  container-type: inline-size;
  overflow: hidden;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.5s linear;
}
.crt.is-on { opacity: 0.92; }
.crt p {
  padding: 0 7cqw;
  font-family: var(--f-mono);
  font-size: 7.6cqw;
  line-height: 1.45;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #6fc897;
  text-shadow: 0 0 0.7em rgba(134, 217, 168, 0.6);
  opacity: 0;
  animation: boot-print 1ms steps(1, start) forwards;
}
.crt p:first-child { padding-top: 7cqw; }
.crt p:nth-child(1) { animation-delay: calc(var(--d0) + 0.9s); }
.crt p:nth-child(2) { animation-delay: calc(var(--d0) + 1.25s); }
.crt p:nth-child(3) { animation-delay: calc(var(--d0) + 1.6s); }
.crt p:nth-child(4) { animation-delay: calc(var(--d0) + 1.95s); }
.crt p:nth-child(5) { animation-delay: calc(var(--d0) + 2.3s); }
.crt b { font-weight: 500; color: #c6f3da; }
.crt__cursor::after {
  content: "";
  display: inline-block;
  width: 0.6em; height: 1em;
  margin-left: 0.3em;
  vertical-align: -0.15em;
  background: currentColor;
  animation: rec 1.1s steps(1) infinite;
}

/* ---------- Evidence stills: crops of the real footage ---------- */
.stills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.still { display: grid; gap: 5px; margin: 0; }
.still::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #06100e url("poster.jpg") no-repeat;
  filter: contrast(1.12) saturate(0.8) brightness(1.15);
}
.still--face::before  { background-size: 294% auto; background-position: 50% 27.3%; }
.still--hands::before { background-size: 278% auto; background-position: 50% 66.5%; }
.still--door::before  { background-size: 385% auto; background-position: 39.2% 13.5%; }
.still figcaption {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--concrete);
}

/* ---------- Archive tiles ---------- */
.rec__row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "thumb id state" "thumb title act";
  column-gap: 14px;
}
.rec__thumb {
  grid-area: thumb;
  align-self: center;
  position: relative;
  width: 68px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060b0a center / cover no-repeat;
}
/* No poster yet: the tile shows dead air. */
.rec__thumb:not(.has-poster)::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.85 0 0 0 0 0.8 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.32;
  animation: grain 0.5s steps(4) infinite;
}
.rec--live .rec__thumb { border-color: var(--line-strong); }

/* ---------- Hover (real pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--bone); background: rgba(4, 6, 5, 0.7); }
  .btn:hover .arrow { transform: translateX(5px); }
  .btn:hover .arrow--down { transform: rotate(90deg) translateX(5px); }
  .btn--buy[href]:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
  .btn--buy[aria-disabled="true"]:hover .arrow { transform: none; }
  .sys__enter:hover .arrow { transform: translateX(3px); }
}

/* ---------- Wide frame ---------- */
@media (min-width: 900px) {
  .frame { right: 14px; bottom: calc(var(--foot) - 6px); left: 14px; }
  .frame i { width: 18px; height: 18px; }
  .entry__actions { grid-template-columns: max-content max-content; gap: 12px; margin-top: 24px; }
  .entry__actions .btn--ghost { min-height: clamp(66px, 3.7vw, 100px); padding-inline: clamp(18px, 1.3vw, 30px); }
  .btn--buy { min-width: clamp(17rem, 15vw, 27rem); min-height: clamp(66px, 3.7vw, 100px); padding-inline: clamp(18px, 1.3vw, 30px); }
  .btn--buy .btn__label { font-size: clamp(2rem, 2.3vw, 3.5rem); }
  .btn--xl { min-height: 112px; padding: 20px 26px 18px; }
  .btn--xl .btn__label { font-size: clamp(3rem, 4vw, 5.5rem); }
  .ca--hero { width: max-content; max-width: none; margin-top: 12px; }
  .ca--hero .ca__value { min-width: 17rem; font-size: clamp(0.75rem, 0.8vw, 0.9375rem); white-space: nowrap; }
  .ca--hero .ca__full { word-break: normal; overflow-wrap: normal; }
  .stills { gap: 10px; padding-top: 14px; max-width: 30rem; }
  .rec__row {
    grid-template-columns: auto minmax(6.5rem, max-content) minmax(max-content, 1fr) minmax(9.5rem, max-content) max-content;
    grid-template-areas: "thumb id title state act";
  }
  .rec__thumb { width: clamp(72px, 5.4vw, 112px); }
}
/* Narrow desktops: the first-screen address stays short so it never reaches the wolf. */
@media (min-width: 900px) and (max-width: 1199px) {
  .ca--hero .ca__value[aria-expanded="false"] .ca__full { display: none; }
  .ca--hero .ca__value[aria-expanded="false"] .ca__short { display: inline; }
}
@media (min-width: 1500px) {
  .rec__row {
    grid-template-columns: auto minmax(6.5rem, max-content) minmax(max-content, 1fr) max-content minmax(9.5rem, max-content) max-content;
    grid-template-areas: "thumb id title meta state act";
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed__eyes i, .rec__thumb::after, .crt__cursor::after { animation: none; }
  .crt p { opacity: 1; animation: none; }
}
