/* ===========================================================
   Stage 4 · a5-cinematic — scroll-driven photo reveals (Concert Hall)
   =========================================================== */

:root {
  --bg:            #0a0a0a;
  --bg-deep:       #060606;
  --surface:       #121212;
  --surface-2:     #181818;
  --ink:           #f4ebd9;       /* ivory */
  --ink-soft:      rgba(244, 235, 217, 0.72);
  --ink-mute:      rgba(244, 235, 217, 0.45);
  --rule:          rgba(244, 235, 217, 0.12);
  --coral:         #e7a292;       /* Hero Coral, lightened ~15% in HSL — reads on black */
  --coral-bright:  #ecb4a7;       /* hover lift */

  --serif:  "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --container-tight: 980px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--coral); color: var(--bg); }

/* --- Skip link & focus --- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--coral); color: var(--bg);
  padding: 8px 12px; z-index: 1000;
  font: 500 13px var(--sans);
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ===========================================================
   Top nav
   =========================================================== */

.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.0) 60%, rgba(10,10,10,0) 100%);
  transition: background 400ms ease, padding 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;

  /* Bar is full-width; inner content stays within the 1440 hero frame.
     padding-x grows past the hero gutter once the viewport exceeds 1440. */
  --nav-pad-x: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  padding: 22px var(--nav-pad-x);

  /* JS sets --nav-mix from 0 to 100 as the page scrolls toward #bio.
     Nav links + hamburger interpolate from ivory at the top to lighter Hero Coral.
     The brand wordmark stays ivory always. */
  --nav-mix: 0;
  --nav-tint: color-mix(in srgb, var(--ink), var(--coral) calc(var(--nav-mix) * 1%));
}
.top-nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--nav-pad-x);
  border-bottom-color: var(--rule);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand span { color: var(--ink); }

.nav-links {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  --active: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Per-link active state mixes from the default nav-tint (coral when scrolled)
     back toward ivory as the corresponding section comes into the viewport. */
  color: color-mix(in srgb, var(--nav-tint), var(--ink) calc(var(--active) * 100%));
  opacity: calc(0.7 + 0.3 * var(--active));
  position: relative;
  padding: 4px 2px;
  transition: color 140ms linear, opacity 200ms ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform 320ms ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 32px; height: 32px;
  padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 22px;
  background: var(--nav-tint);
  transition: transform 280ms ease, opacity 240ms ease, background 120ms linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 40;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 320ms ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu ul {
  list-style: none; padding: 0; margin: 0;
  text-align: center;
}
.mobile-menu a {
  display: block; padding: 14px 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 400;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--coral); font-style: italic; }

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: min(100vh, 900px);
  height: min(100dvh, 900px);  /* cap landing page at 1440 × 900 */
  margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url("assets/photos/hero.png");
  background-size: cover;
  background-position: center 68%;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.94) 100%),
    radial-gradient(ellipse at 80% 0%, rgba(231,162,146,0.12) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  margin-top: auto;
  margin-left: auto;                          /* push to the right */
  width: 100%;
  max-width: 600px;
  padding-bottom: 0;                          /* title sits flush at the bottom edge */
  text-align: left;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(84px, 14vw, 208px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 2px 28px rgba(0,0,0,0.45);   /* lift Hedi off the photo */
}
.hero-name br { display: block; }
.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: #e7a292;                              /* true Hero Coral 15%-lift, locked */
  text-shadow: none;                            /* keep saturation true on the dark piano */
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
}
.scroll-cue .line {
  width: 1px; height: 56px;
  background: linear-gradient(180deg, var(--coral), transparent);
  animation: cueLine 2.4s ease-in-out infinite;
}
@keyframes cueLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.9; }
  50% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* ===========================================================
   Sections — shared
   =========================================================== */

.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 32px;
  align-items: baseline;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--coral);
  margin: 0;
  grid-row: 1 / 3;
  line-height: 1;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}
.section-head .sub {
  grid-column: 2;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
  font-style: italic;
  font-family: var(--serif);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Bio
   =========================================================== */

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.bio-text p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 20px; }
.bio-text .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 32px;
  font-weight: 400;
}
.bio-text .pull {
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
}
.bio-text .pull p {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--coral);
  margin: 0 0 12px;
}
.bio-text .pull cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bio-figure { margin: 0; position: sticky; top: 100px; }
.bio-figure img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}
.bio-figure figcaption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===========================================================
   Concerts
   =========================================================== */

.concert-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(28px, 3vw, 40px);
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.concert-feature.reverse {
  grid-template-columns: 1fr 1.2fr;
}
.concert-feature.reverse .cf-img { order: 2; }
.concert-feature.reverse .cf-text { order: 1; }
.cf-img { margin: 0; overflow: hidden; border-radius: 2px; }
.cf-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1600ms ease;
}
.concert-feature:hover .cf-img img { transform: scale(1.03); }
.cf-text .cf-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}
.cf-text h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.cf-text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.cf-quote {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
}
.cf-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
}
.cf-quote cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.concert-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
  margin-bottom: 96px;
}
.concert-col h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.program {
  list-style: none; margin: 0; padding: 0;
}
.program li {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 280ms ease;
}
.program li:last-child { border-bottom: none; }
.program li:hover { padding-left: 8px; }
.program .year {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--coral);
  line-height: 1;
  align-self: center;
}
.program .title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.program .rep {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.4;
}
.program-compact li { padding: 9px 0; }

.poster-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin: 96px 0;
}
.poster-row figure { margin: 0; }
.poster-row img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.poster-row figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

.concert-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
  margin: 96px 0;
}
.concert-gallery figure { margin: 0; overflow: hidden; }
.concert-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms ease; }
.concert-gallery figure:hover img { transform: scale(1.04); }
.concert-gallery figure:nth-child(1) { grid-row: span 2; }
.concert-gallery figure:nth-child(1) img { aspect-ratio: 4 / 5; }

.concert-gallery-single {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}
.concert-gallery-single figure:nth-child(1) { grid-row: auto; }
.concert-gallery-single figure:nth-child(1) img {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.orchestra-block {
  padding-top: 64px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.orchestra-block h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--ink-soft);
}
.orchestra-text { min-width: 0; }
.orchestra-fig { margin: 0; overflow: hidden; border-radius: 2px; }
.orchestra-fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1200ms ease;
}
.orchestra-block:hover .orchestra-fig img { transform: scale(1.03); }

/* ===========================================================
   Curriculum — Timeline
   =========================================================== */

.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 80px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--rule);
}
.timeline > li {
  display: grid;
  grid-template-columns: 120px 1fr 520px;
  gap: 32px;
  padding: 48px 0;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}
.timeline > li:last-child { border-bottom: none; }

.t-marker {
  position: relative;
}
.t-marker span {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--coral);
  background: var(--bg);
  padding-right: 16px;
  position: relative;
  z-index: 2;
}
.t-period {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--coral);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.t-body h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.2;
}
.t-body p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.t-fig { margin: 0; }
.t-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.95);
}

.t-fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.t-fig-pair figure { margin: 0; overflow: hidden; }
.t-fig-pair img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.95);
}

/* Pairs use a 1.5:1 column ratio. The WIDE image keeps its natural aspect ratio
   (so it stays large); the NARROW image is forced to the same display height by
   setting its aspect to (narrow_col_width / wide_natural_height) — i.e.
   wide_natural_aspect / 1.5. */
.t-fig-pair--wide-left  { grid-template-columns: 1.5fr 1fr; }
.t-fig-pair--wide-left  figure:nth-child(1) { aspect-ratio: 3 / 2; }       /* 10y, natural 1.50 */
.t-fig-pair--wide-left  figure:nth-child(2) { aspect-ratio: 1 / 1; }       /* Lexy forced square to match height */

.t-fig-pair--wide-right { grid-template-columns: 1fr 1.5fr; }
.t-fig-pair--wide-right figure:nth-child(1) { aspect-ratio: 1 / 1.125; }   /* Clara forced portrait to match RCM height */
.t-fig-pair--wide-right figure:nth-child(2) { aspect-ratio: 4 / 3; }       /* RCM, natural 1.33 */

.t-fig-pair img { object-position: center; }

/* ===========================================================
   Competition
   =========================================================== */

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 96px;
}
.prize {
  background: var(--bg);
  padding: 32px;
  min-height: 220px;
  display: flex; flex-direction: column;
  transition: background 320ms ease;
  position: relative;
}
.prize:hover { background: var(--surface-2); }
.prize-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--coral);
  margin: 0 0 16px;
}
.prize-rank-num {
  font-size: 1.5em;
  line-height: 0;
  vertical-align: -0.06em;
  letter-spacing: -0.02em;
  margin-right: 0.04em;
}
.prize h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.2;
}
.prize-meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin: auto 0 0;
  line-height: 1.5;
}

.competition-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.competition-gallery figure { margin: 0; }
.competition-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ===========================================================
   Age Morph — scroll-driven crossfade between the 2024 (age 14)
   and 2026 (age 16) Chopin Competition photos
   =========================================================== */

.age-morph {
  position: relative;
  height: 180vh;          /* extra scroll space drives the crossfade */
  margin-top: 96px;
}
.age-morph-track {
  position: sticky;
  top: 8vh;
  height: 84vh;
  max-height: 760px;
}
.age-morph-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface-2);
}
.age-morph-img {
  position: absolute;
  inset: 0;
  margin: 0;
  will-change: opacity, transform;
}
.age-morph-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) brightness(0.92);
}
/* Both photos render at the same framed size (with a dark stage border) so the
   final states match and the bodies superpose during the mid-scroll crossfade. */
.age-morph-img--younger img,
.age-morph-img--older   img { transform: scale(0.7); transform-origin: center; }
.age-morph-img--older { opacity: 0; transform: scale(1.04); }

/* Bottom-left gradient scrim so the meta text stays readable on both photos */
.age-morph-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.25) 65%,
    rgba(0, 0, 0, 0)    100%
  );
  pointer-events: none;
}

.age-morph-meta {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  color: var(--ink);
  z-index: 2;
  display: grid;
  gap: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.age-morph-eyebrow {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  left: clamp(20px, 3vw, 40px);
  z-index: 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--coral);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.age-morph-years {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 10.5vw, 146px);
  line-height: 0.9;
  height: 0.9em;
  width: 2.2ch;
  color: var(--ink);
}
.age-morph-year {
  position: absolute;
  inset: 0;
  display: block;
  letter-spacing: -0.02em;
  will-change: opacity, transform;
}
.age-morph-year--older { opacity: 0; transform: translateY(8px); }

.age-morph-note {
  position: relative;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
  min-height: 1.4em;
}
.age-morph-note > span {
  position: absolute;
  inset: 0;
  will-change: opacity;
}
.age-morph-note-older { opacity: 0; }

@media (max-width: 980px) {
  .age-morph { height: 160vh; margin-top: 64px; }
  .age-morph-track { top: 6vh; height: 76vh; }
}
@media (prefers-reduced-motion: reduce) {
  .age-morph { height: auto; margin-top: 64px; }
  .age-morph-track { position: static; height: auto; max-height: none; }
  .age-morph-stage { aspect-ratio: 4 / 3; height: auto; }
  .age-morph-img--older,
  .age-morph-year--older,
  .age-morph-note-older { opacity: 1; transform: none; }
  .age-morph-img--younger,
  .age-morph-year--younger,
  .age-morph-note-younger { opacity: 0; }
}

/* ===========================================================
   Teaching
   =========================================================== */

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  margin-bottom: 96px;
}
.teach-card {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.teach-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--coral);
  margin: 0 0 12px;
}
.teach-card h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  margin: 0 0 16px;
}
.teach-card p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

.teaching-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.teaching-photos figure { margin: 0; }
.teaching-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ===========================================================
   Contact
   =========================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-portrait { margin: 0; }
.contact-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.contact-card {
  background: var(--surface);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule);
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  border: 0;
  transition: color 220ms ease;
}
.contact-link:hover { color: var(--coral-bright); }
.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--coral);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
  flex: none;
}
.contact-link-icon svg { width: 22px; height: 22px; }
.contact-link:hover .contact-link-icon {
  border-color: var(--coral);
  color: var(--coral-bright);
}
.contact-link-text { line-height: 1.2; }

/* ===========================================================
   Footer
   =========================================================== */

.site-foot {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.site-foot p { margin: 0; }

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .bio-grid { grid-template-columns: 1fr; }
  .bio-figure { position: static; max-width: 480px; }

  .concert-feature,
  .concert-feature.reverse { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .concert-feature.reverse .cf-img { order: 0; }
  .concert-feature.reverse .cf-text { order: 0; }
  .concert-columns { grid-template-columns: 1fr; }

  .poster-row { grid-template-columns: 1fr 1fr; }
  .poster-row figure:nth-child(3) { grid-column: 1 / 3; max-width: 50%; margin: 0 auto; }

  .concert-gallery { grid-template-columns: 1fr 1fr; }
  .concert-gallery figure:nth-child(1) { grid-row: auto; }
  .concert-gallery figure:nth-child(1) img { aspect-ratio: 4 / 3; }
  .concert-gallery-single { grid-template-columns: 1fr; }
  .concert-gallery-single figure:nth-child(1) img { aspect-ratio: 16 / 9; }

  .orchestra-block { grid-template-columns: 1fr; gap: 32px; }

  .timeline::before { left: 18px; }
  .timeline > li {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .t-fig { grid-column: 1 / 3; margin-top: 16px; }

  .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-grid > .prize:last-child { grid-column: span 2; }

  .competition-gallery { grid-template-columns: 1fr 1fr; }
  .competition-gallery figure:nth-child(3) { grid-column: 1 / 3; max-width: 50%; margin: 0 auto; }

  .teaching-grid { grid-template-columns: 1fr; }
  .teaching-photos { grid-template-columns: 1fr 1fr; }

  /* Whenever the photo and card stack (single-column), the card overlays
     the bottom of the photo with a transparent-fading-to-dark gradient. */
  .contact-grid {
    position: relative;
    grid-template-columns: 1fr;
  }
  .contact-portrait { max-width: none; margin: 0; }
  .contact-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0)    100%
    );
    border: none;
    padding: 56px var(--gutter) 28px;
  }
  .contact-links { gap: 16px; }
  .contact-link {
    color: var(--ink);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  }
  .contact-link-icon {
    border-color: rgba(231, 162, 146, 0.55);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    /* color stays coral via base CSS */
  }
  .contact-link:hover .contact-link-icon {
    border-color: var(--coral);
    color: var(--coral-bright);
    background: rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 40px; }
  .hero-content { padding-bottom: 24px; max-width: 100%; }
  .scroll-cue { display: none; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .section-head .kicker { grid-row: auto; }
  .section-head .sub { grid-column: 1; }

  .poster-row { grid-template-columns: 1fr; }
  .poster-row figure:nth-child(3) { grid-column: 1; max-width: none; }
  .concert-gallery { grid-template-columns: 1fr; }
  .competition-gallery { grid-template-columns: 1fr; }
  .competition-gallery figure:nth-child(3) { grid-column: 1; max-width: none; }
  .teaching-photos { grid-template-columns: 1fr; }
  .prize-grid { grid-template-columns: 1fr; }
  .prize { min-height: 0; }

  /* Phone-size: additionally bleed the contact stack edge-to-edge. */
  .contact-grid {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }
}

/* ===========================================================
   Cinematic scroll reveals — driven by JS via --cin-reveal (0 → 1)
   =========================================================== */

.cinematic {
  --cin-reveal: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.cinematic > img,
.cinematic > picture > img {
  transform: scale(calc(1 + 0.14 * (1 - var(--cin-reveal)))) translateY(calc(40px * (1 - var(--cin-reveal))));
  filter:
    brightness(calc(0.35 + 0.65 * var(--cin-reveal)))
    saturate(calc(0.45 + 0.55 * var(--cin-reveal)))
    contrast(calc(0.85 + 0.18 * var(--cin-reveal)))
    blur(calc(4px * (1 - var(--cin-reveal))));
  transition: none;
  will-change: transform, filter;
}

/* Soft inner vignette while the image hasn't fully revealed (fades out as reveal completes) */
.cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.75) 100%);
  opacity: calc((1 - var(--cin-reveal)) * 0.85);
  transition: none;
}

/* Hero subtle zoom-out — driven by JS via --hero-zoom (0 at top, 1 fully scrolled out) */
.hero { --hero-zoom: 0; }
.hero-image {
  transform: scale(calc(1.06 - 0.06 * var(--hero-zoom))) translateY(calc(var(--hero-shift, 0px)));
}

/* Poster row parallax — horizontal subtle drift per item */
.poster-row figure {
  --poster-shift: 0;
  transition: transform 0.06s linear;
}
.poster-row figure:nth-child(1) { transform: translateY(calc(-6px + 12px * var(--poster-shift))); }
.poster-row figure:nth-child(2) { transform: translateY(calc(6px - 12px * var(--poster-shift))); }
.poster-row figure:nth-child(3) { transform: translateY(calc(-4px + 10px * var(--poster-shift))); }

/* Section title brightness follows scroll focus — dim when off-axis,
   full ivory + subtle coral glow when the section-head is in the reading band. */
.section-head h2 {
  --title-focus: 0;
  color: rgba(244, 235, 217, calc(0.4 + 0.6 * var(--title-focus)));
  text-shadow: 0 0 calc(48px * var(--title-focus)) rgba(231, 162, 146, calc(0.4 * var(--title-focus)));
  transition: none;
}
.section-head .kicker {
  --title-focus: 0;
  color: rgba(231, 162, 146, calc(0.45 + 0.55 * var(--title-focus)));
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .cinematic > img,
  .cinematic > picture > img {
    transform: none;
    filter: none;
  }
  .cinematic::after { display: none; }
  .hero-image { transform: none; }
  .poster-row figure { transform: none; }
  .section-head h2 { color: var(--ink); text-shadow: none; }
  .section-head .kicker { color: var(--coral); }
}
