﻿/* R4 Tchaikovsky Interactive Stage */
.interactive-stage {
  --depth-bg-x: 0px;
  --depth-bg-y: 0px;
  --depth-media-x: 0px;
  --depth-media-y: 0px;
  --depth-staff-x: 0px;
  --depth-staff-y: 0px;
  --depth-note-x: 0px;
  --depth-note-y: 0px;
  --depth-copy-x: 0px;
  --depth-copy-y: 0px;
  --depth-front-x: 0px;
  --depth-front-y: 0px;
  --depth-light-x: 0px;
  --depth-light-y: 0px;
  --depth-light-intensity: 0.76;
  --conductor-light-x: 72%;
  --conductor-light-y: 38%;
  --conductor-light-shift: 0%;
  --stage-rotate-x: 0deg;
  --stage-rotate-y: 0deg;
  --phrase-light: 0.76;
  --phrase-shift: 0%;
  --note-impact-intensity: 0;
  --note-impact-x: 50%;
  --note-ripple-intensity: 0;
  --note-z: 0px;
  --note-lift: 0px;
  --note-glow: 0.18;
  --theme-progress: 0%;
  --phrase-breath-intensity: 0;
  --phrase-media-tone: 0;
  --phrase-gold-glow: 0px;
  --phrase-line-intensity: 0.22;
  --phrase-foreground-shift: 0px;
  --phrase-climax: 0;
  --score-wow: 0;
  --score-tilt-x: 0deg;
  --score-tilt-y: 0deg;
  perspective: var(--perspective-stage);
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
}

.interactive-stage::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 45%, rgba(255, 254, 249, calc(0.14 + (var(--score-wow, 0) * 0.18)), 0), transparent 62%);
  opacity: 0;
  transform: translateZ(40px);
  transition: opacity var(--motion-phrase) var(--ease-orchestra);
}

.interactive-stage[data-score-state="playing"]::before {
  animation: r4-score-halo 2.3s cubic-bezier(0.24, 0.84, 0.2, 1) infinite alternate;
  opacity: calc(0.18 + (var(--score-wow, 0) * 0.42));
}

.interactive-stage .headline-stage-slides,
.interactive-stage .headline-stage-slide {
  transform-style: preserve-3d;
}

.stage-atmosphere-r4,
.stage-atmosphere-r4 > span,
.stage-foreground-r4,
.stage-light-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-atmosphere-r4 {
  z-index: 2;
  overflow: hidden;
  transform-style: preserve-3d;
}

.stage-ambient {
  opacity: 0.54;
  filter: brightness(calc(0.91 + var(--phrase-media-tone, 0) * 1.4 + (var(--score-wow, 0) * 0.16)));
  background:
    radial-gradient(ellipse at 64% 20%, rgba(219, 162, 61, 0.12), transparent 36%),
    repeating-linear-gradient(112deg, transparent 0 86px, rgba(255, 254, 249, 0.018) 87px 88px, transparent 89px 172px);
  transform:
    translate3d(var(--depth-bg-x), var(--depth-bg-y), calc(var(--depth-far) - 12px))
    scale(calc(1 + var(--phrase-breath-intensity, 0) * 0.24 + (var(--score-wow, 0) * 0.12)))
    rotateX(calc(var(--stage-rotate-x) * 0.15 + var(--score-tilt-x, 0deg)))
    rotateY(calc(var(--stage-rotate-y) * 0.2 + var(--score-tilt-y, 0deg)));
  transition: transform var(--motion-phrase) var(--ease-orchestra), opacity var(--motion-phrase) ease;
}

.stage-light {
  opacity: calc(var(--depth-light-intensity) * 1.04 + (var(--score-wow, 0) * 0.08));
  box-shadow:
    inset 0 0 var(--phrase-gold-glow) rgba(231, 199, 130, calc(0.2 + var(--phrase-media-tone, 0) * 1.1 + (var(--score-wow, 0) * 0.22))),
    0 0 calc(10px + (var(--score-wow, 0) * 28px)) rgba(219, 162, 61, 0.16);
  background:
    radial-gradient(circle at var(--conductor-light-x) var(--conductor-light-y), rgba(231, 199, 130, 0.22), transparent 11%),
    radial-gradient(ellipse at calc(70% + var(--conductor-light-shift)) 64%, rgba(131, 0, 35, 0.24), transparent 32%);
  mix-blend-mode: screen;
  filter: blur(calc(1px + (var(--note-impact-intensity, 0) * 2px) + (var(--score-wow, 0) * 0.8px)));
  transform:
    translate3d(var(--depth-light-x), var(--depth-light-y), var(--depth-mid))
    rotateX(calc(var(--stage-rotate-x) * 0.24 + var(--score-tilt-x, 0deg)))
    rotateY(calc(var(--stage-rotate-y) * 0.28 + var(--score-tilt-y, 0deg)));
  transition: opacity var(--motion-phrase) ease, background-position var(--motion-phrase) var(--ease-orchestra), transform var(--motion-phrase) var(--ease-orchestra);
}

.stage-vignette {
  background: radial-gradient(ellipse at 54% 45%, transparent 26%, rgba(23, 16, 25, 0.42) 76%, rgba(23, 16, 25, 0.72));
  transform:
    translate3d(calc(var(--depth-bg-x) * -0.3), calc(var(--depth-bg-y) * -0.2), calc(var(--depth-near) + 8px))
    rotateX(calc(var(--stage-rotate-x) * 0.08 + var(--score-tilt-x, 0deg) * 0.28))
    rotateY(calc(var(--stage-rotate-y) * 0.1 + var(--score-tilt-y, 0deg) * 0.28));
  transition: transform var(--motion-phrase) var(--ease-orchestra);
}

.interactive-stage .stage-media {
  transform:
    translate3d(var(--depth-media-x), var(--depth-media-y), calc(var(--depth-far) + var(--phrase-image-depth, 0px)))
    scale(calc(1.055 + (var(--score-wow, 0) * 0.02)))
    translateZ(calc(var(--note-z, 0px) * 0.05))
    rotateX(calc(var(--stage-rotate-x) * 0.09 + var(--score-tilt-x, 0deg) * 0.2))
    rotateY(calc(var(--stage-rotate-y) * 0.14 + var(--score-tilt-y, 0deg) * 0.2));
  filter: saturate(calc(0.94 + var(--phrase-media-tone, 0) * 1.5))
    contrast(calc(1 + var(--phrase-media-tone, 0)))
    brightness(calc(0.98 + var(--phrase-media-tone, 0) * 1.4));
  transition: transform 1200ms var(--ease-orchestra), filter var(--motion-phrase) ease;
}

.interactive-stage .headline-stage-slide.is-active .stage-media {
  transform:
    translate3d(var(--depth-media-x), var(--depth-media-y), calc(var(--depth-far) + var(--phrase-image-depth, 0px)))
    scale(calc(1.025 + (var(--score-wow, 0) * 0.014)))
    translateZ(calc(var(--note-z, 0px) * 0.03))
    rotateX(calc(var(--stage-rotate-x) * 0.09 + var(--score-tilt-x, 0deg) * 0.25))
    rotateY(calc(var(--stage-rotate-y) * 0.14 + var(--score-tilt-y, 0deg) * 0.25));
}

.interactive-stage[data-score-state="playing"] .headline-stage-slide.is-active .stage-media {
  filter: saturate(0.86) contrast(1.06) brightness(1.035);
  transform:
    translate3d(var(--depth-media-x), var(--depth-media-y), calc(-34px + var(--phrase-image-depth, 0px) - (var(--score-wow, 0) * 8px)))
    scale(calc(1.043 + (var(--score-wow, 0) * 0.02)))
    translateZ(calc(var(--note-z, 0px) * 0.08))
    rotateX(calc(var(--stage-rotate-x) * 0.09 + var(--score-tilt-x, 0deg) * 0.34))
    rotateY(calc(var(--stage-rotate-y) * 0.14 + var(--score-tilt-y, 0deg) * 0.34));
}

.interactive-stage .stage-copy {
  transform:
    translate3d(var(--depth-copy-x), calc(var(--depth-copy-y) + var(--phrase-shift, 0%)), calc(var(--depth-mid) - (var(--score-wow, 0) * 6px)))
    rotateX(calc(var(--stage-rotate-x) * 0.42 + var(--score-tilt-x, 0deg) * 0.12))
    rotateY(calc(var(--stage-rotate-y) * 0.56 + var(--score-tilt-y, 0deg) * 0.12));
  transform-origin: 32% 68%;
  transition: transform 760ms var(--ease-orchestra), text-shadow var(--motion-phrase) ease, filter var(--motion-phrase) ease;
  filter: drop-shadow(0 0 calc(8px + (var(--note-glow, 0) * 14px)) rgba(23, 16, 25, calc(0.12 + (var(--note-glow, 0) * 0.15))));
}

.interactive-stage[data-score-state="playing"] .stage-copy {
  filter: drop-shadow(0 10px 34px rgba(23, 16, 25, calc(0.5 + (var(--score-wow, 0) * 0.3))));
  text-shadow: 0 10px 34px rgba(23, 16, 25, 0.5);
}

.interactive-stage[data-score-target="copy"] .stage-copy {
  transform:
    translate3d(var(--depth-copy-x), calc(var(--depth-copy-y) + var(--phrase-shift, 0%) - 4px), calc(var(--depth-mid) + 2px))
    rotateX(calc(var(--stage-rotate-x) * 0.42 + var(--score-tilt-x, 0deg) * 0.22))
    rotateY(calc(var(--stage-rotate-y) * 0.56 + var(--score-tilt-y, 0deg) * 0.22));
}

.stage-actions {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.score-experience {
  min-height: 48px;
  min-width: 15.5rem;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 1rem 0.42rem 0.75rem;
  border: 1px solid rgba(231, 199, 130, 0.62);
  color: var(--brand-white);
  text-align: left;
  background: rgba(23, 16, 25, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 254, 249, 0.08);
  transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast) var(--ease-orchestra);
}

.score-experience:hover,
.score-experience:focus-visible,
.score-experience[aria-pressed="true"] {
  color: var(--stage-deep);
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}

.score-experience:active {
  transform: translateY(1px);
}

.experience-icon {
  position: relative;
  width: 2.35rem;
  height: 2.35rem;
  display: block;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.experience-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  transform: translate(-42%, -50%);
}

[data-score-state="playing"] .experience-icon::before {
  width: 9px;
  height: 9px;
  border: 0;
  background: currentColor;
  transform: translate(-50%, -50%);
}

[data-score-state="completed"] .experience-icon::before,
[data-score-state="stopped"] .experience-icon::before {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.experience-copy {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.experience-copy small {
  font-family: var(--font-display-latin);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.experience-copy strong {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interactive-stage .living-score {
  opacity: calc(0.58 + (var(--depth-light-intensity) - 0.76));
  transform:
    translate3d(var(--depth-staff-x), var(--depth-staff-y), -4px)
    scale(calc(0.98 + (var(--note-impact-intensity, 0) * 0.08) + (var(--score-wow, 0) * 0.08)))
    rotateX(calc(var(--stage-rotate-x) * 0.5))
    rotateY(calc(var(--stage-rotate-y) * 0.5));
  transform-style: preserve-3d;
  transition: transform var(--motion-phrase) var(--ease-orchestra), opacity var(--motion-phrase) ease;
}

.interactive-stage .living-score::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 8%;
  bottom: 8%;
  left: var(--theme-progress, 0%);
  width: 1px;
  opacity: 0;
  background: linear-gradient(transparent, var(--brand-primary) 28% 72%, transparent);
  box-shadow: 0 0 18px rgba(219, 162, 61, 0.32);
  transition: left 220ms linear, opacity var(--motion-note) ease;
}

.interactive-stage[data-score-state="playing"] .living-score::after {
  opacity: 0.9;
}

.interactive-stage .living-score-lines {
  transform:
    translate3d(0, 0, var(--depth-far))
    rotateX(calc(var(--stage-rotate-x) * 0.2 + var(--score-tilt-x, 0deg) * 0.2))
    rotateY(calc(var(--stage-rotate-y) * 0.2 + var(--score-tilt-y, 0deg) * 0.2));
  opacity: calc(0.35 + var(--phrase-line-intensity, 0.22) + (var(--score-wow, 0) * 0.2));
  filter: drop-shadow(0 0 calc(12px * (var(--phrase-line-intensity, 0.22) + (var(--score-wow, 0) * 0.4))) rgba(219, 162, 61, 0.16));
  transition: opacity var(--motion-phrase) ease, filter var(--motion-phrase) ease, transform var(--motion-note) var(--ease-orchestra);
}

.interactive-stage[data-score-state="playing"] .living-score-lines {
  opacity: calc(0.56 + (var(--note-impact-intensity, 0) * 0.32));
  filter: drop-shadow(0 0 calc(8px + (var(--score-wow, 0) * 10px)) rgba(219, 162, 61, 0.2));
}

.interactive-stage[data-score-climax="high"] .living-score-lines {
  opacity: calc(0.66 + (var(--score-wow, 0) * 0.28));
}

.interactive-stage.is-note-struck .living-score-lines path {
  animation: r4-score-line-ripple 560ms var(--ease-orchestra) both;
  transform-origin: var(--note-impact-x, 50%) 72%;
}

.interactive-stage.is-note-struck .living-score-lines path:nth-child(2n + 1) {
  animation-duration: 640ms;
}

.interactive-stage .living-score-notes {
  transform:
    translate3d(var(--depth-note-x), var(--depth-note-y), var(--depth-mid))
    rotateX(calc(var(--stage-rotate-x) * 0.2))
    rotateY(calc(var(--stage-rotate-y) * 0.2));
  transform-style: preserve-3d;
  transition: transform var(--motion-phrase) var(--ease-orchestra);
}

.interactive-stage .score-note {
  transform: translate3d(-50%, -50%, var(--note-z, 0px)) translateY(var(--note-lift, 0));
  transform-style: preserve-3d;
  transition: transform var(--motion-note) var(--ease-spring), color var(--motion-note) ease, opacity var(--motion-note) ease, box-shadow var(--motion-note) ease;
  opacity: calc(0.6 + clamp(0, 1, var(--note-ripple-intensity, 0)) * 0.2);
  box-shadow: 0 0 calc(4px + (var(--note-glow, 0.18) * 16px)) rgba(219, 162, 61, calc(0.2 + var(--note-glow, 0.18)));
}

.interactive-stage .score-note::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5) translateZ(-1px);
}

.interactive-stage .score-note:hover,
.interactive-stage .score-note:focus-visible {
  transform: translate3d(-50%, -50%, 22px) translateY(calc(var(--note-lift, 0) - 4px));
}

.interactive-stage .score-note.is-sounding {
  z-index: 5;
  opacity: 1;
  color: var(--brand-primary);
  transform: translate3d(-50%, -50%, calc(var(--depth-near) + var(--note-z, 0px))) translateY(calc(var(--note-lift, 0) - 2px)) scale(calc(1.14 + (var(--score-wow, 0) * 0.08)));
}

.interactive-stage .score-note.is-sounding::after {
  animation: r4-note-ripple 620ms var(--ease-orchestra) both;
}

.interactive-stage .score-note.is-sounding::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 72%, transparent);
  transform: scale(calc(0.8 + (var(--note-glow, 0.18) * 0.4)));
  box-shadow: 0 0 calc(18px * var(--note-glow, 0.18)) rgba(219, 162, 61, 0.33);
  pointer-events: none;
  opacity: calc(0.48 + (var(--note-glow, 0.18) * 0.45));
}

.interactive-stage[data-score-target="note"] .score-note.is-sounding {
  filter: saturate(1.1);
}

.interactive-stage .score-note.is-upcoming {
  opacity: 0.88;
  transform: translate3d(-50%, -50%, var(--note-z, 0px)) translateY(var(--note-lift, 0));
  transition-duration: 520ms;
}

.interactive-stage .score-note.is-theme-note span {
  background: var(--gold-soft);
  box-shadow: 0 0 0 9px rgba(219, 162, 61, 0.14), 0 12px 28px rgba(23, 16, 25, 0.35);
}

.interactive-stage .score-note.is-lines-target {
  filter: hue-rotate(-8deg);
}

.interactive-stage .score-note.is-copy-target {
  filter: saturate(1.2);
}

@keyframes r4-note-ripple {
  0% { opacity: 0.58; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(2.3); }
}

.interactive-stage.is-note-struck .living-score-lines path:nth-child(3) {
  transform: translateY(-2px) rotateX(calc(var(--stage-rotate-x) * 0.2 + var(--score-tilt-x, 0deg) * 0.3)) rotateY(calc(var(--stage-rotate-y) * 0.2 + var(--score-tilt-y, 0deg) * 0.3));
  stroke: rgba(231, 199, 130, 0.94);
}

.interactive-stage[data-score-target="gold"] .stage-light {
  box-shadow:
    inset 0 0 var(--phrase-gold-glow) rgba(231, 199, 130, 0.36),
    0 0 calc(24px + (var(--note-ripple-intensity, 0) * 24px)) rgba(219, 162, 61, 0.24);
}

.interactive-stage[data-score-target="foreground"] .stage-foreground-r4 {
  transform:
    translate3d(var(--depth-front-x), calc(var(--depth-front-y) + var(--phrase-foreground-shift, 0px)), calc(var(--depth-near) + 2px))
    rotateX(calc(var(--stage-rotate-x) * 0.62 + var(--score-tilt-x, 0deg) * 0.5))
    rotateY(calc(var(--stage-rotate-y) * 0.62 + var(--score-tilt-y, 0deg) * 0.5));
}

.interactive-stage[data-score-target="staff"] .living-score {
  transform:
    translate3d(var(--depth-staff-x), var(--depth-staff-y), calc(-4px + var(--note-z, 0px)))
    scale(calc(1 + (var(--note-impact-intensity, 0) * 0.05) + (var(--score-wow, 0) * 0.04)))
    rotateX(calc(var(--stage-rotate-x) * 0.5))
    rotateY(calc(var(--stage-rotate-y) * 0.5));
}

.interactive-stage[data-score-target="lines"] .living-score-lines {
  transform: translate3d(0, calc(var(--note-impact-intensity, 0) * 3px), var(--depth-far))
    rotateX(calc(var(--stage-rotate-x) * 0.2 + var(--score-tilt-x, 0deg) * 0.3))
    rotateY(calc(var(--stage-rotate-y) * 0.2 + var(--score-tilt-y, 0deg) * 0.3));
  filter: drop-shadow(0 0 calc(18px + (var(--note-ripple-intensity, 0) * 22px) + (var(--score-wow, 0) * 12px)) rgba(219, 162, 61, 0.38));
}

.interactive-stage[data-score-target="copy"] .stage-ambient {
  transform:
    translate3d(var(--depth-bg-x), var(--depth-bg-y), calc(var(--depth-far) - 12px))
    scale(calc(1 + var(--phrase-breath-intensity, 0) * 0.24 + (var(--score-wow, 0) * 0.2)))
    rotateX(calc(var(--stage-rotate-x) * 0.15 + var(--score-tilt-x, 0deg)))
    rotateY(calc(var(--stage-rotate-y) * 0.2 + var(--score-tilt-y, 0deg)));
}

.interactive-stage[data-score-climax="high"] .stage-light {
  filter: brightness(calc(1 + (var(--score-wow, 0) * 0.16))) blur(calc(1px + (var(--note-impact-intensity, 0) * 3px) + (var(--score-wow, 0) * 1.5px)));
}

.stage-foreground-r4 {
  z-index: 6;
  transform:
    translate3d(var(--depth-front-x), var(--depth-front-y), var(--depth-near))
    translateY(calc(var(--phrase-foreground-shift, 0px) + (var(--score-wow, 0) * 2px)))
    rotateX(calc(var(--stage-rotate-x) * 0.62 + var(--score-tilt-x, 0deg) * 0.25))
    rotateY(calc(var(--stage-rotate-y) * 0.62 + var(--score-tilt-y, 0deg) * 0.25));
  opacity: calc(0.76 + (var(--score-wow, 0) * 0.2));
  transition: transform var(--motion-phrase) var(--ease-orchestra), opacity var(--motion-phrase) ease;
}

/* Hero spatial scene: six independently moving physical planes. */
.interactive-stage.zh-hero-r5 {
  --spatial-bg-x: 0px;
  --spatial-bg-y: 0px;
  --spatial-staff-x: 0px;
  --spatial-staff-y: 0px;
  --spatial-image-x: 0px;
  --spatial-image-y: 0px;
  --spatial-headline-x: 0px;
  --spatial-headline-y: 0px;
  --spatial-foreground-x: 0px;
  --spatial-foreground-y: 0px;
  --spatial-light-x: 0px;
  --spatial-light-y: 0px;
  --spatial-rotate-x: 0deg;
  --spatial-rotate-y: 0deg;
  --spatial-light-position-x: 68%;
  --spatial-light-position-y: 24%;
  perspective: 1240px;
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
  isolation: isolate;
}

.interactive-stage.zh-hero-r5 .headline-stage-slides,
.interactive-stage.zh-hero-r5 .headline-stage-slide,
.interactive-stage.zh-hero-r5 .stage-atmosphere-r4 {
  transform-style: preserve-3d;
}

.interactive-stage.zh-hero-r5 .headline-stage-slides {
  transform: rotateX(var(--spatial-rotate-x)) rotateY(var(--spatial-rotate-y));
  transform-origin: 50% 48%;
  transition: transform 160ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

/* Layer 0: recessed stage background. */
.interactive-stage.zh-hero-r5 .zh-hero-r5-backdrop {
  z-index: 0;
  transform: translate3d(var(--spatial-bg-x), var(--spatial-bg-y), -140px) scale(1.14);
  transform-origin: 50% 48%;
  filter: saturate(.72) contrast(.88) brightness(.72) blur(1.4px);
  opacity: .72;
  transition: transform 180ms cubic-bezier(.22, .61, .36, 1), filter 220ms ease;
  will-change: transform;
}

/* Layer 1: distant staff and notation texture. */
.interactive-stage.zh-hero-r5 .living-score {
  z-index: 3;
  transform: translate3d(var(--spatial-staff-x), calc(var(--spatial-staff-y) + var(--phrase-foreground-shift, 0%)), -46px) scale(1.045);
  transform-origin: 50% 58%;
  filter: saturate(.78) contrast(.88) blur(.35px);
  opacity: .68;
  transition: transform 165ms cubic-bezier(.22, .61, .36, 1), filter 220ms ease, opacity 220ms ease;
  will-change: transform;
}

/* Layer 2: news image with a separate lens plane and shadow volume. */
.interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-media {
  z-index: 2;
  transform: translate3d(var(--spatial-image-x), var(--spatial-image-y), calc(var(--phrase-image-depth, 0px) - 2px)) scale(1.018) rotateY(calc(var(--spatial-rotate-y) * .18));
  transform-origin: 62% 48%;
  filter: saturate(calc(.88 + var(--phrase-media-tone, 0))) contrast(1.055) brightness(.82);
  box-shadow: -24px 30px 64px rgba(3, 12, 18, .32), 0 62px 120px rgba(4, 17, 24, .38), inset 0 0 0 1px rgba(255, 244, 211, .09);
  transition: transform 150ms cubic-bezier(.22, .61, .36, 1), filter 240ms ease;
  will-change: transform;
}

.interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-scrim {
  z-index: 4;
  transform: translateZ(18px) scale(1.012);
}

/* Layer 3: headline typography sits clearly in front of the image. */
.interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-copy {
  z-index: 6;
  transform: translate3d(var(--spatial-headline-x), var(--spatial-headline-y), 92px);
  transform-origin: 28% 52%;
  filter: drop-shadow(0 18px 30px rgba(2, 11, 17, .26));
  transition: transform 135ms cubic-bezier(.22, .61, .36, 1), filter 180ms ease;
  will-change: transform;
}

.interactive-stage.zh-hero-r5 .stage-copy h1,
.interactive-stage.zh-hero-r5 .stage-copy h2 {
  text-shadow: 0 2px 2px rgba(2, 10, 15, .5), 0 12px 34px rgba(2, 10, 15, .42), 0 34px 70px rgba(2, 10, 15, .28);
}

/* Layer 4: crisp notation crosses the image edge to close the occlusion stack. */
.interactive-stage.zh-hero-r5 .stage-foreground-r4,
.interactive-stage.zh-hero-r5 .zh-hero-r5-foreground {
  z-index: 8;
  transform: translate3d(var(--spatial-foreground-x), var(--spatial-foreground-y), 150px) scale(1.035);
  transform-origin: 58% 64%;
  filter: drop-shadow(0 26px 30px rgba(2, 10, 15, .34));
  transition: transform 120ms cubic-bezier(.22, .61, .36, 1), filter 180ms ease;
  will-change: transform;
}

.interactive-stage.zh-hero-r5 .stage-foreground-r4 span,
.interactive-stage.zh-hero-r5 .stage-foreground-r4 i,
.interactive-stage.zh-hero-r5 .zh-hero-r5-foreground span,
.interactive-stage.zh-hero-r5 .zh-hero-r5-foreground i {
  filter: brightness(1.08) contrast(1.08);
}

/* Layer 5: the nearest light field tracks pointer focus independently. */
.interactive-stage.zh-hero-r5 .stage-light {
  z-index: 9;
  background-position: var(--spatial-light-position-x) var(--spatial-light-position-y);
  transform: translate3d(var(--spatial-light-x), var(--spatial-light-y), 190px) scale(1.08);
  transform-origin: var(--spatial-light-position-x) var(--spatial-light-position-y);
  mix-blend-mode: screen;
  transition: transform 105ms cubic-bezier(.22, .61, .36, 1), background-position 105ms linear, opacity 180ms ease;
  will-change: transform, background-position;
}

.interactive-stage.zh-hero-r5 .stage-vignette {
  z-index: 10;
  transform: translateZ(204px) scale(1.025);
  pointer-events: none;
}

.interactive-stage.zh-hero-r5 .stage-console,
.interactive-stage.zh-hero-r5 .stage-identity {
  z-index: 20;
  transform: translateZ(212px);
}

@media (max-width: 767px) {
  .interactive-stage.zh-hero-r5 {
    perspective: 980px;
  }

  .interactive-stage.zh-hero-r5 .zh-hero-r5-backdrop {
    transform: translate3d(0, 0, -82px) scale(1.09);
  }

  .interactive-stage.zh-hero-r5 .living-score {
    transform: translate3d(0, var(--phrase-foreground-shift, 0%), -26px) scale(1.025);
  }

  .interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-copy {
    transform: translate3d(0, 0, 58px);
  }

  .interactive-stage.zh-hero-r5 .stage-foreground-r4,
  .interactive-stage.zh-hero-r5 .zh-hero-r5-foreground {
    transform: translate3d(0, 0, 88px) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 {
    --spatial-bg-x: 0px;
    --spatial-bg-y: 0px;
    --spatial-staff-x: 0px;
    --spatial-staff-y: 0px;
    --spatial-image-x: 0px;
    --spatial-image-y: 0px;
    --spatial-headline-x: 0px;
    --spatial-headline-y: 0px;
    --spatial-foreground-x: 0px;
    --spatial-foreground-y: 0px;
    --spatial-light-x: 0px;
    --spatial-light-y: 0px;
    --spatial-rotate-x: 0deg;
    --spatial-rotate-y: 0deg;
  }

  .interactive-stage.zh-hero-r5 .headline-stage-slides,
  .interactive-stage.zh-hero-r5 .zh-hero-r5-backdrop,
  .interactive-stage.zh-hero-r5 .living-score,
  .interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-media,
  .interactive-stage.zh-hero-r5 .headline-stage-slide.is-active .stage-copy,
  .interactive-stage.zh-hero-r5 .stage-foreground-r4,
  .interactive-stage.zh-hero-r5 .zh-hero-r5-foreground,
  .interactive-stage.zh-hero-r5 .stage-light {
    transition: none;
    will-change: auto;
  }
}

.stage-foreground-r4 span,
.stage-foreground-r4 i {
  position: absolute;
  display: block;
  border: 1px solid rgba(231, 199, 130, 0.16);
  pointer-events: none;
}

.stage-foreground-r4 span {
  top: 22%;
  right: 5%;
  width: 15rem;
  height: 15rem;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(18deg);
}

.stage-foreground-r4 i {
  right: 19%;
  bottom: 17%;
  width: 6rem;
  height: 1px;
  border-width: 1px 0 0;
  transform: rotate(-12deg);
}

.score-transition {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5.5rem;
  pointer-events: none;
}

.score-transition::before,
.score-transition::after,
.score-transition span {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 199, 130, 0.5) 20% 78%, transparent);
}

.score-transition::before { bottom: 2.6rem; }
.score-transition::after { bottom: 2.05rem; opacity: 0.58; }
.score-transition span { bottom: 1.5rem; opacity: 0.3; }

.movement-section {
  position: relative;
  isolation: isolate;
}

.movement-section::before {
  content: attr(data-movement);
  position: absolute;
  z-index: -1;
  top: clamp(2rem, 6vw, 6rem);
  right: clamp(1rem, 6vw, 7rem);
  color: rgba(85, 16, 30, 0.045);
  font-family: var(--font-display-latin);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.8;
  pointer-events: none;
}

.home-news {
  padding-top: clamp(8rem, 11vw, 12rem);
}

.home-news::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: min(42vw, 34rem);
  height: 6.5rem;
  border-top: 1px solid rgba(85, 16, 30, 0.32);
  border-right: 1px solid rgba(85, 16, 30, 0.18);
  transform: skewX(-20deg);
  transform-origin: left top;
  pointer-events: none;
}

.news-editorial-feature[data-depth-card] {
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  background: var(--ivory);
  box-shadow: 0 26px 72px rgba(85, 16, 30, 0.14);
  transform: perspective(1100px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 620ms var(--ease-spring), box-shadow var(--motion-phrase) ease;
}

.news-editorial-feature[data-depth-card]:hover,
.news-editorial-feature[data-depth-card]:focus-within {
  box-shadow: 0 34px 90px rgba(85, 16, 30, 0.18);
}

[data-depth-media] {
  transform: translateZ(15px);
}

[data-depth-copy] {
  transform: translateZ(25px);
}

.programme-desk {
  overflow: hidden;
  color: var(--brand-white);
  background:
    radial-gradient(circle at 58% 42%, rgba(219, 162, 61, 0.14), transparent 18%),
    radial-gradient(ellipse at 50% 120%, rgba(131, 0, 35, 0.34), transparent 52%),
    var(--stage-deep);
}

.programme-desk::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  background: repeating-linear-gradient(to bottom, transparent 0 68px, rgba(231, 199, 130, 0.12) 69px, transparent 70px);
}

.programme-desk .home-section-heading h2,
.programme-desk .programme-desk-grid h3 {
  color: var(--brand-white);
}

.programme-desk .home-section-heading p,
.programme-desk .desk-academic p {
  color: rgba(255, 254, 249, 0.7);
}

.programme-desk .programme-desk-grid {
  border-top-color: var(--brand-primary);
  box-shadow: 0 32px 90px rgba(5, 2, 5, 0.24);
}

.programme-desk-grid > section {
  border-color: rgba(231, 199, 130, 0.24);
  background: rgba(255, 254, 249, 0.035);
}

.programme-desk .desk-notices a {
  border-color: rgba(231, 199, 130, 0.2);
}

.programme-desk .desk-notices time,
.programme-desk .text-link,
.programme-desk .desk-performance h3 {
  color: var(--gold-soft);
}

.programme-desk .desk-performance {
  position: relative;
  background: rgba(85, 16, 30, 0.5);
  transform: translateY(-1.25rem);
}

.programme-desk .desk-performance::before {
  content: "";
  position: absolute;
  inset: -10% -18%;
  opacity: 0;
  background: radial-gradient(circle at 50% 36%, rgba(231, 199, 130, 0.2), transparent 42%);
  transform: scale(0.88);
  transition: opacity var(--motion-phrase) ease, transform var(--motion-phrase) var(--ease-orchestra);
  pointer-events: none;
}

.programme-desk .desk-performance:hover::before,
.programme-desk .desk-performance:focus-within::before {
  opacity: 1;
  transform: scale(1);
}

.programme-desk .desk-academic {
  background: rgba(255, 254, 249, 0.055);
}

.media-story-depth {
  position: absolute;
  z-index: 2;
  top: 13%;
  right: 5%;
  width: min(28vw, 26rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  opacity: 0.58;
  border: 1px solid rgba(231, 199, 130, 0.36);
  box-shadow: 0 28px 75px rgba(23, 16, 25, 0.42);
  transform: perspective(1000px) translateZ(-24px) rotateY(-5deg) translateY(var(--media-depth-y, 0));
}

.media-story-depth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-story-copy {
  max-width: 72%;
  transform: translateZ(var(--depth-mid));
}

.media-story::before {
  color: rgba(255, 254, 249, 0.045);
}

.home-education {
  padding-block: clamp(7rem, 12vw, 13rem);
}

.home-partnership {
  padding-block: clamp(8rem, 13vw, 14rem);
}

@supports (animation-timeline: view()) {
  .movement-section::before {
    animation: r4-index-depth linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  .media-story-depth {
    animation: r4-media-depth linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

@keyframes r4-index-depth {
  from { opacity: 0; transform: translate3d(0, 3rem, -30px); }
  45% { opacity: 1; }
  to { opacity: 0.32; transform: translate3d(0, -5rem, -30px); }
}

@keyframes r4-media-depth {
  from { transform: perspective(1000px) translateZ(-24px) rotateY(-5deg) translateY(3rem); }
  to { transform: perspective(1000px) translateZ(-24px) rotateY(-5deg) translateY(-3rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .stage-ambient {
    animation: r4-stage-breath 13s ease-in-out infinite alternate;
  }

  .interactive-stage[data-score-state="playing"] .stage-light {
    animation: r4-phrase-light 4.6s ease-in-out infinite alternate;
  }
}

@keyframes r4-stage-breath {
  from { opacity: calc(0.46 + (var(--phrase-breath-intensity, 0) * 0.08)); }
  to { opacity: calc(0.58 + (var(--phrase-breath-intensity, 0) * 0.18)); }
}

@keyframes r4-phrase-light {
  from { opacity: calc(var(--phrase-light) - 0.08); }
  to { opacity: var(--phrase-light); }
}

@keyframes r4-score-line-ripple {
  0% {
    transform: translateY(0);
    opacity: calc(0.58 + (var(--note-ripple-intensity, 0) * 0.2));
  }
  55% {
    transform: translateY(calc(-1px * (0.4 + (var(--note-ripple-intensity, 0) * 0.6))));
    opacity: calc(0.68 + (var(--note-ripple-intensity, 0) * 0.26));
  }
  100% {
    transform: translateY(0);
    opacity: calc(0.22 + (var(--note-ripple-intensity, 0) * 0.1));
  }
}

@media (max-width: 1220px) {
  .score-experience {
    min-width: 13.25rem;
  }

  .programme-desk .desk-performance {
    transform: none;
  }
}

@media (max-width: 800px) {
  .interactive-stage {
    perspective: none;
  }

  .interactive-stage .stage-media,
  .interactive-stage .headline-stage-slide.is-active .stage-media,
  .interactive-stage[data-score-state="playing"] .headline-stage-slide.is-active .stage-media,
  .interactive-stage .stage-copy,
  .interactive-stage .living-score,
  .interactive-stage .living-score-notes,
  .stage-foreground-r4 {
    transform: none;
  }

  .stage-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .score-experience {
    min-width: min(15rem, calc(100vw - 10rem));
  }

  .movement-section::before {
    right: 1rem;
    font-size: clamp(7rem, 30vw, 12rem);
  }

  .home-news {
    padding-top: clamp(6rem, 16vw, 8rem);
  }

  .home-news::after {
    left: var(--gutter);
    width: 62vw;
    height: 4.5rem;
  }

  .news-editorial-feature[data-depth-card] {
    transform: none;
  }

  .programme-desk {
    padding-block: clamp(5rem, 14vw, 7rem);
  }

  .media-story-depth {
    top: 9%;
    right: -8%;
    width: 44vw;
    opacity: 0.4;
    transform: rotate(-3deg);
  }

  .media-story-copy {
    max-width: none;
  }

  .home-education,
  .home-partnership {
    padding-block: clamp(5.5rem, 16vw, 8rem);
  }
}

@media (max-width: 520px) {
  .stage-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .stage-actions .stage-cta {
    min-width: 6.8rem;
    padding-inline: 0.85rem;
  }

  .score-experience {
    min-width: 0;
    flex: 1;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
    padding-inline: 0.55rem;
  }

  .experience-icon {
    width: 2rem;
    height: 2rem;
  }

  .experience-copy small {
    font-size: 0.55rem;
  }

  .experience-copy strong {
    font-size: 0.68rem;
  }

  .score-note {
    display: grid !important;
  }

  .score-note:nth-child(n + 9) {
    display: none !important;
  }

  .stage-foreground-r4,
  .media-story-depth {
    display: none;
  }

  .movement-section::before {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-ambient,
  .stage-light,
  .interactive-stage .stage-media,
  .interactive-stage .stage-copy,
  .interactive-stage .living-score,
  .interactive-stage .living-score-notes,
  .interactive-stage .score-note,
  .stage-foreground-r4,
  .news-editorial-feature[data-depth-card],
  .movement-section::before,
  .media-story-depth {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .interactive-stage .score-note.is-sounding {
    color: var(--brand-primary);
    opacity: 1;
  }

  .interactive-stage .score-note::after,
  .interactive-stage .living-score::after {
    display: none;
  }
}

/* Final spatial cascade: keep the nearest planes above legacy stage transforms. */
.interactive-stage.zh-hero-r5 .stage-atmosphere-r4 {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
}

.interactive-stage.zh-hero-r5 .stage-foreground-r4,
.interactive-stage.zh-hero-r5 .zh-hero-r5-foreground {
  z-index: 8;
  transform: translate3d(var(--spatial-foreground-x), var(--spatial-foreground-y), 150px) scale(1.035);
  transform-origin: 58% 64%;
  filter: drop-shadow(0 26px 30px rgba(2, 10, 15, .34));
  will-change: transform;
}

.interactive-stage.zh-hero-r5 .stage-light {
  z-index: 9;
  background-position: var(--spatial-light-position-x) var(--spatial-light-position-y);
  transform: translate3d(var(--spatial-light-x), var(--spatial-light-y), 190px) scale(1.08);
  transform-origin: var(--spatial-light-position-x) var(--spatial-light-position-y);
  mix-blend-mode: screen;
  will-change: transform, background-position;
}

.interactive-stage.zh-hero-r5 .stage-vignette {
  z-index: 10;
  transform: translateZ(204px) scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 .stage-foreground-r4,
  .interactive-stage.zh-hero-r5 .zh-hero-r5-foreground,
  .interactive-stage.zh-hero-r5 .stage-light {
    transition: none;
    will-change: auto;
  }
}

/* Swan Lake Signature Experience. Idle preserves the accepted spatial Hero. */
.interactive-stage.zh-hero-r5 {
  --signature-image-z: 0px;
  --signature-headline-z: 0px;
  --signature-score-z: -46px;
  --signature-score-y: 0px;
  --signature-foreground-y: 0px;
  --signature-backdrop-scale: 1.14;
  --signature-light-scale: 1.08;
  --signature-light-opacity: .8;
  --signature-gold: 0;
  --signature-progress: 0;
}

body[data-current="home"] .interactive-stage.zh-hero-r5 .score-experience {
  display: inline-flex !important;
  align-items: center;
  gap: .65rem;
  min-height: 3.1rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(229, 188, 91, .52);
  border-radius: 2px;
  color: #f4e8c8;
  background: linear-gradient(135deg, rgba(39, 13, 20, .92), rgba(18, 13, 18, .8));
  box-shadow: inset 0 1px 0 rgba(255, 244, 211, .1), 0 15px 38px rgba(5, 9, 13, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  cursor: pointer;
}

.interactive-stage.zh-hero-r5 .score-experience:hover,
.interactive-stage.zh-hero-r5 .score-experience:focus-visible {
  border-color: rgba(244, 211, 125, .9);
  background: linear-gradient(135deg, rgba(75, 24, 32, .96), rgba(28, 17, 20, .9));
  box-shadow: inset 0 1px 0 rgba(255, 244, 211, .18), 0 18px 46px rgba(5, 9, 13, .32);
}

.interactive-stage.zh-hero-r5 .score-experience:active {
  transform: translateY(1px) scale(.985);
}

.interactive-stage.zh-hero-r5 .score-experience .experience-copy {
  display: grid;
  gap: .08rem;
  text-align: left;
}

.interactive-stage.zh-hero-r5 .score-experience .experience-copy small {
  color: rgba(238, 205, 126, .78);
  font-size: .58rem;
  letter-spacing: .2em;
}

.interactive-stage.zh-hero-r5 .score-experience .experience-copy strong {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .05em;
}

.interactive-stage.zh-hero-r5 .experience-icon {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 205, 124, .72);
  border-radius: 50%;
}

.interactive-stage.zh-hero-r5 .experience-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: .25rem solid transparent;
  border-bottom: .25rem solid transparent;
  border-left: .4rem solid currentColor;
  transform: translate(-50%, -50%);
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .experience-icon::before,
.interactive-stage.zh-hero-r5[data-signature-state="playing"] .experience-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2px;
  height: .55rem;
  border: 0;
  background: currentColor;
  transform: translateY(-50%);
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .experience-icon::before {
  left: .48rem;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .experience-icon::after {
  left: .78rem;
}

body[data-current="home"] .interactive-stage.zh-hero-r5 .sound-experience {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 6rem !important;
  padding: .65rem .8rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  border-color: rgba(225, 188, 99, .38);
  color: rgba(244, 232, 202, .88);
}

body[data-current="home"] .interactive-stage.zh-hero-r5 [data-score-status] {
  display: block !important;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-experience {
  border-color: rgba(247, 216, 137, .92);
  color: #fff5d9;
  box-shadow: inset 0 1px 0 rgba(255, 247, 221, .2), 0 0 0 1px rgba(218, 166, 55, .12), 0 20px 52px rgba(4, 8, 12, .38);
}

body.video-dialog-open {
  overflow: hidden;
}

.hero-video-dialog {
  width: min(68rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #fffaf1;
  background: #130d12;
  border: 1px solid rgba(229, 188, 91, .58);
  box-shadow: 0 2.5rem 7rem rgba(3, 2, 5, .66);
}

.hero-video-dialog:not([open]) {
  display: none;
}

.hero-video-dialog::backdrop {
  background: rgba(9, 5, 9, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-video-frame {
  position: relative;
  min-height: min(64vh, 39rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background:
    linear-gradient(140deg, rgba(102, 18, 39, .44), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(229, 176, 72, .16), transparent 26%),
    #130d12;
}

.hero-video-heading {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  padding-right: 4rem;
}

.hero-video-heading span {
  color: #d9bd83;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.hero-video-heading h2 {
  margin: .65rem 0 0;
  color: #fffaf1;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.hero-video-close-form {
  margin: 0;
}

.hero-video-close {
  position: absolute;
  z-index: 4;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff5d9;
  font-size: 1.65rem;
  line-height: 1;
  background: rgba(33, 17, 24, .72);
  border: 1px solid rgba(229, 188, 91, .52);
}

.hero-video-close:hover,
.hero-video-close:focus-visible {
  color: #231016;
  background: #ddb044;
  border-color: #f4d37d;
}

.hero-video-placeholder {
  min-height: clamp(20rem, 43vw, 34rem);
  display: grid;
  place-items: center;
  align-content: center;
  gap: .85rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(229, 188, 91, .42);
  border-bottom: 1px solid rgba(229, 188, 91, .2);
  background:
    linear-gradient(rgba(19, 13, 18, .52), rgba(19, 13, 18, .76)),
    url("../images/news-conservatory-opening-20260327.png") center / cover no-repeat;
}

.hero-video-placeholder[hidden] {
  display: none;
}

.hero-video-placeholder img {
  width: clamp(5.5rem, 10vw, 8rem);
  height: auto;
  filter: drop-shadow(0 0 1.5rem rgba(229, 176, 72, .3));
}

.hero-video-placeholder strong {
  color: #fffaf1;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 500;
}

.hero-video-placeholder p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 250, 241, .7);
  line-height: 1.7;
}

.hero-video-player {
  width: 100%;
  max-height: min(68vh, 43rem);
  margin-top: 2rem;
  background: #080608;
}

.hero-video-player[hidden] {
  display: none;
}

@media (max-width: 40rem) {
  .hero-video-frame {
    min-height: 0;
    padding: 1.25rem;
  }

  .hero-video-placeholder {
    min-height: 20rem;
    padding: 1.5rem 1rem;
  }
}

/* The score becomes the lead instrument only during the finite performance. */
.interactive-stage.zh-hero-r5[data-signature-state="playing"] .living-score {
  z-index: 11;
  opacity: .96;
  transform: translate3d(var(--spatial-staff-x), calc(var(--spatial-staff-y) + var(--signature-score-y)), var(--signature-score-z)) scale(1.075);
  filter: saturate(1.05) contrast(1.08) drop-shadow(0 24px 36px rgba(4, 9, 13, .36));
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .living-score-lines {
  opacity: .92;
  filter: drop-shadow(0 0 9px rgba(226, 179, 75, .36));
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .living-score-lines path {
  stroke: rgba(237, 205, 127, .78);
  stroke-width: 1.35;
  transform-box: fill-box;
  transform-origin: center;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-note {
  opacity: .36;
  color: rgba(231, 203, 139, .62);
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1), opacity 180ms ease, color 180ms ease, filter 180ms ease;
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-upcoming {
  z-index: 16;
  opacity: .72;
  color: rgba(246, 222, 163, .88);
  transform: translate3d(-50%, calc(-50% - 8px), 30px) scale(1.16);
  filter: drop-shadow(0 0 10px rgba(231, 184, 81, .42));
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current {
  z-index: 18;
  opacity: 1;
  color: #fff0b8;
  transform: translate3d(-50%, calc(-50% + var(--signature-note-lift, -22px)), var(--signature-note-z, 64px)) scale(var(--signature-note-scale, 1.34));
  filter: brightness(1.28) drop-shadow(0 0 7px rgba(255, 238, 185, .96)) drop-shadow(0 0 24px rgba(218, 160, 43, .76));
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current::before {
  opacity: 1;
  transform: scale(1.55);
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current::after {
  opacity: .9;
  transform: scale(2.2);
}

.interactive-stage.zh-hero-r5.is-signature-ripple .living-score-lines path {
  animation: signature-staff-ripple 620ms cubic-bezier(.16, 1, .3, 1) both;
}

.interactive-stage.zh-hero-r5.is-signature-ripple .living-score-lines path:nth-child(2) { animation-delay: 24ms; }
.interactive-stage.zh-hero-r5.is-signature-ripple .living-score-lines path:nth-child(3) { animation-delay: 48ms; }
.interactive-stage.zh-hero-r5.is-signature-ripple .living-score-lines path:nth-child(4) { animation-delay: 72ms; }
.interactive-stage.zh-hero-r5.is-signature-ripple .living-score-lines path:nth-child(5) { animation-delay: 96ms; }

/* Phrase Timeline moves the stage continuously. Note events do not flash the background. */
.interactive-stage.zh-hero-r5[data-signature-state="playing"] .zh-hero-r5-backdrop {
  transform: translate3d(var(--spatial-bg-x), var(--spatial-bg-y), -140px) scale(var(--signature-backdrop-scale));
  filter: saturate(.78) contrast(.9) brightness(.74) blur(1.2px);
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .headline-stage-slide.is-active .stage-media {
  transform: translate3d(var(--spatial-image-x), var(--spatial-image-y), calc(var(--signature-image-z) - 2px)) scale(1.035) rotateY(calc(var(--spatial-rotate-y) * .18));
  filter: saturate(1.01) contrast(1.075) brightness(.8);
  box-shadow: -34px 38px 80px rgba(2, 9, 14, .42), 0 82px 150px rgba(3, 12, 18, .48), inset 0 0 0 1px rgba(255, 231, 165, .14);
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .headline-stage-slide.is-active .stage-copy {
  transform: translate3d(var(--spatial-headline-x), var(--spatial-headline-y), calc(92px + var(--signature-headline-z)));
  filter: drop-shadow(0 24px 38px rgba(1, 8, 12, .34));
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .zh-hero-r5-foreground {
  transform: translate3d(var(--spatial-foreground-x), calc(var(--spatial-foreground-y) + var(--signature-foreground-y)), 150px) scale(1.055);
  filter: brightness(calc(1 + var(--signature-gold))) saturate(1.08) drop-shadow(0 28px 34px rgba(2, 9, 13, .4));
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .stage-light {
  opacity: var(--signature-light-opacity);
  transform: translate3d(var(--spatial-light-x), var(--spatial-light-y), 190px) scale(var(--signature-light-scale));
  filter: blur(1px) brightness(calc(1.04 + var(--signature-gold)));
}

body[data-current="home"] .interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 17;
  overflow: hidden;
  pointer-events: none;
  animation: signature-curtain 1450ms cubic-bezier(.16, 1, .3, 1) both;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition::before,
.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  width: 52%;
  background: linear-gradient(90deg, rgba(18, 5, 10, .95), rgba(65, 17, 28, .7) 72%, rgba(225, 177, 73, .12));
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition::before {
  left: 0;
  transform-origin: left center;
  animation: signature-curtain-left 1450ms cubic-bezier(.16, 1, .3, 1) both;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition::after {
  right: 0;
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(18, 5, 10, .95), rgba(65, 17, 28, .7) 72%, rgba(225, 177, 73, .12));
  animation: signature-curtain-right 1450ms cubic-bezier(.16, 1, .3, 1) both;
}

.interactive-stage.zh-hero-r5[data-signature-state="playing"] .score-transition span {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(58vw, 46rem);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 218, 151, .68);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.08);
  box-shadow: inset 0 0 80px rgba(232, 183, 75, .15), 0 0 70px rgba(229, 176, 63, .18);
  animation: signature-aperture 1350ms cubic-bezier(.16, 1, .3, 1) both;
}

body[data-current="home"] .interactive-stage.zh-hero-r5.is-signature-ripple .music-pulse {
  display: block !important;
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 15;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.interactive-stage.zh-hero-r5.is-signature-ripple .music-pulse span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(246, 217, 146, .74);
  border-radius: 50%;
  animation: signature-pulse 660ms cubic-bezier(.16, 1, .3, 1) both;
}

.interactive-stage.zh-hero-r5[data-signature-state="completed"] .stage-light {
  opacity: .86;
  filter: blur(1px) brightness(1.12);
}

.interactive-stage.zh-hero-r5[data-signature-state="completed"] .living-score {
  opacity: .78;
}

@keyframes signature-staff-ripple {
  0% { transform: translate3d(0, 0, 0) scaleY(1); opacity: .72; }
  34% { transform: translate3d(0, -5px, 34px) scaleY(1.22); opacity: 1; }
  68% { transform: translate3d(0, 3px, 16px) scaleY(.92); opacity: .9; }
  100% { transform: translate3d(0, 0, 0) scaleY(1); opacity: .78; }
}

@keyframes signature-curtain {
  0%, 76% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes signature-curtain-left {
  0% { transform: translate3d(0, 0, 80px) scaleX(1); }
  100% { transform: translate3d(-106%, 0, 80px) scaleX(.84); }
}

@keyframes signature-curtain-right {
  0% { transform: translate3d(0, 0, 80px) scaleX(1); }
  100% { transform: translate3d(106%, 0, 80px) scaleX(.84); }
}

@keyframes signature-aperture {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.08); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); }
}

@keyframes signature-pulse {
  0% { opacity: .9; transform: scale(.2); }
  100% { opacity: 0; transform: scale(9); }
}

@media (max-width: 800px) {
  body[data-current="home"] .interactive-stage.zh-hero-r5 .score-experience {
    min-height: 2.75rem;
    padding: .45rem .65rem;
  }

  .interactive-stage.zh-hero-r5 .score-experience .experience-copy small {
    display: none;
  }

  .interactive-stage.zh-hero-r5[data-signature-state="playing"] .living-score {
    transform: translate3d(0, var(--signature-score-y), 72px) scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 .score-note,
  .interactive-stage.zh-hero-r5 .living-score-lines path,
  .interactive-stage.zh-hero-r5 .score-transition,
  .interactive-stage.zh-hero-r5 .score-transition::before,
  .interactive-stage.zh-hero-r5 .score-transition::after,
  .interactive-stage.zh-hero-r5 .score-transition span,
  .interactive-stage.zh-hero-r5 .music-pulse span {
    animation: none !important;
    transition: none !important;
  }

  .interactive-stage.zh-hero-r5 .score-note.is-signature-current {
    opacity: 1;
    color: #fff0b8;
    filter: brightness(1.2);
  }
}

/* Swan Lake regression fix: playable notes sit between the visual and foreground planes. */
.interactive-stage.zh-hero-r5 .playable-score-notes {
  position: absolute;
  z-index: 7;
  inset: 13% 14% 20% -8%;
  display: block !important;
  width: auto;
  height: auto;
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  transform: translate3d(calc(-1.5% + var(--pointer-depth-x, 0) * 7px), calc(-2% + var(--pointer-depth-y, 0) * 5px), 118px) scale(.9);
  transform-style: preserve-3d;
  transform-origin: 44% 48%;
}

.interactive-stage.zh-hero-r5 .playable-score-notes .score-note {
  z-index: 1;
  display: grid;
  pointer-events: auto;
  opacity: .48;
  color: rgba(226, 194, 122, .72);
  transform: translate3d(-50%, -50%, 18px) scale(.92);
  filter: drop-shadow(0 5px 9px rgba(3, 4, 7, .24));
  animation: playable-note-breathe 8.4s cubic-bezier(.37, 0, .63, 1) infinite;
}

.interactive-stage.zh-hero-r5 .playable-score-notes .score-note:nth-child(2n) { animation-delay: -2.1s; }
.interactive-stage.zh-hero-r5 .playable-score-notes .score-note:nth-child(3n) { animation-delay: -4.8s; }
.interactive-stage.zh-hero-r5 .playable-score-notes .score-note:nth-child(4n) { opacity: .38; animation-duration: 10.2s; }

@media (hover: hover) and (pointer: fine) {
  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note:hover,
  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note:focus-visible {
    z-index: 4;
    opacity: .92;
    color: #f5d98e;
    transform: translate3d(-50%, -50%, 48px) scale(1.12);
    filter: brightness(1.16) drop-shadow(0 0 14px rgba(220, 170, 61, .58));
    animation-play-state: paused;
  }
}

.interactive-stage.zh-hero-r5 .playable-score-notes .score-note.is-signature-current { animation: none; }
.interactive-stage.zh-hero-r5 .playable-score-notes .score-note.is-signature-upcoming { animation-play-state: paused; }

@keyframes playable-note-breathe {
  0%, 100% { opacity: .4; transform: translate3d(-50%, -50%, 18px) scale(.92); }
  50% { opacity: .56; transform: translate3d(-50%, calc(-50% - 3px), 24px) scale(.97); }
}

@media (max-width: 800px) {
  .interactive-stage.zh-hero-r5 .playable-score-notes {
    inset: 34% -8% 10%;
    transform: translate3d(0, 0, 62px) scale(1);
  }

  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note {
    opacity: .5;
    animation: none;
  }
}

@media (max-width: 520px) {
  .interactive-stage.zh-hero-r5 .playable-score-notes { inset: 38% -24% 12%; }
  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note:nth-child(n + 7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note {
    animation: none !important;
    transition: opacity .01ms linear, color .01ms linear !important;
    transform: translate3d(-50%, -50%, 20px) scale(.94) !important;
  }

  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note.is-signature-upcoming {
    opacity: .68;
    color: rgba(244, 218, 157, .86);
    transform: translate3d(-50%, -50%, 22px) scale(.98) !important;
  }

  .interactive-stage.zh-hero-r5 .playable-score-notes .score-note.is-signature-current {
    opacity: 1;
    color: #fff0b8;
    transform: translate3d(-50%, -50%, 24px) scale(1.05) !important;
    filter: brightness(1.12);
  }
}

/* Conductor expression is layered over the existing Hero scene only while playing. */
.interactive-stage.zh-hero-r5 .swan-trajectory {
  position: absolute;
  inset: 9% -3% 11%;
  width: 106%;
  height: 80%;
  overflow: visible;
  pointer-events: none;
  transform-style: preserve-3d;
  translate: calc(var(--conductor-x, 0px) * .32) calc(var(--conductor-y, 0px) * .28);
}

.interactive-stage.zh-hero-r5 .swan-trajectory path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--trajectory-progress, 0) 1;
}

.interactive-stage.zh-hero-r5 .swan-trajectory-deep {
  z-index: 4;
  transform: translate3d(0, 0, -34px) scale(.992);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, #000 18%, #000 72%, rgba(0, 0, 0, .42) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, #000 18%, #000 72%, rgba(0, 0, 0, .42) 100%);
}

.interactive-stage.zh-hero-r5 .swan-trajectory-deep path {
  stroke: rgba(220, 180, 88, var(--trajectory-opacity, 0));
  stroke-width: 1.12;
  filter: blur(.2px);
}

.interactive-stage.zh-hero-r5 .swan-trajectory-front {
  z-index: 6;
  transform: translate3d(0, 0, 54px) scale(1.012);
}

.interactive-stage.zh-hero-r5 .swan-trajectory-front path {
  stroke: rgba(247, 222, 164, var(--trajectory-front-opacity, 0));
  stroke-width: 1.22;
  stroke-dasharray: .14 .86;
  stroke-dashoffset: calc(.78 - var(--trajectory-progress, 0));
  filter: drop-shadow(0 0 4px rgba(218, 166, 63, .16));
}

.interactive-stage.zh-hero-r5.is-signature-wing-sweep .swan-trajectory-deep path {
  stroke-width: 1.05;
}

.interactive-stage.zh-hero-r5[data-conductor-active="true"] .score-note.is-signature-current {
  translate: var(--conductor-note-x, 0px) var(--conductor-note-y, 0px) var(--conductor-note-z, 0px);
  scale: var(--conductor-note-scale, 1);
  filter: brightness(calc(.88 + var(--conductor-expression, 1) * .2)) drop-shadow(0 0 var(--conductor-glow, 8px) rgba(235, 195, 100, .44));
}

.interactive-stage.zh-hero-r5[data-conductor-active="true"] .stage-light {
  translate: var(--conductor-light-x, 0px) calc(var(--conductor-y, 0px) * .5);
  scale: var(--conductor-light-strength, 1);
}

.interactive-stage.zh-hero-r5[data-conductor-active="true"] .score-note.is-signature-resonance {
  opacity: var(--conductor-harmony-opacity, .64);
  scale: var(--conductor-harmony-scale, 1.02);
}

.interactive-stage.zh-hero-r5[data-conductor-active="true"].is-signature-ripple .living-score {
  animation: conductor-staff-direction .54s cubic-bezier(.22, .68, .28, 1) both;
}

@keyframes conductor-staff-direction {
  0%, 100% { translate: 0 0; }
  44% { translate: var(--conductor-ripple-x, 0px) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 .swan-trajectory {
    translate: none !important;
    transform: none !important;
  }

  .interactive-stage.zh-hero-r5 .swan-trajectory-deep path {
    stroke-dasharray: none;
    stroke: rgba(220, 180, 88, .08);
  }

  .interactive-stage.zh-hero-r5 .swan-trajectory-front { display: none; }

  .interactive-stage.zh-hero-r5[data-conductor-active="true"] .score-note.is-signature-current,
  .interactive-stage.zh-hero-r5[data-conductor-active="true"] .stage-light,
  .interactive-stage.zh-hero-r5[data-conductor-active="true"].is-signature-ripple .living-score {
    translate: none !important;
    scale: 1 !important;
    animation: none !important;
  }
}

@media (max-width: 52.99rem), (hover: none), (pointer: coarse) {
  .interactive-stage.zh-hero-r5 .swan-trajectory {
    inset: 11% -10% 14%;
    width: 120%;
    opacity: .68;
    translate: none;
  }

  .interactive-stage.zh-hero-r5 .swan-trajectory-front { opacity: .62; }
}

/* Swan Lake coda: note-to-note resonance and one restrained phrase sweep. */
.playable-score-notes::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7%;
  width: 86%;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(226, 181, 78, .12) 24%, rgba(255, 229, 163, .72) 50%, rgba(226, 181, 78, .12) 76%, transparent 100%);
  transform: translate3d(-30%, 0, 34px) scaleX(.16);
  transform-origin: center;
}

.score-note.is-signature-resonance {
  opacity: .72;
  translate: 0 -4px;
  scale: 1.055;
  filter: drop-shadow(0 0 8px rgba(231, 191, 92, .34));
}

.is-signature-wing-sweep .playable-score-notes::after {
  animation: swan-signature-wing-sweep 1.05s cubic-bezier(.22, .7, .2, 1) both;
}

@keyframes swan-signature-wing-sweep {
  0% { opacity: 0; transform: translate3d(-34%, 0, 34px) scaleX(.14); }
  36% { opacity: .68; }
  100% { opacity: 0; transform: translate3d(34%, -3px, 34px) scaleX(.72); }
}

@media (prefers-reduced-motion: reduce) {
  .score-note.is-signature-resonance {
    translate: none;
    scale: 1.02;
    filter: none;
  }

  .is-signature-wing-sweep .playable-score-notes::after {
    animation: none;
    opacity: 0;
  }
}

/* Lake Reflection: a restrained, deeper echo of the note being performed. */
.interactive-stage.zh-hero-r5 .score-note > span {
  position: relative;
  transform-style: preserve-3d;
}

.interactive-stage.zh-hero-r5 .score-note > span::before,
.interactive-stage.zh-hero-r5 .score-note > span::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current {
  --lake-reflection-strength: clamp(.12, calc((var(--signature-note-scale, 1.12) - 1) * 1.05), .34);
  --lake-ripple-strength: clamp(0, calc((var(--signature-note-scale, 1.12) - 1.16) * 1.9), .22);
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current > span::before,
.interactive-stage.zh-hero-r5 .score-note.is-signature-resonance > span::before {
  top: 50%;
  width: 108%;
  height: 92%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(239, 209, 143, .68), rgba(183, 132, 62, .18) 58%, transparent 100%);
  filter: blur(1.15px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .16) 66%, transparent 100%);
  transform-origin: 50% 0;
  transform: translate3d(-50%, 28px, -62px) scaleX(.9) scaleY(-.42);
  z-index: -2;
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current > span::before {
  opacity: var(--lake-reflection-strength);
  animation: r4-lake-reflection-arrive 720ms cubic-bezier(.18, .72, .22, 1) both;
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-resonance > span::before {
  opacity: .052;
  filter: blur(1.75px);
  transform: translate3d(-50%, 25px, -76px) scaleX(.78) scaleY(-.3);
}

.interactive-stage.zh-hero-r5 .score-note.is-signature-current > span::after {
  top: calc(50% + 30px);
  width: 76px;
  height: 14px;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent, rgba(230, 193, 112, .7) 24%, rgba(247, 225, 174, .86) 50%, rgba(230, 193, 112, .7) 76%, transparent) 50% 2px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 8%, rgba(210, 164, 78, .42) 31%, rgba(239, 207, 138, .56) 50%, rgba(210, 164, 78, .42) 69%, transparent 92%) 50% 7px / 88% 1px no-repeat,
    linear-gradient(90deg, transparent 17%, rgba(196, 142, 61, .24) 50%, transparent 83%) 50% 12px / 72% 1px no-repeat;
  filter: blur(.35px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  transform: translate3d(-50%, 0, -84px) scaleX(.16);
  animation: r4-lake-horizontal-ripple 940ms cubic-bezier(.16, .72, .2, 1) both;
}

@keyframes r4-lake-reflection-arrive {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 22px, -62px) scaleX(.68) scaleY(-.22);
  }
  30% {
    opacity: var(--lake-reflection-strength);
  }
  100% {
    opacity: calc(var(--lake-reflection-strength) * .38);
    transform: translate3d(-50%, 31px, -70px) scaleX(1.02) scaleY(-.34);
  }
}

@keyframes r4-lake-horizontal-ripple {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, -84px) scaleX(.16);
  }
  24% {
    opacity: var(--lake-ripple-strength);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 2px, -92px) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5 .score-note.is-signature-current > span::before {
    animation: none;
    opacity: calc(var(--lake-reflection-strength) * .45);
  }

  .interactive-stage.zh-hero-r5 .score-note.is-signature-current > span::after {
    display: none;
  }
}

/* Coda Brand Resolve: a quiet 1.75s return from performance to identity. */
.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .swan-trajectory {
  scale: 1 .82;
  transform-origin: 9% 22%;
  translate:
    calc(var(--conductor-x, 0px) * .16)
    calc(var(--conductor-y, 0px) * .13);
  opacity: .76;
  transition:
    scale 1600ms cubic-bezier(.2, .7, .2, 1),
    opacity 1600ms cubic-bezier(.2, .7, .2, 1);
}

.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .stage-atmosphere-r4 {
  opacity: .84;
  transition: opacity 1600ms cubic-bezier(.2, .7, .2, 1);
}

.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .score-note.is-signature-resonance {
  opacity: .54;
  filter: saturate(.72) brightness(.9);
  transition:
    opacity 1200ms cubic-bezier(.2, .7, .2, 1),
    filter 1200ms cubic-bezier(.2, .7, .2, 1);
}

.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .score-note.is-signature-current {
  --lake-ripple-strength: clamp(0, calc((var(--signature-note-scale, 1.12) - 1.16) * .95), .14);
  translate:
    calc(var(--conductor-note-x, 0px) * -.46)
    calc(var(--conductor-note-y, 0px) * -.46)
    calc(var(--conductor-note-z, 0px) * -.46);
  transition: translate 1350ms cubic-bezier(.2, .7, .2, 1);
}

.coda-brand-wings {
  position: absolute;
  top: clamp(132px, 19%, 174px);
  left: clamp(26px, 7.5vw, 118px);
  width: clamp(128px, 12vw, 184px);
  height: auto;
  z-index: 11;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 3px, 72px);
  transform-style: preserve-3d;
}

.coda-brand-wings path {
  fill: none;
  stroke: rgba(236, 202, 126, .78);
  stroke-width: .82;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  path-length: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px rgba(208, 158, 73, .15));
}

.interactive-stage.zh-hero-r5.is-coda-resolving .coda-brand-wings {
  animation: r4-coda-wings-presence 1160ms 390ms cubic-bezier(.2, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .coda-brand-wings path:first-child {
  animation: r4-coda-wing-draw 920ms 420ms cubic-bezier(.18, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .coda-brand-wings path:last-child {
  animation: r4-coda-wing-draw 920ms 500ms cubic-bezier(.18, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .stage-identity span {
  animation: r4-coda-brand-breathe 920ms 680ms cubic-bezier(.2, .7, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .living-score {
  animation: r4-coda-staff-settle 1080ms cubic-bezier(.2, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .score-note:not(.is-coda-final-release) {
  animation: r4-coda-note-settle 720ms cubic-bezier(.2, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .swan-trajectory-deep path {
  animation: r4-coda-trajectory-gather 1080ms cubic-bezier(.18, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5.is-coda-resolving .swan-trajectory-front path {
  animation: r4-coda-trajectory-front-fade 660ms ease-out both;
}

.interactive-stage.zh-hero-r5 .score-note.is-coda-final-release {
  z-index: 9;
  animation: r4-coda-final-note 620ms cubic-bezier(.18, .72, .2, 1) both;
}

.interactive-stage.zh-hero-r5 .score-note.is-coda-final-release > span::before {
  top: 50%;
  width: 108%;
  height: 92%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(244, 216, 153, .7), rgba(183, 132, 62, .16) 60%, transparent);
  filter: blur(1.25px);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .14) 68%, transparent);
  z-index: -2;
  animation: r4-coda-final-reflection 700ms ease-out both;
}

.interactive-stage.zh-hero-r5 .score-note.is-coda-final-release > span::after {
  top: calc(50% + 30px);
  width: 82px;
  height: 14px;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent, rgba(238, 203, 128, .62) 26%, rgba(250, 230, 184, .78) 50%, rgba(238, 203, 128, .62) 74%, transparent) 50% 3px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 12%, rgba(206, 157, 72, .35), transparent 88%) 50% 9px / 82% 1px no-repeat;
  filter: blur(.4px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  animation: r4-coda-final-ripple 780ms ease-out both;
}

.interactive-stage.zh-hero-r5.is-coda-graceful-reset .living-score,
.interactive-stage.zh-hero-r5.is-coda-graceful-reset .playable-score-notes,
.interactive-stage.zh-hero-r5.is-coda-graceful-reset .swan-trajectory {
  animation: r4-coda-graceful-reset 420ms ease-out both;
}

@keyframes r4-coda-final-note {
  0% { filter: brightness(1.18) drop-shadow(0 0 9px rgba(225, 182, 94, .32)); }
  42% { filter: brightness(1.08) drop-shadow(0 0 6px rgba(225, 182, 94, .2)); }
  100% { filter: none; }
}

@keyframes r4-coda-final-reflection {
  0% {
    opacity: .3;
    transform: translate3d(-50%, 26px, -68px) scaleX(.82) scaleY(-.4);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 34px, -82px) scaleX(1.08) scaleY(-.28);
  }
}

@keyframes r4-coda-final-ripple {
  0% {
    opacity: .18;
    transform: translate3d(-50%, 0, -88px) scaleX(.22);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 2px, -96px) scaleX(1);
  }
}

@keyframes r4-coda-note-settle {
  0% { opacity: .72; filter: brightness(1.08); }
  100% { opacity: var(--note-idle-opacity, .46); filter: none; }
}

@keyframes r4-coda-staff-settle {
  0% { opacity: .78; filter: brightness(1.08) saturate(.92); }
  100% { opacity: .58; filter: none; }
}

@keyframes r4-coda-trajectory-gather {
  0% {
    opacity: .24;
    stroke-dasharray: .22 .78;
    stroke-dashoffset: .18;
  }
  64% {
    opacity: .13;
    stroke-dasharray: .1 .9;
    stroke-dashoffset: -.08;
  }
  100% {
    opacity: 0;
    stroke-dasharray: .04 .96;
    stroke-dashoffset: -.22;
  }
}

@keyframes r4-coda-trajectory-front-fade {
  0% { opacity: .12; }
  100% { opacity: 0; }
}

@keyframes r4-coda-wing-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  24% { opacity: .72; }
  72% { stroke-dashoffset: 0; opacity: .62; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes r4-coda-wings-presence {
  0% { opacity: 0; transform: translate3d(0, 5px, 72px) scale(.96); }
  30% { opacity: .62; }
  76% { opacity: .48; }
  100% { opacity: 0; transform: translate3d(0, 0, 72px) scale(1); }
}

@keyframes r4-coda-brand-breathe {
  0% {
    color: rgba(244, 239, 231, .68);
    text-shadow: 0 0 0 rgba(218, 171, 82, 0);
  }
  48% {
    color: rgba(249, 226, 177, .9);
    text-shadow: 0 0 12px rgba(218, 171, 82, .24);
  }
  100% {
    color: rgba(244, 239, 231, .68);
    text-shadow: 0 0 0 rgba(218, 171, 82, 0);
  }
}

@keyframes r4-coda-graceful-reset {
  0% { filter: brightness(1.04); }
  100% { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .swan-trajectory,
  .interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .stage-atmosphere-r4,
  .interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .score-note,
  .interactive-stage.zh-hero-r5.is-coda-resolving *,
  .interactive-stage.zh-hero-r5.is-coda-graceful-reset * {
    animation: none !important;
    transition: none !important;
  }

  .interactive-stage.zh-hero-r5 .coda-brand-wings {
    display: none;
  }
}

/* Performance Direction: one 46s intensity envelope, no new effects. */
@property --direction-conductor {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-trajectory {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-reflection {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-harmony {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-wing {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-ripple {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-depth {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --direction-note-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] {
  animation: r4-performance-direction 46s linear both;
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .swan-trajectory,
.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .swan-trajectory {
  opacity: var(--direction-trajectory);
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-resonance,
.interactive-stage.zh-hero-r5[data-signature-phrase="5"][data-score-state="playing"] .score-note.is-signature-resonance {
  opacity: var(--direction-harmony);
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-current {
  --direction-cancel: calc(var(--direction-conductor) - 1);
  translate:
    calc(var(--conductor-note-x, 0px) * var(--direction-cancel))
    calc(var(--conductor-note-y, 0px) * var(--direction-cancel))
    calc(var(--conductor-note-z, 0px) * var(--direction-cancel));
  scale: var(--direction-note-scale);
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-current::after {
  filter: opacity(var(--direction-glow));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-current > span::before {
  filter: blur(1.15px) opacity(var(--direction-reflection));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-resonance > span::before {
  filter: blur(1.75px) opacity(calc(var(--direction-reflection) * .72));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-note.is-signature-current > span::after {
  filter: blur(.35px) opacity(var(--direction-ripple));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"].is-signature-wing-sweep .playable-score-notes::after {
  filter: opacity(var(--direction-wing));
}

@keyframes r4-performance-direction {
  0% {
    --direction-conductor: .08;
    --direction-trajectory: 0;
    --direction-reflection: .3;
    --direction-harmony: .08;
    --direction-wing: .04;
    --direction-ripple: .1;
    --direction-depth: .22;
    --direction-glow: .28;
    --direction-note-scale: 1;
  }

  8% {
    --direction-conductor: .18;
    --direction-trajectory: .04;
    --direction-reflection: .52;
    --direction-harmony: .16;
    --direction-wing: .1;
    --direction-ripple: .22;
    --direction-depth: .32;
    --direction-glow: .42;
    --direction-note-scale: 1.005;
  }

  14% {
    --direction-conductor: .32;
    --direction-trajectory: .18;
    --direction-reflection: .58;
    --direction-harmony: .28;
    --direction-wing: .24;
    --direction-ripple: .3;
    --direction-depth: .4;
    --direction-glow: .5;
    --direction-note-scale: 1.008;
  }

  34% {
    --direction-conductor: .65;
    --direction-trajectory: .48;
    --direction-reflection: .62;
    --direction-harmony: .5;
    --direction-wing: .46;
    --direction-ripple: .46;
    --direction-depth: .58;
    --direction-glow: .62;
    --direction-note-scale: 1.012;
  }

  44% {
    --direction-conductor: .62;
    --direction-trajectory: .92;
    --direction-reflection: .48;
    --direction-harmony: .42;
    --direction-wing: .88;
    --direction-ripple: .34;
    --direction-depth: .54;
    --direction-glow: .55;
    --direction-note-scale: 1.01;
  }

  54% {
    --direction-conductor: .72;
    --direction-trajectory: .72;
    --direction-reflection: .72;
    --direction-harmony: .7;
    --direction-wing: .34;
    --direction-ripple: .66;
    --direction-depth: .8;
    --direction-glow: .78;
    --direction-note-scale: 1.018;
  }

  65% {
    --direction-conductor: .78;
    --direction-trajectory: .58;
    --direction-reflection: .9;
    --direction-harmony: .92;
    --direction-wing: .22;
    --direction-ripple: .9;
    --direction-depth: 1;
    --direction-glow: 1;
    --direction-note-scale: 1.028;
  }

  75% {
    --direction-conductor: .58;
    --direction-trajectory: .62;
    --direction-reflection: .58;
    --direction-harmony: .54;
    --direction-wing: .28;
    --direction-ripple: .48;
    --direction-depth: .64;
    --direction-glow: .6;
    --direction-note-scale: 1.014;
  }

  85% {
    --direction-conductor: .42;
    --direction-trajectory: .46;
    --direction-reflection: .42;
    --direction-harmony: .34;
    --direction-wing: .16;
    --direction-ripple: .32;
    --direction-depth: .44;
    --direction-glow: .45;
    --direction-note-scale: 1.008;
  }

  94% {
    --direction-conductor: .22;
    --direction-trajectory: .28;
    --direction-reflection: .28;
    --direction-harmony: .18;
    --direction-wing: .07;
    --direction-ripple: .18;
    --direction-depth: .3;
    --direction-glow: .3;
    --direction-note-scale: 1.003;
  }

  100% {
    --direction-conductor: .08;
    --direction-trajectory: .12;
    --direction-reflection: .18;
    --direction-harmony: .08;
    --direction-wing: 0;
    --direction-ripple: .08;
    --direction-depth: .18;
    --direction-glow: .2;
    --direction-note-scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-stage.zh-hero-r5[data-score-state="playing"] {
    --direction-conductor: 0;
    --direction-trajectory: .24;
    --direction-reflection: .42;
    --direction-harmony: .28;
    --direction-wing: 0;
    --direction-ripple: 0;
    --direction-depth: .24;
    --direction-glow: .34;
    --direction-note-scale: 1;
    animation: none;
  }
}

/* The local 46-second recording drives a visible beat through the existing planes. */
.interactive-stage.zh-hero-r5[data-score-state="playing"] .living-score-lines {
  opacity: calc(.82 + var(--performance-beat, 0) * .18);
  filter: brightness(calc(1 + var(--performance-beat, 0) * .24)) drop-shadow(0 0 calc(9px + var(--performance-beat, 0) * 12px) rgba(226, 179, 75, .5));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .stage-light {
  filter: blur(1px) brightness(calc(1.04 + var(--signature-gold) + var(--performance-beat, 0) * .12));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .headline-stage-slide.is-active .stage-media {
  filter: saturate(calc(1.01 + var(--performance-beat, 0) * .12)) contrast(calc(1.075 + var(--performance-beat, 0) * .045)) brightness(calc(.8 + var(--performance-beat, 0) * .075));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .headline-stage-slide.is-active .stage-copy {
  translate: 0 calc(var(--performance-beat, 0) * -2px);
  filter: brightness(calc(1 + var(--performance-beat, 0) * .08)) drop-shadow(0 24px 38px rgba(1, 8, 12, .34));
}

.interactive-stage.zh-hero-r5[data-score-state="playing"] .score-experience {
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 221, .2),
    0 0 0 calc(1px + var(--performance-beat, 0) * 2px) rgba(218, 166, 55, calc(.12 + var(--performance-beat, 0) * .22)),
    0 20px calc(52px + var(--performance-beat, 0) * 18px) rgba(4, 8, 12, .42);
}

/* Paired-swan cursor: the lake centre is the exact hotspot; motion energy shapes the wake. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-music-note-cursor body[data-current="home"],
  html.has-music-note-cursor body[data-current="home"] * {
    cursor: none !important;
  }

  .music-note-cursor {
    position: fixed;
    z-index: 2147483647;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    --cursor-tilt: 0deg;
    --cursor-note-x: 0px;
    --cursor-note-y: 0px;
    --cursor-speed: 0;
    --cursor-lake-stretch: 1;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    transition: opacity 120ms ease;
  }

  .music-note-cursor.is-visible {
    opacity: 1;
  }

  .music-note-cursor__symbol {
    position: absolute;
    top: -44px;
    left: -39px;
    width: 78px;
    height: 58px;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(8, 3, 5, .7)) drop-shadow(0 0 5px rgba(229, 176, 72, .32));
    transform: translate3d(var(--cursor-note-x), var(--cursor-note-y), 0);
    transform-origin: 50% 76%;
    transition: filter 240ms ease, transform 280ms cubic-bezier(.16, 1, .3, 1);
  }

  .music-note-cursor__pair {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 78px;
    height: 53px;
    background: url("../brand/logo-mark-gold.png") center / contain no-repeat;
    transform: rotate(var(--cursor-tilt));
    transform-origin: 50% 82%;
    animation: music-cursor-pair-rest 3.8s ease-in-out infinite;
    transition: filter 220ms ease, scale 260ms cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
  }

  .music-note-cursor__wake {
    position: absolute;
    z-index: 1;
    top: 37px;
    left: -41px;
    width: 64px;
    height: 24px;
    overflow: visible;
    opacity: .2;
    fill: none;
    stroke: #e9bf5b;
    stroke-width: .75;
    stroke-linecap: round;
    transform: translate3d(var(--cursor-note-x), var(--cursor-note-y), 0) rotate(var(--cursor-tilt));
    transform-origin: 100% 50%;
    animation: music-cursor-wake-rest 3.2s ease-in-out infinite;
    transition: opacity 220ms ease, filter 220ms ease;
  }

  .music-note-cursor__wake path:last-child {
    opacity: .58;
    stroke-width: .62;
  }

  .music-note-cursor__lake {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
  }

  .music-note-cursor__lake i {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 10px;
    border: 1px solid rgba(235, 192, 89, .38);
    border-radius: 50%;
    opacity: calc(.16 + var(--cursor-speed) * .34);
    transform: translate(-50%, -50%) scaleX(var(--cursor-lake-stretch));
    animation: music-cursor-lake-ripple 2.8s ease-out infinite;
  }

  .music-note-cursor__lake i:nth-child(2) {
    animation-delay: -.92s;
  }

  .music-note-cursor__lake i:nth-child(3) {
    animation-delay: -1.84s;
  }

  .music-note-cursor__focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(245, 216, 143, .9);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 12px rgba(229, 176, 72, .36);
    transform: translate(-50%, -50%) scale(.35);
    transition: opacity 150ms ease, transform 260ms cubic-bezier(.16, 1, .3, 1), border-color 150ms ease;
  }

  .music-note-cursor.is-moving .music-note-cursor__symbol {
    filter: brightness(calc(1 + var(--cursor-speed) * .14)) drop-shadow(0 2px 2px rgba(8, 3, 5, .7)) drop-shadow(0 0 7px rgba(229, 176, 72, .42));
  }

  .music-note-cursor.is-moving .music-note-cursor__wake {
    opacity: calc(.24 + var(--cursor-speed) * .38);
  }

  .music-note-cursor.is-interactive .music-note-cursor__focus {
    opacity: .92;
    transform: translate(-50%, -50%) scale(2.75);
  }

  .music-note-cursor.is-interactive .music-note-cursor__pair {
    filter: brightness(1.18) saturate(1.08) drop-shadow(0 0 4px rgba(250, 220, 142, .5));
    scale: 1.09;
  }

  .music-note-cursor.is-interactive .music-note-cursor__wake {
    opacity: .72;
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(242, 194, 89, .42));
    scale: 1.05 1.08;
  }

  .music-note-cursor.is-pressed .music-note-cursor__pair {
    scale: .9;
  }

  .music-note-cursor.is-pressed .music-note-cursor__focus {
    opacity: 1;
    border-color: #fff1bc;
    transform: translate(-50%, -50%) scale(1.45);
  }

  body[data-current="home"] .is-music-cursor-hover {
    position: relative;
    z-index: 1;
    translate: 0 -3px;
    scale: 1.018;
    filter: brightness(1.08) drop-shadow(0 8px 16px rgba(12, 4, 8, .22));
    transition:
      translate 240ms cubic-bezier(.16, 1, .3, 1),
      scale 240ms cubic-bezier(.16, 1, .3, 1),
      filter 240ms ease;
  }

  body.is-score-performing .music-note-cursor__focus {
    opacity: .78;
    animation: music-cursor-focus-beat .9375s ease-out infinite;
  }

  body.is-score-performing .music-note-cursor__pair {
    animation: music-cursor-performance .9375s cubic-bezier(.22, .68, .32, 1) infinite;
  }

  body.is-score-performing .music-note-cursor__wake {
    opacity: .76;
    filter: brightness(1.18) drop-shadow(0 0 4px rgba(242, 194, 89, .46));
  }

  body.is-score-performing .music-note-cursor__wake path {
    stroke-dasharray: 15 8;
    animation: music-cursor-ribbon-flow 1.875s linear infinite;
  }

}

@keyframes music-cursor-pair-rest {
  0%, 100% { filter: brightness(1) saturate(1); scale: 1; }
  50% { filter: brightness(1.09) saturate(1.04) drop-shadow(0 0 2px rgba(242, 194, 89, .34)); scale: 1.025; }
}

@keyframes music-cursor-wake-rest {
  0%, 100% { scale: 1 1; }
  50% { scale: 1.035 .92; }
}

@keyframes music-cursor-lake-ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.38, .38); }
  18% { opacity: calc(.18 + var(--cursor-speed) * .42); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleX(var(--cursor-lake-stretch)) scale(1.25, 1.18); }
}

@keyframes music-cursor-ribbon-flow {
  from { stroke-dashoffset: 23; }
  to { stroke-dashoffset: 0; }
}

@keyframes music-cursor-performance {
  0%, 100% { transform: rotate(-2deg) scale(1); filter: brightness(1) drop-shadow(0 2px 2px rgba(8, 3, 5, .72)) drop-shadow(0 0 6px rgba(242, 194, 89, .38)); }
  16% { transform: rotate(5deg) scale(1.17); filter: brightness(1.38) drop-shadow(0 2px 2px rgba(8, 3, 5, .72)) drop-shadow(0 0 12px rgba(242, 194, 89, .82)); }
  46% { transform: rotate(-3deg) scale(1.06); filter: brightness(1.12) drop-shadow(0 0 8px rgba(229, 176, 72, .52)); }
  72% { transform: rotate(3deg) scale(1.11); filter: brightness(1.24) drop-shadow(0 0 9px rgba(229, 176, 72, .64)); }
}

@keyframes music-cursor-echo {
  0% { opacity: 0; transform: translate3d(0, 5px, 0) scale(.5) rotate(-18deg); }
  18% { opacity: .9; }
  68% { opacity: .42; }
  100% { opacity: 0; transform: translate3d(19px, -18px, 0) scale(1.05) rotate(12deg); }
}

@keyframes music-cursor-focus-beat {
  0% { box-shadow: 0 0 0 0 rgba(230, 180, 68, .68); transform: translate(-50%, -50%) scale(1.1); }
  45% { box-shadow: 0 0 0 12px rgba(230, 180, 68, 0); transform: translate(-50%, -50%) scale(2.25); }
  100% { box-shadow: 0 0 0 18px rgba(230, 180, 68, 0); transform: translate(-50%, -50%) scale(2.5); opacity: .18; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body[data-current="home"] .hero-video-close.is-music-cursor-hover {
    position: absolute;
    z-index: 4;
    translate: 0;
    scale: 1.04;
    filter: brightness(1.12) drop-shadow(0 8px 16px rgba(12, 4, 8, .22));
  }
}