/* ═══════════════════════════════════════════════════════════════
   Starving the Gods
   Mobile first. Base styles are the phone; min-width queries add
   the tablet rail at 48rem and the desktop two-column descent at
   60rem. Nothing below is a mobile override.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────────────
   Registered with @property so the film crossing interpolates
   rather than snaps. Unregistered custom properties don't animate. */

@property --ground  { syntax:'<color>'; inherits:true; initial-value:#161917; }
@property --panel   { syntax:'<color>'; inherits:true; initial-value:#1e2320; }
@property --edge    { syntax:'<color>'; inherits:true; initial-value:#39413a; }
@property --text    { syntax:'<color>'; inherits:true; initial-value:#cdc7b6; }
@property --dim     { syntax:'<color>'; inherits:true; initial-value:#7d8474; }
@property --rust    { syntax:'<color>'; inherits:true; initial-value:#c2702c; }
@property --violet  { syntax:'<color>'; inherits:true; initial-value:#8a6ad6; }
@property --on-rust { syntax:'<color>'; inherits:true; initial-value:#161917; }
@property --pass    { syntax:'<number>'; inherits:false; initial-value:0; }

:root {
  /* Home space. Body text 10.7:1, rust 4.76:1, dim 4.58:1 — all AA. */
  --ground:#161917; --panel:#1e2320; --edge:#39413a; --text:#cdc7b6;
  --dim:#7d8474; --rust:#c2702c; --violet:#8a6ad6; --on-rust:#161917;

  --drift: 1;            /* motion falls in home space, rises on the far side */
  --cross: 1600ms;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 1.25rem;

  transition: --ground var(--cross), --panel var(--cross), --edge var(--cross),
              --text var(--cross), --dim var(--cross), --rust var(--cross),
              --violet var(--cross), --on-rust var(--cross);
}

/* The far side. Body 11.6:1, rust 4.61:1, dim 5.61:1 — all AA. */
:root[data-state="far"] {
  --ground:#e9e7f2; --panel:#f3f2f9; --edge:#c5c1d6; --text:#2a2a38;
  --dim:#5a5870; --rust:#9c5518; --violet:#5b41ad; --on-rust:#f7f6fb;
  --drift: -1;
}

/* ── Base ─────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--dim) var(--ground);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 3.4rem;          /* clears the instrument strip */
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--cross) cubic-bezier(.4,0,.2,1),
              color var(--cross) cubic-bezier(.4,0,.2,1);
}

/* Frost on the far side, shadow in home space. One element, opposite physics. */
body::after {
  content:''; position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: 0;
  transition: opacity var(--cross) ease;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(233,231,242,.85) 100%),
    radial-gradient(60% 40% at 8% 4%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(60% 40% at 92% 96%, rgba(255,255,255,.7), transparent 60%);
}
:root[data-state="far"] body::after { opacity: 1; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--rust); color: var(--on-rust); }

img { max-width: 100%; display: block; }

.wrap { width: calc(100% - (var(--gutter) * 2)); margin-inline: auto; }

/* ── Conduit ──────────────────────────────────────────────────────
   A procedurally generated pipe network, drawn once at load into a
   seamlessly tiling mask. Because it is a mask over a background
   colour rather than a picture, it recolours itself when the film
   crossing runs. Three depths, each drifting at its own rate. */

.conduit { position: fixed; inset: -70% 0; z-index: 0; pointer-events: none; opacity: .42; }
main { position: relative; z-index: 1; }

.pipes { position: absolute; inset: 0; }
.pipes > i {
  position: absolute; inset: 0; display: block;
  background-color: var(--edge);
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
.pipes > .flow, .threshold__pipes > .flow {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.pipes > i:nth-child(1) { opacity: .55; }
.pipes > i:nth-child(2) { opacity: .8; }
.pipes > i:nth-child(3) { opacity: 1; }

/* In the passages the pipes are the only thing there, so they come
   up with --pass and sit above the flood. */
.threshold__pipes {
  position: absolute; inset: -30% 0; z-index: 1; pointer-events: none;
  opacity: calc(var(--pass) * .8);
}

/* Tier photographs sit on solid ground so the conduit reads between
   the tiers rather than through them. */
.tier { background: var(--ground); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--rust); color: var(--on-rust);
  font-family: var(--mono); font-size: .75rem; padding: .75rem 1rem;
}
.skip:focus { left: 0; }

/* ── Type ─────────────────────────────────────────────────────── */

.label {
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0;
}

h1, h2 { font-weight: 600; line-height: 1.14; margin: 0; letter-spacing: -.012em; }

.hook {
  font-size: 1.8rem; font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em; max-width: 18ch; margin: 0; text-wrap: balance;
}

.tier__name { font-size: 1.6rem; }

.liturgy {
  font-style: italic; font-weight: 300; margin: 0; max-width: 46ch;
  font-size: 1.0625rem; line-height: 1.66;
}
.liturgy span { display: block; }
.liturgy span + span { margin-top: .62em; }

p { max-width: 62ch; }

.divider { display: block; width: min(100%, 34rem); height: 22px; color: var(--edge); }

/* ── Chrome ───────────────────────────────────────────────────── */

.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--edge);
}
.chrome__mark {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
}
.chrome__set { display: flex; gap: .5rem; }

.ctl {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--dim);
  background: none; border: 1px solid var(--edge); padding: .5rem;
  cursor: pointer; transition: color 200ms ease, border-color 200ms ease;
}
.ctl:hover { color: var(--text); border-color: var(--dim); }
.ctl[aria-pressed="true"] { color: var(--rust); border-color: var(--rust); }
.ctl svg { width: 20px; height: 10px; flex: none; }
.ctl span { display: none; }

/* The crossing: a sheet passing through the page. */
.veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(138,106,214,.5) 45%,
                              rgba(240,238,250,.92) 55%, transparent);
}
.veil.is-crossing { animation: cross 1600ms cubic-bezier(.5,0,.3,1); }
@keyframes cross {
  0% { opacity:0; transform: translateY(-100%); }
  40%, 60% { opacity:1; }
  100% { opacity:0; transform: translateY(100%); }
}
:root[data-state="far"] .veil.is-crossing { animation-direction: reverse; }

/* ── Depth gauge: an instrument strip on the phone ────────────── */

.gauge {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  padding: .5rem var(--gutter) .55rem;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--edge);
  pointer-events: none;
}
.gauge__read {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
.gauge__place { flex: none; color: var(--text); font-size: .625rem;
                letter-spacing: .16em; font-weight: 500; }
.gauge__row { display: flex; align-items: baseline; gap: .3rem; }
.gauge__row b { color: var(--rust); font-weight: 500; font-size: .625rem;
                letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gauge__row.is-warn b { color: var(--violet); }
.gauge__track { position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--edge); }
.gauge__tick { display: none; }
.gauge__marker { position: absolute; inset: 0 auto auto 0; width: 0; height: 1px;
                 background: var(--rust); }

/* ── Surface ──────────────────────────────────────────────────── */

.surface {
  min-height: 100svh; display: grid; align-content: center;
  padding: 5.5rem 0 3rem; position: relative;
}
.surface__grid { display: grid; gap: 2rem; align-items: start; }
.surface__body { display: grid; gap: 1.6rem; justify-items: start; }
.triplet { font-size: 1.0625rem; line-height: 1.75; color: var(--dim); margin: 0; }
.triplet b { color: var(--text); font-weight: 400; }

.cover-slot {
  aspect-ratio: 2/3; width: 100%; max-width: 12rem;
  border: 1px solid var(--edge); background: var(--panel);
  display: grid; place-content: center; text-align: center; padding: 1.25rem;
}
.cover-slot p {
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); margin: 0; line-height: 2;
}

/* ── Thresholds ───────────────────────────────────────────────────
   --pass runs 0 → 1 → 0 across each passage, written once per frame
   by a shared rAF pass. Everything here reads that one number. */

.threshold { min-height: 74svh; position: relative; --pass: 0; }
.threshold__stick {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.threshold__dark { position: absolute; inset: 0; background: var(--ground);
                   opacity: calc(var(--pass) * .96); }
.threshold__iris {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 30%, var(--ground) 72%);
  opacity: calc(var(--pass) * .9);
}
.threshold__seam {
  position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--edge) 20%, var(--edge) 80%, transparent);
  transform: translateX(-50%) scaleY(var(--pass));
  opacity: calc(var(--pass) * .8);
}
.threshold__read {
  position: relative; text-align: center; padding-inline: var(--gutter);
  width: min(100%, 38rem);
  opacity: calc(var(--pass) * var(--pass));
  transform: scale(calc(.94 + var(--pass) * .08));
}
.threshold__meta {
  display: block; font-family: var(--mono); font-size: .5625rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
  line-height: 2.4; margin: 0;
}
.threshold__meta b { display: block; color: var(--text); font-weight: 500; letter-spacing: .3em; }
.threshold__name {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--rust);
  margin: 1.6rem 0 1rem;
}
.threshold__body {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1.0625rem; line-height: 1.66; color: var(--text);
  margin: 0 auto; max-width: 34ch; text-wrap: pretty;
}
.threshold__body em { font-style: normal; color: var(--rust); }

/* A depth ladder streaming upward past you: the cheapest possible
   way to make a passage feel like a fall rather than a pause. */
.threshold__ladder {
  position: absolute; inset: -60% 0; pointer-events: none;
  opacity: calc(var(--pass) * .5);
  background:
    repeating-linear-gradient(180deg,
      var(--edge) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg,
      transparent 0 255px, var(--dim) 255px 257px, transparent 257px 320px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 16%, transparent 84%, #000),
                      linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, #000, transparent 16%, transparent 84%, #000),
                      linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* ── Tiers ────────────────────────────────────────────────────────
   On the phone each tier is one full-bleed photograph with the
   liturgy over it. The plate is a crop of that same picture, so
   showing both would be the same image twice; it appears at 60rem
   where there is room for it to mean something. */

.tier {
  position: relative; overflow: clip;
  display: grid; align-content: center;
  padding-block: 5.5rem;
}

/* Pacing: High Solar is long and nearly still, the crust short and
   fast. Travel is scaled to the viewport so a plane can never move
   further than its own inset and expose an edge. */
.tier--solar   { min-height: 118svh; --far:-32px; --near:-84px;  --tx:-11px; --z:1.05; --arrive:1.07; }
.tier--terrace { min-height: 106svh; --far:-46px; --near:-120px; --tx:-16px; --z:1.08; --arrive:1.10; }
.tier--crust   { min-height:  96svh; --far:-62px; --near:-162px; --tx:-22px; --z:1.15; --arrive:1.16; }

.tier__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tier__bg-mid { position: absolute; inset: 0;
                transition: transform 1600ms cubic-bezier(.22,1,.36,1); }
.tier__breathe { position: absolute; inset: 0; }

.tier__plane {
  position: absolute; inset: -26% -8%;
  width: 116%; height: 152%;
  object-fit: cover;
  backface-visibility: hidden;
}
.tier__plane--far  { opacity: .6; }
.tier__plane--near {
  opacity: .84;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 62%);
          mask-image: linear-gradient(180deg, transparent 30%, #000 62%);
}
.tier--solar .tier__plane--far  { opacity: .42; }
.tier--solar .tier__plane--near { opacity: .6; }

.tier__haze {
  position: absolute; inset: -25%; pointer-events: none;
  background: radial-gradient(58% 44% at 32% 62%, rgba(205,199,182,.17), transparent 70%),
              radial-gradient(48% 38% at 74% 30%, rgba(194,112,44,.15), transparent 72%);
}

.tier__void { position: absolute; inset: -12% 0; z-index: 1; pointer-events: none; opacity: .5; }
.tier--solar   .tier__void { background: radial-gradient(90% 60% at 60% 18%, rgba(205,199,182,.14), transparent 70%); }
.tier--terrace .tier__void { background: radial-gradient(80% 55% at 30% 70%, rgba(194,112,44,.13), transparent 72%); }
.tier--crust   .tier__void { background: radial-gradient(70% 45% at 45% 92%, rgba(194,112,44,.24), transparent 68%); }

/* Scrim holds the liturgy legible over photography. */
.tier__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--ground) 0%,
              color-mix(in srgb, var(--ground) 74%, transparent) 42%,
              color-mix(in srgb, var(--ground) 88%, transparent) 100%);
}

.tier__life { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.tier__grid { position: relative; z-index: 4; display: grid; gap: 2rem; align-items: center; }
.tier__head { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1.5rem; }
.tier__text { display: grid; gap: 1.4rem; justify-items: start; }
.tier__alt { font-family: var(--mono); font-size: .75rem; color: var(--rust); letter-spacing: .06em; }
.tier__who { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--dim); margin: 0; }
.tier__who b { color: var(--text); font-weight: 500; }

.insignia { width: 48px; height: 48px; flex: none; }
.tier--solar   .insignia { color: var(--text); }
.tier--terrace .insignia { color: var(--dim); }
.tier--crust   .insignia { color: var(--rust); }

.plate-col { display: none; }
.plate { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--edge); }

/* After the purge, the crust burns hotter and the camera widens. */
.tier__glow {
  position: absolute; inset: -12% 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(78% 52% at 45% 94%, rgba(194,112,44,.4), transparent 70%);
  transition: opacity 2400ms ease;
}
.tier--crust.is-lit .tier__glow { opacity: 1; }
.tier--crust.is-lit .tier__bg-mid { transform: scale(.9); }
.tier--crust.is-lit .tier__plane--near { opacity: .9; transition: opacity 2000ms ease; }
.tier--crust.is-lit .tier__plane--far  { opacity: .66; transition: opacity 2000ms ease; }

/* ── Events ───────────────────────────────────────────────────── */

.scan {
  position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 5;
  opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
.tier--solar.is-fired .scan { animation: scan 5200ms cubic-bezier(.33,0,.66,1) 400ms both; }
@keyframes scan { 0% { top:4%; opacity:0; } 18%,82% { opacity:.85; } 100% { top:96%; opacity:0; } }

.tier__pulse {
  position: absolute; inset: -12% 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 50% at 38% 58%, rgba(194,112,44,.3), transparent 72%);
}
.tier--terrace.is-fired .tier__pulse { animation: breathe 7200ms ease-in-out 300ms 2 both; }
@keyframes breathe { 0%,100% { opacity: 0; } 50% { opacity: 1; } }

/* The purge. Three flashes over 1.4s — roughly two per second, under
   the WCAG threshold — and off entirely under reduced motion. */
.blackout { position: fixed; inset: 0; z-index: 80; background: #070806;
            opacity: 0; pointer-events: none; }
.blackout.is-firing { animation: purge 2600ms cubic-bezier(.5,0,.2,1) both; }
@keyframes purge { 0% { opacity:0; } 22%,46% { opacity:.94; } 100% { opacity:0; } }

/* The original: three hard flashes. Set PURGE_HARD in app.js to use it. */
.blackout.is-firing.is-hard { animation: purge-hard 1400ms steps(1,end) both; }
@keyframes purge-hard {
  0%,7% { opacity:0; } 8%,20% { opacity:1; } 21%,34% { opacity:0; }
  35%,49% { opacity:1; } 50%,63% { opacity:0; } 64%,80% { opacity:1; } 81%,100% { opacity:0; }
}

/* ── Omission disclosure ──────────────────────────────────────── */

.omission { display: grid; gap: .75rem; justify-items: start; width: 100%; }
.omission__btn {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--dim);
  background: none; border: 0; border-bottom: 1px dashed var(--edge);
  padding: .3rem 0; cursor: pointer; text-align: left;
  transition: color 240ms ease, border-color 240ms ease;
}
.omission__btn:hover { color: var(--rust); border-bottom-color: var(--rust); }
.omission__body {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 420ms cubic-bezier(.4,0,.2,1), opacity 320ms ease;
}
.omission__btn[aria-expanded="true"] + .omission__body { grid-template-rows: 1fr; opacity: 1; }
.omission__inner { overflow: hidden; }
.omission__inner p {
  margin: 0; border-left: 2px solid var(--rust); padding: .1rem 0 .1rem 1.1rem;
  font-size: 1rem; line-height: 1.66; color: var(--text); max-width: 42ch;
}

/* ── Floor ────────────────────────────────────────────────────── */

.floor { padding-block: 5rem 3rem; display: grid; gap: 2.75rem; justify-items: start; }
.floor__pitch { display: grid; gap: 1.15rem; justify-items: start; }

.btn {
  display: inline-block; font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; padding: .95rem 1.5rem;
  background: var(--rust); color: var(--on-rust); border: 0; cursor: pointer;
  text-decoration: none; transition: filter 200ms ease, transform 200ms ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: none; color: var(--text); border: 1px solid var(--edge); padding: .9rem 1.45rem; }
.btn--quiet:hover { border-color: var(--rust); color: var(--rust); filter: none; }

.signup { display: grid; gap: 1rem; justify-items: start; width: min(100%, 34rem); }
.signup__row { display: flex; flex-wrap: wrap; gap: .6rem; width: 100%; }
.signup input {
  flex: 1 1 14rem; min-width: 0;
  font-family: var(--mono); font-size: 1rem;   /* 16px stops iOS zooming on focus */
  padding: .9rem 1rem;
  background: var(--panel); color: var(--text); border: 1px solid var(--edge);
  transition: border-color 200ms ease;
}
.signup input::placeholder { color: var(--dim); opacity: .75; }
.signup input:hover { border-color: var(--dim); }
.signup__msg {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); margin: 0; min-height: 1.2em;
}
.signup__msg[data-tone="bad"]  { color: var(--rust); }
.signup__msg[data-tone="good"] { color: var(--violet); }

.foot { border-top: 1px solid var(--edge); padding: 2.5rem 0 1rem;
        display: grid; gap: 1.4rem; justify-items: start; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.foot__ai { font-size: .9375rem; color: var(--dim); line-height: 1.7; max-width: 56ch; margin: 0; }
.endmark { width: 26px; height: 26px; color: var(--rust); }

/* ═══════════════════════════════════════════════════════════════
   48rem — the gauge earns a vertical rail
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; }
  body { padding-bottom: 0; font-size: 1.125rem; }
  .hook { font-size: 2.6rem; }
  .tier__name { font-size: 2.1rem; }
  .liturgy { font-size: 1.1875rem; }
  .ctl { padding: .5rem .7rem; }
  .ctl span { display: inline; }

  .gauge {
    inset: 50% clamp(.5rem,1.6vw,1.25rem) auto auto;
    transform: translateY(-50%);
    display: grid; grid-template-columns: auto 1px; gap: .7rem;
    height: min(58vh, 27rem);
    padding: 0; background: none; backdrop-filter: none; border: 0;
  }
  .gauge__read { display: grid; gap: .55rem; align-self: center;
                 text-align: right; line-height: 1.5; }
  .gauge__row { display: block; }
  .gauge__row b { display: block; font-size: .6875rem; }
  .gauge__track { position: relative; inset: auto; width: 1px; height: auto; }
  .gauge__tick { display: block; position: absolute; right: 0; width: 11px;
                 height: 1px; background: var(--dim); }
  .gauge__tick::after {
    content: attr(data-alt); position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%); font-family: var(--mono); font-size: .5625rem;
    letter-spacing: .1em; color: var(--dim); white-space: nowrap; opacity: .6;
  }
  .gauge__marker {
    inset: 0 -4px auto auto; width: 9px; height: 9px; margin-top: -4px;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
  }
  .threshold { min-height: 96svh; }
  .threshold__meta { font-size: .625rem; }
  .threshold__body { font-size: 1.1875rem; max-width: 38ch; }
}

/* ═══════════════════════════════════════════════════════════════
   60rem — the two-column descent
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 60rem) {
  :root { --gutter: 4rem; }
  .wrap { width: min(100% - (var(--gutter) * 2), 74rem); }
  .hook { font-size: clamp(2.6rem, 1.05rem + 3.4vw, 3.35rem); }
  .tier__name { font-size: clamp(2.1rem, 1.1rem + 2.2vw, 2.5rem); }
  .liturgy { font-size: 1.25rem; }

  .surface { padding: 9rem 0 5rem; }
  .surface__grid { grid-template-columns: minmax(0,15rem) minmax(0,1fr); gap: 4.5rem; }
  .cover-slot { max-width: 15rem; }

  /* The plate pins while the liturgy travels past it. */
  .tier__grid { grid-template-columns: minmax(0,1fr) minmax(0,20rem);
                gap: clamp(3rem,6vw,5.5rem); align-items: start; }
  .plate-col { display: block; position: sticky; top: 16vh;
               transform: translateZ(0); will-change: transform; }
  .tier__text { padding-block: 8vh 14vh; }

  /* Full desktop travel. */
  .tier--solar   { min-height: 170svh; --far:-70px;  --near:-190px; --tx:-26px; }
  .tier--terrace { min-height: 142svh; --far:-100px; --near:-270px; --tx:-38px; }
  .tier--crust   { min-height: 118svh; --far:-140px; --near:-380px; --tx:-52px; }
  .threshold { min-height: 104svh; }

  /* Two images per tier, so the background steps back. */
  .tier__plane--far  { opacity: .5; }
  .tier__plane--near { opacity: .72; }
  .tier--solar .tier__plane--far  { opacity: .34; }
  .tier--solar .tier__plane--near { opacity: .5; }

  .tier__scrim {
    background:
      linear-gradient(90deg, var(--ground) 4%,
        color-mix(in srgb, var(--ground) 86%, transparent) 42%,
        color-mix(in srgb, var(--ground) 30%, transparent) 78%),
      linear-gradient(180deg, var(--ground), transparent 22%, transparent 78%, var(--ground));
  }
  .tier__life {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000 46%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000 46%);
  }
  .insignia { width: 54px; height: 54px; }
  .floor { padding-block: 8rem 4rem; gap: 3.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Motion — parallax is pure CSS, compositor-side, no listener
   ═══════════════════════════════════════════════════════════════ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tier__void, .tier__plane, .tier__text {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .tier__plane--far  { --d: var(--far);  --sc: var(--z); }
    .tier__plane--near { --d: var(--near); --sc: calc(var(--z) + .04); }
    .tier__void { --d: var(--far); --sc: 1; }
    .tier__text { --d: var(--tx);  --sc: 1; }

    @keyframes drift {
      from { transform: translate3d(0, calc(var(--d) * var(--drift) * -1), 0) scale(1); }
      to   { transform: translate3d(0, calc(var(--d) * var(--drift)), 0) scale(var(--sc)); }
    }

    /* Arrival: the camera settles as the tier resolves. */
    .tier__bg { animation: arrive cubic-bezier(.16,1,.3,1) both;
                animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes arrive { from { transform: scale(var(--arrive)); } to { transform: scale(1); } }

    /* Lines below the eye sit dim and come up as they arrive.
       A focus effect, not an entrance. */
    .liturgy span { animation: line linear both; animation-timeline: view();
                    animation-range: entry 30% entry 95%; }
    @keyframes line { from { opacity: .22; } to { opacity: 1; } }

    .threshold__pipes > i:nth-child(1) { --pd: 4%; }
    .threshold__pipes > i:nth-child(2) { --pd: 9%; }
    .threshold__pipes > i:nth-child(3), .threshold__pipes > .flow { --pd: 17%; }
    .threshold__pipes > i, .threshold__pipes > .flow {
      animation: fall linear both; animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes fall {
      from { transform: translate3d(0, calc(var(--pd, 14%) * var(--drift) * -1), 0); }
      to   { transform: translate3d(0, calc(var(--pd, 14%) * var(--drift)), 0); }
    }

    .conduit .pipes > i:nth-child(1) { --cd: 6%; }
    .conduit .pipes > i:nth-child(2) { --cd: 14%; }
    .conduit .pipes > i:nth-child(3), .conduit .pipes > .flow { --cd: 26%; }
    .conduit .pipes > i, .conduit .pipes > .flow {
      animation: sink linear both; animation-timeline: scroll(root block);
    }
    @keyframes sink {
      from { transform: translate3d(0,0,0); }
      to   { transform: translate3d(0, calc(var(--cd) * -1 * var(--drift)), 0); }
    }

    .threshold__ladder { animation: fall linear both; animation-timeline: view();
                         animation-range: cover 0% cover 100%; }
    .gauge__marker { animation: descendX linear both; animation-timeline: scroll(root block); }
    @keyframes descendX { from { width: 0; } to { width: 100%; } }
  }
}

@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .gauge__marker { animation-name: descend; width: 9px; }
    @keyframes descend { from { top: 0; } to { top: 100%; } }
  }
}

/* Ambient drift. Slow, staggered so no two tiers fall into step. */
@media (prefers-reduced-motion: no-preference) {
  .tier__haze { animation: haze 27s ease-in-out infinite; }
  .tier--solar   .tier__breathe { animation: breath 34s ease-in-out infinite; }
  .tier--terrace .tier__breathe { animation: breath 29s ease-in-out infinite; }
  .tier--crust   .tier__breathe { animation: breath 23s ease-in-out infinite; }
}
@keyframes haze {
  0%,100% { transform: translate3d(-7%,2%,0) scale(1.08); }
  50%     { transform: translate3d(7%,-6%,0) scale(1.22); }
}
@keyframes breath {
  0%,100% { transform: scale(1.005) translate3d(0,0,0); }
  33%     { transform: scale(1.045) translate3d(-1.4%,.8%,0); }
  67%     { transform: scale(1.022) translate3d(1.2%,-1%,0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { --cross: 1ms; }
  .veil.is-crossing, .blackout.is-firing,
  .tier--solar.is-fired .scan, .tier--terrace.is-fired .tier__pulse { animation: none; }
  .omission__body, .tier__bg-mid { transition: none; }
  .tier--crust.is-lit .tier__bg-mid { transform: none; }
  .threshold { min-height: 56svh; }
  .threshold__iris { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Interior pages — about, privacy, on AI, read
   No descent, no gauge, no atmosphere. The reading is the point,
   so the page gets out of its own way.
   ═══════════════════════════════════════════════════════════════ */

.page { padding: 6.5rem 0 4rem; }
.page__head { display: grid; gap: 1.1rem; justify-items: start; margin-bottom: 2.5rem; }
.page__title { font-size: 2rem; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
.page__lede { font-size: 1.1875rem; line-height: 1.7; color: var(--dim); margin: 0; max-width: 46ch; }

.prose { max-width: 34rem; }
.prose > * + * { margin-top: 1.3em; }
.prose p { margin: 0; }
.prose h2 {
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  margin-top: 2.6em;
}
.prose a { color: var(--rust); text-decoration: none; border-bottom: 1px solid var(--edge); }
.prose a:hover { border-bottom-color: var(--rust); }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }

.portrait {
  width: 100%; max-width: 13rem; aspect-ratio: 4/5;
  border: 1px solid var(--edge); background: var(--panel);
  display: grid; place-content: center; text-align: center; padding: 1rem;
  margin-bottom: 2rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait:has(img) { padding: 0; }
.portrait p {
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); margin: 0; line-height: 2;
}

.page .foot { margin-top: 4rem; }

@media (min-width: 60rem) {
  .page { padding: 9rem 0 5rem; }
  .page__title { font-size: 2.8rem; }
  .page__grid { display: grid; grid-template-columns: minmax(0,13rem) minmax(0,1fr); gap: 4.5rem; align-items: start; }
  .portrait { margin-bottom: 0; position: sticky; top: 16vh; }
}

/* ═══════════════════════════════════════════════════════════════
   The Ledger
   ═══════════════════════════════════════════════════════════════ */

.ledger { display: grid; gap: 3.5rem; }
.ledger__empty { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em;
                 text-transform: uppercase; color: var(--dim); }

.edition { display: grid; gap: 1.75rem; }
.edition__date {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--dim);
  margin: 0; padding-bottom: .9rem; border-bottom: 1px solid var(--edge);
}

.entry { display: grid; gap: .85rem; max-width: 40rem; }
.entry__head { display: flex; align-items: center; gap: .8rem; }
.entry__mark { width: 30px; height: 30px; flex: none; }
.entry--chiral   .entry__mark { color: var(--text); }
.entry--ironwood .entry__mark { color: var(--dim); }
.entry--ashborn  .entry__mark { color: var(--rust); }
.entry__faction {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.entry__alt { display: block; font-family: var(--mono); font-size: .5625rem;
              letter-spacing: .14em; color: var(--rust); }
.entry__title { font-size: 1.35rem; font-weight: 600; line-height: 1.2;
                letter-spacing: -.01em; margin: 0; }
.entry__body { font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.entry--chiral   .entry__body { font-style: italic; }
.entry--ironwood .entry__body { font-style: italic; }
.entry__src {
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); margin: 0;
  padding-top: .7rem; border-top: 1px dashed var(--edge);
}
.entry__src a { color: var(--dim); }
.entry__src a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.entry__src span { opacity: .6; }

@media (min-width: 60rem) {
  .ledger { gap: 5rem; }
  .edition { gap: 2.5rem; }
  .entry__title { font-size: 1.6rem; }
  .entry__body { font-size: 1.125rem; }
}

/* One event, three accounts: the trio reads as one unit and the real
   headline arrives underneath it rather than before it. */
.edition__date span { color: var(--rust); letter-spacing: .2em; }
.edition--one { position: relative; padding-left: 1.1rem; }
.edition--one::before {
  content: ''; position: absolute; left: 0; top: .4rem; bottom: 3.4rem;
  width: 1px; background: var(--edge);
}
.edition--one .entry { gap: .7rem; }
.edition__src { padding-top: .4rem; }
.edition__src .entry__src { border-top: 1px solid var(--edge); padding-top: 1rem; }
@media (min-width: 60rem) { .edition--one { padding-left: 1.8rem; } }

/* ═══════════════════════════════════════════════════════════════
   Header navigation
   Only two destinations, so inline text beats a menu button.
   ═══════════════════════════════════════════════════════════════ */

.chrome__nav { display: flex; gap: .9rem; margin-inline: .9rem auto; }
.chrome__nav a {
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease; white-space: nowrap;
}
.chrome__nav a:hover { color: var(--text); }
.chrome__nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }

.chrome__mark { white-space: nowrap; font-size: .5625rem; letter-spacing: .12em; }

@media (min-width: 30rem) {
  .chrome__mark { font-size: .6875rem; letter-spacing: .2em; }
  .chrome__nav { gap: 1.2rem; margin-inline: 1.4rem auto; }
  .chrome__nav a { font-size: .625rem; letter-spacing: .14em; }
}

/* ═══════════════════════════════════════════════════════════════
   Reading
   Atmosphere lives in the chrome. The prose sits on a calm page and
   does its own work. Measure, leading and contrast are the only
   things that matter here.
   ═══════════════════════════════════════════════════════════════ */

.read { padding: 6rem 0 3rem; }
.read .wrap { width: min(100% - (var(--gutter) * 2), 38rem); }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 55; height: 2px; }
.progress span { display: block; height: 100%; width: 0; background: var(--rust); }

.ch__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: 3.5rem; }
.ch__title { font-size: 2rem; font-weight: 600; line-height: 1.1;
             letter-spacing: -.018em; margin: 0; text-wrap: balance; }
.ch__note { font-size: 1rem; line-height: 1.7; color: var(--dim); margin: 0; max-width: 44ch; }

.ch { font-size: 1.125rem; line-height: 1.78; }
.ch p { margin: 0 0 1.35em; max-width: none; }
.ch p + p { text-indent: 1.4em; }
.ch em { font-style: italic; }

.ch__sec {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--dim);
  margin: 3.2em 0 1.8em; padding-bottom: .7rem; border-bottom: 1px solid var(--edge);
}
.ch__sec:first-child { margin-top: 0; }
.ch__sec span { color: var(--rust); }
.ch__sec + p { text-indent: 0; }

.ch__break { border: 0; margin: 2.4em auto; width: 100%; height: 10px;
             background: radial-gradient(circle, var(--edge) 1.5px, transparent 1.6px) 50% / 18px 10px no-repeat,
                         radial-gradient(circle, var(--edge) 1.5px, transparent 1.6px) calc(50% - 16px) / 18px 10px no-repeat,
                         radial-gradient(circle, var(--edge) 1.5px, transparent 1.6px) calc(50% + 16px) / 18px 10px no-repeat; }
.ch__break + p { text-indent: 0; }

.ch__end { margin-top: 4rem; display: grid; gap: 2.25rem; justify-items: start; }
.ch__after { font-size: 1.0625rem; line-height: 1.7; color: var(--dim); margin: 0; max-width: 46ch; }

@media (min-width: 60rem) {
  .read { padding: 9rem 0 4rem; }
  .ch__title { font-size: 2.9rem; }
  .ch { font-size: 1.1875rem; line-height: 1.8; }
  .ch__head { margin-bottom: 4.5rem; }
}
