/*
 * Cantabile — main stylesheet
 * A design in six movements, for a professional cellist.
 *
 * Palette is instrument-derived: ebony fingerboard, parchment score paper,
 * spruce-under-varnish amber, tailpiece brass.
 */

/* ---------------------------------------------------------------------------
 * 0. Tokens & reset
 * ------------------------------------------------------------------------ */

:root {
  --ebony:        #171310;
  --ebony-2:      #201a15;
  --ebony-3:      #2a221b;
  --parchment:    #f3ecdd;
  --parchment-2:  #ece2cd;
  --parchment-3:  #e3d7bd;

  --ink:          #2b241d;
  --ink-soft:     #6b5f4f;

  --cream:        #f3ecdd;
  --cream-soft:   #cfc4b0;
  --cream-faint:  #a2977f;

  --amber:        #c98a4b;
  --amber-bright: #e0a568;
  --amber-deep:   #96551f; /* 4.9:1 on parchment — AA for normal text */
  --brass:        #c9a548;

  --line-dark:    rgba(243, 236, 221, 0.14);
  --line-darker:  rgba(243, 236, 221, 0.08);
  --line-light:   rgba(43, 36, 29, 0.18);

  --serif: "Libre Bodoni", "Bodoni MT", Didot, "Palatino Linotype", Georgia, serif;
  --sans:  "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --movement-pad: clamp(4.5rem, 11vw, 8.5rem);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-card: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--ebony);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: inherit;
}

p { margin: 0 0 1.2em; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection { background: var(--amber); color: var(--ebony); }

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

/* On parchment the bright amber ring is under 3:1 — use the deep amber there. */
.is-light :focus-visible,
.inquiry-card :focus-visible {
  outline-color: var(--amber-deep);
}

.container {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7em 1.4em;
  background: var(--amber);
  color: var(--ebony);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 3px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 1. Recurring motifs
 * ------------------------------------------------------------------------ */

/* Bow-hair scroll progress line */
.bow-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
  z-index: 130;
  box-shadow: 0 0 12px rgba(224, 165, 104, 0.55);
}

/* Movement labels — "II. Allemande" */
.movement-label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.movement-label::before {
  content: "";
  width: 2.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.movement-label .movement-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}

.movement { padding-block: var(--movement-pad); position: relative; }

.movement-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.movement-head.is-centered { margin-inline: auto; text-align: center; }
.movement-head.is-centered .movement-label::after {
  content: "";
  width: 2.6em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.movement-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: 0.01em;
}
.movement-intro {
  font-size: 1.1rem;
  color: var(--cream-soft);
  max-width: 38rem;
}
.movement-head.is-centered .movement-intro { margin-inline: auto; }

/* Light (parchment) movements */
.movement.is-light {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(201, 138, 75, 0.12), transparent 60%),
    var(--parchment);
  color: var(--ink);
}
.movement.is-light .movement-intro { color: var(--ink-soft); }
.movement.is-light .movement-label { color: var(--amber-deep); }
.movement.is-light ::selection { background: var(--amber-deep); color: var(--parchment); }

/* Deep (listening room) movement — house lights down */
.movement.is-deep {
  background:
    radial-gradient(90% 70% at 15% 110%, rgba(164, 98, 47, 0.18), transparent 60%),
    radial-gradient(120% 100% at 50% 0%, rgba(0, 0, 0, 0.5), transparent 60%),
    #0e0b09;
}

/* Pluckable string dividers */
.string-divider {
  position: relative;
  height: 84px;
  background: var(--ebony);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Note names appear at the pegs once sound is on (S3) */
.string-note {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-170%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.string-divider.on-light .string-note { color: var(--amber-deep); }
body.sound-on .string-note { opacity: 0.85; }
.string-divider.on-light { background: var(--parchment); }
.string-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.string-divider .string-path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
  opacity: 0.65;
}
.string-divider.on-light .string-path { stroke: var(--amber-deep); opacity: 0.6; }
.string-divider .string-peg { fill: var(--brass); opacity: 0.9; }
.string-divider .pluck-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.string-divider.on-light .pluck-hint { color: var(--ink-soft); }
.string-divider:hover .pluck-hint { opacity: 0.8; }

/* Opt-in sound toggle — a fixed pill, available wherever the visitor is */
.string-sound-toggle {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1.1em;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-soft);
  border: 1px solid rgba(243, 236, 221, 0.28);
  border-radius: 999px;
  background: rgba(23, 19, 16, 0.78);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
  transition: color 0.3s, border-color 0.3s;
}
.string-sound-toggle:hover { color: var(--cream); border-color: var(--amber); }
.string-sound-toggle[aria-pressed="true"] {
  color: var(--amber-bright);
  border-color: var(--amber);
}
.string-sound-toggle[hidden] { display: none; }

/* Fingerboard navigation — positions I–VI on a string (S1, desktop only) */
.position-rail {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 105;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}
.position-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 138, 75, 0.5) 12%, rgba(201, 138, 75, 0.5) 88%, transparent);
}
.position-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--cream-faint);
  background: rgba(23, 19, 16, 0.72);
  border: 1px solid rgba(243, 236, 221, 0.16);
  border-radius: 6px;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.position-rail a:hover { color: var(--cream); border-color: var(--amber); }
.position-rail a[aria-current="true"] {
  color: var(--amber-bright);
  border-color: var(--amber);
  background: rgba(23, 19, 16, 0.92);
}
.position-rail .rail-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.35em 0.9em;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: rgba(23, 19, 16, 0.92);
  border: 1px solid rgba(243, 236, 221, 0.16);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.position-rail a:hover .rail-tip,
.position-rail a:focus-visible .rail-tip { opacity: 1; }

@media (min-width: 1100px) {
  .position-rail { display: flex; }
}

/* Staff rule — five hairlines */
.staff-rule {
  height: 25px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-dark) 0, var(--line-dark) 1px,
    transparent 1px, transparent 6px
  );
  background-size: 100% 25px;
  background-repeat: no-repeat;
  border: 0;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95em 2.1em;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #1c1108;
  box-shadow: 0 10px 30px -12px rgba(201, 138, 75, 0.65);
}
.btn-solid:hover { box-shadow: 0 16px 38px -12px rgba(224, 165, 104, 0.8); }

.btn-ghost {
  border-color: rgba(243, 236, 221, 0.35);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-bright); }

.is-light .btn-ghost,
.btn-ghost.on-light {
  border-color: rgba(43, 36, 29, 0.35);
  color: var(--ink);
}
.is-light .btn-ghost:hover,
.btn-ghost.on-light:hover { border-color: var(--amber-deep); color: var(--amber-deep); }

/* Inline text link with sliding underline */
.text-link {
  position: relative;
  display: inline-block;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--amber);
  padding-bottom: 3px;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.text-link:hover::after { transform: scaleX(1); }
.is-light .text-link { color: var(--amber-deep); }

/* Reveal-on-scroll — scoped to html.js so content stays visible without JS.
 * Each movement sets --tempo to the character of its dance (S2). */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--tempo, 0.9s) var(--ease-out), transform var(--tempo, 0.9s) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tempo-true motion: Allemande unhurried, Courante running, Sarabande a slow
 * bloom, Bourrée crisp, Gigue lively. */
.hero          { --tempo: 0.8s; }
#about         { --tempo: 0.95s; }
#performances  { --tempo: 0.45s; }
#listen        { --tempo: 1.3s; }
#studio        { --tempo: 0.4s; }
#contact       { --tempo: 0.55s; }

/* ---------------------------------------------------------------------------
 * 2. Header & navigation
 * ------------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  padding: 1.4rem 0;
  transition: padding 0.4s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  padding: 0.8rem 0;
  background: rgba(23, 19, 16, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-darker), 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  line-height: 1;
}
/* An emblem, not an initial: enclosed so it never reads as part of the name. */
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(201, 165, 72, 0.45);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--amber);
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream);
  white-space: nowrap;
}
.brand-role {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.site-nav { display: flex; align-items: center; gap: 2.2rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 0.4em 0;
  transition: color 0.3s;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-list a:hover,
.nav-list a.is-current { color: var(--cream); }
.nav-list a:hover::after,
.nav-list a.is-current::after { transform: scaleX(1); }

.nav-cta { padding: 0.75em 1.6em; font-size: 0.72rem; }

/* Mobile toggle — three strings */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-toggle-line {
  display: block;
  height: 1.5px;
  background: var(--cream);
  margin: 6px 0;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  /* backdrop-filter would make the header the containing block for the
   * fixed overlay below (Filter Effects L2), collapsing the menu to a
   * header-height strip — so the blur is desktop-only. */
  .site-header.is-scrolled {
    background: rgba(23, 19, 16, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 125;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    background:
      radial-gradient(80% 60% at 50% 110%, rgba(164, 98, 47, 0.25), transparent 65%),
      rgba(18, 14, 11, 0.98);
    opacity: 0;
    visibility: hidden;
    /* visibility flips instantly on open (so links are focusable at once)
     * and only after the fade on close. */
    transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
  }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out), visibility 0s;
  }
  body.nav-open { overflow: hidden; }

  .nav-list {
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
  }
  .nav-list a {
    font-family: var(--serif);
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--cream);
  }
}

/* ---------------------------------------------------------------------------
 * 3. Movement I — Prélude (hero)
 * ------------------------------------------------------------------------ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 16vh, 10rem) clamp(5rem, 12vh, 7rem);
  background:
    radial-gradient(85% 75% at 8% 105%, rgba(164, 98, 47, 0.32), transparent 62%),
    radial-gradient(60% 50% at 95% -5%, rgba(201, 165, 72, 0.10), transparent 60%),
    var(--ebony);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Art-directed portrait: duotone, dissolving into the stage light. */
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: clamp(340px, 46vw, 720px);
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 98%);
  mask-image: linear-gradient(to left, #000 52%, transparent 98%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  /* Waist-up presence rather than a full figure floating in the dark. */
  transform: scale(1.3);
  transform-origin: 58% 6%;
  filter: grayscale(0.12) sepia(0.14) brightness(0.82) contrast(1.04) saturate(1.15);
}
/* Suppress the pale studio backdrop while keeping her warm and present. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(23, 19, 16, 0.95) 6%, rgba(23, 19, 16, 0) 40%),
    linear-gradient(200deg, rgba(23, 19, 16, 0.78) 0%, rgba(23, 19, 16, 0.16) 30%, transparent 52%),
    linear-gradient(to right, transparent 74%, rgba(23, 19, 16, 0.45) 100%),
    radial-gradient(95% 75% at 60% 38%, transparent 46%, rgba(23, 19, 16, 0.22) 85%),
    radial-gradient(85% 60% at 66% 24%, rgba(201, 138, 75, 0.12), transparent 70%);
}
/* Her cello's real f-holes are in frame — retire the glyph ghosts. */
.hero.has-photo .hero-fholes { display: none; }
.hero.has-photo .hero-curves { opacity: 0.55; }

/* Opening gesture: the curves draw themselves in once. */
.hero-curves path {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: curve-draw 1.7s var(--ease-out) forwards;
}
.hero-curves path:nth-child(2) { animation-delay: 0.18s; }
.hero-curves path:nth-child(3) { animation-delay: 0.36s; }
.hero-curves path:nth-child(4) { animation-delay: 0.54s; }
@keyframes curve-draw {
  to { stroke-dashoffset: 0; }
}
.hero-curves {
  position: absolute;
  right: -12%;
  top: 50%;
  width: clamp(480px, 58vw, 900px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.85;
}
.hero-fholes {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-52%);
  display: flex;
  gap: clamp(3rem, 8vw, 7rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16rem, 30vw, 30rem);
  line-height: 1;
  color: var(--cream);
  opacity: 0.045;
  user-select: none;
}
.hero-fholes span:last-child { transform: scaleX(-1); }

.hero-inner { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(3.2rem, 9.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-left: -0.05em; /* optical alignment of the initial cap */
  margin-bottom: 0.18em;
  max-width: 10em;
}

.hero-conceit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: var(--cream-faint);
  margin: -0.5rem 0 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--amber-bright);
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--cream-soft);
  margin-bottom: 1.4em;
}
.hero-sub .sep { color: var(--amber); padding-inline: 0.45em; }

.hero-lede {
  max-width: 33rem;
  color: var(--cream-soft);
  margin-bottom: 2.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-faint);
  z-index: 2;
}
.scroll-cue-line {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--amber-bright));
  animation: bow-draw 2.4s var(--ease-out) infinite;
}
@keyframes bow-draw {
  0%   { top: -100%; }
  55%  { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 860px) {
  .hero-curves { right: -45%; opacity: 0.5; }
  .hero-fholes { right: -8%; opacity: 0.035; }
  .scroll-cue { display: none; }
  /* Mobile keeps the clean typographic hero; her photo arrives in About. */
  .hero-photo { display: none; }
  .hero.has-photo .hero-fholes { display: flex; }
}

@media (max-width: 520px) {
  .brand-role { display: none; }
}

/* ---------------------------------------------------------------------------
 * 4. Movement II — Allemande (about)
 * ------------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.portrait { margin: 0; position: sticky; top: 110px; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(90% 70% at 75% 12%, rgba(224, 165, 104, 0.4), transparent 55%),
    radial-gradient(120% 100% at 20% 100%, rgba(42, 34, 27, 0.9), transparent 70%),
    linear-gradient(160deg, #3a2a1e 0%, #201712 55%, #14100c 100%);
  box-shadow: var(--shadow-card);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 165, 72, 0.35);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
/* Engraving ticks at the corners */
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  background:
    linear-gradient(var(--brass), var(--brass)) left top / 14px 1px,
    linear-gradient(var(--brass), var(--brass)) left top / 1px 14px,
    linear-gradient(var(--brass), var(--brass)) right top / 14px 1px,
    linear-gradient(var(--brass), var(--brass)) right top / 1px 14px,
    linear-gradient(var(--brass), var(--brass)) left bottom / 14px 1px,
    linear-gradient(var(--brass), var(--brass)) left bottom / 1px 14px,
    linear-gradient(var(--brass), var(--brass)) right bottom / 14px 1px,
    linear-gradient(var(--brass), var(--brass)) right bottom / 1px 14px;
  background-repeat: no-repeat;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11rem;
  color: rgba(224, 165, 104, 0.16);
  user-select: none;
}
.portrait-caption {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about-body .lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
}
/* Engraver's grace: a program-book drop cap on the biography's first line (S7) */
.about-body .lead::first-letter {
  float: left;
  font-size: 2.9em;
  line-height: 0.82;
  padding: 0.06em 0.14em 0 0;
  font-weight: 500;
  color: var(--amber-deep);
}
.about-body p { color: #4a4034; }

.pull-quote {
  position: relative;
  margin: 3.2rem 0 2.4rem;
  padding-left: 1.6rem;
  border-left: 2px solid var(--amber-deep);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 0.6rem;
  top: -1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--amber-deep);
  opacity: 0.3;
  pointer-events: none;
}
.pull-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.6rem 0 0;
  padding: 2rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}
.fact-row .fact-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.fact-row .fact-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 420px; }
  .fact-row { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------------
 * 5. Movement III — Courante (performances & accomplishments)
 * ------------------------------------------------------------------------ */

/* Milestones strung on a string */
.milestones {
  position: relative;
  max-width: 56rem;
  margin: 0 auto clamp(4rem, 9vw, 6.5rem);
  padding: 1rem 0;
  list-style: none;
}
.milestones::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--amber) 12%, var(--amber) 88%, transparent);
  opacity: 0.55;
}

.milestone {
  position: relative;
  width: 50%;
  padding: 0 3rem 2.8rem 0;
  text-align: right;
}
.milestone:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 2.8rem 3rem;
  text-align: left;
}

/* Note-head marker */
.milestone::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: -7px;
  width: 14px;
  height: 11px;
  background: var(--amber-bright);
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 0 4px var(--ebony), 0 0 14px rgba(224, 165, 104, 0.7);
}
.milestone:nth-child(even)::before { right: auto; left: -7px; }

/* Note stems — each milestone a quiet eighth note on the string */
.milestone::after {
  content: "";
  position: absolute;
  top: calc(0.5rem - 23px);
  right: -6.5px;
  width: 1.5px;
  height: 26px;
  background: linear-gradient(to top, var(--amber-bright), rgba(224, 165, 104, 0.12));
  transform: rotate(-2deg);
}
.milestone:nth-child(even)::after { right: auto; left: 4px; }

.milestone::before { transition: box-shadow 0.35s, transform 0.35s var(--ease-out); }
.milestone-year { transition: color 0.35s; }
.milestone:hover::before {
  box-shadow: 0 0 0 4px var(--ebony), 0 0 22px rgba(224, 165, 104, 0.95);
  transform: rotate(-22deg) scale(1.15);
}
.milestone:hover .milestone-year { color: var(--amber-bright); }

/* Program-note citation cards (S4) — the receipts, on hover or focus */
.milestone-source {
  position: absolute;
  top: calc(100% - 1.6rem);
  right: 3rem;
  z-index: 3;
  max-width: 21rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--ink-soft);
  background: var(--parchment);
  border-radius: 3px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  transform: translateY(4px);
}
.milestone-source::before {
  content: "Source · ";
  color: var(--amber-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.milestone:nth-child(even) .milestone-source { right: auto; left: 3rem; }
.milestone:hover .milestone-source,
.milestone:focus-within .milestone-source,
.milestone:focus .milestone-source {
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .milestone-source,
  .milestone:nth-child(even) .milestone-source { right: auto; left: 2.4rem; }
}

.milestone-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.milestone h3 {
  font-size: 1.45rem;
  margin: 0.15em 0 0.25em;
}
.milestone p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-soft);
}

@media (max-width: 720px) {
  .milestones::before { left: 7px; }
  .milestone,
  .milestone:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2.4rem 2.4rem;
    text-align: left;
  }
  .milestone::before,
  .milestone:nth-child(even)::before { left: 0; right: auto; }
  .milestone::after,
  .milestone:nth-child(even)::after { left: 11px; right: auto; }
}

/* Evergreen season line (S6) */
.season-line {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  color: var(--cream-soft);
  font-size: 1.02rem;
}
.season-line .text-link { margin-left: 0.35em; }

/* Season programme — upcoming performances */
.season-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.season-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}
.season-note {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.programme {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.concert {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: center;
  padding: 1.5rem 0.8rem;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.35s, transform 0.35s var(--ease-out);
}
.concert:hover {
  background: rgba(243, 236, 221, 0.035);
  transform: translateX(6px);
}

.concert-date {
  text-align: center;
  border-right: 1px solid var(--line-dark);
  padding-right: 1.4rem;
}
.concert-day {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--amber-bright);
  font-variant-numeric: lining-nums tabular-nums;
}
.concert-month {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.concert-info h4 { font-size: 1.3rem; margin: 0 0 0.15em; }
.concert-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream-soft);
}
.concert-info .venue { color: var(--brass); }

@media (max-width: 640px) {
  .concert { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .concert .text-link { grid-column: 2; justify-self: start; }
  .concert-date { padding-right: 1rem; }
  .concert-day { font-size: 1.7rem; }
}

/* ---------------------------------------------------------------------------
 * 6. Movement IV — Sarabande (listen & watch)
 * ------------------------------------------------------------------------ */

.listen-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.tracklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 0.6rem;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.3s;
}
.track:hover { background: rgba(243, 236, 221, 0.035); }

.track-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 221, 0.3);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s var(--ease-out);
}
.track-play:hover {
  border-color: var(--amber);
  transform: scale(1.06);
}
.track-play svg { width: 14px; height: 14px; fill: var(--cream); }
.track-play .icon-pause { display: none; }

.track.is-playing .track-play {
  background: var(--amber);
  border-color: var(--amber);
}
.track.is-playing .track-play svg { fill: var(--ebony); }
.track.is-playing .track-play .icon-play { display: none; }
.track.is-playing .track-play .icon-pause { display: block; }

.track-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  line-height: 1.25;
}
.track-meta {
  font-size: 0.8rem;
  color: var(--cream-faint);
  letter-spacing: 0.06em;
}

/* Equalizer: five vibrating strings */
.track-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  width: 27px;
}
.track-eq i {
  width: 2px;
  height: 100%;
  background: var(--amber);
  opacity: 0.25;
  transform: scaleY(0.25);
  transform-origin: bottom;
  transition: opacity 0.3s;
}
.track.is-playing .track-eq i {
  opacity: 1;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.track.is-playing .track-eq i:nth-child(2) { animation-delay: 0.15s; }
.track.is-playing .track-eq i:nth-child(3) { animation-delay: 0.32s; }
.track.is-playing .track-eq i:nth-child(4) { animation-delay: 0.09s; }
.track.is-playing .track-eq i:nth-child(5) { animation-delay: 0.24s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}

.track-time {
  font-size: 0.8rem;
  color: var(--cream-faint);
  font-variant-numeric: tabular-nums;
}

.listen-aside .video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 70% 20%, rgba(201, 138, 75, 0.35), transparent 60%),
    linear-gradient(150deg, #33241a, #171310 70%);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-poster {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}
.video-poster .play-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 221, 0.4);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.video-poster .play-badge svg { width: 20px; height: 20px; fill: var(--cream); margin-left: 3px; }
a.video-poster:hover .play-badge { transform: scale(1.08); border-color: var(--amber); background: rgba(201, 138, 75, 0.18); }
.video-poster figcaption,
.video-poster .video-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-soft);
}

.listen-aside .aside-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--cream-faint);
}

/* Video-only layout (no track list yet) — one seat in the hall */
.listen-grid.is-solo {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}
.listen-grid.is-solo .video-frame {
  box-shadow: 0 0 140px 18px rgba(201, 138, 75, 0.13), var(--shadow-card);
}
.listen-grid.is-solo .aside-note { text-align: center; }
.listen-wave {
  display: block;
  width: 190px;
  height: 12px;
  margin: 1.3rem auto 0;
  color: var(--amber);
  opacity: 0.45;
}

@media (max-width: 900px) {
  .listen-grid, .listen-grid.is-solo { grid-template-columns: 1fr; }
  .track-eq { display: none; }
}

/* ---------------------------------------------------------------------------
 * 7. Movement V — Menuet (teaching studio)
 * ------------------------------------------------------------------------ */

.offer-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
/* A faint stave runs behind the cards */
.offer-grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4%;
  right: -4%;
  height: 49px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, rgba(43, 36, 29, 0.07) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.offer-card {
  position: relative;
  z-index: 1;
  padding: 2.4rem 2rem 2.2rem;
  background: #fbf7ec;
  border: 1px solid rgba(43, 36, 29, 0.12);
  border-radius: 3px;
  box-shadow: 0 14px 40px -24px rgba(43, 36, 29, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(43, 36, 29, 0.5);
}
.offer-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-deep), var(--brass));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.offer-card:hover::before { transform: scaleX(1); }

.offer-glyph {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 85, 31, 0.4);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--amber-deep);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.offer-card h3 { font-size: 1.45rem; color: var(--ink); }
.offer-card > p { font-size: 0.95rem; color: #4a4034; }

.offer-list {
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}
.offer-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  font-size: 0.9rem;
  color: #4a4034;
}
.offer-list li::before {
  content: "♩";
  position: absolute;
  left: 0;
  color: var(--amber-deep);
  font-size: 0.85em;
}

/* How lessons begin — three steps with tempo markings */
.lesson-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 52rem;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  padding: 0;
  list-style: none;
}
.lesson-steps li {
  counter-increment: step;
  text-align: center;
}
.lesson-steps li::before {
  content: counter(step, upper-roman);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--amber-deep);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}
.step-tempo {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--amber-deep);
  margin-bottom: 0.2rem;
}
.lesson-steps h4 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.3em;
}
.lesson-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: #4a4034;
}
@media (max-width: 720px) {
  .lesson-steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* Studio at a glance */
.glance-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  text-align: center;
}
.glance-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
}
.glance-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Testimonials */
.testimonials {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonials .fhole-ornament {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--amber-deep);
  opacity: 0.55;
}
.testimonial-slides { position: relative; min-height: 15rem; }
.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), visibility 0.7s;
}
.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  position: relative;
}
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
}
.testimonial cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.testimonial cite small {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.testimonial-dots button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
}
.testimonial-dots button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--amber-deep);
  background: transparent;
  transition: background-color 0.3s, transform 0.3s;
}
.testimonial-dots button[aria-pressed="true"]::after {
  background: var(--amber-deep);
  transform: scale(1.2);
}

/* Pause/resume the rotation (WCAG 2.2.2) */
.testimonial-pause {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--amber-deep);
  border: 1px solid rgba(43, 36, 29, 0.35);
  border-radius: 50%;
  transition: border-color 0.3s, background-color 0.3s;
}
.testimonial-pause:hover { border-color: var(--amber-deep); }
.testimonial-pause svg { width: 10px; height: 10px; fill: currentColor; }
.testimonial-pause[aria-pressed="false"] .icon-play { display: none; }
.testimonial-pause[aria-pressed="true"] .icon-pause { display: none; }

/* Studio CTA banner */
.studio-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  border-radius: 4px;
  background:
    radial-gradient(120% 160% at 50% -30%, rgba(224, 165, 104, 0.35), transparent 55%),
    var(--ebony);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.studio-cta h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.4em;
}
.studio-cta h3 em { color: var(--amber-bright); }
.studio-cta p {
  color: var(--cream-soft);
  max-width: 34rem;
  margin: 0 auto 1.8em;
}

.offer-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 52rem;
  margin-inline: auto;
}

@media (max-width: 960px) {
  .offer-grid, .offer-grid.cols-2 { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .glance-band { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------------
 * 8. Movement VI — Gigue (contact & inquiry form)
 * ------------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-channels {
  margin: 2.2rem 0;
  padding: 0;
  list-style: none;
}
.contact-channels li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-channels .channel-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.25em;
}
.contact-channels a,
.contact-channels .channel-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  transition: color 0.3s;
}
.contact-channels a:hover { color: var(--amber-bright); }

.social-row {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.social-row a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-soft);
  transition: color 0.3s;
}
.social-row a:hover { color: var(--amber-bright); }

.contact-coda { margin-top: 2.6rem; max-width: 22rem; }
.contact-coda .fhole-ornament {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.5;
}
.contact-coda .coda-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--cream-soft);
  margin: 0.6rem 0 0;
}

.response-note {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--cream-faint);
  max-width: 24rem;
}
.response-note::before {
  content: "♫";
  color: var(--amber);
}

/* The inquiry form — a sheet of programme paper on the stage */
.inquiry-card {
  background: var(--parchment);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.inquiry-card .form-watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -3.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15rem;
  line-height: 1;
  color: rgba(150, 85, 31, 0.06);
  pointer-events: none;
  user-select: none;
}
.inquiry-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(164, 98, 47, 0.3);
  border-radius: 2px;
  pointer-events: none;
}
.inquiry-card > * { position: relative; }

.inquiry-card .form-title {
  font-size: 1.7rem;
  margin-bottom: 0.2em;
}
.form-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--amber-deep);
  opacity: 0.5;
}
.inquiry-card .form-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 2em;
}

.form-notice {
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.6rem;
  border-radius: 3px;
  font-size: 0.92rem;
}
.form-notice.is-success {
  background: rgba(74, 103, 65, 0.14);
  border: 1px solid rgba(74, 103, 65, 0.4);
  color: #37502f;
}
.form-notice.is-error {
  background: rgba(146, 60, 42, 0.12);
  border: 1px solid rgba(146, 60, 42, 0.4);
  color: #7c3020;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.field { margin-bottom: 1.5rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.field-legend {
  display: block;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}
.field-legend .req { color: var(--amber-deep); }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5em;
}
.field label .req { color: var(--amber-deep); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65em 0.1em;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(43, 36, 29, 0.55);
  border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 7.5em; line-height: 1.6; }
.field select { cursor: pointer; }
.field select option { background: var(--parchment); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--amber-deep);
  box-shadow: 0 1px 0 var(--amber-deep), 0 6px 18px -10px rgba(164, 98, 47, 0.55);
}
.field ::placeholder { color: var(--ink-soft); opacity: 1; }

/* Segmented radio pills */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.pill-group label {
  display: inline-block;
  margin: 0;
  padding: 0.55em 1.15em;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink);
  border: 1px solid rgba(43, 36, 29, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.pill-group label:hover { border-color: var(--amber-deep); transform: translateY(-1px); }
.pill-group input:checked + label {
  background: var(--ebony);
  border-color: var(--ebony);
  color: var(--parchment);
}
.pill-group input:focus-visible + label {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

/* Conditional student fields */
.student-fields {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s var(--ease-out), opacity 0.45s var(--ease-out);
}
.student-fields.is-open {
  max-height: 30rem;
  opacity: 1;
}
.student-fields .fields-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--amber-deep);
  margin: 0.2em 0 1.2em;
}

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-footer .privacy-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 20rem;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success .fhole-ornament {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--amber-deep);
}
.form-success h3 { font-size: 1.9rem; }
.form-success p { color: var(--ink-soft); max-width: 26rem; margin-inline: auto; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* How a score says "the end" (S7) */
.fine-mark {
  margin: 0;
  padding: 0 0 clamp(2rem, 5vw, 3.2rem);
  background: var(--ebony);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--cream-faint);
}

/* Fermata — hold this feeling (S7) */
.fermata {
  display: block;
  width: 40px;
  height: 22px;
  margin: 0 auto -4px;
  color: var(--amber-deep);
  opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * 9. Footer
 * ------------------------------------------------------------------------ */

.site-footer {
  background: #120e0b;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
  color: var(--cream-soft);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 25px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-darker) 0, var(--line-darker) 1px,
    transparent 1px, transparent 6px
  );
  background-size: 100% 25px;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--cream-faint);
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 1.2em;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.6em; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--cream-soft);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--amber-bright); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-darker);
  font-size: 0.78rem;
  color: var(--cream-faint);
}
.footer-bottom .tuning {
  letter-spacing: 0.14em;
}
.footer-bottom .tuning::before {
  content: "♩";
  color: var(--amber);
  margin-right: 0.5em;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------------------------------------------------------------------------
 * 10. WordPress inner pages & core alignment
 * ------------------------------------------------------------------------ */

.page-plain {
  padding: clamp(8rem, 18vh, 11rem) 0 var(--movement-pad);
  min-height: 70vh;
}
.page-plain .entry-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}
.entry-content { max-width: 44rem; }
.entry-content a { color: var(--amber-bright); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote {
  margin: 1.8em 0;
  padding-left: 1.4em;
  border-left: 2px solid var(--amber);
  font-style: italic;
  font-size: 1.2em;
}
.entry-content .wp-block-image img { border-radius: 3px; }

.alignwide { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.alignfull { width: 100%; }

.error-404 { text-align: center; }
.error-404 .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 6rem;
  color: var(--amber);
  line-height: 1;
}

.post-navigation, .posts-navigation { margin-top: 3rem; }

/* ---------------------------------------------------------------------------
 * 11. Motion preferences
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .scroll-cue-line::after { animation: none; }
  .hero-curves path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------------------
 * 12. Print — the biography as a clean one-pager
 * ------------------------------------------------------------------------ */

@media print {
  .site-header, .bow-progress, .string-divider, .scroll-cue, .hero-art,
  .hero-actions, .hero-conceit, .site-footer, .nav-toggle, .string-sound-toggle,
  #listen, #studio, #contact, .season { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .movement, .movement.is-light, .movement.is-deep {
    background: #fff !important;
    color: #000 !important;
    padding: 0.6cm 0 !important;
    min-height: 0 !important;
  }
  .hero { display: block; }
  .hero-title, .movement-title, .milestone h3, .fact-row .fact-value { color: #000 !important; }
  .hero-title em, .movement-label, .milestone-year, .pull-quote cite { color: #6b4a23 !important; }
  .hero-sub, .hero-lede, .about-body p, .milestone p, .fact-row .fact-label { color: #222 !important; }
  .about-grid { display: block; }
  .portrait { position: static !important; max-width: 5cm; float: right; margin: 0 0 0.5cm 0.7cm; }
  .portrait-frame { box-shadow: none; }
  .pull-quote { color: #000 !important; }
  .milestones { max-width: none; }
  .milestones::before { display: none; }
  .milestone, .milestone:nth-child(even) {
    width: 100%;
    margin: 0 0 0.4cm;
    padding: 0 !important;
    text-align: left;
  }
  .milestone::before, .milestone::after { display: none; }
  a { color: inherit; text-decoration: none; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
