/* NEUROCRYPT: THE DESCENT, First Movement. The shell's one stylesheet.
   Register: near-black ground with a cool bias, petrol midtones, carved light.
   Cyan is emission and verified state only. One accent: lamplight. Never neon. */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
/* One glyph, U+1F770 (the day-night sign), subset from Noto Sans Symbols; fetched only by a page that uses it. */
@font-face {
  font-family: 'NC Glyph';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/nc-glyph-1f770.woff2') format('woff2');
  unicode-range: U+1F770;
}

:root {
  color-scheme: dark;

  /* Ground and stone */
  --ground: #06080a;
  --ground-raise: #0b1013;
  --stone: #11181b;
  --stone-edge: #1b2529;

  /* Petrol midtones */
  --petrol-deep: #0d1b1f;
  --petrol: #16303a;
  --petrol-mid: #2a4c56;
  --petrol-light: #5f8189;

  /* Ink */
  --bone: #d8dcd7;
  --ash: #9ba6a7;
  --ash-dim: #75817f;

  /* Light. Emission is cyan and means playing or verified, nothing else. */
  --emit: #8fd2d4;
  --emit-dim: #4f8f93;
  --lamp: #cdb994;

  --hairline: rgba(150, 180, 186, 0.16);
  --hairline-strong: rgba(150, 180, 186, 0.32);

  /* Type */
  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-text: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, ui-monospace, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --step-5: clamp(2.5rem, 1.3rem + 4.8vw, 6rem);

  --track-engraved: 0.16em;

  /* Space, on a 4px base */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --s10: 8rem;

  --gutter: clamp(1rem, 0.6rem + 2vw, 3rem);
  --measure: 38rem;
  --wide: 76rem;

  --focus: 2px solid var(--lamp);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  overflow-wrap: anywhere;
}

img, svg, video, iframe { display: block; max-width: 100%; }
/* A hidden slot stays hidden whatever display its class sets. */
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, figure, pre, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }

::selection { background: var(--petrol-mid); color: var(--bone); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
a:hover { text-decoration-color: var(--bone); }

:focus { outline: none; }
:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: 10;
  padding: var(--s2) var(--s4);
  background: var(--ground);
  color: var(--bone);
  border: 1px solid var(--lamp);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Type roles */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
  text-wrap: balance;
}
.subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.2;
}
.engraved {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--track-engraved);
  text-transform: uppercase;
  color: var(--ash);
}
.engraved-literal { text-transform: none; letter-spacing: 0.08em; }
/* No paragraph ends on one stranded word where the browser can help it. */
p, li, dd, figcaption { text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--bone); text-wrap: pretty; }
/* The entity's statement, set in the display face where it is the page's subject (About). */
.statement { max-width: 30ch; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; text-wrap: pretty; }
.quiet { color: var(--ash); }
/* The credit under a page title (Listen): the mono label voice, quiet. */
.byline { margin-top: var(--s2, 0.5rem); font-family: var(--font-mono); font-size: var(--step--1, 0.8rem); letter-spacing: 0.08em; color: var(--ash); }
.prose > * + * { margin-top: var(--s4); }
.prose { max-width: var(--measure); }

/* Frame: header, main, footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  padding: var(--s5) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.wordmark-link { display: inline-block; text-decoration: none; }
.wordmark { width: 11.5rem; height: auto; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: var(--s1) 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-engraved);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
}
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--bone); }
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--lamp);
  text-underline-offset: 0.5em;
}

main { flex: 1 0 auto; }

.page {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--s8) var(--gutter) var(--s9);
}
.page__head { max-width: 48rem; margin-bottom: var(--s8); }
.page__head > * + * { margin-top: var(--s4); }

.section { margin-top: var(--s9); }
.section:first-child { margin-top: 0; }
.section__head { margin-bottom: var(--s5); }
.section__head > * + * { margin-top: var(--s2); }

.rule { height: 1px; border: 0; background: var(--hairline); margin: var(--s8) 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  padding: var(--s6) var(--gutter);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--ash);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--ash); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer__glyph { width: 1.75rem; height: 1.75rem; }

/* Controls */
.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.control:hover { border-color: var(--bone); }
.control[aria-pressed='true'] { border-color: var(--emit-dim); color: var(--emit); }
.control:disabled { cursor: default; color: var(--ash-dim); border-color: var(--hairline); }

.enter {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  min-height: 3.25rem;
  padding: var(--s3) var(--s6);
  border: 1px solid var(--lamp);
  color: var(--lamp);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(6, 8, 10, 0.55);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.enter::after {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.enter:hover { background: var(--lamp); color: var(--ground); }

/* Slots: a frame that holds a poster, a still, a loop or a press-to-load player */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--ground-raise);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
}
.frame > img, .frame > video, .frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.frame-still { aspect-ratio: 3 / 2; }
.frame-absent {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: start;
  gap: var(--s2);
  padding: var(--gutter);
  color: var(--ash);
}
.frame-absent__line { font-family: var(--font-text); font-size: 0.75rem; line-height: 1.5; }

/* THRESHOLD: the slit. One vertical axis, symmetric: the wordmark as an inscription, the place seen
   through a narrow upright cut (nine wide to twenty-two high, the stone's own slit of light), the
   line, ENTER and its brief, the sections at the foot. The stack yields to short windows so the whole
   composition fits a 1440 by 900 window and ENTER stays above the fold down to a 640px window: gaps,
   padding, the slit and the line scale with the window height; the line keeps its rem floor, so
   enlarged text still grows. */
.threshold {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'mark' 'loop' 'line' 'sub' 'entry' 'nav' 'alt';
  justify-items: center;
  align-content: center;
  row-gap: clamp(var(--s3), 2.6vh, var(--s5));
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(var(--s4), 4vh, var(--s6)) var(--gutter);
  text-align: center;
  isolation: isolate;
}
.threshold__mark { grid-area: mark; }
.threshold__mark h1 { margin: 0; }
.threshold__mark img { width: 12rem; margin: 0 auto; }
.threshold__loop {
  grid-area: loop;
  position: relative;
  /* The slit is the page's subject: about 56vh tall (the image is 9 to 22), capped so the line, ENTER and
     its brief stay above the fold; --hero-off is the height of everything else in the stack. */
  --hero-off: 27.5rem;
  --hero-h: clamp(8rem, min(56vh, 100svh - var(--hero-off)), 60rem);
  width: calc(var(--hero-h) * 9 / 22);
}
.threshold__loop .frame { aspect-ratio: 9 / 22; border-color: var(--stone-edge); }
.threshold__caption {
  margin-top: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.threshold__line {
  grid-area: line;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: max(2.25rem, min(var(--step-4), 5.6vh));
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.threshold__entry {
  grid-area: entry;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.threshold__sub {
  grid-area: sub;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--ash);
  text-wrap: balance;
}
.threshold__brief {
  margin-top: var(--s4);
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ash);
  text-wrap: balance;
}
.threshold .enter::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}
.threshold__nav { grid-area: nav; }
.threshold__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s5);
  padding: 0;
  list-style: none;
}
.threshold__nav a {
  display: inline-block;
  padding: var(--s1) 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-engraved);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
}
.threshold__nav a:hover { color: var(--bone); }

/* The guided excerpt, offered plainly: the quiet last line without the script, or before it has run
   (a phone or a small window leads with it and ghosts ENTER). app/hero.mjs runs the world's own
   capability test and sets data-device: 'world' hides the offer; 'excerpt' hides ENTER, its brief and
   the offer, and shows the .threshold__phone block, whose one control is SEE THE EXCERPT. */
.threshold__alt {
  grid-area: alt;
  max-width: 30rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ash-dim);
  text-wrap: balance;
}
.threshold__alt a { color: var(--ash); }
.threshold__alt a:hover { color: var(--bone); }
.threshold[data-device='world'] .threshold__alt { display: none; }
.threshold[data-device='excerpt'] { grid-template-areas: 'mark' 'loop' 'line' 'sub' 'phone' 'nav'; }
.threshold[data-device='excerpt'] .threshold__entry, .threshold[data-device='excerpt'] .threshold__alt { display: none; }
.threshold[data-device='excerpt'] .threshold__loop { --hero-off: 35rem; }
@media (hover: none) and (pointer: coarse), (max-width: 47.99em), (max-height: 26.99em) {
  .threshold:not([data-device]) { grid-template-areas: 'mark' 'loop' 'line' 'sub' 'alt' 'entry' 'nav'; }
  .threshold:not([data-device]) .threshold__loop { --hero-off: 35rem; }
  .threshold:not([data-device]) .threshold__alt { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; letter-spacing: 0; color: var(--ash); }
  .threshold:not([data-device]) .threshold__alt a { color: var(--lamp); text-decoration-color: var(--lamp); }
  .threshold:not([data-device]) .enter { min-height: 2.75rem; border-color: var(--hairline-strong); color: var(--ash); background: transparent; }
}

/* LISTEN (and the recordings on /excerpt): one player bar, rows that are buttons with a visible
   state. Cyan marks the one recording that is sounding, nothing else. */
.player {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s7);
  padding: var(--s4);
  background: var(--ground-raise);
  box-shadow: 0 1px 0 var(--ground), 0 12px 24px rgba(6, 8, 10, 0.6);
  border: 1px solid var(--hairline);
}
.player__now { min-width: 0; }
.player__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.player__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); }
.player__meta > :last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.player__status:empty { display: none; }
.player[data-state='failed'] .player__status { color: var(--lamp); }
.player__seek { grid-column: 1 / -1; }
.player[data-state='idle'] { display: none; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.range:disabled { cursor: default; opacity: 0.5; }
.range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--emit) var(--progress, 0%), var(--hairline-strong) var(--progress, 0%));
}
.range::-moz-range-track { height: 2px; background: var(--hairline-strong); }
.range::-moz-range-progress { height: 2px; background: var(--emit); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--bone);
  border: 0;
}
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--bone); border: 0; }
.range:focus-visible { outline-offset: 2px; }

.toggle__icon {
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
[aria-pressed='true'] > .toggle__icon {
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}
/* Loading: the control holds its pressed state and breathes until the first sound. */
@keyframes nc-breathe { 50% { opacity: 0.35; } }
[data-state='loading'] [data-track-toggle] > .toggle__icon,
.player[data-state='loading'] [data-player-toggle] > .toggle__icon { animation: nc-breathe 1.2s var(--ease) infinite; }

.track__title { font-size: var(--step-1); line-height: 1.3; transition: color 200ms var(--ease); }
.track[data-state='playing'] .track__title, .track[data-state='loading'] .track__title { color: var(--emit); }
.track[data-state='playing'] [data-track-toggle] { border-color: var(--emit-dim); color: var(--emit); }
.track[data-state='failed'] .track__title { color: var(--ash-dim); }

.tracks { padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.tracks > .track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--hairline);
}

/* The featured recording: a card of type on petrol, no image, with one upright line of light at its
   right (the slit again) that turns to emission while the recording sounds. */
.featured { margin-bottom: var(--s8); }
.feature-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--s5);
  min-height: clamp(12rem, 9rem + 8vw, 17rem);
  padding: var(--s6) var(--s6) var(--s5);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(70% 120% at 82% 50%, rgba(42, 76, 86, 0.32), rgba(6, 8, 10, 0) 70%),
    var(--ground-raise);
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 14%;
  bottom: 14%;
  right: 16%;
  width: 2px;
  background: linear-gradient(180deg, rgba(216, 220, 215, 0), rgba(216, 220, 215, 0.55) 50%, rgba(216, 220, 215, 0));
  transition: background 400ms var(--ease);
}
.feature-card[data-state='playing']::after, .feature-card[data-state='loading']::after {
  background: linear-gradient(180deg, rgba(143, 210, 212, 0), rgba(143, 210, 212, 0.9) 50%, rgba(143, 210, 212, 0));
}
.feature-card .track__title { max-width: calc(84% - var(--s6)); font-family: var(--font-display); font-size: clamp(2.25rem, 1rem + 4.4vw, 5.5rem); line-height: 1; letter-spacing: -0.01em; }
.feature-card__foot { display: flex; align-items: center; gap: var(--s4); }

/* Recording titles are set in the display face, like every other name in the shell. */
.tracks .track__title, .plate .track__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
/* A plate is one column of three: its title is set a step smaller so the longest name holds one line beside its length. */
.plate .track__title { min-width: 0; font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.5rem); text-wrap: balance; }

/* The recordings of the facility, each under a still of the space it scores, with its engraved line. */
.plates { display: grid; gap: var(--s7) var(--s6); padding: 0; list-style: none; }
.plate { display: grid; gap: var(--s3); align-content: start; }
.plate__still { aspect-ratio: 3 / 2; }
.plate__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s4); }
@media (min-width: 60em) {
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plate[data-state='playing'] .plate__still, .plate[data-state='loading'] .plate__still { border-color: var(--emit-dim); }
.caption {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ash-dim);
}

.album {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  border: 1px solid var(--hairline);
  background: var(--ground-raise);
  max-width: 40rem;
}
.album__embed:empty { display: none; }
.album__embed iframe { width: 100%; height: 472px; border: 0; }

/* WATCH */
.films {
  display: grid;
  gap: var(--s8) var(--s6);
  padding: 0;
  list-style: none;
}
@media (min-width: 60em) {
  .films { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .films > .film-lead { grid-column: 1 / -1; }
}
.film { display: grid; gap: var(--s3); align-content: start; }
.film__press {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--s4);
  width: 100%;
  border: 0;
  background: linear-gradient(0deg, rgba(6, 8, 10, 0.7), rgba(6, 8, 10, 0) 55%);
  color: var(--bone);
  cursor: pointer;
  font: inherit;
}
.film__press:focus-visible { outline-offset: -4px; }
.film__press .control { pointer-events: none; background: rgba(6, 8, 10, 0.6); }
.film__press:hover .control { border-color: var(--bone); }
.film__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.film__glyphs { font-family: 'NC Glyph', var(--font-display); letter-spacing: 0.12em; }
.film__note { color: var(--ash); font-size: 0.9375rem; }
/* The commentary's words as text, under its film (Watch). */
.film__transcript { max-width: var(--measure); font-size: 0.9375rem; }
.film__transcript summary { cursor: pointer; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: var(--track-engraved); color: var(--ash); }
.film__transcript summary:hover { color: var(--bone); }
.film__transcript summary:focus-visible { outline: var(--focus); outline-offset: 4px; }
.film__transcript p { margin-top: var(--s3); color: var(--bone); line-height: 1.55; }

/* EXHIBITION: a catalogue. The title, the intro and the one entry; the route as five beats, each a
   still beside its text with the engraved line of its recording; then the visit, set as facts. */
.catalogue { display: grid; gap: var(--s9); }
.catalogue__head { max-width: 52rem; }
.catalogue__head > * + * { margin-top: var(--s5); }
.catalogue__enter { padding-top: var(--s3); }
.route__label { margin-bottom: var(--s6); padding-bottom: var(--s3); border-bottom: 1px solid var(--hairline); }
.route__beats { display: grid; gap: var(--s8); padding: 0; list-style: none; }
.beat { display: grid; gap: var(--s4); align-content: start; }
.beat__text > * + * { margin-top: var(--s3); }
.beat__text p:not(.engraved) { max-width: 34rem; text-wrap: pretty; }
.beat__name {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-engraved);
  color: var(--bone);
}
@media (min-width: 52em) {
  .beat { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); column-gap: var(--s7); align-items: center; }
}
.visit .facts a, .catalogue .facts a { text-decoration-color: var(--hairline-strong); }

.facts { display: grid; gap: var(--s2); }
.facts > dd + dt { margin-top: var(--s6); }
@media (min-width: 52em) {
  .facts { grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); column-gap: var(--s7); row-gap: var(--s7); }
  .facts > dd + dt { margin-top: 0; }
  .facts > dt { padding-top: 0.35rem; }
}
.facts > dt { margin: 0; }
.facts > dd { margin: 0; max-width: var(--measure); text-wrap: pretty; }

/* VERIFY: the visitor's introduction, then VERIFY.md verbatim as a labelled specification */
.verify-intro .section { margin-top: var(--s8); }
.verify-intro .section:first-child { margin-top: 0; }
.verify-intro code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--bone);
  background: var(--stone);
  padding: 0.05em 0.3em;
}
.steps { display: grid; gap: var(--s4); max-width: var(--measure); padding-left: var(--s5); }
.steps > li { padding-left: var(--s2); }
.steps > li::marker { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ash); }
.steps__lead { font-weight: 500; color: var(--bone); }
.verify-close { margin-top: var(--s7); max-width: var(--measure); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; }

.spec { margin-top: var(--s9); padding-top: var(--s7); border-top: 1px solid var(--hairline-strong); }
.spec__label { max-width: var(--measure); margin-bottom: var(--s7); }
.spec__label > * + * { margin-top: var(--s3); }
.spec__details > summary { cursor: pointer; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: var(--track-engraved); color: var(--ash); }
.spec__details > summary:hover { color: var(--bone); }
.spec__details > summary:focus-visible { outline: var(--focus); outline-offset: 4px; }
.spec__details[open] > summary { margin-bottom: var(--s6); }
@media (min-width: 52em) {
  .spec .doc { padding-left: var(--s6); border-left: 1px solid var(--hairline); }
}
.doc { max-width: 46rem; }
.doc h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin-bottom: var(--s5); }
.doc h4 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.3; margin-top: var(--s7); margin-bottom: var(--s3); }
.doc p, .doc ul, .doc ol { margin-top: var(--s4); }
.doc ul, .doc ol { padding-left: var(--s5); }
.doc li + li { margin-top: var(--s2); }
.doc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--bone);
  background: var(--stone);
  padding: 0.05em 0.3em;
}
.doc pre {
  margin-top: var(--s4);
  padding: var(--s4);
  overflow-x: auto;
  background: var(--ground-raise);
  border: 1px solid var(--hairline);
  font-size: 0.875rem;
  line-height: 1.55;
}
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc strong { font-weight: 500; color: var(--bone); }

/* EXCERPT: the route told in stills and type for a device that cannot open the facility. One column,
   the stills large, each space's recording a press away on the shared player. */
.page-excerpt { max-width: 60rem; }
.excerpt__head { max-width: 44rem; margin-bottom: var(--s8); }
.excerpt__head > * + * { margin-top: var(--s4); }
.excerpt__epigraph {
  padding-top: var(--s5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ash);
}
.excerpt__loop { margin: 0 0 var(--s8); }
.walk__beats { display: grid; gap: var(--s9); padding: 0; list-style: none; }
.walk__beat { display: grid; gap: var(--s5); }
.walk__text { display: grid; gap: var(--s4); justify-items: start; max-width: var(--measure); }
.walk__body { font-size: var(--step-1); line-height: 1.55; text-wrap: pretty; }
.walk__play { gap: var(--s3); padding-right: var(--s5); }
.walk__play > span:last-child { letter-spacing: 0.1em; }
.walk__beat[data-state='playing'] .walk__still, .walk__beat[data-state='loading'] .walk__still { border-color: var(--emit-dim); }
.walk__caption { margin-top: var(--s7); }
.excerpt__films .films { grid-template-columns: 1fr; }
.excerpt__more { margin-top: var(--s6); color: var(--ash); }
.page-excerpt .player { margin-bottom: var(--s8); }

/* 404: the threshold's axis with nothing in the slit but its one line of light. */
.lost { display: grid; gap: var(--s4); justify-items: center; align-content: center; min-height: 60vh; text-align: center; }
.lost__slit {
  position: relative;
  width: 4.5rem;
  aspect-ratio: 9 / 22;
  margin-bottom: var(--s4);
  border: 1px solid var(--stone-edge);
  background: radial-gradient(60% 50% at 50% 50%, rgba(22, 48, 58, 0.5), rgba(6, 8, 10, 0) 75%), var(--ground-raise);
}
.lost__slit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 22%;
  bottom: 22%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(216, 220, 215, 0), rgba(216, 220, 215, 0.8) 50%, rgba(216, 220, 215, 0));
}
.lost__home { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: var(--track-engraved); }

/* Narrow screens */
@media (max-width: 30em) {
  .wordmark { width: 9.5rem; }
  .site-nav ul { column-gap: var(--s4); }
  .site-nav a { letter-spacing: 0.08em; }
  .threshold__mark img { width: 10rem; }
  .enter { padding: var(--s3) var(--s4); letter-spacing: 0.16em; font-size: var(--step--1); }
  .player { grid-template-columns: auto minmax(0, 1fr); }
}

/* Motion: nothing moves for those who ask it not to */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Windows high contrast and other forced palettes */
@media (forced-colors: active) {
  .enter, .control, .frame, .feature-card, .album, .player { border-color: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}

/* ---- SHELL-R1: front door, listen, about, exhibition (kept apart so the merge with the /watch lane is clean) ---- */
.threshold__phone { grid-area: phone; display: none; flex-direction: column; align-items: center; }
.threshold[data-device='excerpt'] .threshold__phone { display: flex; }
.threshold__phone .enter { min-height: 3.25rem; }
.threshold__copy { margin-top: var(--s4); padding: var(--s2) var(--s4); font-size: var(--step--1); letter-spacing: 0.06em; }
.threshold__url {
  margin-top: var(--s3);
  width: min(100%, 22rem);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--hairline-strong);
  background: var(--ground-raise);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-align: center;
}
.threshold__status { min-height: 1.5em; margin-top: var(--s2); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.04em; color: var(--ash); }

.track__time { margin-left: auto; flex: none; white-space: nowrap; color: var(--ash-dim); font-variant-numeric: tabular-nums; }
.tracks > .track { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.feature-card__foot .track__time { margin-left: var(--s2); }
.album__line { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.album__line a { text-decoration-color: var(--hairline-strong); }

.elsewhere { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: 0; list-style: none; }
.beat__text h3.engraved { color: var(--bone); }

/* MUSEUM: the catalogue of the holdings. Each holding is an object record: the accession number in the
   mono face at the left, the name in the display face, a kind line, the label, then a control or an image.
   Hairlines divide the records; nothing is raised or shadowed. */
.museum__section .route__label { margin-bottom: 0; }
.records { padding: 0; list-style: none; }
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3) var(--s5);
  padding: var(--s6) 0 var(--s7);
  border-bottom: 1px solid var(--hairline);
}
.record:last-child { border-bottom: 0; }
.record__no { color: var(--ash-dim); letter-spacing: var(--track-engraved); }
.record__body > * + * { margin-top: var(--s3); }
.record__name { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; color: var(--bone); text-wrap: balance; }
.record__kind { color: var(--ash); }
.record__label { max-width: 34rem; margin-top: var(--s4); color: var(--bone); line-height: 1.55; text-wrap: pretty; }
.record__control { margin-top: var(--s5); }
.record__body > .record__control { margin-top: var(--s5); }
.record__media { align-self: start; margin-top: var(--s3); }
.record__sign > img { object-fit: contain; padding: 22%; }
.record[data-state='playing'] .record__name, .record[data-state='loading'] .record__name { color: var(--emit); }
.record[data-state='playing'] .record__media, .record[data-state='loading'] .record__media { border-color: var(--emit-dim); }
.record[data-state='failed'] .record__name { color: var(--ash-dim); }
.museum__foot {
  max-width: var(--measure);
  padding-top: var(--s6);
  border-top: 1px solid var(--hairline);
  color: var(--ash);
  text-wrap: pretty;
}
@media (min-width: 52em) {
  .record { grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 22rem); column-gap: var(--s7); padding: var(--s7) 0 var(--s8); }
  .record__no { padding-top: 0.9rem; }
  .record__media { margin-top: 0.5rem; }
}

/* Seven sections in the navigation: on a phone they sit four over three. */
@media (max-width: 36em) {
  .site-nav { flex: 1 1 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: var(--s3); }
  .site-nav a { letter-spacing: 0.1em; }
}
@media (max-width: 30em) {
  .threshold__nav ul { column-gap: var(--s4); }
  .threshold__nav a { font-size: 0.75rem; letter-spacing: 0.1em; }
}

@media (max-width: 24em) {
  .site-nav ul { column-gap: var(--s1); }
  .site-nav a { font-size: 0.75rem; letter-spacing: 0.06em; white-space: nowrap; }
}
.films__channels { margin: var(--s9) 0 var(--s6); }
.museum .catalogue__head { max-width: none; display: grid; gap: var(--s6); }
.museum__intro > * + * { margin-top: var(--s5); }
.museum .catalogue__head > .museum__hall { margin: 0; }
.museum__hall .frame { aspect-ratio: 2 / 1; }
@media (min-width: 52em) {
  .museum .catalogue__head { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s7); align-items: start; }
}

/* PHOTOGRAPHS: the owner's night photographs, shown as shot. Each sits in a hairline frame so a dark
   frame does not vanish into the page; the number in the mono face and the full label are its caption. */
/* No crop: the frame has the photograph's own ratio (900 by 676) and the picture is contained, never covered. */
.frame-photo, .shot__frame { aspect-ratio: 900 / 676; border-color: var(--hairline-strong); }
.frame-photo > img, .shot__frame > img { object-fit: contain; }
.record__status { min-height: 0; color: var(--ash); }
.record__status:empty { display: none; }
.museum__way { margin-top: var(--s4); color: var(--ash); text-wrap: pretty; }
.museum__way a { text-decoration-color: var(--hairline-strong); }
.record--photograph .record__label { margin-top: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; max-width: 26rem; }
.museum__more { margin-top: var(--s5); }
.shots { display: grid; gap: var(--s8) var(--s7); padding: 0; list-style: none; }
.shot figure { margin: 0; display: grid; gap: var(--s4); }
.shot figcaption { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s4); align-items: baseline; }
.shot__no { color: var(--ash-dim); }
.shot__label { max-width: 30rem; color: var(--bone); line-height: 1.5; text-wrap: pretty; }
@media (min-width: 60em) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
