/* ————————————————————————————————————————
   a night by nina — direction A: the instrument
   true black, porcelain, one signal tone.
   colour is never decoration — only "this is on".
———————————————————————————————————————— */

:root {
  --black: #000000;
  --porcelain: #eaedef;
  --ink: rgba(234, 237, 239, 0.88); /* reading ink — full porcelain glows too hard on black (halation) */
  --porcelain-dim: rgba(234, 237, 239, 0.6);
  --porcelain-faint: rgba(234, 237, 239, 0.5);
  --hairline: rgba(255, 255, 255, 0.08);
  --signal: #9fd8d4;
  --signal-dim: rgba(159, 216, 212, 0.4);
  --sans: "Switzer", "Helvetica Neue", -apple-system, sans-serif;
  --mono: "Fragment Mono", "SF Mono", ui-monospace, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --tick: 150ms linear;
}

/* after dark the ink warms — blue-white light works against sleep */
body.night {
  --porcelain: #ece4d3;
  --ink: rgba(236, 228, 211, 0.88);
  --porcelain-dim: rgba(236, 228, 211, 0.6);
  --porcelain-faint: rgba(236, 228, 211, 0.5);
  --signal: #dcb98c;
  --signal-dim: rgba(220, 185, 140, 0.4);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--black);
  color: var(--porcelain);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal-dim); color: var(--black); }

/* lenis smooth-scroll handshake */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ———— the menu — the rooms of the house ———— */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 52px;
  padding: 0 24px;
  background: var(--black);
  border-bottom: 1px solid var(--hairline);
}
/* the toggle sits outside the scrolling list — sound on never drifts off-screen */
.menu > .snd { flex: none; }

.menu-mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--porcelain);
  text-decoration: none;
}

.menu-rooms {
  display: flex;
  margin-left: auto;
  gap: clamp(16px, 3vw, 30px);
  /* the house has more doors than the bar has room for — the list scrolls, quietly */
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-rooms::-webkit-scrollbar { display: none; }
.menu-rooms a { white-space: nowrap; flex: none; }

.menu-rooms a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--porcelain-faint);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--tick), border-color var(--tick);
}
.menu-rooms a:hover { color: var(--porcelain); }
.menu-rooms a.here { color: var(--porcelain); border-bottom-color: var(--porcelain-dim); }

.colophon-nav { display: flex; gap: 24px; justify-content: center; margin: 14px 0 6px; }
.colophon-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--porcelain-faint); text-decoration: none; transition: color var(--tick); }
.colophon-nav a:hover { color: var(--porcelain); }

.inst-wave { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 42%; pointer-events: none; opacity: 0.85; }

@media (max-width: 480px) {
  .menu { padding: 0 16px; }
  .menu-rooms a { font-size: 10px; letter-spacing: 0.05em; }
}

/* ———— the ruler — one frequency axis, seven stations ———— */

.ruler {
  position: fixed;
  right: clamp(14px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  height: min(58vh, 500px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.ruler::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.ruler-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--porcelain-faint);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: color var(--tick);
}
/* each frequency's wave drawn as a thin-line mark — eno-notation style */
.ruler-stop .ruler-wave {
  display: block;
  width: 26px;
  height: 12px;
}
.ruler-stop .ruler-wave path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.ruler-stop:hover, .ruler-stop.here { color: var(--porcelain); }
.ruler-stop.sounding { color: var(--signal); }

.ruler-cursor {
  position: absolute;
  right: 1px;
  width: 9px;
  height: 1px;
  background: var(--porcelain);
  opacity: 0;
  transition: top var(--tick), opacity var(--tick);
}
.ruler-cursor.on { opacity: 1; }

@media (max-width: 900px) {
  .ruler { display: none; }
}

/* ———— hero ———— */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh; /* fallback where svh is unsupported */
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: clamp(56px, 8vh, 100px);
  padding: clamp(80px, 12vh, 140px) clamp(24px, 7vw, 110px) clamp(110px, 16vh, 180px);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: clamp(60px, 7vw, 120px);
  }
  .hero .hero-title { font-size: clamp(44px, 6vw, 88px); }
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--porcelain-faint);
  margin-bottom: 34px;
}

.hero-title {
  font-weight: 300;
  font-size: clamp(54px, 9.5vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 36px;
  max-width: 470px;
  font-size: 15px;
  color: var(--porcelain-dim);
}

.dosage {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--porcelain-dim);
}

.hero .aside { display: block; margin-top: 12px; }

/* mono parentheticals — the asides, lowercase, no theatre */
.aside {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--porcelain-faint);
  display: inline-block;
}
.aside::before { content: "( "; }
.aside::after { content: " )"; }

/* ———— the index — an instrument panel: seven rows, seven numbers, seven marks ———— */

.index-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--porcelain-faint);
  padding-bottom: 14px;
}

.index-row {
  display: grid;
  grid-template-columns: 28px 56px 26px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 2px;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--porcelain-faint);
  transition: color var(--tick);
}
.index-row:last-child { border-bottom: 1px solid var(--hairline); }
.index-row:hover { color: var(--porcelain); }
.index-row.sounding { color: var(--signal); }

.ix-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.ix-hz {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.ix-wave { display: block; width: 26px; height: 12px; }
.ix-wave path { fill: none; stroke: currentColor; stroke-width: 1; }
.ix-title {
  font-size: 13px;
  color: var(--porcelain-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--tick);
}
.index-row:hover .ix-title { color: var(--porcelain); }
.index-row.sounding .ix-title { color: var(--signal); }

/* ———— chapters ———— */

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

.chapter {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(90px, 16vh, 160px) 24px;
  border-top: 1px solid var(--hairline);
}

.ch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ch-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--porcelain-dim);
  letter-spacing: 0.12em;
}

.ch-hz {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--porcelain-faint);
}
.ch-hz em { font-style: normal; color: var(--porcelain-faint); }

.ch-title {
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 38px;
}

/* the numeral is also the key — press it and it sounds */
.hz-play {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  transition: color var(--tick);
}
.hz-play:hover { color: var(--signal); }
.chapter.playing .hz-play { color: var(--signal); }
.hz-play:hover path, .chapter.playing .hz-play path { stroke: var(--signal); }

/* keyboard users get the same hairline language */
:focus-visible { outline: 1px solid var(--porcelain-dim); outline-offset: 4px; }

/* numerals speak first — "2 Hz" is the headline */
.ch-title--hz {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(80px, 16vw, 180px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.ch-title--hz .hz-unit {
  font-size: 0.32em;
  letter-spacing: 0;
  color: var(--porcelain-dim);
}
.ch-title--hz sup {
  font-size: 0.42em;
  vertical-align: 1em;
}

/* chapter VII has no numeral — its headline is the wave itself */
.ch-title--wave { padding: 18px 0 8px; }
.ch-title--wave svg {
  display: block;
  width: min(340px, 76%);
  height: auto;
}
.ch-title--wave path {
  fill: none;
  stroke: var(--porcelain);
  stroke-width: 1.5;
}

.ch-subline {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 300;
  color: var(--porcelain-dim);
  margin-bottom: 38px;
  text-wrap: balance;
}

.ch-science {
  font-size: 15.5px;
  color: var(--porcelain-dim);
  padding-left: 22px;
  border-left: 1px solid var(--hairline);
  margin-bottom: 28px;
  text-wrap: pretty;
}

/* the scan layer — one line a tired eye can take in four seconds;
   the full paragraph waits beneath it, dimmer, for whoever commits */
.ch-pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.42;
  color: var(--porcelain);
  margin-bottom: 20px;
  text-wrap: balance;
}

.ch-body {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 400; /* 300 thins out on black — light-on-dark erodes strokes */
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 30px;
  text-wrap: pretty;
}

/* ———— the figures — each chapter's idea, drawn as one thin line ———— */

.fig { margin: 42px 0 46px; }
.fig-canvas {
  display: block;
  width: 100%;
  height: 160px;
}
.fig-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--porcelain-faint);
  margin-top: 12px;
}

/* ———— chapter V — the tuning dial ———— */

.tuner { margin: 42px 0 46px; }

.tuner-readout {
  font-family: var(--mono);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.tuner-unit { font-size: 0.38em; color: var(--porcelain-dim); letter-spacing: 0; }
.chapter.playing .tuner-value { color: var(--signal); }

.tuner-range {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  outline: none;
  cursor: ew-resize;
  margin: 18px 0 10px;
}
.tuner-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 0;
  background: var(--porcelain);
  border: none;
  transition: background var(--tick);
}
.chapter.playing .tuner-range::-webkit-slider-thumb { background: var(--signal); }
.tuner-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 0;
  background: var(--porcelain);
  border: none;
}
.chapter.playing .tuner-range::-moz-range-thumb { background: var(--signal); }

.tuner-scale {
  position: relative;
  height: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--porcelain-faint);
  margin-bottom: 14px;
}
.tuner-scale span { position: absolute; transform: translateX(-50%); }
.tuner-scale span:first-child { transform: none; }
.tuner-scale span:last-child { transform: translateX(-100%); }
.tuner-scale .tuner-home, .tuner-scale .tuner-concert { color: var(--porcelain-dim); }

blockquote {
  margin: 44px 0 30px;
}
blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--porcelain);
  text-wrap: pretty;
}
blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--porcelain-faint);
}
blockquote cite em { font-style: normal; }

.chapter .aside { margin: 6px 0 38px; }

.listen {
  appearance: none;
  display: block;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--porcelain);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  padding: 15px 42px;
  cursor: pointer;
  transition: border-color var(--tick), color var(--tick);
}
.listen:hover { border-color: var(--porcelain-dim); }

.chapter.playing .listen {
  border-color: var(--signal);
  color: var(--signal);
}
.chapter.playing .listen::after { content: " · sounding"; letter-spacing: 0.06em; }

/* ———— colophon ———— */

.colophon {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 150px) 24px 220px;
  border-top: 1px solid var(--hairline);
}
.colophon .ch-body {
  font-size: 13.5px;
  color: var(--porcelain-dim);
}
.wordmark {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--porcelain);
  margin: 56px 0 8px;
}

/* ———— the ember — direction B's organ, transplanted ————
   as the sleep timer runs down the room tints, imperceptibly,
   toward the red end — the wavelength that leaves melatonin alone */

.ember {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #3a1006;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 12s linear;
}

/* ———— player — a console, not a pill ———— */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--tick);
}
.player.live { border-top-color: var(--signal-dim); }

.play-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--porcelain);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color var(--tick), color var(--tick);
  flex: none;
}
.play-btn:hover { border-color: var(--porcelain-dim); }
.play-btn .ic-pause { display: none; }
.player.live .play-btn { border-color: var(--signal-dim); color: var(--signal); }
.player.live .ic-play { display: none; }
.player.live .ic-pause { display: block; }

.now { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }

.now-dot {
  width: 6px;
  height: 6px;
  background: var(--hairline);
  flex: none;
  transition: background var(--tick);
}
.player.live .now-dot { background: var(--signal); }

.now-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }

.now-title {
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.now-hz {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--porcelain-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the sound itself, visible */
.scope {
  flex: 1;
  min-width: 60px;
  height: 38px;
  align-self: center;
}

.timer-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--porcelain-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  min-width: 52px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color var(--tick), color var(--tick);
  flex: none;
}
.timer-btn:hover { border-color: var(--porcelain-dim); color: var(--porcelain); }
.timer-btn.armed { border-color: var(--signal-dim); color: var(--signal); }

.night-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--porcelain-dim);
  font-family: var(--mono);
  font-size: 12px;
  min-width: 38px;
  padding: 8px 0;
  cursor: pointer;
  transition: border-color var(--tick), color var(--tick);
  flex: none;
}
.night-btn:hover { border-color: var(--porcelain-dim); color: var(--porcelain); }
body.night .night-btn { border-color: var(--signal-dim); color: var(--signal); }

/* phones have volume buttons — the slider only crowds the bar */
@media (max-width: 600px) {
  .vol { display: none; }
  /* the titles are the poetry — they wrap before they truncate */
  .ix-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
  }
}

.vol {
  appearance: none;
  -webkit-appearance: none;
  width: 90px;
  height: 1px;
  background: var(--hairline);
  outline: none;
  cursor: pointer;
  flex: none;
}
.vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--porcelain);
  border: none;
  transition: background var(--tick);
}
.vol::-webkit-slider-thumb:hover { background: var(--signal); }
.vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--porcelain);
  border: none;
}

/* ———— erratum — the story of 432 (432.html) ———— */

.slip-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 92svh;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 150px) 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 2px;
  margin: 34px 0 30px;
}
.slip-ref {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--porcelain-faint);
  margin-bottom: 22px;
}
.slip-line {
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.slip-line s { color: var(--porcelain-dim); text-decoration-thickness: 1px; }
.slip-line em { font-style: normal; }
.slip-sub {
  margin-top: 30px;
  max-width: 520px;
  font-size: 15px;
  color: var(--porcelain-dim);
}
.slip-hero .aside { margin-top: 18px; }

/* the ballot — the vote, re-runnable */
.ballot {
  margin: 36px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.ballot-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--porcelain-faint);
}
.ballot-opt {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--porcelain-faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color var(--tick), color var(--tick);
}
.ballot-opt:hover { border-color: var(--porcelain-dim); color: var(--porcelain); }
.ballot-opt[aria-pressed="true"] { border-color: var(--porcelain-dim); color: var(--porcelain); }
.ballot-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--porcelain-dim);
  margin-bottom: 24px;
}

/* a numeral that re-prints when the world changes */
.w { display: inline-block; transition: opacity var(--tick); }
.w.tick { opacity: 0.15; }

.scope-strip { display: block; width: 100%; height: 48px; margin: 26px 0 8px; }

.dates { margin: 32px 0 8px; }
.date-row {
  display: grid;
  grid-template-columns: 52px 44px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 2px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--porcelain-dim);
}
.date-row:last-child { border-bottom: 1px solid var(--hairline); }
.date-row .da { color: var(--porcelain-faint); }
.date-row .dh { text-align: right; }

.proofs { margin: 34px 0 10px; }
.proof { border-top: 1px solid var(--hairline); padding: 20px 2px 22px; }
.proofs .proof:last-child { border-bottom: 1px solid var(--hairline); }
.proof-num {
  font-family: var(--mono);
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.proof-claim { font-size: 14px; color: var(--porcelain-dim); margin-bottom: 10px; }
.proof-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--porcelain-faint);
}

.comma-readout {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--porcelain-dim);
  min-height: 18px;
  margin-top: 16px;
}
.chapter.playing .comma-readout { color: var(--signal); }

.return {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--porcelain-faint);
  text-decoration: none;
  transition: color var(--tick);
}
.return:hover { color: var(--porcelain); }

.aside a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tick);
}
.aside a:hover { color: var(--porcelain); }

/* the other universe is 1.8 % smaller — you will not notice */
body.world-432 { zoom: 0.98182; }

/* ———— small screens ———— */

@media (max-width: 560px) {
  .player {
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .now-title { max-width: 110px; }
}

/* ———— reduced motion ———— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ── homepage ── */
:root { --mono: "Switzer", "Helvetica Neue", -apple-system, sans-serif; }

.page-thread {
  position: fixed;
  top: 0;
  left: 32px;
  width: 1px;
  height: 100%;
  background: var(--hairline);
  z-index: 5;
  pointer-events: none;
}

.home-opening {
  position: relative;
  min-height: max(100svh, 580px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 clamp(64px, 10vh, 108px);
  overflow: hidden;
}
.opening-freq {
  position: absolute;
  top: clamp(68px, 9vh, 90px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--porcelain-faint);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.65;
}
.opening-stage {
  max-width: none;
  padding-left: clamp(64px, 8vw, 120px);
  padding-right: clamp(24px, 5vw, 80px);
}
.home-wordmark {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(82px, 17vw, 230px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--porcelain);
  cursor: pointer;
  transition: color var(--tick);
  margin-left: -0.025em;
  text-align: left;
}
.home-wordmark .ar { font-weight: 400; }
.home-wordmark:hover, .home-wordmark.sounding { color: var(--signal); }
.opening-rule {
  width: clamp(200px, 44vw, 560px);
  height: 1px;
  background: var(--hairline);
  margin: clamp(18px, 3vh, 32px) 0 clamp(16px, 2.5vh, 26px);
}
.opening-words {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: clamp(260px, 48vw, 560px);
}
.opening-statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.47;
  color: var(--porcelain);
  text-wrap: balance;
}
.opening-statement + .opening-statement { color: var(--porcelain-dim); }
.opening-press { display: block; margin-bottom: clamp(14px, 2vh, 22px); }
.opening-byline { display: block; margin-top: clamp(14px, 2.2vh, 24px); }
.opening-scroll {
  position: absolute;
  bottom: clamp(28px, 4.5vh, 52px);
  right: clamp(24px, 7vw, 96px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--porcelain-faint);
  writing-mode: vertical-rl;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.home-scope-bar {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#homeScope { display: block; width: 100%; height: 100%; }
.home-opening { z-index: 1; }

.home-brief {
  max-width: none;
  margin: 0;
  padding: clamp(56px, 9vh, 112px) 0 clamp(36px, 6vh, 72px);
}
.brief-pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.44;
  color: var(--porcelain-dim);
  text-wrap: balance;
  padding-left: clamp(160px, 20vw, 320px);
  max-width: calc(480px + clamp(160px, 20vw, 320px));
  margin-bottom: 24px;
}
.brief-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--porcelain-faint);
  line-height: 1.72;
  text-wrap: pretty;
  padding-left: clamp(64px, 8vw, 120px);
  max-width: calc(340px + clamp(64px, 8vw, 120px));
}

.chapter {
  max-width: none;
  margin: 0;
  padding: clamp(80px, 14vh, 140px) 0;
  border-top: 1px solid var(--hairline);
}
.ch-head { display: none; }
.about-split {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 240px) minmax(0, 520px);
  gap: clamp(40px, 5vw, 80px);
  padding-left: clamp(64px, 8vw, 120px);
  padding-right: clamp(24px, 5vw, 80px);
}
.about-instrument { padding-top: 4px; }
.about-num {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--porcelain-dim);
  display: block;
  margin-bottom: 28px;
}
.about-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--porcelain-faint);
  line-height: 2;
  display: block;
}
.about-people { display: flex; flex-direction: column; gap: 28px; }
.about-person { display: flex; flex-direction: column; }
.about-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
  opacity: 0.7;
  margin-bottom: 10px;
  display: block;
  transition: opacity var(--tick);
}
.about-avatar:hover { opacity: 1; }
.about-person-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--porcelain);
  display: block;
  margin-bottom: 3px;
}
.about-person-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--porcelain-faint);
  line-height: 1.55;
  display: block;
  margin-bottom: 5px;
}
.about-person-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--porcelain-faint);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tick);
  display: block;
}
.about-person-link:hover { color: var(--porcelain); }
.about-literature .ch-pull { margin-bottom: 20px; }
.about-literature .ch-body { font-size: 17px; }

.colophon {
  max-width: none;
  margin: 0;
  padding: clamp(80px, 12vh, 130px) clamp(24px, 5vw, 80px) 180px clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--hairline);
}
.colophon .ch-body {
  max-width: 520px;
  font-size: 13.5px;
  color: var(--porcelain-dim);
}

.home-instrument {
  position: relative;
  min-height: 90svh;
  cursor: crosshair;
  border-top: 1px solid var(--hairline);
  z-index: 1;
}
.inst-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--porcelain-faint);
  opacity: 0.3;
  pointer-events: none;
  line-height: 1.9;
}
.inst-tl { top: 20px; left: 32px; }
.inst-bl { bottom: 20px; left: 32px; }
.inst-br { bottom: 20px; right: 24px; text-align: right; }
.inst-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--porcelain-faint);
  opacity: 0;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 1.8s ease;
}
.home-instrument.zone-visible .inst-hint { opacity: 0.4; }
.home-instrument.zone-playing .inst-hint { opacity: 0; transition: opacity 0.4s; }
.inst-freq {
  position: fixed;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--signal);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}
.inst-freq.visible { opacity: 0.7; }
@media (max-width: 640px) {
  .home-instrument { cursor: default; }
  .inst-corner { font-size: 9px; }
  .inst-tl, .inst-bl { left: 24px; }
  .inst-br { right: 24px; }
}

.reveal {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; } }

@media (max-width: 640px) {
  .page-thread { display: none; }
  .home-opening { padding: 0 0 clamp(48px, 8vh, 80px); }
  .opening-stage { padding-left: 24px; padding-right: 24px; }
  .home-brief { padding: clamp(40px, 7vh, 72px) 0; }
  .brief-pull { padding-left: 24px; max-width: 100%; }
  .brief-note { padding-left: 24px; max-width: 100%; }
  .chapter { padding: clamp(56px, 10vh, 100px) 0; }
  .about-split { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; gap: 24px; }
  .about-literature { order: 1; }
  .about-instrument { order: 2; padding-top: 0; }
  .about-people .about-person:first-child { order: 2; }
  .about-people .about-person:last-child { order: 1; }
  .colophon { padding-left: 24px; padding-right: 24px; }
}
