/* Shelly's Melodic Minds: direction C (Full Colour) with direction A's score layered over it. */
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  /* paper and ink */
  --paper: #FCFAF6;
  --paper-2: #F7F2EA;
  --card: rgba(255, 255, 255, .88);
  --plum: #2D1B3D;      /* text, buttons, staff lines: 15.1:1 on paper */
  --soft: #5C4E69;      /* secondary text: 7.3:1 */
  /* paint (never text) */
  --coral: #EF7C61;
  --marigold: #F2B035;
  --teal: #2A9087;
  --peri: #7381DA;
  /* text versions of the paint */
  --coral-text: #B8432A; /* 5.2:1 */
  --teal-text: #1F6F68;  /* 5.7:1 */

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1296px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  --radius: 22px;
  --shadow: 0 18px 48px -28px rgba(45, 27, 61, .38), 0 2px 6px -3px rgba(45, 27, 61, .12);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .32  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 960px) { :root { --header-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--plum);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
a { color: inherit; }
::selection { background: rgba(242, 176, 53, .45); }
:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: .95; font-size: calc(2.3rem + 2.6vw); text-wrap: balance; }
.display em { font-style: italic; display: block; }
.display.small { font-size: calc(1.9rem + 1.2vw); }
.display.center { text-align: center; }
.label { font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-text); line-height: 1.4; }
.lede { font-size: 1.125rem; color: var(--soft); max-width: 34ch; line-height: 1.55; }
@media (min-width: 960px) { .lede { font-size: 1.25rem; } }
.small { font-size: .9375rem; color: var(--soft); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px;
  background: var(--plum); color: #fff; border: 0; border-radius: 99px; font: 500 1.0625rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 24px -14px rgba(45, 27, 61, .7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(45, 27, 61, .7); }
.btn:active { transform: translateY(1px); }
.btn-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat; transition: background-size .3s var(--ease); font-size: 1rem; }
.text-link:hover { background-size: 0 1px; background-position: 100% calc(100% - 9px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px rgba(242, 176, 53, .22); flex: none; }

/* ---------- header and menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter); background: rgba(252, 250, 246, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.site-header.hide { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(45, 27, 61, .08); }
.brand { display: block; width: clamp(176px, 49vw, 200px); padding-block: 4px; }
.brand picture { display: block; }
@media (min-width: 960px) { .brand { width: 238px; } }
.brand img { width: 100%; height: auto; }
.nav { display: none; align-items: center; gap: clamp(20px, 2.4vw, 36px); font-size: 1rem; }
.nav a { text-decoration: none; padding-block: 10px; position: relative; }
.nav a:not(.pill)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.pill):hover::after, .nav a[aria-current]:not(.pill)::after { transform: scaleX(1); }
.nav .pill { border: 1.5px solid var(--plum); border-radius: 99px; padding: 10px 20px; transition: background .25s, color .25s; }
.nav .pill:hover, .nav .pill[aria-current] { background: var(--plum); color: #fff; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 0 4px 0 12px; margin-right: -4px;
  background: none; border: 0; color: var(--plum); font: 500 .9375rem var(--sans); cursor: pointer; position: relative; z-index: 61;
}
.menu-lines { width: 26px; height: 12px; position: relative; display: block; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-lines::before { top: 0; }
.menu-lines::after { top: 10px; }
.menu-open .menu-lines::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-lines::after { top: 5px; transform: rotate(-45deg); }
@media (min-width: 860px) { .nav { display: flex; } .menu-btn { display: none; } }
.menu {
  position: fixed; inset: 0; z-index: 39; background: var(--paper) var(--grain); padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px; overflow: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; position: relative; z-index: 1; }
.menu nav a { font-family: var(--serif); font-size: calc(2.2rem + 1vw); line-height: 1.15; text-decoration: none; padding-block: 8px; border-bottom: 1px solid rgba(45, 27, 61, .12); }
.menu nav a[aria-current] { font-style: italic; color: var(--coral-text); }
.menu-mail { position: relative; z-index: 1; color: var(--soft); }
.menu-mail a { color: var(--plum); font-weight: 500; overflow-wrap: anywhere; }
.menu-open { overflow: hidden; }
.menu-open .site-header { transform: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 60; }

/* ---------- entrance (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
  .js .reveal { opacity: 0; transform: translateY(26px) rotate(-1deg); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal .blot { transform: scale(0) rotate(-20deg); transition: transform 1s var(--spring); transition-delay: calc(var(--d, 0) * 120ms + 220ms); }
  .js .reveal.in .blot { transform: none; }
  .js .reveal-bloom { opacity: 0; transform: translateY(14%) scale(.35, .2); transition: opacity 1.4s var(--ease), transform 2.2s var(--ease); }
  .js .reveal-bloom.in { opacity: var(--o, .8); transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the staff (direction A) ---------- */
.staff { position: relative; --g: 12px; height: calc(var(--g) * 4); }
.staff .line { position: absolute; left: 0; right: 0; height: 1px; background: var(--plum); opacity: .82; top: calc((4 - var(--i)) * var(--g)); transform-origin: left center; }
.staff .note { position: absolute; left: var(--x); top: calc((4 - var(--s) / 2) * var(--g)); width: 0; height: 0; z-index: 2; }
.staff .note::before { /* notehead */
  content: ''; position: absolute; width: calc(var(--g) * 1.3); height: calc(var(--g) * .92); left: calc(var(--g) * -.65); top: calc(var(--g) * -.46);
  background: var(--plum); border-radius: 50%; transform: rotate(-20deg);
}
.staff .note::after { /* stem */
  content: ''; position: absolute; width: 1.6px; height: calc(var(--g) * 3.2); left: calc(var(--g) * .52); bottom: calc(var(--g) * .05); background: var(--plum);
}
.staff .note.down::after { left: calc(var(--g) * -.62); top: calc(var(--g) * .05); bottom: auto; }
.staff .note b { position: absolute; width: calc(var(--g) * 2.6); height: calc(var(--g) * 2.6); left: calc(var(--g) * -1.3); top: calc(var(--g) * -1.3); background: center / contain no-repeat; z-index: -1; display: none; }
.note[data-c='coral'] b { background-image: url('/img/blot/coral.webp'); }
.note[data-c='marigold'] b { background-image: url('/img/blot/marigold.webp'); }
.note[data-c='teal'] b { background-image: url('/img/blot/teal.webp'); }
.note[data-c='periwinkle'] b { background-image: url('/img/blot/periwinkle.webp'); }
@media (prefers-reduced-motion: no-preference) {
  .js .staff.animate .line { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i) * 110ms); }
  .js .staff.animate.drawn .line { transform: none; }
  .js .staff.animate .note { opacity: 0; transform: translateY(calc(var(--g) * -1.2)) scale(.4); transition: opacity .35s var(--ease), transform .6s var(--spring); }
  .js .staff.animate .note.on { opacity: 1; transform: none; }
  .js .staff .line.ring { animation: ring .9s ease-out; }
}
@keyframes ring {
  0% { transform: translateY(0); } 12% { transform: translateY(-1.6px); } 26% { transform: translateY(1.3px); } 40% { transform: translateY(-.9px); }
  55% { transform: translateY(.6px); } 72% { transform: translateY(-.3px); } 100% { transform: translateY(0); }
}

/* ---------- piano keys (direction C) ---------- */
.keys { display: flex; border-top: 1.5px solid var(--plum); background: #fff; position: relative; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.key { flex: 1 0 0; position: relative; border-right: 1.5px solid var(--plum); background: linear-gradient(#fff, #fff 82%, var(--paper-2)); transform-origin: top; transition: transform .14s ease-out, background .6s; }
.key:last-child { border-right: 0; }
.key i { position: absolute; top: 0; right: -23%; width: 46%; height: 60%; background: linear-gradient(#3b2850, var(--plum) 30%); border-radius: 0 0 6px 6px; z-index: 1; pointer-events: none; box-shadow: inset 0 -5px 0 rgba(255, 255, 255, .08); }
.keys[data-live] .key { cursor: pointer; }
.key.down { transform: scaleY(.965); background: linear-gradient(#fff, var(--paper-2)); }
.key.down[data-c='coral'] { background: linear-gradient(#fff 40%, #fde3db); }
.key.down[data-c='marigold'] { background: linear-gradient(#fff 40%, #fdefcf); }
.key.down[data-c='teal'] { background: linear-gradient(#fff 40%, #d6eeeb); }
.key.down[data-c='periwinkle'] { background: linear-gradient(#fff 40%, #e2e5fa); }

/* ============================== HOME ============================== */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); overflow: hidden; }
.hero-copy { position: relative; z-index: 3; padding: clamp(16px, 4vh, 56px) var(--gutter) 8px; display: flex; flex-direction: column; gap: 14px; max-width: calc(var(--maxw) + 2 * var(--gutter)); width: 100%; margin-inline: auto; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-h { font-size: calc(3rem + 3.4vw); line-height: .92; }
.hero-h span { display: block; }
.hero-art { position: relative; flex: 1 0 auto; min-height: max(250px, 33svh); }
.hero-art .blooms { position: absolute; inset: 0 0 calc(var(--kh) - 6px) 0; pointer-events: none; }
.bloom { position: absolute; bottom: -4%; width: var(--w, 46%); aspect-ratio: 2 / 3; transform-origin: 50% 100%; will-change: transform, opacity; pointer-events: none; }
.bloom img { width: 100%; height: 100%; object-fit: contain; }
.hero-art { --kh: clamp(84px, 12svh, 124px); }
.hero-staff { position: absolute; left: 0; right: 0; bottom: calc(var(--kh) + 44px); --g: clamp(9px, 1.3svh, 12px); }
.hero-staff .line { opacity: .7; }
.keys-hero { position: absolute; left: 0; right: 0; bottom: 0; height: var(--kh); z-index: 3; }
.keys-hero .key:nth-child(n + 11) { display: none; }
.hint { position: absolute; left: var(--gutter); bottom: calc(var(--kh) + 14px); z-index: 3; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); font-weight: 600; margin: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

@media (min-width: 600px) { .keys-hero .key:nth-child(n + 11) { display: block; } .keys-hero .key:nth-child(n + 15) { display: none; } }
@media (min-width: 960px) {
  .hero { min-height: clamp(620px, calc(100svh - var(--header-h)), 960px); }
  .hero-copy { padding-top: clamp(36px, 8vh, 96px); gap: 22px; }
  .hero-h { font-size: clamp(5rem, 8.4vw, 8.5rem); }
  .hero-art { position: absolute; inset: 0; min-height: 0; --kh: clamp(100px, 15svh, 140px); }
  .hero-staff { --g: clamp(11px, 1.7svh, 16px); bottom: calc(var(--kh) + clamp(70px, 12svh, 120px)); }
  .hero-staff .line { -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 51%); mask-image: linear-gradient(90deg, transparent 45%, #000 51%); }
  .keys-hero .key:nth-child(n + 11) { display: block; }
  .hint { bottom: calc(var(--kh) + 14px); }
}

/* facts */
.facts { padding-block: clamp(56px, 10vw, 120px) clamp(24px, 4vw, 48px); }
.facts dl { display: grid; gap: 28px; }
.fact { position: relative; padding: 18px 0 18px 4px; display: flex; flex-direction: column-reverse; gap: 4px; isolation: isolate; }
.fact .blot { position: absolute; left: -16px; top: -6px; width: 128px; height: 128px; z-index: -1; opacity: .85; }
.fact dt { font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.fact dd { font-size: 1.0625rem; color: var(--soft); }
.fact .num { display: block; font-family: var(--serif); font-size: calc(3.4rem + 1.6vw); line-height: 1; color: var(--plum); }
.fact .num-sm { font-style: italic; }
@media (min-width: 760px) { .facts dl { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* the score: A's playhead and C's colour steps as one motion */
.score { position: relative; }
.score-stage { position: relative; padding-block: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: clamp(20px, 4svh, 40px); }
.score-head .display { margin-top: 10px; font-size: calc(2.2rem + 2.2vw); }
.score-art { position: relative; height: clamp(170px, 28svh, 300px); margin-inline: var(--gutter); }
.score-staff { position: absolute; left: 0; right: 0; top: 48%; --g: clamp(10px, 1.6svh, 15px); transform: translateY(-50%); }
.score-washes { position: absolute; inset: -30% 0 -6% 0; pointer-events: none; }
@media (max-width: 899px) { .score .score-washes { inset: 0; } .score .score-washes .wash { width: 25%; height: auto; bottom: calc(52% - 13vw); } .score .score-washes .wash[data-step] { margin-left: calc(11.5% - 12.5%); } }
.score-washes .wash { position: absolute; bottom: 0; width: clamp(80px, 23%, 340px); height: 100%; object-fit: contain; object-position: bottom; transform-origin: 50% 100%; opacity: .8; }
.score-washes .wash[data-step='0'] { left: calc(12.5% - clamp(40px, 11.5%, 170px)); }
.score-washes .wash[data-step='1'] { left: calc(37.5% - clamp(40px, 11.5%, 170px)); }
.score-washes .wash[data-step='2'] { left: calc(62.5% - clamp(40px, 11.5%, 170px)); }
.score-washes .wash[data-step='3'] { left: calc(87.5% - clamp(40px, 11.5%, 170px)); }
.playhead { position: absolute; top: 4%; bottom: 8%; left: 0; width: 1.5px; background: var(--plum); opacity: 0; will-change: transform; z-index: 3; }
.playhead::before { content: ''; position: absolute; top: -5px; left: -4.25px; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); }
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.step .blot { width: 58px; height: 58px; grid-row: span 2; }
.step-n { position: absolute; top: 14px; right: 18px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--soft); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; padding-right: 24px; }
.step p { grid-column: 1 / -1; color: var(--soft); font-size: 1rem; margin-top: 8px; }
.step-dots { display: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); align-items: start; } .step { grid-template-columns: 1fr; align-items: start; align-content: start; } .step .blot { grid-row: auto; } }

/* pinned version, only with JS + motion */
@media (prefers-reduced-motion: no-preference) {
  .js .score.pinned { height: 320svh; }
  .js .score.pinned .score-stage { position: sticky; top: 0; height: 100svh; justify-content: center; padding-block: calc(var(--header-h) + 8px) 24px; overflow: hidden; }
  .js .score.pinned .wash { opacity: 0; transform: translateY(22%) scale(.25, .15); transition: opacity 1.4s var(--ease), transform 2s var(--ease); }
  .js .score.pinned .wash.on { opacity: .82; transform: none; }
  .js .score.pinned .step { opacity: 0; transform: translateY(26px) rotate(-1deg); transition: opacity .7s var(--ease), transform .9s var(--ease); }
  .js .score.pinned .step .blot { transform: scale(0); transition: transform .9s .15s var(--spring); }
  .js .score.pinned .step.on { opacity: 1; transform: none; }
  .js .score.pinned .step.on .blot { transform: none; }
  .js .score.pinned .playhead { opacity: 1; }
  .js .score.pinned .playhead.done { opacity: 0; transition: opacity .6s; }
  @media (max-width: 899px) {
    .js .score.pinned .steps { grid-template-areas: 'one'; }
    .js .score.pinned .step { grid-area: one; }
    .js .score.pinned .step.on:not(.current) { opacity: 0; transform: translateY(-14px); }
    .js .score.pinned .step-dots { display: flex; gap: 10px; justify-content: center; }
    .step-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--plum); transition: background .4s, transform .4s var(--spring); }
    .step-dots i.on[data-c='coral'] { background: var(--coral); border-color: var(--coral); }
    .step-dots i.on[data-c='marigold'] { background: var(--marigold); border-color: var(--marigold); }
    .step-dots i.on[data-c='teal'] { background: var(--teal); border-color: var(--teal); }
    .step-dots i.on[data-c='periwinkle'] { background: var(--peri); border-color: var(--peri); }
    .step-dots i.current { transform: scale(1.35); }
  }
}

/* recital teaser */
.teaser { position: relative; overflow: hidden; padding-block: clamp(110px, 14vw, 200px) 0; margin-top: clamp(24px, 6vw, 96px); isolation: isolate; }
.stage-mini { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.curtain { position: absolute; top: 0; height: 100%; width: clamp(110px, 30vw, 460px); object-fit: cover; object-position: left top; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.curtain-l { left: 0; }
.curtain-r { right: 0; transform: scaleX(-1); }
.teaser .curtain { height: 100%; top: 0; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 62%, transparent 100%); mask-image: linear-gradient(transparent, #000 16%, #000 62%, transparent 100%); }
.teaser-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.teaser-copy .display { font-size: calc(2.8rem + 3vw); }
.teaser-when { color: var(--soft); max-width: 28ch; }
.teaser-piano { width: clamp(260px, 46vw, 620px); margin-top: 8px; }
@media (max-width: 599px) { .teaser .curtain { width: 14vw; object-position: 80% top; } .teaser-copy { padding-inline: calc(14vw + 10px); } .teaser-copy .display { font-size: calc(2.4rem + 3vw); } }
@media (prefers-reduced-motion: no-preference) {
  .js .stage-mini .curtain-l, .js .stage .curtain-l { transform: translateX(16%); transition: transform 2s var(--ease); }
  .js .stage-mini .curtain-r, .js .stage .curtain-r { transform: scaleX(-1) translateX(16%); transition: transform 2s var(--ease); }
  .js .open .curtain-l { transform: none; }
  .js .open .curtain-r { transform: scaleX(-1); }
}

/* quotes (only rendered when there are quotes) */
.quotes { padding-block: clamp(64px, 10vw, 120px); }
.quote-list { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 900px) { .quote-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.quote { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px; isolation: isolate; }
.quote .blot { position: absolute; width: 90px; height: 90px; top: -24px; left: -18px; z-index: -1; }
.quote blockquote p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.quote figcaption { margin-top: 14px; color: var(--soft); font-size: .9375rem; }

/* call to action band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 150px); isolation: isolate; }
.cta-paint { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-paint img { position: absolute; bottom: 6%; width: clamp(200px, 26vw, 380px); --o: .7; }
.cta-paint img:first-child { right: 4%; }
.cta-paint img:last-child { right: clamp(150px, 21vw, 330px); bottom: 16%; width: clamp(140px, 17vw, 250px); --o: .55; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 18px; }
.cta-band .display { font-size: calc(2.6rem + 2.6vw); }
@media (max-width: 759px) { .cta-paint img:first-child { right: -18%; bottom: 2%; width: 56vw; --o: .4; } .cta-paint img:last-child { display: none; } }

/* footer */
.site-footer { position: relative; overflow: hidden; padding-top: 56px; isolation: isolate; background: var(--paper-2) var(--grain); }
.foot-paint { position: absolute; inset: 0 0 auto 0; height: 130px; z-index: -1; pointer-events: none; }
.foot-paint img { position: absolute; width: 180px; bottom: -6px; opacity: .55; }
.foot-paint img:first-child { left: 8%; }
.foot-paint img:last-child { right: 12%; width: 150px; }
.keys-foot { height: 74px; border-bottom: 1.5px solid var(--plum); overflow: hidden; }
.keys-foot .key { flex: 0 0 auto; width: clamp(34px, 3.6vw, 54px); }
.foot-inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 24px; display: grid; gap: 32px; }
.foot-brand img { width: 220px; height: auto; }
.foot-brand p { margin-top: 12px; color: var(--soft); max-width: 36ch; font-size: 1rem; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-mail .label { margin-bottom: 4px; }
.foot-mail a { font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.foot-small { padding: 0 var(--gutter) 32px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; font-size: .875rem; color: var(--soft); }
@media (min-width: 860px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ============================== LESSONS ============================== */
.page-hero { padding-block: clamp(32px, 6vw, 80px) clamp(8px, 2vw, 24px); display: flex; flex-direction: column; gap: clamp(32px, 6vw, 64px); }
.page-hero-copy { display: flex; flex-direction: column; gap: 18px; }
.page-hero .display { font-size: calc(2.7rem + 3.2vw); max-width: 14ch; }
.rule-staff { --g: clamp(8px, 1.1vw, 12px); }
.rule-staff .note b, .nineteen-staff .note b { display: block; }
.feature { display: grid; gap: 28px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.feature-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature-copy .display { font-size: calc(2.3rem + 2vw); }
.feature-copy p:not(.label) { max-width: 46ch; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .feature-flip .paint-frame { order: 2; }
}
.paint-frame { position: relative; isolation: isolate; margin: 0; }
.paint-frame .frame-wash { position: absolute; width: 55%; right: -6%; bottom: -14%; z-index: -1; --o: .55; }
.paint-frame .frame-art { width: 100%; height: auto; }
.paint-frame .frame-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 46% 54% 42% 58% / 48% 44% 56% 52%; }
.pillars { display: grid; gap: 20px; padding-block: clamp(24px, 4vw, 48px); position: relative; z-index: 1; }
.pillar { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px 30px; isolation: isolate; }
.pillar .blot { width: 64px; height: 64px; margin-bottom: 14px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin-bottom: 8px; }
.pillar p { color: var(--soft); font-size: 1rem; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.fees { padding-block: clamp(40px, 6vw, 80px); display: grid; gap: 14px; }
.fees p { max-width: 52ch; }
.fees a { font-weight: 500; overflow-wrap: anywhere; }

/* ============================== RECITAL ============================== */
.stage { position: relative; overflow: hidden; min-height: clamp(560px, calc(100svh - var(--header-h)), 960px); display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.stage::before { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; z-index: -2; background: radial-gradient(60% 70% at 50% 100%, rgba(242, 176, 53, .28), transparent 70%), radial-gradient(40% 60% at 30% 60%, rgba(42, 144, 135, .10), transparent 70%), radial-gradient(40% 60% at 70% 60%, rgba(115, 129, 218, .12), transparent 70%); }
.stage .curtain { z-index: 1; width: clamp(72px, 30vw, 520px); }
@media (max-width: 599px) {
  .stage { min-height: 0; padding-bottom: 8px; }
  .stage .curtain { width: 24vw; object-position: 86% top; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(#000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(#000 70%, transparent); mask-composite: intersect; }
  .stage-copy { padding-inline: calc(17vw + 6px); }
  .stage-copy .display { font-size: calc(2.5rem + 4vw); }
  .soon { padding: 8px 14px; }
  .stage-piano { margin-top: 20px; width: min(78vw, 340px); }
}
.stage-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: clamp(40px, 9vh, 110px) calc(var(--gutter) + 16vw) 0; }
.stage-copy .display { font-size: calc(3.2rem + 4.6vw); line-height: .9; }
.stage-when { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--coral-text); }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--soft); background: var(--card); border-radius: 99px; padding: 10px 18px; box-shadow: var(--shadow); }
.stage-piano { position: relative; z-index: 1; margin-top: auto; width: clamp(260px, min(50vw, 62svh), 720px); }
@media (min-width: 600px) { .stage-copy { padding-inline: calc(var(--gutter) + 18vw); } }
.soon { white-space: nowrap; }
.details { padding-block: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 20px; align-items: center; }
.detail-card { width: 100%; max-width: 960px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; }
.detail-card > div { padding: 22px 26px; border-bottom: 1px solid rgba(45, 27, 61, .1); }
.detail-card > div:last-child { border-bottom: 0; }
.detail-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral-text); }
.detail-card dd { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; margin-top: 6px; }
.detail-card small { display: block; font-family: var(--sans); font-size: 1rem; color: var(--soft); margin-top: 6px; }
.tba { font-style: italic; color: var(--soft); }
@media (min-width: 800px) { .detail-card { grid-template-columns: repeat(3, 1fr); } .detail-card > div { border-bottom: 0; border-right: 1px solid rgba(45, 27, 61, .1); padding: 28px 32px; } .detail-card > div:last-child { border-right: 0; } }
.detail-notes { max-width: 960px; width: 100%; color: var(--soft); padding-left: 1.2em; }
.detail-soon { color: var(--soft); text-align: center; max-width: 40ch; }
.nineteen { padding-block: clamp(56px, 9vw, 120px); overflow: hidden; }
.nineteen .wrap { display: flex; flex-direction: column; gap: 16px; }
.nineteen .display { font-size: calc(2.4rem + 2.4vw); }
.nineteen-staff { --g: clamp(10px, 1.5vw, 16px); margin: clamp(64px, 9vw, 110px) var(--gutter) 40px; }
.gallery { display: grid; gap: 24px; padding-block: 48px; }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ============================== CONTACT ============================== */
.contact-wrap { position: relative; display: grid; gap: 40px; padding-block: clamp(32px, 6vw, 96px) clamp(64px, 9vw, 120px); isolation: isolate; }
.contact-paint { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.contact-paint img { position: absolute; width: clamp(180px, 26vw, 380px); --o: .5; }
.contact-paint img:first-child { left: -4%; bottom: 2%; }
.contact-paint img:last-child { right: 2%; top: 0; --o: .35; transform-origin: 50% 0; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact-intro .display { font-size: calc(2.6rem + 3vw); }
.mail-card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 4px; max-width: 420px; margin-top: 8px; }
.mail-card a { font-size: 1.1875rem; font-weight: 500; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.enquiry, .form-done { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); display: grid; gap: 20px; align-content: start; }
.form-done { justify-items: start; }
.form-done .blot { width: 80px; height: 80px; }
.form-done[hidden], .enquiry[hidden] { display: none; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 1rem; padding: 0; }
.opt { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid rgba(45, 27, 61, .35); border-radius: 14px; background: var(--paper);
  font: 1.0625rem/1.4 var(--sans); color: var(--plum); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232D1B3D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 42px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 0 0 3px rgba(31, 111, 104, .25); }
.field [aria-invalid='true'] { border-color: var(--coral-text); }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1.5px solid rgba(45, 27, 61, .35); border-radius: 99px; font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip input:focus-visible + span { outline: 3px solid var(--teal-text); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--coral-text); font-weight: 500; }
.enquiry.sending .btn { opacity: .7; pointer-events: none; }
@media (min-width: 960px) { .contact-wrap { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px); align-items: start; } .contact-intro { position: sticky; top: calc(var(--header-h) + 32px); } }

/* simple pages */
.simple-wrap { min-height: 60svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding-block: 64px; }
.simple-wrap .blot { width: 96px; height: 96px; }
.simple-wrap .display { font-size: calc(2.8rem + 3vw); }

/* ---------- reduced motion: a complete still version ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .playhead { display: none; }
}

/* ---------- the recital programme: a printed programme on watercolour paper ---------- */
.programme-sec { padding: clamp(24px, 5vw, 64px) clamp(12px, 4vw, 72px) clamp(64px, 9vw, 120px); }
.programme-card {
  position: relative; max-width: 1120px; margin: 0 auto; background: #fff var(--grain); border-radius: 6px;
  box-shadow: 0 30px 80px -40px rgba(45, 27, 61, .45), 0 2px 10px -4px rgba(45, 27, 61, .12);
  padding: clamp(28px, 6vw, 80px) clamp(18px, 6vw, 88px) clamp(28px, 5vw, 64px);
  outline: 1px solid rgba(45, 27, 61, .14); outline-offset: -10px;
}
.programme-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: clamp(28px, 5vw, 56px); }
.programme-head .display { font-size: calc(2.4rem + 2.6vw); }
.programme-head .display em { display: inline; }
.programme-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--soft); }
.programme-staff { width: min(420px, 100%); --g: 7px; margin-top: 18px; }
.programme-staff .note b { display: block; }
.programme { list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .programme { columns: 2; column-gap: clamp(48px, 6vw, 88px); column-rule: 1px solid rgba(45, 27, 61, .12); } }
.act { break-inside: avoid; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0 18px; border-bottom: 1px solid rgba(45, 27, 61, .1); }
.act-n { grid-row: span 2; position: relative; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--plum); isolation: isolate; }
.act-n .act-blot { position: absolute; inset: -2px; width: 48px; height: 48px; z-index: -1; opacity: .78; background: center / 100% 100% no-repeat; }
.act-name { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; align-self: center; overflow-wrap: anywhere; }
.pieces { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; min-width: 0; }
.pieces li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.piece { font-family: var(--serif); font-style: italic; font-size: 1.1875rem; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.leader { flex: 1 1 24px; min-width: 24px; border-bottom: 1.5px dotted rgba(45, 27, 61, .35); transform: translateY(-4px); }
.composer { font-size: .9375rem; color: var(--soft); letter-spacing: .02em; line-height: 1.35; overflow-wrap: anywhere; margin-left: auto; text-align: right; }
@media (max-width: 559px) {
  .pieces li { display: grid; }
  .leader { display: none; }
  .composer { margin-left: 0; text-align: left; }
}
.programme-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--soft); }
.fine { width: 34px; height: 30px; border-right: 6px solid var(--plum); position: relative; }
.fine::before { content: ''; position: absolute; right: 9px; top: 0; bottom: 0; width: 1.5px; background: var(--plum); }
@media (prefers-reduced-motion: no-preference) {
  .js .act.reveal { transform: translateY(18px); }
  .js .act.reveal .act-n .act-blot { transform: scale(0) rotate(-30deg); transition: transform .9s var(--spring); transition-delay: calc(var(--d, 0) * 120ms + 200ms); }
  .js .act.reveal.in .act-n .act-blot { transform: none; }
}
.chips:has(input[aria-invalid='true']) .chip span { border-color: var(--coral-text); }
@media (max-width: 599px) { .nineteen-staff { --g: 8px; } .nineteen-staff .note b { width: calc(var(--g) * 2.2); height: calc(var(--g) * 2.2); left: calc(var(--g) * -1.1); top: calc(var(--g) * -1.1); } }
@media (max-width: 959px) { .hint { bottom: 10px; z-index: 4; left: 0; right: 0; text-align: center; font-size: .8125rem; } }
@media (max-width: 959px) { .hint { left: 50%; right: auto; transform: translateX(-50%); background: rgba(255, 255, 255, .92); padding: 4px 12px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 8px -4px rgba(45, 27, 61, .4); } }

/* ---------- review round 2 ---------- */
/* phone menu: the sheet ends in a little painted keyboard */
.menu-art { position: relative; margin-top: auto; height: clamp(150px, 30svh, 260px); flex: none; pointer-events: none; margin-inline: calc(-1 * var(--gutter)); margin-bottom: -40px; }
.menu-art img { position: absolute; bottom: 52px; height: auto; }
.menu-art .w1 { left: 4%; width: 34%; opacity: .78; }
.menu-art .w2 { left: 39%; width: 24%; bottom: 70px; opacity: .72; }
.menu-art .w3 { right: 5%; width: 28%; opacity: .78; }
.keys-menu { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; }
.keys-menu .key:nth-child(n + 11) { display: none; }
/* facts: the numeral sits on its blot; the words sit below on clean paper */
.fact { padding: 0; gap: 10px; }
.fact dd { display: flex; flex-direction: column; gap: 10px; }
.fact .blot { position: absolute; left: -14px; top: -18px; width: 1.9em; height: 1.9em; font-size: calc(3.4rem + 1.6vw); }
.fact .num { position: relative; font-size: calc(3.4rem + 1.6vw); white-space: nowrap; }
.fact .num-sm { font-size: calc(2.4rem + 1.2vw); padding-top: .2em; }
@media (max-width: 759px) {
  .facts dl { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fact .num { font-size: 2.6rem; }
  .fact .num-sm { font-size: 1.6rem; padding-top: .45em; white-space: normal; }
  .fact .blot { font-size: 2.6rem; left: -10px; }
  .fact dd, .fact dt { font-size: .875rem; letter-spacing: .04em; }
  .fact dt { letter-spacing: .14em; }
}
/* recital: one-note-per-performer staff, two staves of nine on phones */
.phone-only { display: none; }
@media (max-width: 599px) {
  .wide-only { display: none; }
  .phone-only { display: block; }
  .nineteen-pair { display: grid; gap: 64px; margin: 72px var(--gutter) 32px; }
  .nineteen-pair .nineteen-staff { margin: 0; --g: 9px; }
}
/* programme: two balanced columns with a full-height rule */
.programme { display: grid; }
.programme-col { list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .programme { columns: auto; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 6vw, 88px); } .programme-col + .programme-col { border-left: 1px solid rgba(45, 27, 61, .12); padding-left: clamp(24px, 3vw, 44px); margin-left: calc(-1 * clamp(24px, 3vw, 44px)); } }
/* lessons hero: copy left, paint right */
.page-hero { position: relative; }
.page-hero-art { display: none; }
@media (min-width: 900px) {
  .page-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .page-hero .rule-staff { grid-column: 1 / -1; }
  .page-hero-art { display: block; position: relative; height: 100%; min-height: 360px; }
  .page-hero-art img { position: absolute; bottom: 0; height: auto; }
  .page-hero-art .w1 { left: 6%; width: 36%; --o: .8; }
  .page-hero-art .w2 { left: 46%; width: 24%; bottom: 18%; --o: .75; }
  .page-hero-art .w3 { right: 0; width: 28%; bottom: 4%; --o: .8; }
}
/* lessons: the fees line now lives in the closing band */
.cta-note { color: var(--plum); font-weight: 500; max-width: 40ch; }
/* contact: a message under each field */
.field-msg { color: var(--coral-text); font-size: .9375rem; font-weight: 500; }
.fact:nth-child(3) .blot { width: 3.7em; height: 1.75em; left: -22px; }
@media (max-width: 759px) { .fact:nth-child(3) .blot { width: 2.4em; height: 1.9em; } }
/* blots hug the numeral; the words below sit on clean paper */
.fact .blot { top: -.12em; height: 1.3em; width: 1.6em; left: -.22em; }
.fact:nth-child(3) .blot { width: 3.5em; height: 1.2em; left: -.3em; top: -.08em; }
.fact dd { gap: 14px; }
@media (max-width: 759px) { .fact:nth-child(3) .blot { width: 2.3em; height: 1.4em; top: -.1em; } .fact .num-sm { padding-top: .5em; } .fact:nth-child(3) .blot { top: .15em; } }
@media (max-width: 759px) {
  .fact .num { font-size: min(2.6rem, 10.5vw); white-space: nowrap; }
  .fact .blot { font-size: min(2.6rem, 10.5vw); }
  .fact .num-sm { font-size: min(1.6rem, 6.6vw); padding-top: .55em; }
  .fact:nth-child(3) .blot { font-size: min(1.6rem, 6.6vw); width: 3.4em; height: 1.5em; top: .32em; left: -.35em; }
}
.fact { justify-content: flex-end; }
@media (min-width: 760px) { .fact .num-sm { padding-top: .4em; } .fact:nth-child(3) .blot { top: .2em; height: .86em; } }
.blot-bg { display: block; background: center / 100% 100% no-repeat; }
.fact:not(:nth-child(3)) .blot { width: 1.38em; height: 1.38em; top: -.18em; left: -.2em; }
.stage::before { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
