/* ============================================================
   Impromptu Concerts — standalone stylesheet
   Warm, classical theme for an intimate house-concert series.
   ============================================================ */

:root {
  --ink: #1c1a17;        /* warm near-black text      */
  --ink-soft: #4a4540;   /* muted body text           */
  --parchment: #faf6ef;  /* warm ivory background     */
  --parchment-2: #f3ece0;/* slightly deeper panel     */
  --wine: #6b2737;       /* deep burgundy accent      */
  --wine-deep: #4d1a26;  /* darker burgundy           */
  --gold: #a67c3d;       /* antique gold              */
  --gold-deep: #8a6320;  /* darker gold for text      */
  --gold-tag: #7a5518;   /* gold text on the tinted status pill (5.2:1) */
  --line: rgba(28, 26, 23, 0.1);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background-color: var(--parchment); }

body {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* guard against any element forcing horizontal scroll on mobile */
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.92rem;
  color: var(--gold-deep);
  margin: 0 0 0.75rem;
}
/* the lead-in labels above the big page titles read a touch larger */
.hero .eyebrow, .page-head .eyebrow { font-size: 1.06rem; letter-spacing: 0.32em; }

.rule {
  width: 64px; height: 1px; margin: 1.25rem 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule.center { margin-left: auto; margin-right: auto; }

.muted { color: var(--ink-soft); }

/* Keeps a phrase from breaking across lines — used for the "Impromptu Concerts"
   name in running prose, which should never split. */
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 1.05rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--wine); color: var(--parchment); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-outline { border-color: rgba(28,26,23,.25); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(28,26,23,.05); }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.95rem; }

/* Keyboard-only shortcut past the nav; invisible until it's focused. */
.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -150%);
  z-index: 100; padding: 0.7rem 1.4rem; border-radius: 0 0 8px 8px;
  background: var(--wine); color: var(--parchment); text-decoration: none;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; max-width: var(--max); margin: 0 auto; }
.brand { text-decoration: none; line-height: 1; cursor: default; -webkit-user-select: none; user-select: none; }
.brand .brand-name { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.7rem; color: var(--ink); }
.brand .brand-sub { display: block; margin-top: 0.25rem; font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); }
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--wine); }
/* Colour alone is a 1.12:1 difference here — invisible in greyscale or to a
   red-green colour-blind reader. Underline the current page as well. */
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.mobile-menu a.active { color: var(--wine); box-shadow: inset 3px 0 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--parchment); }
.mobile-menu a { padding: 0.85rem 1.5rem; text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid rgba(28,26,23,.05); }
.mobile-menu.open { display: flex; }

/* ---------- Sections ---------- */
section { }
.section { padding-block: 4.5rem; }   /* vertical only — never override .container's horizontal gutter */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-head h2 { font-size: 2.4rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-block: 6rem 5rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); }

.hero .lead { font-size: 1.5rem; max-width: 40rem; margin: 1.75rem auto 0.75rem; color: var(--ink-soft); }
.hero .sub { max-width: 40rem; margin: 0 auto; color: var(--ink-soft); }
.hero .cta { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature trio ---------- */
.features { display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr); }
.feature { text-align: center; }
.feature .icon {
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(166,124,61,.45); border-radius: 999px;
  font-size: 1.5rem;
}
.feature h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }

/* ---------- Empty state (no upcoming concerts) ---------- */
.empty-state {
  grid-column: 1 / -1;          /* span the full cards grid when used there */
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(28,26,23,.22);
  border-radius: 12px;
}
.empty-state p { color: var(--ink-soft); font-size: 1.15rem; margin: 0 auto; max-width: 32rem; }
.empty-state .btn { margin-top: 1.5rem; }
/* When the notice is all there is, give it one wide column instead of sitting
   inside a card-width track. */
.cards:has(.empty-state) { grid-template-columns: minmax(0, 46rem); }

/* ---------- Concert cards ---------- */
/* Capped, centred columns rather than a rigid 3-up: with two concerts on the
   calendar a fixed 3-column grid left an empty third of the row. */
.cards {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card-head { padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.card-head .ensemble { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); }
.card-head h3 { font-size: 1.6rem; }
.card-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.9rem; }
.card-meta div { margin-bottom: 0.2rem; }
.card-body .blurb { flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; gap: 0.75rem; }

.tag { border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.78rem; letter-spacing: 0.02em; white-space: nowrap; }
.tag-available { background: rgba(107,39,55,.1); color: var(--wine); }
.tag-few { background: rgba(166,124,61,.16); color: var(--gold-tag); }   /* own tint darkens the bg — needs its own value */
.tag-sold { background: rgba(28,26,23,.1); color: var(--ink-soft); }
.tag-past { background: rgba(28,26,23,.1); color: var(--ink-soft); }

/* ---------- Ensembles strip ---------- */
.ensembles { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center; }
.ensembles span { font-family: 'Cormorant Garamond', serif; font-size: 2rem; }

/* ---------- Generic page header ---------- */
.page-head { text-align: center; padding-block: 4.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.page-head p { max-width: 38rem; margin: 1.25rem auto 0; color: var(--ink-soft); }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; margin: 0 auto; }
.prose p { font-size: 1.15rem; }
blockquote {
  margin: 3rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.6rem; line-height: 1.35; color: var(--ink);
}

/* ---------- About cellist ---------- */
.bio { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.bio .portrait {
  aspect-ratio: 4/5; border-radius: 12px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  display: flex; align-items: center; justify-content: center; max-width: 320px; width: 100%; margin: 0 auto;
}
.bio .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.bio .portrait span { font-family: 'Cormorant Garamond', serif; font-size: 5rem; color: rgba(250,246,239,.3); }

/* ---------- Programs ---------- */
.program {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem; margin-bottom: 2rem;
}
.program-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.program-head h3 { font-size: 1.9rem; }
.program-head .when { color: var(--ink-soft); text-align: right; }
.program-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.subhead { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.75rem; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { padding-bottom: 0.75rem; margin-bottom: 0.75rem; border-bottom: 1px dashed var(--line); }
.work-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.work-list .composer { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.work-list .work { font-style: italic; color: var(--ink-soft); }
.performer-list { list-style: none; margin: 0; padding: 0; }
.performer-list li { color: var(--ink-soft); margin-bottom: 0.3rem; }
.performer-list .name { color: var(--ink); font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }

/* ---------- Tickets ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.step .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step h3 { font-size: 1.3rem; }

.info-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.info-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.info-list li:last-child { margin-bottom: 0; }
.info-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.price-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.price-list li:last-child { border-bottom: 0; }
.price-list .title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.price-list .price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--wine); }
.price-list .price small { font-family: 'EB Garamond', serif; font-size: 0.85rem; color: var(--ink-soft); }
.price-right { display: flex; align-items: center; gap: 1rem; }

/* ---------- Form ---------- */
.form-card { border: 1px solid var(--line); border-radius: 12px; padding: 2.25rem; }
.field { display: block; margin-bottom: 1.4rem; }
.field > span { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(28,26,23,.2); border-radius: 8px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); }
.input-money { position: relative; }
.input-money-prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink); font-size: 1rem; pointer-events: none; }
.input-money input { padding-left: 1.55rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.estimate { border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 1rem; }
.form-note { text-align: center; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.5rem; }
/* Spells out the selected concert in full — the closed <select> is too narrow on
   a phone to show the date and time that tell two showings apart. */
#concert-detail { margin: -0.9rem 0 1.4rem; font-size: 0.95rem; color: var(--ink-soft); }
.form-error { text-align: center; font-size: 0.95rem; color: var(--wine); margin-top: 0.85rem; }

/* ---------- Opening cello intro (homepage; shown only when html.intro-play is set) ---------- */
#intro { display: none; }
.intro-play #intro {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 9999; background: #f9f1ed;
  --ic-hold: .6s; --ic-flight: 3s; --ic-settle: .9s; --ic-reveal: .8s;
  --ic-end: calc(var(--ic-hold) + var(--ic-flight) + var(--ic-settle));
  animation: icStage var(--ic-reveal) ease var(--ic-end) forwards;
}
@keyframes icStage { to { background: rgba(249,241,237,0); } }
/* until the intro art is loaded, freeze every intro animation at frame 0 so it never opens mid-way */
.intro-wait #intro, .intro-wait #intro * { animation-play-state: paused !important; }
/* …and keep the lockup itself invisible until then. Pausing the animation was
   not enough: the wordmark still painted in the fallback serif, which has no
   600 weight, so the browser synthesised a faux-bold that flashed heavy for a
   moment before Cormorant Garamond swapped in. The parchment backdrop stays
   up throughout, so nothing behind the overlay is exposed. */
.intro-wait #intro .ic-logo { opacity: 0; }
/* Anyone who has asked their OS for less motion goes straight to the page.
   (index.html also skips adding .intro-play, so the overlay never mounts —
   this is the belt-and-braces half.) */
@media (prefers-reduced-motion: reduce) {
  .intro-play #intro { display: none; }
}

#intro .ic-logo {
  position: relative; transform-origin: center;
  width: 800px; height: 471px; flex-shrink: 0;   /* keep the 800px coord space; --ic-s alone scales it to fit */
  /* Two independent ladders below, whichever is tighter wins.
     The height one exists because the cello's arc reaches 91 units above the
     lockup's own top edge (measured), and the 471-unit lockup is centred — so
     the content needs 235.5 + 91 = 326.5 units above centre, i.e. half the
     viewport height. Without it the scroll is sliced off on landscape phones.
     Both ladders must yield plain numbers: min() mixing a number with a length
     (e.g. 100dvh/680) is invalid and silently leaves the lockup unscaled. */
  --ic-w: .9;   /* width ladder  */
  --ic-t: .9;   /* height ladder */
  --ic-s: min(var(--ic-w), var(--ic-t));
  transform: scale(var(--ic-s));
  animation: icLogoOut var(--ic-reveal) ease var(--ic-end) forwards;
}
@keyframes icLogoOut { to { opacity: 0; transform: scale(calc(var(--ic-s) * 1.05)); } }
@media (max-width: 880px) { #intro .ic-logo { --ic-w: .70; } }
@media (max-width: 700px) { #intro .ic-logo { --ic-w: .56; } }
@media (max-width: 560px) { #intro .ic-logo { --ic-w: .45; } }
@media (max-width: 440px) { #intro .ic-logo { --ic-w: .36; } }
@media (max-width: 360px) { #intro .ic-logo { --ic-w: .30; } }
/* Height ladder: the arc needs 326.5 units above centre, so scale <= height/653.
   Each value is computed from its bucket's LOWER bound (the shortest viewport
   that lands in it), and divided by 700 rather than 653 to leave room for the
   cello's drop-shadow, which paints outside the layout box that was measured.
   min() above takes whichever ladder is tighter. */
@media (max-height: 620px) { #intro .ic-logo { --ic-t: .80; } }
@media (max-height: 560px) { #intro .ic-logo { --ic-t: .71; } }
@media (max-height: 500px) { #intro .ic-logo { --ic-t: .63; } }
@media (max-height: 440px) { #intro .ic-logo { --ic-t: .57; } }
@media (max-height: 400px) { #intro .ic-logo { --ic-t: .51; } }
@media (max-height: 360px) { #intro .ic-logo { --ic-t: .45; } }
@media (max-height: 320px) { #intro .ic-logo { --ic-t: .40; } }
#intro .ic-l1, #intro .ic-l2 {
  position: absolute; font-family: 'Cormorant Garamond', serif; font-weight: 600;
  color: #1c1a17; line-height: 1; white-space: nowrap;
}
#intro .ic-l1 { left: 74px;  top: 140px; font-size: 128px; }
#intro .ic-tee { display: inline-block; transform: scaleY(1.42); transform-origin: left 110.2px; }
#intro .ic-l2 { left: 150px; top: 300px; font-size: 128px; }
/* small cover over the t's right crossbar-arm: hidden behind the bow at rest,
   fades away the instant the cello moves so the full crossbar is revealed */
#intro .ic-tcover { position: absolute; left: 579px; top: 168.5px; width: 26px; height: 24px; background: #f9f1ed; animation: icTcover var(--ic-flight) linear var(--ic-hold) both; }
@keyframes icTcover { 0%{opacity:1} 2%{opacity:0} 98%{opacity:0} 100%{opacity:1} }
/* the "u": appears the instant the cello starts moving, gone as it returns */
#intro .ic-u {
  position: absolute; left: 596px; top: 140px;
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 128px;
  color: #1c1a17; line-height: 1; opacity: 0;
  will-change: opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  animation: icU var(--ic-flight) linear var(--ic-hold) both;
}
@keyframes icU { 0%{opacity:0} 2%,98%{opacity:1} 100%{opacity:0} }

#intro .ic-flight {
  position: absolute; left: 528px; top: 16.5px; width: 212px;
  transform-origin: 50% 55%; will-change: transform;
  animation: icFlight var(--ic-flight) linear var(--ic-hold) both;
}
#intro .ic-flight img { width: 100%; height: auto; max-width: none; display: block;
  filter: drop-shadow(0 5px 8px rgba(20,12,4,.18)); }

#intro .ic-halo {
  display: none;   /* removed: warm glow read as a box flashing when the cello moved */
  position: absolute; left: 50%; top: 52%; width: 260%; height: 170%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(220,180,108,.6), rgba(220,180,108,0) 62%);
  filter: blur(7px); opacity: 0; z-index: -1; pointer-events: none;
  animation: icHalo var(--ic-flight) ease var(--ic-hold) both;
}
@keyframes icHalo { 0%{opacity:0} 14%{opacity:.55} 82%{opacity:.55} 100%{opacity:0} }

#intro .ic-trail {
  display: none;   /* removed: blurred trail smudged past the "t" */
  z-index: -2; opacity: 0;
  animation: icFlight var(--ic-flight) linear calc(var(--ic-hold) + .09s) both,
             icTrail var(--ic-flight) linear calc(var(--ic-hold) + .09s) both;
}
#intro .ic-trail img { filter: blur(3px); }
@keyframes icTrail { 0%{opacity:0} 12%{opacity:.20} 84%{opacity:.20} 100%{opacity:0} }

@keyframes icFlight {
  0.000% { transform: translate(0.0px,0.0px) rotate(0.00deg) scale(1.000); }
  2.273% { transform: translate(-6.0px,-1.7px) rotate(0.01deg) scale(1.020); }
  4.545% { transform: translate(-22.0px,-6.3px) rotate(0.07deg) scale(1.071); }
  6.818% { transform: translate(-45.2px,-12.7px) rotate(0.22deg) scale(1.144); }
  9.091% { transform: translate(-73.5px,-20.0px) rotate(0.49deg) scale(1.227); }
  11.364% { transform: translate(-104.8px,-27.2px) rotate(0.93deg) scale(1.310); }
  13.636% { transform: translate(-136.9px,-33.1px) rotate(1.54deg) scale(1.382); }
  15.909% { transform: translate(-166.3px,-36.5px) rotate(2.34deg) scale(1.431); }
  18.182% { transform: translate(-187.9px,-36.2px) rotate(3.34deg) scale(1.448); }
  20.455% { transform: translate(-205.8px,-33.4px) rotate(4.52deg) scale(1.448); }
  22.727% { transform: translate(-226.0px,-29.0px) rotate(5.85deg) scale(1.448); }
  25.000% { transform: translate(-247.5px,-22.5px) rotate(7.27deg) scale(1.448); }
  27.273% { transform: translate(-269.1px,-13.7px) rotate(8.69deg) scale(1.448); }
  29.545% { transform: translate(-289.2px,-2.2px) rotate(10.01deg) scale(1.448); }
  31.818% { transform: translate(-305.6px,12.1px) rotate(11.10deg) scale(1.448); }
  34.091% { transform: translate(-316.3px,28.7px) rotate(11.80deg) scale(1.448); }
  36.364% { transform: translate(-319.1px,47.2px) rotate(11.99deg) scale(1.448); }
  38.636% { transform: translate(-312.3px,66.5px) rotate(11.54deg) scale(1.448); }
  40.909% { transform: translate(-294.9px,85.2px) rotate(10.39deg) scale(1.448); }
  43.182% { transform: translate(-267.0px,102.0px) rotate(8.55deg) scale(1.448); }
  45.455% { transform: translate(-229.7px,115.3px) rotate(6.09deg) scale(1.448); }
  47.727% { transform: translate(-185.4px,123.9px) rotate(3.17deg) scale(1.448); }
  50.000% { transform: translate(-137.3px,126.9px) rotate(0.00deg) scale(1.448); }
  52.273% { transform: translate(-89.2px,123.9px) rotate(-3.17deg) scale(1.448); }
  54.545% { transform: translate(-44.9px,115.3px) rotate(-6.09deg) scale(1.448); }
  56.818% { transform: translate(-7.6px,102.0px) rotate(-8.55deg) scale(1.448); }
  59.091% { transform: translate(20.4px,85.2px) rotate(-10.39deg) scale(1.448); }
  61.364% { transform: translate(37.8px,66.5px) rotate(-11.54deg) scale(1.448); }
  63.636% { transform: translate(44.6px,47.2px) rotate(-11.99deg) scale(1.448); }
  65.909% { transform: translate(41.8px,28.7px) rotate(-11.80deg) scale(1.448); }
  68.182% { transform: translate(31.0px,12.1px) rotate(-11.10deg) scale(1.448); }
  70.455% { transform: translate(14.6px,-2.2px) rotate(-10.01deg) scale(1.448); }
  72.727% { transform: translate(-5.5px,-13.7px) rotate(-8.69deg) scale(1.448); }
  75.000% { transform: translate(-27.1px,-22.5px) rotate(-7.27deg) scale(1.448); }
  77.273% { transform: translate(-48.6px,-29.0px) rotate(-5.85deg) scale(1.448); }
  79.545% { transform: translate(-68.7px,-33.4px) rotate(-4.52deg) scale(1.448); }
  81.818% { transform: translate(-86.6px,-36.2px) rotate(-3.34deg) scale(1.448); }
  84.091% { transform: translate(-98.0px,-36.5px) rotate(-2.34deg) scale(1.431); }
  86.364% { transform: translate(-97.1px,-33.1px) rotate(-1.54deg) scale(1.382); }
  88.636% { transform: translate(-85.3px,-27.2px) rotate(-0.93deg) scale(1.310); }
  90.909% { transform: translate(-65.9px,-20.0px) rotate(-0.49deg) scale(1.227); }
  93.182% { transform: translate(-43.1px,-12.7px) rotate(-0.22deg) scale(1.144); }
  95.455% { transform: translate(-21.7px,-6.3px) rotate(-0.07deg) scale(1.071); }
  97.727% { transform: translate(-6.0px,-1.7px) rotate(-0.01deg) scale(1.020); }
  100.000% { transform: translate(0.0px,0.0px) rotate(-0.00deg) scale(1.000); }
}


/* ---------- Inline line-icons (replace emoji) ---------- */
.ic { width: .92em; height: .92em; vertical-align: -.12em; margin-right: .5em; opacity: .78; }

/* ---------- Past performers roster ---------- */
.name-grid {
  list-style: none; padding: 0; margin: 1.6rem auto 0; max-width: 680px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem 1.5rem;
}
.name-grid li { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 600px) { .name-grid { grid-template-columns: repeat(2, 1fr); text-align: left; max-width: 24rem; } }
.confirm { text-align: center; border: 1px solid rgba(166,124,61,.45); border-radius: 12px; padding: 2.25rem; }
.confirm .check { font-size: 2.5rem; color: var(--wine); }
.hidden { display: none; }
/* Present to screen readers and the heading outline, invisible on screen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem; }
.footer-grid h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0.015em; color: var(--ink); }
/* Footer wordmark = the intro's rest frame (before the cello moves), rebuilt live.
   Values copied verbatim from #intro .ic-* with animations stripped, the "u" and
   trail/halo dropped, and the t-cover recolored to the footer bg (parchment-2). */
/* Gold ring around the lockup (matches the old badge: outer ring + thin inner ring) */
.footer-badge {
  width: 230px; height: 230px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.footer-badge::after {          /* thin inner ring */
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--gold); border-radius: 50%; pointer-events: none;
}
.footer-lockup {
  --fl-s: 0.245;                              /* scales the 800-unit intro coord space */
  position: relative; overflow: visible;
  width: calc(661px * var(--fl-s));           /* measured ink bbox of the rest frame */
  height: calc(389px * var(--fl-s));
  transform: translateY(-9px);                /* nudge up so the text block reads centered (cello sticks up top-right) */
}
.footer-lockup .fl-inner {
  position: absolute; top: 0; left: 0; width: 800px; height: 471px;
  transform-origin: top left;
  transform: scale(var(--fl-s)) translate(-79px, -17px);  /* shift ink bbox to origin */
}
.footer-lockup .ic-l1, .footer-lockup .ic-l2 {
  position: absolute; font-family: 'Cormorant Garamond', serif; font-weight: 600;
  color: #1c1a17; line-height: 1; white-space: nowrap;
}
.footer-lockup .ic-l1 { left: 74px;  top: 140px; font-size: 128px; }
.footer-lockup .ic-tee { display: inline-block; transform: scaleY(1.42); transform-origin: left 110.2px; }
.footer-lockup .ic-l2 { left: 150px; top: 300px; font-size: 128px; }
.footer-lockup .ic-tcover { position: absolute; left: 579px; top: 168.5px; width: 26px; height: 24px; background: var(--parchment); }
.footer-lockup .ic-flight { position: absolute; left: 528px; top: 16.5px; width: 212px; }
.footer-lockup .ic-flight img { width: 100%; height: auto; max-width: none; display: block;
  filter: drop-shadow(0 5px 8px rgba(20,12,4,.18)); }
.footer-grid h2 { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.75rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--wine); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 1.25rem 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .features, .cards, .steps { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .program-head .when { text-align: left; }
}

@media (max-width: 600px) {
  /* Give text real breathing room from the screen edges. */
  .container { padding: 0 1.75rem; }
  .nav { padding: 1.1rem 1.75rem; }
  /* vertical-only so they don't wipe out .container's horizontal gutter */
  .hero { padding-block: 3.5rem 3rem; }
  .section { padding-block: 3rem; }
  .page-head { padding-block: 3rem; }
  /* Ease the giant display sizes down so headings wrap comfortably inside the
     gutter instead of running to the very edge. */
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero .lead { font-size: 1.25rem; }
  .hero .sub { font-size: 1rem; }
  .section-head h2 { font-size: 1.9rem; }
  .page-head h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  blockquote { font-size: 1.35rem; }
  .program { padding: 1.5rem; }
  /* Smaller footer badge on phones so it doesn't look oversized when stacked,
     with a top margin so it clears the footer's top line (the .container mobile
     rule zeroes the grid's vertical padding). */
  .footer-badge { width: 180px; height: 180px; margin-top: 1.5rem; }
  .footer-badge::after { inset: 5px; }
  .footer-lockup { --fl-s: 0.192; transform: translateY(-7px); }
}

/* Panels are intentionally unfilled — they read as outlined cards on the shared
   parchment ground, and the alternating band tint is off. (This used to be a
   blanket `background: transparent` override at the bottom of the file, left
   over from the retired flowing-score background; it is now simply the absence
   of a fill on each panel, which renders identically.) */
