/* Fonts: ChillDINGothic and ChillDIN, SIL Open Font License 1.1. */
@font-face {
  font-family: "ChillDIN";
  src: url("/fonts/ChillDIN-500.58dc6cc894.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ChillDIN";
  src: url("/fonts/ChillDIN-700.f01888cc95.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ChillDINGothic";
  src: url("/fonts/ChillDINGothic-400.eea409488c.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ChillDINGothic";
  src: url("/fonts/ChillDINGothic-600.39df7f6b48.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ChillDINGothic";
  src: url("/fonts/ChillDINGothic-700.da9d0ebfbc.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* alterxyz.com — one page, two themes (morning / night), one seal colour. */

:root {
  color-scheme: light;
  --paper: #ecf0ee;
  --card: #f6f8f7;
  --ink: #1f1f1f;
  --muted: #56676d;
  --faint: #5d6e77;
  --rule: #c7d9df;
  --rule-strong: #a7bec6;
  --seal: #1d6a80;
  --seal-soft: #1d6a8014;
  --grain-opacity: .07;
  --grain-blend: multiply;
  --stamp-blend: multiply;

  --sans: "ChillDINGothic", "ChillDIN", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --din: "ChillDIN", "ChillDINGothic", "PingFang SC", system-ui, sans-serif;

  --gutter: clamp(22px, 4.6vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #090e1c;
    --card: #0f1830;
    --ink: #e4ecea;
    --muted: #8ea2b6;
    --faint: #6f84a4;
    --rule: #1a2a4f;
    --rule-strong: #2c4170;
    --seal: #96f5d6;
    --seal-soft: #96f5d614;
    --grain-opacity: .05;
    --grain-blend: screen;
    --stamp-blend: normal;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #090e1c;
  --card: #0f1830;
  --ink: #e4ecea;
  --muted: #8ea2b6;
  --faint: #6f84a4;
  --rule: #1a2a4f;
  --rule-strong: #2c4170;
  --seal: #96f5d6;
  --seal-soft: #96f5d614;
  --grain-opacity: .05;
  --grain-blend: screen;
  --stamp-blend: normal;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

/* Paper grain: one fixed layer, never repainted. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

::selection { background: var(--seal); color: var(--paper); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em, cite, i { font-style: normal; }
q { quotes: none; }

/* Without the script there is nothing to toggle and nothing to draw. */
html:not(.js) .controls, html:not(.js) .instrument { display: none; }

/* Language: both are in the page; one is shown. */
html[data-lang="zh"] .en,
html[data-lang="en"] .zh { display: none !important; }

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 14px;
}
.skip:focus { top: 14px; }

.page {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small capital labels: the quiet voice of the page. */
.label {
  font-family: var(--din);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .zh { letter-spacing: .2em; }

.idx {
  font-family: var(--din);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--seal);
}

/* ───────── Masthead ───────── */

.masthead {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--din);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
}
.brand-mark {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
  transform: translateY(2px);
}
.brand-mark i { color: var(--seal); }

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 14px;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { transform: scaleX(1); }

.controls { display: flex; align-items: center; gap: 8px; }
.control {
  appearance: none;
  height: 34px;
  min-width: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--din);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.control:hover { border-color: var(--rule-strong); color: var(--ink); background: var(--card); }
.lang-toggle i { opacity: .45; }
.lang-toggle [data-lang-option] { transition: color .25s var(--ease); }
html[data-lang="zh"] .lang-toggle [data-lang-option="zh"],
html[data-lang="en"] .lang-toggle [data-lang-option="en"] { color: var(--ink); }
.lang-toggle [data-lang-option="zh"] { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }

.theme-toggle { padding: 0; }
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

/* ───────── Hero ───────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  padding: clamp(44px, 7vw, 96px) 0 clamp(44px, 6vw, 84px);
}

.hero-text { position: relative; z-index: 2; min-width: 0; }

.eyebrow { display: flex; align-items: flex-end; gap: 10px; }
.eyebrow .status-dot { flex: none; margin-bottom: 5.8px; }

/* Mottos: all in one grid cell, so the line keeps the height of the longest
   one; one is shown, and they roll upward in turn. */
.mottos { display: grid; align-items: end; min-width: 0; }
.motto {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.9em);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.motto.is-on { opacity: 1; transform: none; pointer-events: auto; }
.motto.is-off { transform: translateY(-.9em); }
html:not(.js) .motto:not(.is-on) { display: none; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 4px var(--seal-soft);
}

.hero-title {
  position: relative;
  width: fit-content;
  margin: clamp(22px, 3vw, 36px) 0 clamp(26px, 3.4vw, 44px);
}

h1 {
  font-family: var(--din);
  font-weight: 700;
  font-size: clamp(68px, 11.4vw, 168px);
  line-height: 1.04;
  letter-spacing: -.022em;
}
h1 em { color: var(--seal); }

/* The stamp: pressed once, slightly off, never straightened. */
.stamp {
  position: absolute;
  top: clamp(-34px, -2vw, -12px);
  right: clamp(-96px, -6.4vw, -28px);
  width: clamp(92px, 11.5vw, 164px);
  height: auto;
  overflow: visible;
  color: var(--seal);
  mix-blend-mode: var(--stamp-blend);
  transform: rotate(-9deg);
  pointer-events: none;
}
.stamp-line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.stamp-line-bold { stroke-width: 2.6; }
.stamp-dot { fill: currentColor; }
.stamp text { fill: currentColor; font-family: var(--din); text-anchor: middle; }
.stamp-arc { font-weight: 700; font-size: 12.6px; letter-spacing: .2em; }
.stamp-date { font-weight: 700; font-size: 22px; letter-spacing: .02em; font-variant-numeric: tabular-nums lining-nums; }
.stamp-small { font-weight: 500; font-size: 9px; letter-spacing: .26em; }

.lede {
  max-width: 31em;
  font-size: clamp(16px, 1.42vw, 19px);
  line-height: 1.85;
  color: var(--muted);
}
.lede .en { max-width: 30em; line-height: 1.7; }

.instrument {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 640px);
  margin-right: clamp(-48px, -3vw, -12px);
  aspect-ratio: 1;
  color: var(--ink);
}
.instrument svg { display: block; width: 100%; height: 100%; overflow: visible; }

.instrument path, .instrument line, .instrument circle { vector-effect: non-scaling-stroke; }
.ring { fill: none; stroke: currentColor; stroke-width: .8; stroke-linecap: round; }
.ring.frame { stroke-width: 1.15; }
.ring.fine { stroke-width: .6; }
.ring.ecliptic { stroke: var(--seal); stroke-width: 1.3; }
.ring.axis { stroke-width: .9; }
.ring.tick { stroke-width: .8; }
.is-back { opacity: .26; }
.ring.ecliptic.is-back { opacity: .4; }
.star { fill: currentColor; }
.earth { fill: var(--paper); stroke: currentColor; stroke-width: 1.15; }
.earth-core { fill: currentColor; }
.cardinal {
  fill: var(--muted);
  font-family: var(--din);
  font-weight: 500;
  font-size: calc(11px * var(--unit, 1));
  letter-spacing: .08em;
  text-anchor: middle;
  dominant-baseline: central;
}

.wanderer { cursor: pointer; }
.wanderer .halo { fill: var(--paper); stroke: var(--seal); stroke-width: 1; transition: r .4s var(--ease); }
.wanderer .core { fill: var(--seal); transition: r .4s var(--ease); }
.wanderer text {
  fill: var(--ink);
  font-family: var(--din);
  font-weight: 500;
  font-size: calc(11px * var(--unit, 1));
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums lining-nums;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.wanderer .name { font-family: var(--sans); font-weight: 600; font-size: calc(12.5px * var(--unit, 1)); letter-spacing: .04em; opacity: 0; transition: opacity .3s var(--ease); }
.wanderer.is-active .name { opacity: 1; }
.wanderer.is-dim { opacity: .35; }
.wanderer { transition: opacity .3s var(--ease); }

/* ───────── The channel: where the talking happens ───────── */

.channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(18px, 3vw, 44px);
  row-gap: 14px;
  margin-bottom: clamp(16px, 2vw, 28px);
  padding: clamp(18px, 1.9vw, 24px) clamp(22px, 2.8vw, 38px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .4s var(--ease);
}
.channel:hover, .channel:focus-visible {
  border-color: var(--rule-strong);
  box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--seal) 55%, transparent);
}
.channel-label { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.channel-text { font-weight: 600; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; text-wrap: pretty; }
.channel-text.en { font-weight: 600; line-height: 1.45; }
.channel-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  background: var(--seal);
  color: var(--paper);
  font-family: var(--din);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .3s var(--ease);
}
.channel-arrow { font-size: 15px; transition: transform .3s var(--ease); }
.channel:hover .channel-go, .channel:focus-visible .channel-go { transform: translateX(3px); }
.channel:hover .channel-arrow, .channel:focus-visible .channel-arrow { transform: translate(2px, -2px); }

/* ───────── Doors: two tickets ───────── */

.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 38px) clamp(22px, 2.8vw, 38px) clamp(20px, 2.2vw, 28px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .4s var(--ease);
}
.door:hover, .door:has(:focus-visible), .door.is-active {
  border-color: var(--rule-strong);
  box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--seal) 55%, transparent);
}

.door-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "idx go" "title title";
  align-items: center;
  row-gap: clamp(26px, 4vw, 56px);
}
.door-head .idx { grid-area: idx; }
.door-head h2 { grid-area: title; }
.door-head .go { grid-area: go; }

h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
h2 .en, .door-head h2:not(:has(.zh)) { letter-spacing: -.015em; }

.go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--din);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.go:hover { color: var(--ink); }
.arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--din);
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.go:hover .arrow, .door.is-active .arrow, .link:hover .arrow, .link:focus-visible .arrow,
.work:hover .arrow, .work:focus-visible .arrow {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
  transform: rotate(45deg);
}

.door-desc {
  margin-top: 14px;
  max-width: 34em;
  min-height: 3.5em;
  font-size: 15px;
  color: var(--muted);
}

/* The tear line, with a notch punched at each edge. */
.perf {
  position: relative;
  margin: clamp(20px, 2.4vw, 30px) calc(-1 * clamp(22px, 2.8vw, 38px)) 6px;
  border-top: 1.5px dashed var(--rule-strong);
}
.perf::before, .perf::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: background-color .4s var(--ease), border-color .35s var(--ease);
}
.perf::before { left: -11px; }
.perf::after { right: -11px; }
.door:hover .perf::before, .door:hover .perf::after,
.door:has(:focus-visible) .perf::before, .door:has(:focus-visible) .perf::after,
.door.is-active .perf::before, .door.is-active .perf::after { border-color: var(--rule-strong); }

.rows { flex: 1; }
.rows li + li { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: 5.1em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  transition: color .25s var(--ease);
}
.row time, .work-meta, .link-handle {
  font-family: var(--din);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--faint);
}
.row-title {
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.row-tag {
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}
.row-mark {
  font-family: var(--din);
  font-size: 13px;
  color: var(--faint);
  transition: transform .3s var(--ease), color .25s var(--ease);
}
.row:hover .row-title, .row:focus-visible .row-title { color: var(--seal); }
.row:hover .row-mark, .row:focus-visible .row-mark { color: var(--seal); transform: translate(2px, -2px); }

.more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.more-arrow { font-family: var(--din); transition: transform .3s var(--ease); }
.more:hover, .more:focus-visible { color: var(--seal); border-color: var(--seal); }
.more:hover .more-arrow, .more:focus-visible .more-arrow { transform: translateX(4px); }

/* ───────── Bands: works, about, elsewhere ───────── */

.band {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 100px);
  border-top: 1px solid var(--rule);
}
.band-head { align-self: start; position: sticky; top: 28px; }
.band-head h2 { margin-top: 14px; }
.band-desc { margin-top: 14px; max-width: 18em; font-size: 15px; color: var(--muted); }

.works li, .links li { border-bottom: 1px solid var(--rule); }
.works li:first-child, .links li:first-child { border-top: 1px solid var(--rule); }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
  column-gap: clamp(14px, 2.4vw, 32px);
  padding: 22px 0;
}
.work-main { display: grid; min-width: 0; }
.work-name {
  font-weight: 700;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.35;
  transition: color .25s var(--ease);
}
.work-name.is-latin { font-family: var(--din); letter-spacing: .005em; }
.work-desc { margin-top: 5px; max-width: 36em; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.work-meta { text-align: right; white-space: nowrap; line-height: 1.7; }
.work-meta > span { display: block; }
.work-meta .zh, .work-meta .en { font-family: var(--sans); font-size: 12px; }
.work:hover .work-name, .work:focus-visible .work-name { color: var(--seal); }

.more.after-list { margin-top: 26px; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 72px);
}
.prose p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.9; text-wrap: pretty; }
.prose .en p { line-height: 1.7; }
.prose p + p { margin-top: 1.05em; }
.prose p:first-child { color: var(--ink); }
.prose .note { font-size: 14px; color: var(--muted); }

.aside .label { display: block; margin-bottom: 14px; }
.aside .label:not(:first-child) { margin-top: 36px; }
.now {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--seal);
  border-radius: 4px 12px 12px 4px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.65;
  transition: border-color .3s var(--ease), background-color .4s var(--ease);
}
.now time { display: block; margin-bottom: 4px; font-family: var(--din); font-weight: 500; font-size: 12px; letter-spacing: .04em; color: var(--faint); font-variant-numeric: tabular-nums lining-nums; }
.now:hover, .now:focus-visible { border-color: var(--rule-strong); border-left-color: var(--seal); }
.now:hover .now-title, .now:focus-visible .now-title { color: var(--seal); }
.now-title { transition: color .25s var(--ease); }

.sayings li + li { margin-top: 16px; }
.sayings a { display: block; }
.sayings q { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.55; transition: color .25s var(--ease); }
.sayings q[lang="en"] { font-family: var(--din); font-weight: 500; letter-spacing: .005em; }
.sayings cite { display: block; margin-top: 3px; font-size: 12.5px; color: var(--faint); }
.sayings cite::before { content: "— "; }
.sayings a:hover q, .sayings a:focus-visible q { color: var(--seal); }

/* Elsewhere */
.link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 30px;
  align-items: center;
  column-gap: clamp(14px, 2.4vw, 32px);
  padding: 20px 0;
}
.link-name {
  font-family: var(--din);
  font-weight: 700;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.1;
  letter-spacing: -.012em;
  transition: color .25s var(--ease), transform .35s var(--ease);
}
.link-info { display: grid; gap: 2px; }
.link-desc { font-size: 14.5px; color: var(--muted); }
.link:hover .link-name, .link:focus-visible .link-name { color: var(--seal); transform: translateX(6px); }

/* ───────── Footer ───────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 36px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--rule);
}
.footer .label { font-size: 10px; color: var(--faint); }
.disclaimer {
  flex: 0 0 100%;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--faint);
}
.disclaimer p { max-width: 62em; }
.disclaimer .en { line-height: 1.65; }
.disclaimer strong {
  margin-right: 1em;
  font-family: var(--din);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.disclaimer .zh strong { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; }
.footer .top { margin-left: auto; transition: color .25s var(--ease); }
.footer .top:hover { color: var(--seal); }

/* ───────── 404 ───────── */

.lost { min-height: 70vh; padding: clamp(64px, 12vw, 140px) 0; }
.lost h1 { margin: 28px 0 30px; }
.lost .more { margin-top: 32px; }

/* ───────── Motion ───────── */

@media (prefers-reduced-motion: no-preference) {
  .status-dot.is-live { animation: live 2.6s ease-out infinite; }
}
@keyframes live {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--seal) 45%, transparent); }
  70%, to { box-shadow: 0 0 0 9px transparent; }
}

/* Entrances are plain CSS, so the page never waits on a script to become visible. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .hero-title { animation-delay: .08s; }
  .lede { animation-delay: .18s; }
  .instrument { animation-name: appear; animation-duration: 1.6s; animation-delay: .1s; }
  .stamp { animation: press .7s cubic-bezier(.3, 1.5, .5, 1) .8s both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes appear {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes press {
  from { opacity: 0; transform: rotate(-3deg) scale(1.55); }
  35% { opacity: 1; }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ───────── Narrower screens ───────── */

@media (max-width: 980px) {
  .nav { display: none; }
  .controls { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .instrument { justify-self: center; width: min(100%, 520px); margin: 8px 0 0; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-head { position: static; }
  .band-desc { max-width: 30em; }
}

@media (max-width: 760px) {
  .masthead { height: 76px; }
  .channel { grid-template-columns: minmax(0, 1fr); }
  .channel-go { justify-self: start; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door-desc { min-height: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(56px, 19vw, 87px); }
  .stamp { width: clamp(84px, 25vw, 124px); right: clamp(-58px, -11vw, -30px); top: -22px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .row time { grid-column: 1 / -1; }
  .work { grid-template-columns: minmax(0, 1fr) 30px; }
  .work-meta { grid-column: 1; grid-row: 2; text-align: left; margin-top: 8px; }
  .work-meta > span { display: inline; }
  .work-meta > span + span::before { content: " · "; }
  .work .arrow { grid-row: 1; grid-column: 2; }
  .link { grid-template-columns: minmax(0, 1fr) 30px; row-gap: 6px; }
  .link-info { grid-column: 1; grid-row: 2; }
  .link .arrow { grid-row: 1; grid-column: 2; }
  .footer .top { margin-left: 0; }
}

@media print {
  body::before, .controls, .instrument, .skip { display: none; }
  .hero { grid-template-columns: 1fr; }
  .rise, .reveal, .stamp { animation: none; }
}
