/* SVRA site — monochrome system v1.
   Black & white only. Colour enters only through an accepted definition
   (docs/PLAN_SVRA_SITE_REBUILD_20261023.md §3.2). Until then: #000, #fff,
   and the grey ladder below. No hue anywhere in this file — depth comes
   from light: grain, halo, glass highlights, and shadow.

   Effect kit (borrowed patterns, re-tokenized to grey):
   - atmosphere drift + pointer parallax + grain: an-viz-ui static
   - film grain over everything / paper tooth on light: ex-meridian landing.css
   - glass cards (inset top highlight + blurred glow): an-viz-ui cmd-head sheet */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --paper: #fff;
  --grey-text: #333;
  --grey-muted: #6f6f6f;
  --grey-hairline: #e3e3e3;
  --grey-surface: #f4f4f4;
  --font-display: Georgia, "Times New Roman", serif;
  --font-text: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --px: 0;
  --py: 0;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.6s ease both;
}
@keyframes page-in { from { opacity: 0; } }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
section[id] { scroll-margin-top: 4.5rem; }

/* Film grain over everything — unifies black and white registers. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05;
  background-image: var(--grain);
}

a { color: inherit; }

/* Inline doors inside body copy read as links, not buttons. Doors, nav,
   and footer keep their own treatments (higher specificity wins). */
main p a { text-decoration: underline; text-underline-offset: 3px; }
main p a:hover { text-shadow: 0 0 18px rgba(255,255,255,0.35); }
.admission .door + .door { margin-left: 0.6rem; }

::selection { background: var(--paper); color: var(--black); }
.values ::selection { background: var(--black); color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.values :focus-visible { outline-color: var(--black); }

/* Fixed atmosphere behind the content (black sections show it; the white
   values strip covers it with opaque paper). Pointer parallax rides the
   container so the blob drift keyframes keep their own transform. */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
  transform: translate(calc(var(--px) * 18px), calc(var(--py) * 12px));
}
.nebula {
  position: absolute; width: 70%; height: 55%; border-radius: 50%;
  filter: blur(90px);
}
.nebula-a {
  left: 8%; top: 4%; opacity: 0.5;
  background: radial-gradient(circle, rgba(255,255,255,0.075) 0%, transparent 70%);
  animation: drift-a 72s ease-in-out infinite alternate;
}
.nebula-b {
  right: 2%; top: 34%; opacity: 0.45;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  animation: drift-b 88s ease-in-out infinite alternate;
}
.nebula-c {
  left: 28%; bottom: 2%; opacity: 0.4;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: drift-c 96s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(-2%, 0); } to { transform: translate(3%, 2%); } }
@keyframes drift-b { from { transform: translate(2%, -1%); } to { transform: translate(-3%, 2%); } }
@keyframes drift-c { from { transform: translate(0, 2%); } to { transform: translate(2%, -2%); } }
.atmosphere-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.55) 100%);
}

main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 0.6rem;
  gap: 1rem; padding: 0.7rem 1.25rem;
  background: rgba(0,0,0,0.88);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #333 18%, #333 82%, transparent) 1;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; filter: drop-shadow(0 0 8px rgba(255,255,255,0.35)); }
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em; font-size: 1.05rem; }
.links { display: none; gap: 1.4rem; font-size: 0.95rem; }
.links a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s, text-shadow 0.2s; }
.links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 0 18px rgba(255,255,255,0.4); }
@media (min-width: 760px) { .links { display: flex; } }
@media (max-width: 560px) {
  .nav { gap: 0.7rem; padding: 0.6rem 0.9rem; justify-content: flex-start; }
  .cta { padding: 0.4rem 0.75rem; }
  .mode-switch { font-size: 0.72rem; }
  .mode-switch a { padding: 0.36rem 0.68rem; }
}
.cta {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  text-decoration: none; border: 1px solid var(--paper);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta:hover { background: var(--paper); color: var(--black); box-shadow: 0 0 26px -4px rgba(255,255,255,0.5); }

/* Mode switch — Site (grounded reading) / Field (GPU framework view).
   Same two rooms, every page. The current room is filled. */
.mode-switch {
  display: inline-flex; border: 1px solid #444; border-radius: 999px;
  overflow: hidden; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.mode-switch a { padding: 0.42rem 0.85rem; text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.mode-switch a:hover { opacity: 1; }
.mode-switch a[aria-current="true"] { background: var(--paper); color: var(--black); opacity: 1; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #333 18%, #333 82%, transparent) 1;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-stage {
  position: relative; z-index: 1;
  width: min(340px, 68vw); margin: 0 auto 2.2rem;
  animation: rise 1s var(--ease) both;
}
/* Halo: tight bright core + wide faint wash, breathing. Parallax rides
   transform (no keyframe transform here, so the two compose). */
.hero-halo {
  position: absolute; inset: -18% -28%; z-index: 0;
  background:
    radial-gradient(ellipse 50% 42% at 50% 46%, rgba(255,255,255,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 72% 60% at 50% 48%, rgba(255,255,255,0.055) 0%, transparent 70%);
  transform: translate(calc(var(--px) * -16px), calc(var(--py) * -10px));
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.75; } to { opacity: 1; } }
/* Sheen: a slow conic sweep masked to a soft disc behind the mark. */
.hero-sheen {
  position: absolute; z-index: 0;
  width: 150%; aspect-ratio: 1; left: -25%; top: -12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,0.055) 40deg, transparent 90deg, transparent 200deg, rgba(255,255,255,0.035) 250deg, transparent 300deg);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 62%);
  mask-image: radial-gradient(circle, black 0%, transparent 62%);
  animation: sheen-spin 60s linear infinite;
}
@keyframes sheen-spin { to { transform: rotate(360deg); } }
.hero-mark-wrap { position: relative; z-index: 1; animation: float 9s ease-in-out infinite alternate; }
.hero-mark {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 0 26px rgba(255,255,255,0.28)) drop-shadow(0 0 90px rgba(255,255,255,0.12));
  transition: filter 0.35s;
}
/* Sculpted light, masked to the linework so it reads as relief on the
   skull rather than a wash over the box: hot crown, open mid, deep jaw. */
.hero-mark-light, .hero-mark-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: url("/assets/mark-white-line.png");
  mask-image: url("/assets/mark-white-line.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero-mark-light {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.10) 30%,
    rgba(255,255,255,0) 52%, rgba(0,0,0,0.12) 72%, rgba(0,0,0,0.42) 100%);
}
/* A slow diagonal sheen crossing the skull, then a long hold. */
.hero-mark-sheen {
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.4) 50%, transparent 58%);
  background-size: 280% 100%;
  animation: skull-sweep 9s ease-in-out infinite;
}
@keyframes skull-sweep {
  0% { background-position: 125% 0; }
  32% { background-position: -25% 0; }
  100% { background-position: -25% 0; }
}
.hero-stage:hover .hero-mark {
  filter: drop-shadow(0 0 34px rgba(255,255,255,0.42)) drop-shadow(0 0 110px rgba(255,255,255,0.18));
}
@keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero h1 {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; letter-spacing: 0.01em;
  margin-bottom: 1.3rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,0.28), 0 0 60px rgba(255,255,255,0.14), 0 2px 24px rgba(0,0,0,0.9);
  animation: rise 1s var(--ease) 0.12s both;
}
/* The one accepted hue on the site (operator, 2026-11-20; §3.2's
   "accepted definition"): the hero rotator word in muted gold.
   Nowhere else. Depth elsewhere still comes from light alone. */
.rotator {
  display: inline-block; min-width: 13.4ch; text-align: center;
  color: #dcbd85;
  text-shadow: 0 0 18px rgba(220, 189, 133, 0.38), 0 0 46px rgba(220, 189, 133, 0.16);
  transition: opacity 0.55s var(--ease), filter 0.55s var(--ease), transform 0.55s var(--ease);
}
.rotator.swap { opacity: 0; filter: blur(7px); transform: translateY(7px); }
.lede {
  position: relative; z-index: 1;
  max-width: 38rem; margin: 0 auto 2.2rem; font-size: 1.12rem; color: #d8d8d8;
  text-shadow: 0 2px 18px rgba(0,0,0,0.8);
  animation: rise 1s var(--ease) 0.22s both;
}
.doors { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.hero .doors { position: relative; z-index: 1; animation: rise 1s var(--ease) 0.32s both; }
.door {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--paper); border-radius: 999px;
  padding: 0.65rem 1.35rem; font-size: 0.98rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.door span[aria-hidden="true"] { display: inline-block; transition: transform 0.2s var(--ease); }
.door:hover { background: var(--paper); color: var(--black); box-shadow: 0 0 30px -6px rgba(255,255,255,0.55); transform: translateY(-1px); }
.door:hover span[aria-hidden="true"] { transform: translateX(4px); }
.door-primary { background: var(--paper); color: var(--black); box-shadow: 0 0 26px -8px rgba(255,255,255,0.5); }
.door-primary:hover { background: transparent; color: var(--paper); box-shadow: 0 0 30px -6px rgba(255,255,255,0.35); }

/* Page medallion — the mark at pillar-page scale, same halo grammar. */
.page-mark { position: relative; width: 104px; margin: 0 0 1.6rem; }
.page-mark::before {
  content: ""; position: absolute; inset: -45% -45%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.14) 0%, transparent 68%);
}
.page-mark img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 0 16px rgba(255,255,255,0.3)); }
.page-mark-light {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.36) 100%);
  -webkit-mask-image: url("/assets/mark-small-white-line.png");
  mask-image: url("/assets/mark-small-white-line.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Values — light register for reading. Depth from paper tooth, edge falloff
   into the surrounding black, and a top-light gradient per cell. */
.values {
  position: relative;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr; gap: 0;
  box-shadow: inset 0 30px 44px -34px rgba(0,0,0,0.55), inset 0 -30px 44px -34px rgba(0,0,0,0.55);
}
.values::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: multiply;
}
@media (min-width: 760px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value {
  position: relative; z-index: 1;
  padding: 2rem 1.5rem 2.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  box-shadow: inset 0 1px 0 #fff;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #cfcfcf 20%, #cfcfcf 80%, transparent) 1;
}
@media (min-width: 760px) {
  .value { border-bottom: none; border-right: 1px solid transparent; border-image: linear-gradient(180deg, transparent, #cfcfcf 22%, #cfcfcf 78%, transparent) 1; }
  .value:last-child { border-right: none; }
}
.value h2 {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.7rem;
}
.value p { font-size: 0.94rem; color: var(--grey-text); }

/* Pillars */
.pillar { padding: 4rem 1.25rem; max-width: 1080px; margin: 0 auto; }
.pillar + .pillar {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #333 18%, #333 82%, transparent) 1;
}
.kicker {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #9a9a9a;
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: ""; display: inline-block; width: 2.1rem; height: 1px;
  background: linear-gradient(90deg, transparent, #8a8a8a);
}
.pillar h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; margin-bottom: 1rem;
  text-shadow: 0 0 36px rgba(255,255,255,0.13);
}
.pillar-lede { font-size: 1.08rem; color: #d8d8d8; max-width: 44rem; margin-bottom: 2.2rem; }
.page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.08; margin-bottom: 1.1rem;
  text-shadow: 0 0 36px rgba(255,255,255,0.13);
}
.subhead {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #9a9a9a;
  margin: 2.6rem 0 1.1rem;
}
.links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Cards — glass: top-light gradient, inset highlight, deep floor shadow.
   Hover lifts the plate into its own glow. */
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid #2e2e2e; border-radius: 10px;
  padding: 1.5rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 44px -22px rgba(0,0,0,0.95);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #4d4d4d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 26px 54px -18px rgba(0,0,0,1), 0 0 36px -12px rgba(255,255,255,0.14);
}
.card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #c9c9c9; }

.admission {
  position: relative;
  margin-top: 2.4rem; border: 1px solid rgba(255,255,255,0.85); border-radius: 10px;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 60px -18px rgba(255,255,255,0.22), 0 24px 50px -24px rgba(0,0,0,1);
}
.admission h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.7rem; }
.admission p { color: #d8d8d8; max-width: 42rem; margin-bottom: 1.4rem; }

.status { margin-top: 2rem; color: #c9c9c9; max-width: 44rem; }
.status strong { color: var(--paper); }

/* Field */
.field-note { color: #c9c9c9; max-width: 42rem; margin-bottom: 1.6rem; }
.field-note kbd {
  font-family: var(--font-mono); font-size: 0.85em;
  border: 1px solid #555; border-bottom-width: 2px; border-radius: 4px;
  padding: 0.05rem 0.4rem;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Footer */
.footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #333 18%, #333 82%, transparent) 1;
  padding: 2.6rem 1.25rem 2.2rem;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.8rem; }
.footer-brand img { display: block; height: 28px; width: auto; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.footer-line {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #9a9a9a;
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; justify-content: center; margin-bottom: 1.4rem; font-size: 0.94rem; }
.footer-links a { text-decoration: none; opacity: 0.8; transition: opacity 0.2s, text-shadow 0.2s; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 0 18px rgba(255,255,255,0.4); }
.footer-meta { font-size: 0.82rem; color: #8a8a8a; max-width: 40rem; margin: 0 auto; }

/* Status lamps — the ruled exception (plan §3.2 C5): green reads good and
   red reads bad faster than any shape, so states carry color AND shape.
   Breathing green dot = measured-good; blinking red diamond = failing;
   still grey ring = unmeasured. Labels always accompany. */
.lamp { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.08em; background: transparent; border: 1.5px solid #6f6f6f; }
.lamp.ok { background: #3fb96f; border-color: transparent; box-shadow: 0 0 10px rgba(63,185,111,0.55); animation: lamp-breathe 2.6s ease-in-out infinite; }
.lamp.bad { background: #e5484d; border-color: transparent; border-radius: 0.1em; transform: rotate(45deg) scale(0.9); animation: lamp-urgent 1.1s ease-in-out infinite; }
@keyframes lamp-breathe { 0%, 100% { box-shadow: 0 0 6px rgba(63,185,111,0.35); } 50% { box-shadow: 0 0 14px rgba(63,185,111,0.7); } }
@keyframes lamp-urgent { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Status verdict + legend — the page answers first, then shows work. */
.verdict { font-size: 1.14rem; max-width: 44rem; margin: 0 0 1.8rem; }
.verdict strong { font-weight: 600; }
.legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  padding: 0; margin: 0 0 2.1rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: #9a9a9a;
}
.legend li { display: flex; align-items: center; }

/* Status SSR list */
.status-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.2rem; }
.status-list li { font-size: 0.95rem; color: #c9c9c9; }
.status-list strong { color: var(--paper); font-weight: 600; }

/* Scroll reveal — progressive enhancement. Without JS there is no .js
   class on <html>, so everything renders in its final state. */
html.js .reveal {
  opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.revealed { opacity: 1; transform: none; filter: blur(0); }
html.js .reveal-group > * {
  opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
html.js .reveal-group > *:nth-child(1) { transition-delay: 0s; }
html.js .reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
html.js .reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
html.js .reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
html.js .reveal-group.revealed > * { opacity: 1; transform: none; filter: blur(0); }
/* Once revealed, groups settle: reveal transitions retire so component
   transitions (card hover lift) own their properties again. JS adds
   .settled ~1s after .revealed. The hover rule below must outrank the
   revealed transform reset, hence the full selector. */
html.js .reveal-group.settled > * { transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s; }
html.js .cards.reveal-group.settled > .card:hover {
  transform: translateY(-3px);
  border-color: #4d4d4d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 26px 54px -18px rgba(0,0,0,1), 0 0 36px -12px rgba(255,255,255,0.14);
}

/* Motion carries no meaning the static layout lacks: everything off. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js .reveal-group > * { opacity: 1; transform: none; filter: none; }
  .hero-mark-sheen { display: none; }
}

/* ── Polish pass: continuous motion, indices, editorial furniture ──── */

/* Scroll progress — a 2px hairline pulling across the top. */
#progress {
  position: fixed; top: 0; left: 0; z-index: 70;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #666, #fff);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* Nav deepens once the page moves. */
.nav { transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(0,0,0,0.96); box-shadow: 0 18px 40px -16px rgba(0,0,0,1); }

/* Property ticker — the four words as institutional rhythm. */
.ticker {
  position: relative; z-index: 1; overflow: hidden;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #2c2c2c 18%, #2c2c2c 82%, transparent) 1;
  padding: 0.65rem 0;
}
.ticker-track {
  display: flex; width: max-content; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: #7d7d7d;
  animation: tick 48s linear infinite;
}
.ticker-track span { padding-right: 0.5rem; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; justify-content: center; }
  .ticker-track span:nth-child(2) { display: none; }
}

/* Scroll cue — a small invitation with a falling dot. */
.scroll-cue {
  position: relative; z-index: 1;
  margin-top: 2.6rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: #7d7d7d;
  animation: rise 1s var(--ease) 0.5s both;
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 44px; margin: 0.7rem auto 0;
  background: #333; position: relative; overflow: hidden;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 1.8rem; z-index: 1;
  width: 1px; height: 12px; margin-left: -0.5px;
  background: #fff;
  animation: cue-drop 2.2s var(--ease) 1.2s infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-14px); opacity: 0; }
  25% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* Numbered cards + values — editorial indices, zero markup. */
.cards { counter-reset: card; }
.card { counter-increment: card; }
.card h3 { transition: text-shadow 0.25s; }
.card h3::before {
  content: "0" counter(card);
  display: block;
  font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem;
  letter-spacing: 0.18em; color: #6f6f6f;
  margin-bottom: 0.55rem;
}
.card:hover h3 { text-shadow: 0 0 22px rgba(255,255,255,0.28); }
.values { counter-reset: value; }
.value { counter-increment: value; }
.value h2::before {
  content: "0" counter(value);
  display: block;
  font-weight: 400; color: #9a9a9a;
  margin-bottom: 0.45rem;
}

/* Cursor spotlight — light follows the pointer across plates. */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.09), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Buttons answer the pointer: magnetic drift + press. */
.magnet { will-change: transform; }
.door:active, .cta:active { transform: scale(0.96); }

/* Footer watermark — the house name as architecture. */
.footer { overflow: hidden; }
.footer-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: 0.9; letter-spacing: 0.08em; text-indent: 0.08em;
  color: rgba(255,255,255,0.055);
  user-select: none; pointer-events: none;
  margin-bottom: 1.2rem;
}
@supports (-webkit-text-stroke: 1px black) {
  .footer-mark { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.17); }
}

/* ── Operator pages: steps, comparison, dispatches, footer wink ── */

.footer-wink {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #bdbdbd;
  margin: -0.85rem 0 1.35rem;
}

.lede-follow {
  font-size: 1.08rem;
  color: #d8d8d8;
  max-width: 44rem;
  margin-bottom: 1.15rem;
}

.steps code, .strip code, .dispatch code, .card code, .admission code, .notes code, .compare code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: #e8e8e8;
}

.join-diagram-wrap { margin: 0.2rem 0 2.2rem; overflow-x: auto; }
.join-diagram { width: 100%; min-width: 640px; height: auto; display: block; }
.join-diagram .ink {
  fill: none;
  stroke: #fff;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.join-diagram .arrow {
  fill: none;
  stroke: #8a8a8a;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.join-diagram .label {
  font-family: Georgia, "Times New Roman", serif;
  fill: #fff;
}
.join-diagram .sub {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  fill: #9a9a9a;
  letter-spacing: 0.12em;
}
.diagram-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-top: 0.85rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 0.6rem;
  border-top: 1px solid #2e2e2e;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 0 1.25rem 3.6rem;
  border-bottom: 1px solid #2e2e2e;
}
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 1.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #9a9a9a;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.steps p { color: #c9c9c9; font-size: 0.98rem; max-width: 44rem; }

.strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }
.strip article {
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 44px -22px rgba(0,0,0,0.95);
}
.strip h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
}
.strip p { color: #c9c9c9; font-size: 0.95rem; }

.compare-wrap { overflow-x: auto; margin-bottom: 0.3rem; }
table.compare {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1.1rem 1rem 0;
  border-bottom: 1px solid #2e2e2e;
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.compare tbody th {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  width: 28%;
  letter-spacing: 0;
  text-transform: none;
}
.compare td { color: #d8d8d8; font-size: 1.02rem; }
.compare sup {
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.04em;
  color: #9a9a9a;
  margin-left: 0.2em;
}
.compare sup a { text-decoration: none; }

/* ── Small screens: reshape, don't shrink ──────────────────────────
   Horizontal scroll regions read as broken on phones, so wide
   compositions get native stacked equivalents instead. */
.join-steps { display: none; }
@media (max-width: 760px) {
  /* Join diagram becomes a vertical stepper; the SVG retires. */
  .join-diagram-wrap { display: none; }
  .join-steps {
    display: block; list-style: none; margin: 0 0 2.2rem; padding: 0;
  }
  .join-steps li { position: relative; padding: 0 0 1.35rem 1.9rem; }
  .join-steps li:last-child { padding-bottom: 0; }
  .join-steps li::before {
    content: ""; position: absolute; left: 0; top: 0.42rem;
    width: 9px; height: 9px; border-radius: 50%;
    border: 1.5px solid #8a8a8a; background: #000;
  }
  .join-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 4px; top: 1.25rem; bottom: 0.15rem;
    width: 1px; background: linear-gradient(180deg, #555, #242424);
  }
  .join-steps strong {
    display: block; font-family: var(--font-display);
    font-size: 1.08rem; font-weight: 600;
  }
  .join-steps span {
    display: block; font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: #9a9a9a;
    margin-top: 0.2rem;
  }
  /* Compare table becomes stacked cards; headers turn into labels. */
  .compare-wrap { overflow-x: visible; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  table.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr {
    border: 1px solid #2e2e2e; border-radius: 10px;
    padding: 1.15rem 1.2rem 1.25rem; margin-bottom: 0.8rem;
    background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 44px -22px rgba(0,0,0,0.95);
  }
  .compare tbody th {
    width: auto; padding: 0; margin-bottom: 0.55rem; border: 0;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  }
  .compare td { padding: 0; border: 0; font-size: 0.95rem; }
}
@media (max-width: 560px) {
  /* Code wraps instead of hiding: clipped code reads broken. */
  .exhibit { white-space: pre-wrap; word-break: break-word; font-size: 0.74rem; }
  /* The four properties fit one line instead of orphaning a middot. */
  .footer-line { font-size: 0.66rem; letter-spacing: 0.1em; }
}
.notes {
  list-style: none;
  counter-reset: note;
  max-width: 44rem;
  margin-top: 1.3rem;
}
.notes li {
  counter-increment: note;
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.9rem;
  color: #c9c9c9;
  font-size: 0.92rem;
}
.notes li {
  counter-increment: note;
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.9rem;
  color: #c9c9c9;
  font-size: 0.92rem;
}
/* Nested detail lists: dash markers, and they must not feed the note
   counter — hence the child selectors on the rules above. */
.notes > li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9a9a9a;
}
.notes li ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem 0 0.7rem;
  padding: 0;
}
.notes li ul li {
  counter-increment: none;
  margin-bottom: 0;
  padding-left: 1.1rem;
}
.notes li ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9a9a9a;
}
.notes li ul strong { color: #e8e8e8; font-weight: 600; }
.notes a { color: #fff; }

/* Registry exhibit — the file is the artifact. */
.exhibit {
  background: #0a0a0a;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #d8d8d8;
  overflow-x: auto;
  max-width: 44rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 44px -22px rgba(0,0,0,0.95);
}
.exhibit code { font: inherit; color: inherit; background: none; padding: 0; }

.dispatch-list { display: grid; gap: 1rem; }
.dispatch-item {
  display: block;
  text-decoration: none;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 1.35rem 1.45rem 1.45rem;
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 44px -22px rgba(0,0,0,0.95);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.dispatch-item:hover {
  transform: translateY(-3px);
  border-color: #4d4d4d;
  text-decoration: none;
}
html.js .dispatch-list.reveal-group.settled > .dispatch-item:hover {
  transform: translateY(-3px);
  border-color: #4d4d4d;
}
.dispatch-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.dispatch-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.4rem 0 0.45rem;
}
.dispatch-item p { color: #c9c9c9; font-size: 0.98rem; }
.dispatch-date.stand { margin: 0 0 0.85rem; }
.dispatch { max-width: 40rem; }
.dispatch p {
  color: #d8d8d8;
  font-size: 1.05rem;
  margin-bottom: 1.05rem;
}
.dispatch a { text-decoration: underline; text-underline-offset: 3px; }
.back {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
  text-decoration: none;
}
.back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
