/* ============================================================
   SANGUINE — core.css
   Oxblood-black surface. Arterial ink. One thread down the margin.
   The red is the ink, not the accent. The black is stained, not neutral.
   ============================================================ */

:root {
  /* --- surface: a black that has absorbed something --- */
  --void:        oklch(13.5% 0.030 20);
  --deep:        oklch(17%   0.038 22);
  --raise:       oklch(21%   0.042 22);

  /* --- ink: arterial, used for structure --- */
  --thread:      oklch(60%   0.205 26);
  --thread-dim:  oklch(41%   0.135 26);
  /* Borders are alpha-based, never hex. A hex hairline on dark is a dead
     grey line; the same hue at 27% lightness reads as light falling on an
     edge. If the surface shifts even slightly, the border follows it. */
  --thread-faint:oklch(27%   0.065 26);
  --rule:        oklch(60% 0.205 26 / 0.14);
  --rule-hover:  oklch(60% 0.205 26 / 0.32);

  /* --- bone: the exception, for reading only --- */
  --bone:        oklch(91%   0.014 85);
  --bone-dim:    oklch(65%   0.012 85);
  --ash:         oklch(41%   0.008 85);

  /* --- voices --- */
  --serif: 'Instrument Serif', 'Times New Roman', Times, serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', 'Courier New', monospace;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* --- measure --- */
  --col: 46rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --indent: clamp(1.75rem, 6vw, 3.25rem);

  /* --- motion: five durations, five curves, nothing else --- */
  /* exit is always 50ms shorter than entrance */
  --d-micro:  83ms;   /* 5f  — nib tick, colour flash          */
  --d-small: 150ms;   /* 9f  — hover, nib change               */
  --d-med:    200ms;   /* 12f — cursor travel, row select       */
  --d-large: 400ms;   /* 24f — confirm, seal press             */
  --d-entry: 900ms;   /* 54f — thread draw, title ink          */

  /* three independent research streams converged on the same first
     three control points. that is not taste, that is the correct
     value for "fast out, hard stop". */
  --e-snap:   cubic-bezier(.22, 1, .36, 1);    /* easeOutQuint — game default */
  --e-ink:    cubic-bezier(.16, 1, .3, 1);     /* Cuberto ×19 — expo-out      */
  --e-settle: cubic-bezier(.34, 1.56, .64, 1); /* easeOutBack — 10% overshoot */
  /* the loud one. Cuberto's confirm curve. the 4.56 second control point
     is a 30% overshoot — it goes 30% past the target and comes back.
     easeOutBack's 1.56 is a 10% overshoot. this is for the seal press
     and the gate crack, where the motion should read as a physical hit. */
  --e-hit:    cubic-bezier(.34, 4.56, .64, 1); /* Cuberto ×3 — big overshoot  */
  --e-stroke: cubic-bezier(.65, 0, .35, 1);    /* easeInOutCubic — hand       */
  --e-exit:   cubic-bezier(.3, 0, .8, .15);    /* accelerate away             */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  max-width: 100%;
  padding: 0 var(--gutter);
  background: var(--void);
  color: var(--bone-dim);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--thread); color: var(--void); }

/* ---------- grain: aged surface, not "dark mode" ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the ledger column ---------- */
.ledger {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: clamp(4rem, 13vh, 8.5rem) 0 clamp(3rem, 8vh, 5rem);
}

/* the thread: structural, full height, never decorative */
.thread {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--thread-faint) 4%,
    var(--thread-dim) 30%,
    var(--thread-dim) 70%,
    var(--thread-faint) 96%,
    transparent 100%
  );
}

.entry {
  position: relative;
  padding-left: var(--indent);
  margin-bottom: clamp(4rem, 11vh, 6.5rem);
}

/* the knot where the thread ties off at each section */
.marker {
  position: absolute;
  left: -3px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--thread);
  box-shadow: 0 0 0 4px var(--void), 0 0 12px oklch(60% 0.205 26 / 0.45);
}

/* ---------- masthead ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--thread);
  margin: 0 0 1.75rem;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.25rem, 17vw, 9rem);
  line-height: 0.86;
  /* -0.035em at 144px = -5.04px. Instrument Serif is a display serif with
     loose default spacing; without this the capitals read as seven separate
     words instead of one mark. */
  letter-spacing: -0.035em;
  color: var(--bone);
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.125rem, 3.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--bone-dim);
  max-width: 24em;
  margin: 0;
}

/* ---------- section label: the mono voice ---------- */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 2rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- prose: the reading voice ---------- */
.prose p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--bone-dim);
  max-width: 34em;
  margin: 0 0 1.375rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child {
  font-size: 1.1875rem;
  color: var(--bone);
}

/* ---------- ledger rows ---------- */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.row { border-bottom: 1px solid var(--rule); }

.row-head {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto 1.25rem;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.375rem 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.row-head:focus-visible {
  outline: 1px solid var(--thread);
  outline-offset: 4px;
}

.num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--thread);
}
.name {
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.2;
  color: var(--bone-dim);
  /* asymmetric: 150ms in, 83ms out. the colour arrives slowly enough to
     read as a decision, leaves fast enough to feel responsive. */
  transition: color var(--d-small) var(--e-snap);
}
.row-head:hover .name,
.row.open .name { color: var(--bone); }

.year {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ash);
}

/* the seal: closed ring, filled when opened */
.seal {
  justify-self: end;
  width: 9px;
  height: 9px;
  border: 1px solid var(--thread-dim);
  border-radius: 50%;
  /* asymmetric enter/leave: 150ms in, 83ms out */
  transition:
    background-color var(--d-small) var(--e-snap),
    border-color var(--d-small) var(--e-snap),
    box-shadow var(--d-small) var(--e-snap);
}
.row-head:hover .seal { border-color: var(--thread); }
.row.open .seal {
  background: var(--thread);
  border-color: var(--thread);
  box-shadow: 0 0 10px oklch(60% 0.205 26 / 0.55);
}

/* ---------- detail ---------- */
/* Asymmetric enter/leave — Locomotive's 0.45s/0.2s ratio. Content arrives
   slowly so you can read it landing; it leaves fast so the page never
   feels like it's waiting on you. */
.detail {
  padding: 0 0 1.875rem;
  max-width: 38em;
  animation: detail-in 450ms var(--e-snap);
}
.row:not(.open) .detail {
  animation: detail-out 200ms var(--e-exit);
}
@keyframes detail-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes detail-out {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.detail[hidden] { display: none; }
.detail p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--bone-dim);
  margin: 0 0 1.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.375rem;
  padding: 0;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thread);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.625rem;
}

.link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--thread);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.link:hover { color: var(--thread); }

/* ---------- contact ---------- */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}
.contact-list .v {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-list a.v:hover { color: var(--thread); border-color: var(--thread); }
.contact-list .dim { color: var(--ash); }

/* ---------- colophon ---------- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ============================================================
   THE SEAL — entry gate
   One button. The click that dismisses it is the click that
   unlocks audio. One gesture, no waste.
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow: hidden;
}

.gate-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%,
      oklch(22% 0.06 22 / 0.9) 0%,
      var(--void) 62%),
    var(--void);
}

/* the seal mark: a wax ring with a hairline fracture */
.gate-mark {
  position: relative;
  display: block;
  width: clamp(72px, 18vw, 108px);
  height: clamp(72px, 18vw, 108px);
  margin: 0 auto 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--thread-dim);
  box-shadow:
    0 0 0 6px oklch(13.5% 0.030 20 / 0.9),
    0 0 0 7px var(--thread-faint),
    0 0 40px oklch(60% 0.205 26 / 0.18);
  background: radial-gradient(circle at 50% 45%,
    oklch(38% 0.13 26 / 0.55) 0%,
    oklch(24% 0.09 25 / 0.35) 55%,
    transparent 78%);
}
.gate-mark::after {
  /* the fracture — drawn, not decorative */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(103deg,
    transparent 46%,
    oklch(88% 0.01 85 / 0.5) 47%,
    transparent 48%,
    transparent 61%,
    oklch(88% 0.01 85 / 0.32) 62%,
    transparent 63%);
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--d-micro) steps(1);
}
.gate.is-cracking .gate-mark::after { opacity: 1; }
.gate.is-cracking .gate-mark {
  animation: gate-crack var(--d-large) var(--e-hit) forwards;
}
@keyframes gate-crack {
  0%   { transform: scale(1) rotate(0deg); }
  12%  { transform: scale(.88, .94) rotate(-1.5deg); }
  25%  { transform: scale(1.18, .90) rotate(1.5deg); }
  50%  { transform: scale(.96, 1.04) rotate(-0.5deg); }
  75%  { transform: scale(1.02, .98) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.gate-body {
  position: relative;
  text-align: center;
  max-width: 30rem;
}

.gate-kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 1.5rem;
}

.gate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin: 0 0 1.5rem;
}

.gate-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--bone-dim);
  margin: 0 0 2.75rem;
}

.gate-btn {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone);
  background: none;
  border: 1px solid var(--thread-dim);
  padding: 1rem 2.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    color var(--d-small) var(--e-snap),
    border-color var(--d-small) var(--e-snap),
    transform var(--d-small) var(--e-snap);
}
.gate-btn::before {
  /* the fill that wipes in from the left */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--thread);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--d-med) var(--e-ink);
}
.gate-btn:hover {
  color: var(--void);
  border-color: var(--thread);
}
.gate-btn:hover::before { transform: scaleX(1); }
.gate-btn:active { transform: scale(.97); }
.gate-btn:focus-visible {
  outline: 1px solid var(--thread);
  outline-offset: 5px;
}
.gate-btn span { position: relative; }

.gate-note {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(41% 0.008 85 / 0.6);
  margin: 1.75rem 0 0;
}

/* the lift: the world was black, now it isn't */
.gate.is-lifting .gate-veil {
  animation: gate-veil-lift 900ms var(--e-ink) forwards;
}
@keyframes gate-veil-lift {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2.5%); }
}
.gate.is-lifting .gate-body {
  animation: gate-body-lift 900ms var(--e-ink) forwards;
}
@keyframes gate-body-lift {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  40%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-14px) scale(.985); }
}
.gate.is-lifting {
  pointer-events: none;
}

/* ---------- the thread draws itself ----------
   Animations, not transitions: an animation carries its own start
   state, so it fires correctly even if the pre-state was never
   painted. Gated on .is-entering so a dead JS hides nothing. */
body.is-entering .ledger .thread {
  transform: scaleY(0);
  transform-origin: top center;
}
body.is-entering .ledger.is-drawing .thread {
  animation: thread-draw var(--d-entry) var(--e-stroke) forwards;
}
@keyframes thread-draw {
  0%   { transform: scaleY(0); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ---------- the title inks in: clip reveal + blur burn-off ---------- */
body.is-entering .title { opacity: 0; }
body.is-inked .title {
  animation: title-ink var(--d-entry) var(--e-ink) forwards;
}
@keyframes title-ink {
  0%   { clip-path: inset(0 0 100% 0); filter: blur(6px); opacity: 0; }
  100% { clip-path: inset(0 0 0 0);    filter: blur(0);    opacity: 1; }
}

/* ---------- masthead furniture settles after the ink ---------- */
body.is-entering .kicker,
body.is-entering .sub { opacity: 0; }
body.is-settled .kicker {
  animation: settle-in var(--d-large) var(--e-snap) forwards;
}
body.is-settled .sub {
  animation: settle-in var(--d-large) var(--e-snap) 90ms forwards;
}
@keyframes settle-in {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- knots tie down the margin ---------- */
body.is-entering .marker { transform: scale(0); }
body.is-knotted .marker {
  animation: knot-tie var(--d-med) var(--e-settle) forwards;
}
body.is-knotted .entry:nth-of-type(2) .marker { animation-delay: 60ms; }
body.is-knotted .entry:nth-of-type(3) .marker { animation-delay: 120ms; }
body.is-knotted .entry:nth-of-type(4) .marker { animation-delay: 180ms; }
body.is-knotted .colophon .marker { animation-delay: 240ms; }
@keyframes knot-tie {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ---------- rows unseal, 70ms apart ---------- */
body.is-entering .row { opacity: 0; }
.row.is-unsealed {
  animation: row-unseal var(--d-med) var(--e-snap) forwards;
}
@keyframes row-unseal {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- idle life: low amplitude, you feel it not see it ----------
   The breathe animation replaces the draw animation, so it must
   repeat from the fully-drawn state. Opacity only — the thread's
   scaleY(1) from the draw is preserved. */
body.is-live .thread {
  animation: thread-breathe 3s ease-in-out 900ms infinite;
}
@keyframes thread-breathe {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}
body.is-live .marker {
  animation: knot-breathe 4s ease-in-out infinite;
}
@keyframes knot-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.008); }
}
/* the title is the anchor. it stays still. */

/* ============================================================
   THE NIB — cursor choreography
   Infrastructure, not a show.
   ============================================================ */
.nib {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms linear;
}
.nib.is-visible { opacity: 1; }

/* the wrapper owns position; the ring owns its own transform */
.nib-pos {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.nib-ring,
.nib-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}
.nib-ring {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid var(--thread-dim);
  transition:
    width var(--d-small) var(--e-snap),
    height var(--d-small) var(--e-snap),
    margin var(--d-small) var(--e-snap),
    border-color var(--d-small) var(--e-snap),
    background-color var(--d-small) var(--e-snap);
}
.nib-dot {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--thread);
}

.nib.is-hot .nib-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-color: var(--thread);
  background: oklch(60% 0.205 26 / 0.1);
}

/* the press: the 24-frame anatomy, scaled down to a nib.
   The ring's position is set on a WRAPPER (transform: translate),
   so this animation is free to own the ring's own transform
   entirely — no var() indirection, no invalid computed value. */
.nib.is-press .nib-ring {
  animation: nib-press var(--d-large) var(--e-settle);
}
@keyframes nib-press {
  0%   { transform: scale(1); }
  12%  { transform: scale(.88, .94); }
  25%  { transform: scale(1.18, .90); }
  50%  { transform: scale(.96, 1.04); }
  75%  { transform: scale(1.02, .98); }
  100% { transform: scale(1); }
}

/* ============================================================
   SOUND TOGGLE — seal-shaped, bottom-left
   ============================================================ */
.sound-toggle {
  position: fixed;
  left: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 260;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: oklch(13.5% 0.030 20 / 0.85);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--d-small) var(--e-snap);
}
.sound-toggle:hover { border-color: var(--thread-dim); }
.sound-toggle:focus-visible {
  outline: 1px solid var(--thread);
  outline-offset: 4px;
}
.st-seal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--thread-dim);
  background: var(--thread);
  box-shadow: 0 0 8px oklch(60% 0.205 26 / 0.5);
  transition:
    background-color var(--d-small) var(--e-snap),
    border-color var(--d-small) var(--e-snap),
    box-shadow var(--d-small) var(--e-snap);
}
.sound-toggle.is-off .st-seal {
  background: none;
  box-shadow: none;
  border-color: oklch(41% 0.008 85 / 0.5);
}

/* ============================================================
   ROW STATES — eight, no talking heads
   ============================================================ */
.row.is-flash .row-head { filter: brightness(1.4); }
.row-head { transition: filter var(--d-micro) steps(1); }

/* the 400ms confirm anatomy on open */
.row.is-pressed .row-head {
  animation: row-confirm var(--d-large) var(--e-hit);
}
@keyframes row-confirm {
  0%   { transform: scale(1); }
  12%  { transform: scale(.88, .94); }
  25%  { transform: scale(1.18, .90); }
  50%  { transform: scale(.96, 1.04); }
  75%  { transform: scale(1.02, .98); }
  100% { transform: scale(1); }
}

/* ---------- reveal: gated by JS so it can never trap content ---------- */
.reveal.pre {
  opacity: 0;
  transform: translateY(14px);
}
.reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .name, .seal, .link, .contact-list .v { transition: none; }

  /* the ledger is simply here. no gate, no sequence, no choreography. */
  .gate { display: none !important; }
  .nib { display: none !important; }
  .title, .kicker, .sub, .marker, .row, .thread {
    opacity: 1 !important;
    clip-path: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .row-head, .gate-btn, .sound-toggle { transition: none !important; animation: none !important; }
}

/* ---------- narrow ---------- */
@media (max-width: 34rem) {
  .row-head { grid-template-columns: 2.75rem 1fr auto; gap: 0.75rem; }
  .seal { display: none; }
  .title { letter-spacing: -0.03em; }
  .colophon { flex-direction: column; gap: 0.375rem; }
  .gate-mark { width: 64px; height: 64px; }
  .gate-btn { padding: 0.875rem 1.5rem; }
}

/* ---------- no hover device: the nib is noise, not signal ---------- */
@media (hover: none) and (pointer: coarse) {
  .nib { display: none; }
}

/* ---------- print: the ledger, plain ---------- */
@media print {
  .gate, .nib, .sound-toggle, .grain { display: none !important; }
  body { background: #fff; color: #111; }
  .title, .name, .detail p, .prose p { color: #111; }
  .detail[hidden] { display: block !important; }
}
