/* =========================================================
   Sections — one block per movement
   ========================================================= */

/* ---------- Prelude (hero) ---------- */
.prelude {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(1rem, 3vw, 2.25rem));
}
.prelude__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5) var(--gutter); align-items: center;
}
.prelude__text { grid-column: 1 / span 6; }
.turntable { grid-column: 7 / -1; }

.prelude__title { display: flex; flex-direction: column; margin-top: var(--s-3); }
.prelude__en {
  font-size: var(--fs-display); letter-spacing: 0.01em; margin-left: -0.06em;
  font-weight: 400;
}
/* The Y set in italic gold: a single grace note in the wordmark */
.prelude__en i { font-style: italic; font-weight: 400; color: var(--c-gold-deep); margin: 0 -0.02em; }
.prelude__cn {
  font-family: var(--f-display-cn); font-weight: 400; font-synthesis: none;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  letter-spacing: 0.9em; margin-top: var(--s-2);
}
.prelude__intro {
  margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--hairline) solid var(--c-line);
  max-width: var(--measure); font-size: var(--fs-body);
}
.prelude__actions { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-3); }

/* Turntable — a large record, the hero's main image.
   It turns only while playing; the tonearm swings onto the grooves. */
.turntable {
  --d: min(44vw, calc(100svh - 23.5rem), 40rem);   /* record diameter */
  justify-self: end; margin: 0;
}
.turntable__stage { position: relative; width: calc(var(--d) * 1.18); height: calc(var(--d) * 1.03); }

.record {
  position: absolute; left: 0; top: calc(var(--d) * 0.04);
  width: var(--d); aspect-ratio: 1; border-radius: 50%; padding: 0;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.4) inset, 0 30px 60px -20px rgba(22, 22, 22, 0.45), 0 12px 24px -12px rgba(22, 22, 22, 0.3);
}
.record__disc {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 0 21%, #0c0c0c 21% 22.2%, transparent 22.2%),
    radial-gradient(circle, transparent 0 46%, rgba(255, 255, 255, 0.04) 46% 47.2%, transparent 47.2%),
    radial-gradient(circle, transparent 0 72%, rgba(255, 255, 255, 0.035) 72% 73%, transparent 73%),
    radial-gradient(circle, transparent 0 96.6%, #0a0a0a 96.6%),
    repeating-radial-gradient(circle, #151515 0 1px, #1d1d1d 1.6px 2.6px);
  animation: record-spin 7.2s linear infinite;
  animation-play-state: paused;
}
.turntable.is-playing .record__disc { animation-play-state: running; }
@keyframes record-spin { to { transform: rotate(360deg); } }
.record__sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    conic-gradient(from 200deg, transparent 0 6%, rgba(255, 255, 255, 0.11) 12%, transparent 19%, transparent 50%, rgba(255, 255, 255, 0.07) 62%, transparent 69%),
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.06), transparent 45%);
  -webkit-mask: radial-gradient(circle, transparent 0 21%, #000 21.2%);
          mask: radial-gradient(circle, transparent 0 21%, #000 21.2%);
}
.record:hover .record__sheen { opacity: 0.85; }
.record:focus-visible { outline-offset: 10px; outline-color: var(--c-gold); }

/* Centre label */
.record__label { width: 42%; height: auto; isolation: isolate; }
.label__paper { fill: var(--c-parchment); }
.label__rule { fill: none; stroke: var(--c-gold); stroke-width: 1; }
.label__rule--thin { stroke: rgba(22, 22, 22, 0.18); }
.label__ring { font-family: var(--f-serif-cn); font-size: 8.5px; letter-spacing: 0.5px; fill: var(--c-black-2); }
.label__logo { mix-blend-mode: multiply; }

/* Tonearm — rests beside the record, swings in while playing */
.tonearm {
  position: absolute; right: 0; top: 0;
  width: calc(var(--d) * 0.27); height: auto; overflow: visible;
}
.tonearm__arm {
  transform-box: view-box; transform-origin: 92px 48px;
  transform: rotate(-4deg);
  transition: transform 1.6s var(--ease-out);
}
.turntable.is-playing .tonearm__arm { transform: rotate(17deg); }
.tonearm__rod { fill: none; stroke: var(--c-graphite-2); stroke-width: 2.4; stroke-linecap: round; }
.tonearm__head { fill: var(--c-gold); }
.tonearm__weight { fill: var(--c-black-2); }
.tonearm__base { fill: var(--c-ivory-2); stroke: rgba(22, 22, 22, 0.28); stroke-width: 1; }
.tonearm__pivot { fill: var(--c-gold); }

.turntable__caption {
  display: flex; justify-content: space-between; gap: var(--s-2);
  width: var(--d); margin-top: var(--s-2); padding-top: 10px;
  border-top: var(--hairline) solid var(--c-line);
}
.turntable.is-playing [data-record-state] { color: var(--c-gold-deep); }

/* News line */
.notice {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: clamp(var(--s-4), 4vw, var(--s-5));
  padding-block: 16px; border-top: var(--hairline) solid var(--c-line);
}
.notice__tag { color: var(--c-gold-deep); }
.notice__text { flex: 1; font-family: var(--f-serif-cn); letter-spacing: 0.12em; }
.notice__text strong { font-weight: 600; }
.notice__arrow { font-family: var(--f-display); font-size: 1.25rem; transition: transform var(--dur-2) var(--ease-out); }
.notice:hover .notice__arrow { transform: translateX(8px); }

/* Keyboard band */
.keys-band { margin-top: auto; border-top: var(--hairline) solid var(--c-line); background: var(--c-ivory-2); }
.keys-band__inner {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: var(--gutter);
  align-items: stretch;
}
.keys-band__label { padding-block: var(--s-2); line-height: 1.8; }
.keys-band__label span { font-family: var(--f-serif-cn); text-transform: none; letter-spacing: 0.2em; }

.keyboard {
  --whites: 14;
  position: relative; display: flex; height: clamp(56px, 2.5rem + 3vw, 88px);
  border-left: var(--hairline) solid var(--c-line);
}
.key { position: relative; transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.key--white {
  flex: 1 1 0; background: var(--c-ivory-2);
  border-right: var(--hairline) solid var(--c-line);
}
.key--white:hover { background: var(--c-ivory); }
.key--black {
  position: absolute; top: 0; z-index: 1;
  width: calc(100% / var(--whites) * 0.46); height: 58%;
  left: calc(100% / var(--whites) * var(--pos) - 100% / var(--whites) * 0.23);
  background: var(--c-black-2);
}
.key--black:hover { background: var(--c-black-2); }
.key::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 8px; height: 1px;
  background: var(--c-gold); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out);
}
.key.is-down { transform: translateY(1px); }
.key--white.is-down { background: var(--c-parchment); }
.key.is-down::after { transform: scaleX(1); transition-duration: var(--dur-1); }

/* ---------- Movement I · Purpose ---------- */
.purpose__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); align-items: end;
}
.purpose__list { grid-column: 1 / span 7; }
.purpose__list li {
  display: grid; grid-template-columns: 4rem 1fr; align-items: baseline;
  padding-block: var(--s-4); border-bottom: var(--hairline) solid var(--c-line);
}
.purpose__list li:first-child { padding-top: 0; }
.purpose__idx { font-size: var(--fs-h3); color: var(--c-gold); }
.purpose__list p {
  font-family: var(--f-serif-cn); font-size: var(--fs-h3); line-height: 1.7; letter-spacing: 0.06em;
}
.purpose__list em { font-style: normal; color: var(--c-gold-deep); }
/* The pull quote is set vertically, read right to left, like a hanging scroll */
.purpose__quote {
  grid-column: 9 / -1; justify-self: end; align-self: start;
  writing-mode: vertical-rl;
  height: clamp(20rem, 16rem + 10vw, 26rem);
  padding-right: var(--s-3); border-right: var(--hairline) solid var(--c-gold);
}
.purpose__quote p {
  font-family: var(--f-serif-cn); font-weight: 300; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  line-height: 1.9; letter-spacing: 0.3em; text-orientation: upright;
}
.purpose__quote footer { text-align: end; margin-right: var(--s-3); text-orientation: mixed; }

/* ---------- Movement II · Cup ---------- */
.cup, .repertoire { overflow: hidden; }
.cup__strings {
  position: absolute; top: 0; bottom: 0; right: 6%; width: 28%;
  display: flex; justify-content: space-between; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.cup__strings i { width: 1px; background: rgba(178, 154, 114, 0.18); }
.cup__strings i:nth-child(odd) { background: rgba(239, 236, 228, 0.08); }
.cup.is-playing .cup__strings i { animation: pluck 2.4s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 90ms); }
@keyframes pluck {
  0% { transform: translateX(0); }
  10% { transform: translateX(2px); }
  25% { transform: translateX(-1.5px); }
  45% { transform: translateX(1px); }
  70% { transform: translateX(-0.5px); }
  100% { transform: translateX(0); }
}

.cup__grid {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5) var(--gutter);
}
.cup__hero { grid-column: 1 / span 6; }
.cup__body { grid-column: 8 / -1; display: grid; gap: var(--s-3); align-content: start; }
.cup__numeral {
  font-size: clamp(8rem, 4rem + 14vw, 17rem); line-height: 0.82; font-weight: 400;
  color: transparent; -webkit-text-stroke: 1px var(--c-gold);
  margin-left: -0.04em;
}
.cup__headline { margin-top: var(--s-4); font-size: var(--fs-h2); color: var(--c-on-dark); letter-spacing: 0.12em; }
.cup__meta { margin-top: var(--s-3); }
.cup__notice {
  font-family: var(--f-serif-cn); color: var(--c-on-dark); letter-spacing: 0.08em;
  padding-left: var(--s-2); border-left: var(--hairline) solid var(--c-gold);
}
.cup__link { justify-self: start; color: var(--c-on-dark); }
.cup__past { margin-top: var(--s-4); }
.tracks {
  display: grid; grid-template-columns: 1fr 1fr; margin: var(--s-2) 0 0;
  border-block: var(--hairline) solid var(--c-line-dark);
}
.tracks__item { padding: var(--s-3) var(--s-2); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.tracks__item + .tracks__item { border-left: var(--hairline) solid var(--c-line-dark); }
.tracks dt { font-size: var(--fs-h3); letter-spacing: 0.3em; }
.tracks dd { margin: 0; color: var(--c-on-dark-2); font-size: var(--fs-lead); }

/* ---------- Movement III · Repertoire ---------- */
.piece {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: var(--s-2) var(--gutter); align-items: baseline;
  padding: var(--s-4) var(--s-2);
  border-top: var(--hairline) solid var(--c-line);
  transition: background-color var(--dur-2) var(--ease);
}
.piece:last-child { border-bottom: var(--hairline) solid var(--c-line); }
.piece::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px;
  background: var(--c-black); transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-2) var(--ease-out);
}
.piece:hover { background: var(--c-ivory-2); }
.piece:hover::before { transform: scaleY(1); }
.piece__title { display: flex; flex-direction: column; gap: 2px; }
.piece__no { font-family: var(--f-display); font-style: italic; font-size: var(--fs-h3); color: var(--c-gold-deep); line-height: 1.2; }
.piece__title .t-cn-head { font-size: var(--fs-h3); }
.piece__title .t-italic { font-size: var(--fs-lead); color: var(--c-text-3); }
.piece__desc { color: var(--c-text-2); max-width: var(--measure); }
.piece__meta { text-align: right; }

/* ---------- Movement IV · Chronicle (score) ---------- */
.score {
  --staff-top: 20px; --staff-gap: 9px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s-6);
}
.measure {
  --bar: rgba(22, 22, 22, 0.55);
  --bar-end: linear-gradient(to left, var(--bar) 0 1px, transparent 1px);
  --bar-start: linear-gradient(to right, var(--bar) 0 1px, transparent 1px);
  --staff-lines: linear-gradient(rgba(22, 22, 22, 0.3) 1px, transparent 1px) 0 0 / 100% var(--staff-gap);
  position: relative; padding: calc(var(--staff-top) + var(--staff-gap) * 4 + var(--s-4)) var(--s-3) 0;
}
/* Bar lines span the staff only, as in a printed score */
.measure::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--staff-top);
  height: calc(var(--staff-gap) * 4 + 1px);
  background: var(--bar-end), var(--staff-lines);
}
.measure:nth-child(4n + 1)::before { background: var(--bar-start), var(--bar-end), var(--staff-lines); }
.measure::after {
  content: ""; position: absolute; left: var(--s-3);
  top: calc(var(--staff-top) + var(--pitch) * var(--staff-gap) / 2 - 4px);
  width: 12px; height: 9px; border-radius: 50%;
  background: var(--c-black); transform: rotate(-20deg);
}
.measure time { display: block; color: var(--c-gold-deep); }
.measure h3 { font-size: var(--fs-lead); margin-top: 6px; }
.measure p { margin-top: 6px; color: var(--c-text-2); font-size: var(--fs-small); line-height: 1.8; padding-right: var(--s-2); }
.measure--final {
  --bar-end: linear-gradient(to left, var(--c-black) 0 3px, transparent 3px 6px, var(--c-black) 6px 7px, transparent 7px);
}
.measure--final::after { background: var(--c-gold); }
.motion-ready .measure[data-reveal]::after { transform: rotate(-20deg) scale(0); transition: transform var(--dur-2) var(--ease-out) calc(var(--i, 0) * var(--beat) + 500ms); }
.motion-ready .measure[data-reveal].is-in::after { transform: rotate(-20deg) scale(1); }

/* ---------- Interlude · Letter ---------- */
.letter__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); }
.letter__aside { grid-column: 1 / span 3; display: grid; gap: 4px; align-content: start; }
.letter__label { font-size: var(--fs-h3); color: var(--c-gold); }
.letter__body { grid-column: 5 / span 7; display: grid; gap: var(--s-3); justify-items: start; }
.letter__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); margin-bottom: var(--s-2); }
.letter__body p {
  font-family: var(--f-serif-cn); font-size: var(--fs-lead); line-height: 2.05; color: var(--c-text-2);
  max-width: var(--measure);
}
/* Drop cap on the opening character, as in a printed letter */
.letter__body h2 + p::first-letter {
  float: left; font-size: 3.5em; line-height: 1; font-weight: 600;
  margin: 0.06em 0.16em 0 0; color: var(--c-gold-deep);
}
.letter__body .letter__sign { color: var(--c-text); font-size: var(--fs-body); margin-block: var(--s-2); }

/* ---------- Coda ---------- */
.coda__line {
  font-family: var(--f-display-cn); font-weight: 400; font-size: var(--fs-h2);
  line-height: 1.6; letter-spacing: 0.1em; margin-bottom: clamp(var(--s-5), 7vw, var(--s-7));
}
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hairline) solid var(--c-line-dark); }
.channel {
  position: relative; display: grid; gap: 6px; height: 100%;
  padding: var(--s-4) var(--s-5) var(--s-4) 0;
  transition: color var(--dur-2) var(--ease);
}
.channels li + li .channel { padding-left: var(--s-3); border-left: var(--hairline) solid var(--c-line-dark); }
.channel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--c-gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out);
}
.channel:hover::before { transform: scaleX(1); }
.channel__name { font-size: var(--fs-h3); color: var(--c-on-dark); }
.channel__desc { color: var(--c-on-dark-2); font-size: var(--fs-small); }
.channel__arrow {
  position: absolute; right: var(--s-2); top: var(--s-4); font-family: var(--f-display); font-size: 1.25rem;
  color: var(--c-gold); transition: transform var(--dur-2) var(--ease-out);
}
.channel:hover .channel__arrow { transform: translate(4px, -4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measure:nth-child(n)::before { background: var(--bar-end), var(--staff-lines); }
  .measure:nth-child(2n + 1)::before { background: var(--bar-start), var(--bar-end), var(--staff-lines); }
  .piece { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 6fr); }
  .piece__meta { grid-column: 2 / -1; text-align: left; }
}

@media (max-width: 900px) {
  .prelude__text, .turntable,
  .purpose__list, .purpose__quote,
  .cup__hero, .cup__body,
  .letter__aside, .letter__body { grid-column: 1 / -1; }
  .turntable { --d: min(calc((100vw - 2 * var(--gutter)) / 1.2), 30rem); justify-self: center; }
  .purpose__quote { justify-self: center; height: 18rem; margin-top: var(--s-4); }
  .cup__strings { width: 50%; right: -10%; }
  .letter__aside { grid-auto-flow: column; justify-content: start; gap: var(--s-2); align-items: baseline; }
}

@media (max-width: 720px) {
  .keys-band__inner { grid-template-columns: 1fr; gap: 0; }
  .keys-band__label { padding-block: 12px 8px; }
  .keys-band__label br { display: none; }
  .keys-band__label span { margin-left: 0.75em; }
  .keyboard { --whites: 7; border-left: 0; }
  .keyboard [data-octave="1"] { display: none; }
  .piece { grid-template-columns: 1fr; gap: var(--s-1); padding-inline: var(--s-2) 0; }
  .piece__meta { grid-column: auto; }
  .score { grid-template-columns: 1fr; row-gap: var(--s-4); }
  .measure:nth-child(n)::before { background: var(--bar-start), var(--bar-end), var(--staff-lines); }
  .channels { grid-template-columns: 1fr; }
  .channels li + li .channel { padding-left: 0; border-left: 0; border-top: var(--hairline) solid var(--c-line-dark); }
  .prelude__cn { letter-spacing: 0.6em; }
  .tracks__item { flex-direction: column; gap: 0; }
}

/* Now-playing line under the record */
.turntable__caption [data-record-state] {
  font-family: var(--f-serif-cn); font-size: var(--fs-small); text-transform: none;
  letter-spacing: 0.1em; text-align: right;
}

/* A movement's numeral, set very large in italic, barely tinted, behind its heading */
.section[data-numeral] > .wrap { position: relative; z-index: 1; }
.section[data-numeral]::before {
  content: attr(data-numeral); position: absolute; z-index: 0; pointer-events: none;
  right: var(--gutter); top: calc(var(--section-y) * 0.55);
  font-family: var(--f-display); font-style: italic; font-weight: 400; line-height: 0.8;
  font-size: clamp(10rem, 4rem + 20vw, 24rem); letter-spacing: -0.02em;
  color: rgba(22, 22, 22, 0.035);
}

/* ---------- Movement V · Nocturne · 山海知音录 ---------- */
.nocturne {
  --zy-night: #0B1525; --zy-indigo: #243C4D; --zy-moon: #F1EADB; --zy-gold: #C8B58C;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, rgba(241, 234, 219, 0.05), transparent 70%),
    linear-gradient(180deg, var(--zy-night), #101b2d 60%, var(--zy-night));
  color: var(--zy-moon);
}
.nocturne__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); align-items: start;
}
.nocturne__scroll { grid-column: 1 / span 8; margin: 0; }
/* Mounted like a hanging scroll: a dark mat inside a single gold hairline */
.nocturne__scroll-link {
  position: relative; display: block; padding: 12px;
  background: #0d1828; border: 1px solid rgba(200, 181, 140, 0.45);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: border-color var(--dur-2) var(--ease);
}
.nocturne__scroll-link:hover { border-color: var(--zy-gold); }
.nocturne__scroll-link::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(241, 234, 219, 0.06);
}
.nocturne__canvas { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--zy-night); }
.nocturne__verse {
  position: absolute; top: 34px; right: 36px; writing-mode: vertical-rl; display: flex; gap: 14px;
  font-family: var(--f-qiji); font-weight: 400; font-size: clamp(17px, 1.4vw, 23px); letter-spacing: 0.4em;
  color: var(--zy-moon); text-shadow: 0 0 18px rgba(11, 21, 37, 0.9); pointer-events: none;
}
.nocturne__verse span:last-child { padding-top: 2.2em; }
.nocturne__caption { display: flex; justify-content: space-between; gap: var(--s-2); margin-top: 12px; }
.nocturne .t-mono { color: rgba(241, 234, 219, 0.5); }

.nocturne__side { grid-column: 9 / -1; display: grid; gap: var(--s-3); align-content: start; }
.nocturne__motto { font-family: var(--f-qiji); font-weight: 400; font-size: calc(var(--fs-h3) * 1.15); letter-spacing: 0.32em; color: var(--zy-gold); }
.nocturne__lead { font-size: var(--fs-body); line-height: 2; color: rgba(241, 234, 219, 0.75); }
.nocturne__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0;
  border-block: 1px solid rgba(241, 234, 219, 0.14);
}
.nocturne__stats > div { padding: 14px 0; }
.nocturne__stats > div + div { padding-left: 16px; border-left: 1px solid rgba(241, 234, 219, 0.1); }
.nocturne__stats dt { font-size: var(--fs-small); letter-spacing: 0.16em; color: rgba(241, 234, 219, 0.55); }
.nocturne__stats dd { margin: 4px 0 0; font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1; color: var(--zy-moon); }
.nocturne__stats dd small { display: block; margin-top: 6px; font-family: var(--f-serif-cn); font-size: 12px; letter-spacing: 0.1em; color: rgba(241, 234, 219, 0.5); }

.seek-inline { display: grid; gap: 10px; }
.seek-inline__label { font-family: var(--f-serif-cn); font-weight: 600; letter-spacing: 0.3em; }
.seek-inline__field { display: flex; border-bottom: 1px solid rgba(241, 234, 219, 0.4); transition: border-color var(--dur-2) var(--ease); }
.seek-inline__field:focus-within { border-color: var(--zy-gold); }
.seek-inline__input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--zy-moon);
  font: inherit; font-size: var(--fs-body); letter-spacing: 0.06em; padding: 10px 0; outline: none;
}
.seek-inline__input::placeholder { color: rgba(241, 234, 219, 0.38); }
.seek-inline__go { font-family: var(--f-serif-cn); font-weight: 600; letter-spacing: 0.24em; color: var(--zy-gold); padding-left: 14px; }
.seek-inline__state { min-height: 1.6em; font-size: var(--fs-small); letter-spacing: 0.06em; color: rgba(241, 234, 219, 0.7); }
.seek-inline__results { display: grid; gap: 8px; }
/* Each match as a framed name chip, like the labels on the star map */
.zy-chip {
  display: flex; align-items: center; gap: 12px; padding: 5px 16px 5px 5px; border-radius: 99px;
  background: rgba(11, 21, 37, 0.8); border: 1px solid rgba(200, 181, 140, 0.4);
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.zy-chip:hover, .zy-chip:focus-visible { border-color: var(--zy-gold); background: rgba(36, 60, 77, 0.6); }
.zy-chip__avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(200, 181, 140, 0.7); background: linear-gradient(180deg, var(--zy-indigo), var(--zy-night));
  display: grid; place-items: center; font-family: var(--f-serif-cn); font-weight: 600; font-size: 15px; color: var(--zy-gold);
}
.zy-chip__name { flex: 1; min-width: 0; font-family: var(--f-serif-cn); font-weight: 600; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zy-chip__code { font-family: var(--f-display); font-style: italic; color: var(--zy-gold); font-size: var(--fs-small); }
.nocturne__enter { justify-self: start; color: var(--zy-moon); }

@media (max-width: 900px) {
  .nocturne__scroll, .nocturne__side { grid-column: 1 / -1; }
  .nocturne__canvas { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .nocturne__canvas { aspect-ratio: 3 / 4; }
  .nocturne__verse { top: 24px; right: 22px; }
}

/* 回纹 — a fine gold meander band along the top edge of the dark movements */
.cup::after, .nocturne::after, .coda::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; pointer-events: none; opacity: 0.32;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13.5H6.5V3.5H18.5V10.5H10.5V6.5H14.5' fill='none' stroke='%23B29A72' stroke-width='1'/%3E%3Cpath d='M14.5 13.5H28' fill='none' stroke='%23B29A72' stroke-width='1'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px;
}
.cup, .nocturne, .coda { position: relative; }
.piece__more { display: inline-block; margin-left: 6px; color: var(--c-gold-deep); border-bottom: 1px solid currentColor; font-size: var(--fs-small); letter-spacing: 0.1em; white-space: nowrap; }
.piece__more:hover { color: var(--c-text); }

/* =========================================================
   III · 聚星企划 — the constellation plate
   ========================================================= */
.constellation { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.constellation__no { margin: 0 0 var(--s-2); color: var(--c-gold-deep); font-size: var(--fs-lead); }
.constellation__motto { margin: 0; font-family: var(--f-display-cn); font-size: clamp(28px, 3vw, 46px); line-height: 1.55; letter-spacing: 0.16em; }
.constellation__desc { margin: var(--s-3) 0 0; color: var(--c-text-2); max-width: 32em; }
.constellation__stats { display: flex; margin: var(--s-4) 0 0; border-block: var(--hairline) solid var(--c-line); }
.constellation__stats > div { padding: 14px 28px 14px 0; }
.constellation__stats > div + div { padding-left: 28px; border-left: var(--hairline) solid var(--c-line); }
.constellation__stats dt { font-size: 12px; letter-spacing: 0.22em; color: var(--c-text-3); }
.constellation__stats dd { margin: 2px 0 0; font-family: var(--f-display); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.constellation__stats dd small { font-family: var(--f-serif-cn); font-size: 12px; letter-spacing: 0.12em; margin-left: 8px; color: var(--c-gold-deep); }
.constellation__cta { display: inline-flex; align-items: center; gap: 16px; margin-top: var(--s-4); font-weight: 700; letter-spacing: 0.26em; }
.constellation__cta i { position: relative; width: 56px; height: 1px; background: currentColor; transition: width 0.8s var(--ease-out); }
.constellation__cta i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.constellation__cta:hover i { width: 84px; }
.constellation__cta:hover { color: var(--c-gold-deep); }

.orbit { position: relative; container-type: inline-size; overflow: clip; overflow-clip-margin: 14px; display: block; width: min(100%, 620px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; isolation: isolate; }
/* night sky disc with a gilt double rim */
.orbit::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 50% 50%, #1d3346 0, #12202f 46%, #0b1525 72%);
  box-shadow: inset 0 0 0 1px rgba(200, 181, 140, 0.55), inset 0 0 0 7px #0b1525, inset 0 0 0 8px rgba(200, 181, 140, 0.3), 0 40px 80px -40px rgba(11, 21, 37, 0.7);
}
/* a five-line stave bent into a circle, between the two rings */
.orbit__staff { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle closest-side, transparent 71.65%, rgba(241, 234, 219, 0.14) 71.65% 72.00%, transparent 72.00%, transparent 73.85%, rgba(241, 234, 219, 0.14) 73.85% 74.20%, transparent 74.20%, transparent 76.05%, rgba(241, 234, 219, 0.14) 76.05% 76.40%, transparent 76.40%, transparent 78.25%, rgba(241, 234, 219, 0.14) 78.25% 78.60%, transparent 78.60%, transparent 80.45%, rgba(241, 234, 219, 0.14) 80.45% 80.80%, transparent 80.80%); }
.orbit__core { position: absolute; inset: 35%; border-radius: 50%; display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px rgba(200, 181, 140, 0.45); color: #f1eadb; }
.orbit__core b { font-family: var(--f-display-cn); font-weight: 400; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: 0.12em; line-height: 1.1; }
.orbit__core small { font-family: var(--f-display); font-style: italic; font-size: 13px; color: rgba(200, 181, 140, 0.85); }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; }
.orbit__ring::before { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(241, 234, 219, 0.14); }
.orbit__ring--1 { --size: 5.3%; --dur: 220s; }
.orbit__ring--2 { --size: 9.6%; --dur: 300s; --dir: reverse; }
.orbit__ring--2::before { border-color: rgba(200, 181, 140, 0.28); }
.orbit__seat { position: absolute; left: 50%; top: 50%; width: var(--size); aspect-ratio: 1; margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); transform: rotate(var(--a)) translateY(calc(var(--r-cq) * -1)) rotate(calc(-1 * var(--a))); }
.orbit__ring--1 .orbit__seat { --r-cq: 28cqw; }
.orbit__ring--2 .orbit__seat { --r-cq: 44cqw; }
.orbit__ring--1::before { inset: 22%; }
.orbit__ring--2::before { inset: 6%; }
.orbit__face { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #2e4a5a; box-shadow: 0 0 0 1.5px rgba(241, 234, 219, 0.8), 0 0 0 4px #10202f, 0 0 0 5px rgba(200, 181, 140, 0.35); transition: transform 0.6s var(--ease-out), box-shadow 0.6s; }
.orbit__ring--2 .orbit__face { box-shadow: 0 0 0 1.5px var(--c-gold), 0 0 0 4px #0d1a29, 0 0 0 5px rgba(200, 181, 140, 0.4); }
.orbit__face img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); transition: filter 0.6s; }
.orbit__face[data-initial]::before { content: attr(data-initial); display: grid; place-items: center; height: 100%; color: #f1eadb; font-family: var(--f-display-cn); }
.orbit:hover .orbit__face img { filter: none; }
.orbit__face:hover { transform: scale(1.25); }
/* the turning: rings rotate, faces counter-rotate to stay upright */
.motion-ready .orbit__ring { animation: orbit-turn var(--dur) linear infinite var(--dir, normal); }
.motion-ready .orbit__face { animation: orbit-turn var(--dur) linear infinite; animation-direction: var(--counter, reverse); }
.orbit__ring--2 { --counter: normal; }
.orbit:hover .orbit__ring, .orbit:hover .orbit__face { animation-play-state: paused; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
/* arrival: each portrait fades in along its ring */
.motion-ready .orbit__seat { opacity: 0; transition: opacity 1.2s var(--ease-out) var(--d), filter 1.2s var(--ease-out) var(--d); filter: blur(6px); }
.motion-ready .orbit.is-in .orbit__seat { opacity: 1; filter: none; }
.orbit:focus-visible { outline: 1px solid var(--c-gold); outline-offset: 8px; }

/* =========================================================
   Intermezzo · 节目单 — programme plates
   ========================================================= */
.playbill { overflow: hidden; }
.bills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.bill { min-width: 0; grid-column: span 2; }
/* the two plates after the lead share a row */
.bill:not(.bill--lead) { grid-column: span 3; }
.bill h3 { margin: 6px 0 6px; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: 0.1em; }
.bill p { margin: 0; color: var(--c-on-dark-2); font-size: 14px; line-height: 1.8; }
.bill .bill__date { color: var(--c-gold); margin-top: 16px; letter-spacing: 0.16em; }
.bill__plate { position: relative; display: block; padding: 8px; overflow: hidden; background: linear-gradient(135deg, rgba(178, 154, 114, 0.4), rgba(178, 154, 114, 0.08) 45%, rgba(178, 154, 114, 0.32)); box-shadow: 0 30px 50px -36px #000; }
.bill__plate::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(178, 154, 114, 0.3); pointer-events: none; }
.bill__plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.82) brightness(0.94); transition: filter 0.9s, transform 1.6s var(--ease-out); }
.bill__plate:hover img, .bill__plate:focus-visible img { filter: none; transform: scale(1.03); }
.bill__op { position: absolute; left: 18px; top: 16px; font-family: var(--f-display); font-style: italic; font-size: 14px; padding: 1px 10px; color: var(--c-on-dark); background: rgba(22, 22, 22, 0.7); border: 1px solid rgba(178, 154, 114, 0.45); }
/* the lead performance spans two columns, text beside it */
.bill--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bill--lead h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: 0.18em; }
.bill--lead p:not(.bill__date) { font-size: 15.5px; line-height: 2; }
.bill--lead .bill__date { margin-top: 0; }
.bill--lead .bill__op { font-size: 17px; }
.bill__more { display: inline-block; margin-top: 18px; color: var(--c-gold); letter-spacing: 0.14em; font-size: 14px; border-bottom: 1px solid rgba(178, 154, 114, 0.4); padding-bottom: 2px; transition: border-color 0.5s; }
.bill__more:hover { border-color: var(--c-gold); }
.bill__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bill:not(.bill--lead) .bill__more { margin-top: 12px; font-size: 13px; }
.bills__all { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(36px, 4vw, 56px); color: var(--c-on-dark); font-weight: 700; letter-spacing: 0.24em; }
.bills__all i { position: relative; width: 56px; height: 1px; background: var(--c-gold); transition: width 0.8s var(--ease-out); }
.bills__all i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--c-gold); border-right: 1px solid var(--c-gold); transform: rotate(45deg); }
.bills__all:hover { color: var(--c-gold); }
.bills__all:hover i { width: 84px; }
.bills__note { margin: clamp(32px, 4vw, 52px) 0 0; text-align: right; }

@media (max-width: 960px) {
  .constellation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .constellation__stats > div { padding-right: 18px; }
  .constellation__stats > div + div { padding-left: 18px; }
  .bills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill:not(.bill--lead) { grid-column: span 1; }
  .bill--lead { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bills { grid-template-columns: 1fr; }
  .bill:not(.bill--lead) { grid-column: 1 / -1; }
  .constellation__stats > div { padding-right: 18px; }
  .constellation__stats > div + div { padding-left: 18px; }
}

@media (max-width: 720px) {
  .constellation { grid-template-columns: 1fr; gap: 40px; }
  .orbit { width: min(100%, 460px); }
}

/* ---------- Phone: swipeable playbill, vertical score ---------- */
.bills__hint { display: none; }
@media (max-width: 600px) {
  .bills {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .bills::-webkit-scrollbar { display: none; }
  .bill, .bill--lead, .bill:not(.bill--lead) { flex: 0 0 86%; display: block; scroll-snap-align: start; }
  .bill--lead h3 { font-size: 22px; letter-spacing: 0.12em; }
  .bill--lead p:not(.bill__date), .bill p { font-size: 14px; line-height: 1.8; }
  .bill--lead .bill__date { margin-top: 16px; }
  .bill .bill__more, .bill--lead .bill__more { margin-top: 12px; font-size: 13px; }
  .bills__hint { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--c-on-dark-2); }
  .bills__hint i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-gold), transparent); }
  .bills__all { margin-top: 28px; }
  .bills__note { text-align: left; }

  /* chronicle: the staff turns vertical and runs down the left edge */
  .score { row-gap: 0; --staff-gap: 6px; }
  .measure { padding: 18px 0 22px 56px; }
  .measure::before, .measure:nth-child(n)::before {
    left: 4px; right: auto; top: 0; bottom: 0; height: auto; width: calc(var(--staff-gap) * 4 + 1px);
    background: linear-gradient(rgba(22, 22, 22, 0.5) 1px, transparent 1px) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, rgba(22, 22, 22, 0.3) 1px, transparent 1px) 0 0 / var(--staff-gap) 100%;
  }
  .measure::after { left: calc(4px + var(--pitch) * var(--staff-gap) / 2 - 5px); top: 24px; transform: rotate(70deg); }
  .motion-ready .measure[data-reveal]::after { transform: rotate(70deg) scale(0); }
  .motion-ready .measure[data-reveal].is-in::after { transform: rotate(70deg) scale(1); }
  .measure--final::before { background: linear-gradient(rgba(22, 22, 22, 0.5) 1px, transparent 1px) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, rgba(22, 22, 22, 0.3) 1px, transparent 1px) 0 0 / var(--staff-gap) 100%, linear-gradient(var(--c-black) 0 0) 0 100% / 100% 3px no-repeat !important; }
  .measure h3 { margin-top: 2px; }
}
