/*
  Tehran Pars, home. Built on assets/tokens.css (round 2 foundation); extends it, never edits it.
  Grounds: Ink stage bands, Paper day, one Sand band, the Oxblood footer.
  Motion lives only under html.motion (JS on, no reduced-motion preference). Without it the page is still and complete.
*/

:root {
  --header-h: 4rem;
  --wrap: min(100% - 2 * var(--gutter), 86rem);
  --edge-vw: max(var(--gutter), calc((100vw - 86rem) / 2));  /* the wrap's outer edge, for bleeding layouts */
  --lift: color-mix(in srgb, var(--paper) 6%, var(--ink));
  --paper-dim: color-mix(in srgb, var(--paper) 82%, var(--ink));
  --on-sand-muted: color-mix(in srgb, var(--ink) 70%, var(--sand));
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1); /* easeInOutQuad: long ambient moves only */
}
@media (min-width: 48em) {
  :root { --header-h: 4.5rem; }
}

/* ---------- Browser surfaces ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  scrollbar-color: color-mix(in srgb, var(--ink) 38%, var(--paper)) var(--paper);
  accent-color: var(--oxblood);
  background: var(--ink);
}
html:has(.menu[open]), html.menu-open { overflow: hidden; }
input, select, textarea { caret-color: var(--oxblood); }
.on-stage ::selection { background: color-mix(in srgb, var(--oxblood) 78%, var(--ink)); color: var(--paper); }
.on-stage :focus-visible { outline-color: var(--paper); }  /* Orange is the booking button only */
.on-stage .eyebrow { color: var(--on-stage-muted); }
.on-stage .btn-primary { color: var(--ink); }                /* Ink text on Orange, on the stage too */
[hidden], svg[hidden] { display: none !important; }
figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
section[tabindex="-1"]:focus { outline: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.icon { fill: currentColor; }

/* ---------- Links: underline sweeps (transform only) ---------- */
.sweep {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}
.sweep::before,
.sweep::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 1px;
  background: currentColor;
  pointer-events: none;
}
.sweep::before { opacity: 0.35; }
.sweep::after {
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 420ms var(--ease-out);
}
.sweep:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .sweep:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}
.header-nav .sweep::before { display: none; }
@media (max-width: 47.99em) {
  /* Phone hit areas: each text link is a box at least 44px tall and 24px wider than its text;
     negative margins give the extra back to the line, so nothing moves and the rhythm holds. */
  .sweep {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: -10px;
    margin-block: calc((1lh - 44px) / 2);
    padding-inline: 12px;
    margin-inline: -12px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  }
  .sweep::before, .sweep::after { display: none; }
}
.sweep-arrow { display: inline-flex; align-items: center; gap: 0.5em; }
.sweep-arrow .icon { width: 1em; height: 1em; transition: transform 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .sweep-arrow:hover .icon { transform: translateX(3px); }
}

/* ---------- Header: solid Ink, on the stage ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--ink);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: 1.375rem;
  letter-spacing: -0.012em;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
  padding-block: 0.75rem;
}
.header-nav { display: none; }
.header-nav ul { display: flex; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.header-nav a {
  display: inline-block;
  padding-block: 0.875rem;
  font: 400 1rem/1 var(--font-text);
  color: var(--paper);
}
.header-nav a::after { bottom: 0.6rem; }
.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-right: -0.5rem;
  padding: 0 0.5rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--paper);
  font: 500 1rem/1 var(--font-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--dur-press) var(--ease-out);
}
.menu-toggle .icon, .menu-close .icon { width: 1.35rem; height: 1.35rem; }
.menu-toggle:active, .menu-close:active { transform: scale(0.97); }
@media (min-width: 48em) {
  .wordmark { font-size: 1.5rem; }
  .header-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Phone menu: full screen, links staggered ---------- */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  border: 0;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu::backdrop { background: transparent; }
.menu:not([open]) { display: none; visibility: hidden; }
.menu-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-body {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(1.5rem, 7vh, 4rem) 3rem;
}
.menu-links a {
  display: block;
  padding-block: 0.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
}
.menu-contact {
  padding-top: 1.5rem;
  border-top: 1px solid var(--stage-line);
}
.menu-contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  font-size: 1.0625rem;
  color: var(--paper);
  text-decoration: none;
}
.menu-contact .icon { width: 1.25rem; height: 1.25rem; color: var(--on-stage-muted); }

/* ---------- Section rhythm and shared parts ---------- */
.programmes, .concerts, .visit, .book { padding-block: var(--section); }
.sec-title {
  color: var(--oxblood);
  padding-block: 0.12em 0.16em;
  max-width: 15ch;
}
.on-stage .sec-title { color: var(--paper); }
.sec-lead {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-width: 36rem;
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--ink-muted);
}
.on-stage .sec-lead { color: var(--on-stage-muted); }
.photo-frame {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
}
.on-stage .photo-frame { background: var(--lift); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption {
  margin-top: 0.85rem;
  font-size: var(--small);
  line-height: 1.5;
  color: var(--ink-muted);
}
.on-stage figcaption { color: var(--on-stage-muted); }

/* ---------- Lottie icons ---------- */
.lottie {
  display: block;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  line-height: 0;
}
.lottie svg { display: block; }

/* =========================================================
   1. Hero: the Ink stage, headline beside a full-height plate
   ========================================================= */
.hero { position: relative; isolation: isolate; }
.hero-grid { display: grid; }
.hero-copy {
  --hs: clamp(2.5rem, 13.2vw, 3.25rem);
  --pad-r: var(--gutter);
  --pad-l: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad-r) clamp(2rem, 5vw, 3rem) var(--pad-l);
}
.hero-block { position: relative; }
.hero-stave {
  position: relative;
  z-index: 1;
  gap: 5px;
  width: auto;
  margin-left: calc(-1 * var(--pad-l));
  margin-right: calc(-1 * var(--pad-r));
}
.hero-stave > span { background: color-mix(in srgb, var(--sand) 36%, var(--ink)); }
.hero-clef {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  height: calc(var(--hs) * 3.1 + 4rem);
  aspect-ratio: 294 / 750;
  background: var(--paper);
  opacity: 0.16;
  -webkit-mask: url("../assets/brand/clef.png") center / contain no-repeat;
  mask: url("../assets/brand/clef.png") center / contain no-repeat;
  pointer-events: none;
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  margin-bottom: clamp(0.9rem, 1.6vw, 1.4rem);
}
.eyebrow-more { display: none; }
.hero-title {
  position: relative;
  z-index: 1;
  font-size: var(--hs);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--paper);
  text-wrap: wrap;
}
.hero-title .seg {
  --line: var(--pl);
  display: inline-block;
  vertical-align: top;
  padding: 0.14em 0.06em;
  margin: -0.14em -0.06em;
}
.hero-title .seg > span { display: inline-block; }
.br-d { display: none; }
.hero-lead {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.1rem, 2vw, 1.75rem);
  max-width: 33rem;
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--paper-dim);
}
.lead-long { display: none; }
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-actions .btn { flex: 1 1 100%; }
.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lift);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* phone and tablet: landscape-tight on the two sharp faces and their bows */
  object-position: 0% 24%;
  scale: 1.46;
  transform-origin: 0 0;
}

@media (min-width: 30em) {
  .hero-copy { --hs: var(--display); }
  .hero-title .seg { --line: var(--dl); }
  .br-p { display: none; }
  .br-d { display: inline; }
  .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 48em) {
  .hero-stave { gap: 7px; }
  .eyebrow-more { display: inline; }
  .lead-long { display: inline; }
  .lead-short { display: none; }
}
@media (min-width: 64em) {
  .hero-grid {
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
    min-height: min(calc(100svh - var(--header-h) - 6.5rem), 56.5rem);
  }
  .hero-copy {
    --hs: min(var(--display), 7.8vw);
    --pad-l: var(--edge-vw);
    --pad-r: clamp(2rem, 3vw, 3rem);
    padding-block: clamp(1.5rem, 3.5vh, 3rem);
  }
  .hero-title .seg { --line: var(--pl); }
  .br-p { display: inline; }
  .br-d { display: none; }
  .hero-photo { aspect-ratio: auto; }
  .hero-photo img {
    object-position: 50% 25%;
    scale: none;
    transform-origin: 50% 30%;
  }
}

/* Short desktop screens (768 to 896px tall): a tighter text stack so the hero still ends
   above the fold and the fact band's numeral shows beneath it */
@media (min-width: 64em) and (max-height: 56em) {
  .hero-copy { --hs: min(var(--display), 7.8vw, 13vh); padding-block: 1.25rem; }
  .hero-eyebrow { margin-top: 1.1rem; margin-bottom: 0.9rem; }
  .hero-lead { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.1rem; }
}

/* =========================================================
   2. The Sand band: one monumental fact, three quieter ones
   ========================================================= */
.facts {
  background: var(--sand);
  padding-block: clamp(3.5rem, 1.5rem + 5vw, 6rem) clamp(4rem, 2rem + 6vw, 7rem);
}
.stat-top {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.stat-top-figure {
  --n: clamp(6rem, 1rem + 11.5vw, 11.5rem);
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}
.stat-top-icon {
  --s: clamp(3.5rem, 1.6rem + 4.3vw, 5.5rem);
  width: var(--s);
  height: var(--s);
  /* on the numeral's top line: digits start 0.06em below the line box */
  margin-top: calc(var(--n) * 0.06);
}
.stat-top-num {
  font-size: var(--n);
  line-height: 0.8;
  letter-spacing: -0.035em;
  color: var(--oxblood);
}
.stat-top-unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: var(--display-3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat-top-note {
  margin-top: 0.75rem;
  max-width: 44ch;
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--on-sand-muted);
}
.stat-row {
  display: grid;
  gap: 0;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.stat {
  --n: clamp(2.75rem, 1.4rem + 3.8vw, 5rem);
  --s: clamp(2.5rem, 1.6rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: var(--s) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.9rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.stat-icon { width: var(--s); height: var(--s); }
.stat-num {
  font-size: var(--n);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--oxblood);
  padding-block: 0.06em 0.02em;
}
.stat-label {
  font-size: var(--body);
  line-height: 1.4;
  color: var(--on-sand-muted);
}

@media (min-width: 64em) {
  .facts { padding-top: 2.0625rem; }
  .stat-top-note { margin-top: 1.25rem; }  /* the fold falls between the heading and the note, not through a line */
}
@media (min-width: 48em) {
  .stat-top {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 4rem);
    border-top: 1px solid var(--rule);
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
  }
  .stat {
    grid-template-columns: var(--s) auto;
    grid-template-areas: "icon num" "label label";
    justify-content: start;
    row-gap: 0.75rem;
    padding: 0;
    border: 0;
  }
  .stat-icon { grid-area: icon; }
  .stat-num { grid-area: num; }
  .stat-label { grid-area: label; }
}

/* =========================================================
   Band seams: the stave at band scale, on a notched step
   ========================================================= */
.seam {
  --notch-w: 72%;
  --notch-h: 41px;
  --gap: 5px;
  position: relative;
  z-index: 4;
  height: 0;
  pointer-events: none;
}
.seam-notch {
  position: absolute;
  top: 0;
  width: var(--notch-w);
  height: var(--notch-h);
  background: var(--seam-ground);
}
.seam--left .seam-notch { left: 0; }
.seam--right .seam-notch { right: 0; }
.seam-stave {
  position: absolute;
  top: calc((var(--notch-h) - (4 * var(--gap) + 5px)) / 2);
  display: grid;
  gap: var(--gap);
}
.seam-stave i { display: block; height: 1px; background: currentColor; transform-origin: 0 50%; }
.seam-stave i:nth-child(2) { --k: 1; }
.seam-stave i:nth-child(3) { --k: 2; }
.seam-stave i:nth-child(4) { --k: 3; }
.seam-stave i:nth-child(5) { --k: 4; }
.seam--left .seam-stave--a { left: 0; width: var(--notch-w); color: var(--on-notch); }
.seam--left .seam-stave--b { left: var(--notch-w); right: 0; color: var(--beyond); }
.seam--right .seam-stave--a { left: 0; right: var(--notch-w); color: var(--beyond); }
.seam--right .seam-stave--b { right: 0; width: var(--notch-w); color: var(--on-notch); }
.seam--sand {
  --seam-ground: var(--sand);
  --on-notch: color-mix(in srgb, var(--oxblood) 55%, var(--sand));
  --beyond: color-mix(in srgb, var(--oxblood) 55%, var(--paper));
}
.seam--ink {
  --seam-ground: var(--ink);
  --on-notch: color-mix(in srgb, var(--paper) 48%, var(--ink));
  --beyond: color-mix(in srgb, var(--oxblood) 62%, var(--paper));
}
@media (min-width: 48em) {
  .seam { --notch-w: 56%; --notch-h: 55px; --gap: 7px; }
}

/* =========================================================
   3. Programmes by family
   ========================================================= */
.sec-head { margin-bottom: clamp(3rem, 6vw, 6rem); }
.programmes .sec-title { max-width: 13ch; }
.traditions { display: grid; gap: 4.5rem; }
.plate { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
.plate .photo-frame { aspect-ratio: 16 / 10; }
.tradition-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--oxblood);
}
.tradition-head .display-3 { color: var(--ink); }
.count { flex: none; font-size: var(--small); color: var(--ink-muted); }
.index li { border-bottom: 1px solid var(--line); }
.index-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.index-name {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.375rem, 1.05rem + 0.9vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color var(--dur-ui) ease;
}
.index-hint { font-size: var(--small); color: var(--ink-muted); }
.index-link .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--oxblood);
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .index-link:hover .index-name { color: var(--oxblood); }
  .index-link:hover .icon { transform: translateX(6px); }
}
.index-link:active .icon { transform: translateX(6px); }
.families {
  display: grid;
  gap: 3rem;
  margin-top: clamp(4.5rem, 8vw, 7.5rem);
}
.family {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--oxblood);
}
.family-icon { width: 3.25rem; height: 3.25rem; margin-top: -0.35rem; }
.family-title {
  align-self: center;
  font-size: clamp(1.625rem, 1.25rem + 1vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.family-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.family-list a { color: var(--ink); line-height: 1.45; }
.also {
  display: grid;
  gap: 0.6rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--small);
  color: var(--ink-muted);
}
.also-label { margin-right: 0.6rem; font-weight: 500; color: var(--ink); }
@media (min-width: 48em) {
  .traditions {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0;
    column-gap: clamp(2rem, 4.5vw, 5.5rem);
  }
  .tradition {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .tradition-head { align-items: end; }
  .families {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 4.5vw, 5.5rem);
  }
}

/* =========================================================
   4. Young musicians (Ink): the photograph runs the band's full height
   ========================================================= */
.young-grid { display: grid; }
.young-photo .photo-frame { aspect-ratio: 4 / 3; }
.young-photo img { object-position: 72% 40%; }
.young-copy {
  width: var(--wrap);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 7vw, 4rem) var(--section);
}
.young .sec-title { max-width: 12ch; }
.early {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--stage-line);
}
.early li { border-bottom: 1px solid var(--stage-line); }
.early-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  min-height: 4.25rem;
  padding-block: 1rem;
  color: var(--paper);
  text-decoration: none;
}
.early-name {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.early-note {
  grid-column: 1;
  margin-top: 0.35rem;
  font-size: var(--small);
  color: var(--on-stage-muted);
}
.early-link .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .early-link:hover .icon { transform: translateX(6px); }
}
@media (min-width: 64em) {
  .young-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 7rem);
  }
  .young-photo { align-self: stretch; }
  .young-photo .photo-frame { aspect-ratio: auto; height: 100%; }
  .young-photo img { position: absolute; inset: 0; }
  .young-copy {
    width: auto;
    margin: 0;
    padding: var(--section) var(--edge-vw) var(--section) 0;
  }
}

/* =========================================================
   5. Prices (Paper) beside a single-subject plate
   ========================================================= */
.prices-grid { display: grid; }
.prices-photo { order: -1; }
.prices-photo .photo-frame { aspect-ratio: 4 / 5; }
.prices-photo img { object-position: 50% 100%; }
@media (min-width: 30em) and (max-width: 63.99em) {
  .prices-photo .photo-frame { aspect-ratio: 1; }
  .prices-photo img { object-position: 50% 62%; }
}
.prices-copy {
  width: var(--wrap);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 7vw, 4rem) var(--section);
}
.prices-head { margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }
.prices-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
.prices .sec-title { max-width: none; }
.price-list { border-top: 1px solid var(--oxblood); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name amount" "term amount";
  column-gap: 1.25rem;
  align-items: center;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.price-name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.price-term {
  grid-area: term;
  margin-top: 0.3rem;
  font-size: var(--small);
  color: var(--ink-muted);
}
.price-amount {
  grid-area: amount;
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.75rem);
  text-align: right;
}
.price-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
  color: var(--ink-muted);
}
.price-foot p { max-width: 40rem; }
.price-vat { font-weight: 500; color: var(--ink); }
.price-foot .sweep { color: var(--oxblood); font-weight: 500; }
@media (min-width: 64em) {
  .prices-grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .prices-photo { order: 0; align-self: stretch; }
  .prices-photo .photo-frame { aspect-ratio: auto; height: 100%; }
  .prices-photo img { position: absolute; inset: 0; object-position: 50% 30%; }
  .prices-copy {
    width: auto;
    margin: 0;
    padding: var(--section) clamp(3rem, 5vw, 6rem) var(--section) var(--edge-vw);
  }
  .price-row { padding-block: 1.75rem; }
}

/* =========================================================
   6. Teachers (Ink): the faculty on stage, the founder, six names
   ========================================================= */
.teachers { padding-bottom: calc(var(--section) - 1.75rem); }
.bleed-photo { margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.bleed-photo .photo-frame { aspect-ratio: 4 / 3; }
.bleed-photo img { object-position: 50% 40%; }
.teachers .sec-title { max-width: 14ch; }
.founder {
  display: grid;
  gap: 1.75rem;
  margin-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}
.founder-photo .photo-frame { aspect-ratio: 4 / 3; }
.founder-photo img { object-position: 55% 38%; }
.founder-name {
  font-size: var(--display-3);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.founder-cred {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--on-stage-muted);
}
.roll { display: grid; }
.roll-item {
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--stage-line);
}
.roll-name {
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.roll-inst {
  margin-top: 0.45rem;
  font-size: var(--small);
  font-weight: 500;
  color: color-mix(in srgb, var(--sand) 88%, var(--ink));
}
.roll-cred {
  margin-top: 0.65rem;
  max-width: 36ch;
  color: var(--on-stage-muted);
}
@media (min-width: 48em) {
  .bleed-photo .photo-frame { aspect-ratio: 16 / 8; }
  .roll {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}
@media (min-width: 64em) {
  .bleed-photo .photo-frame { aspect-ratio: 21 / 9; max-height: 82vh; }
  .founder {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: end;
  }
  .founder-text { padding-bottom: 2.6rem; }
  .roll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   7. Concerts (Paper): three photographs on one shared edge
   ========================================================= */
.concerts-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.concerts-icon { width: 4rem; height: 4rem; }
.concerts .sec-title { max-width: 13ch; margin-top: 0.25rem; }
.concerts .sec-lead { margin-top: 0; }
.strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.strip:focus-visible { outline-offset: -3px; }
.strip-item {
  flex: 0 0 auto;
  width: calc(var(--ar) * 14rem);
  scroll-snap-align: start;
}
.strip-item .photo-frame { aspect-ratio: var(--ar); }
.strip-item figcaption { padding-right: 1rem; }
/* the embrace: zoomed about the teacher's face so no face meets the frame edge */
.strip-item--embrace img {
  object-position: 50% 25%;
  scale: 1.3;
  transform-origin: 50% 16%;
}
@media (min-width: 48em) {
  .strip {
    gap: 6px;
    overflow: visible;
    padding-inline: 0;
    scroll-snap-type: none;
  }
  .strip-item {
    flex: var(--ar) 1 0%;
    width: auto;
    min-width: 0;
  }
  .strip-item figcaption { padding-inline: 1rem; }
  .strip-item:first-child figcaption { padding-left: var(--gutter); }
}
@media (min-width: 64em) {
  .concerts-icon { width: 4.5rem; height: 4.5rem; }
}

/* =========================================================
   8. Visit (Ink)
   ========================================================= */
.visit-grid { display: grid; gap: 3.5rem; }
.visit .sec-title { max-width: 11ch; }
.details { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.detail {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
  padding-block: 1.25rem;
  border-top: 1px solid var(--stage-line);
}
.detail:last-child { border-bottom: 1px solid var(--stage-line); }
.detail-icon { grid-row: 1 / span 2; width: 3rem; height: 3rem; }
.detail dt { font-size: var(--small); color: var(--on-stage-muted); }
.detail dd {
  margin: 0.2rem 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--paper);
}
.detail dd .sweep-arrow { margin-top: 0.5rem; font-size: var(--body); }
/* tight on the teacher and the two dafs; the student's face stays outside the frame */
.visit-photo .photo-frame { aspect-ratio: 1; }
.visit-photo img { object-position: 64% 30%; }
@media (min-width: 64em) {
  .visit-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
  }
}

/* =========================================================
   9. Book: the six-field trial form (Paper)
   ========================================================= */
.book-grid { display: grid; gap: 3rem; }
.book .sec-title { max-width: 10ch; }
.book-icon { width: 4rem; height: 4rem; margin-bottom: 1.25rem; }
.book-notes {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: var(--small);
  color: var(--ink-muted);
}
.book-notes .sweep { color: var(--oxblood); }
.trial-form { display: grid; gap: 1.5rem 1.25rem; }
.field { align-content: start; }
.field input, .field select { background-color: #fff; }
.field select:invalid { color: var(--ink-muted); }
.field select option { color: var(--ink); }
.field .hint { font-size: var(--small); color: var(--ink-muted); }
.field .error { margin: 0; }
.form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.btn-submit { min-width: 13.5rem; }
.btn-spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-top-color: var(--ink);
  border-radius: 50%;
}
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.form-promise { font-size: var(--small); color: var(--ink-muted); }
.trial-success {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-block: 1rem;
}
.success-icon { width: 4.5rem; height: 4.5rem; }
.success-title {
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: var(--display-3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.success-title:focus { outline: none; }
.success-note { font-size: var(--small); color: var(--ink-muted); }
@media (min-width: 40em) {
  .trial-form { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64em) {
  .book-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
  .book-body { padding-top: 0.5rem; }
}

/* =========================================================
   Footer (Oxblood)
   ========================================================= */
.site-footer { padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { width: 11rem; height: auto; }
.footer-brand p { margin-top: 1rem; }
.footer-h {
  margin-bottom: 0.75rem;
  font: 500 var(--small)/1.4 var(--font-text);
  letter-spacing: 0.01em;
  color: var(--on-oxblood-muted);
}
.footer-col p, .footer-col li { margin-bottom: 0.4rem; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, var(--oxblood));
  font-size: var(--small);
  color: var(--on-oxblood-muted);
}
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 0.7fr; column-gap: 2rem; }
}

/* =========================================================
   Motion (enhancement only; html.motion = JS on and no reduced-motion preference)
   ========================================================= */

/* The opening: the stave draws, the headline rises from its masks, the photograph pushes in */
.motion .hero-stave > span {
  transform-origin: 0 50%;
  animation: stave-draw 1100ms var(--ease-in-out) both;
}
.motion .hero-stave > span:nth-child(2) { animation-delay: 60ms; }
.motion .hero-stave > span:nth-child(3) { animation-delay: 120ms; }
.motion .hero-stave > span:nth-child(4) { animation-delay: 180ms; }
.motion .hero-stave > span:nth-child(5) { animation-delay: 240ms; }
.motion .hero-title .seg { overflow: hidden; }
.motion .hero-title .seg > span {
  animation: seg-rise 700ms var(--ease-out) both;
  animation-delay: calc(90ms + var(--line) * 80ms);
}
.motion .hero-photo img { animation: hero-push 12s var(--ease-soft) both; }
.motion .hero-clef { animation: clef-in 1600ms var(--ease-out) 150ms both; }

@keyframes stave-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes seg-rise { from { transform: translate3d(0, 140%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes hero-push { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes clef-in { from { opacity: 0; transform: translate3d(0, 1.5%, 0); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes settle-in { from { opacity: 0; transform: translate3d(0, 1rem, 0); } }

.motion .btn-submit.is-loading .btn-spinner { animation: spin 700ms linear infinite; }
.motion .trial-success:not([hidden]) { animation: settle-in 500ms var(--ease-out) both; }

/* Section entrances: set by JS on content below the fold only; each kind moves differently */
.motion [data-reveal="fade"].is-pending,
.motion [data-reveal-item].is-pending {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
}
.motion [data-reveal="fade"].is-in,
.motion [data-reveal-item].is-in {
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.motion [data-reveal="mask"] { overflow: hidden; }
.motion [data-reveal="mask"] .mask-in { display: block; }
.motion [data-reveal="mask"].is-pending .mask-in { transform: translate3d(0, calc(100% + 0.35em), 0); }
.motion [data-reveal="mask"].is-in .mask-in {
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion [data-reveal="photo"].is-pending { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="photo"].is-pending img { transform: scale(1.08); }
.motion [data-reveal="photo"].is-in { transition: clip-path 1100ms var(--ease-in-out); }
.motion [data-reveal="photo"].is-in img { transition: transform 1600ms var(--ease-out); }
/* seams: the lines run left to right, across the notch and on into the next band */
.motion .seam.is-pending .seam-stave i { transform: scaleX(0); }
.motion .seam.is-in .seam-stave i {
  transition: transform 900ms var(--ease-in-out);
  transition-delay: calc(var(--k, 0) * 45ms);
}
.motion .seam.is-in .seam-stave--b i { transition-delay: calc(480ms + var(--k, 0) * 45ms); }

/* Failsafe (reveal script never started) and print: everything shows */
.reveal-all .is-pending,
.reveal-all .is-pending .mask-in,
.reveal-all .is-pending img,
.reveal-all .is-pending i {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* Menu: opens full screen from the top, links follow in sequence, exits the way it came */
.motion .menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 520ms var(--ease-drawer);
}
.motion .menu[data-state="open"] { clip-path: inset(0 0 0 0); }
.motion .menu[data-state="closing"] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 340ms var(--ease-in-out);
}
.motion .menu-body li {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition: opacity 380ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: calc(150ms + var(--i, 0) * 55ms);
}
.motion .menu[data-state="open"] .menu-body li { opacity: 1; transform: none; }
.motion .menu[data-state="closing"] .menu-body li {
  opacity: 0;
  transition: opacity 140ms ease;
  transition-delay: 0ms;
}
html:not(.motion) .menu { opacity: 0; transition: opacity 160ms ease; }
html:not(.motion) .menu[data-state="open"] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-stave > span, .hero-title .seg > span, .hero-photo img, .hero-clef {
    animation: none !important;
    transform: none !important;
  }
  .is-pending, .is-pending .mask-in, .is-pending img, .is-pending i {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .sweep::after, .index-link .icon, .early-link .icon, .sweep-arrow .icon { transition: none; }
}
@media print {
  .site-header, .menu, .hero-clef, .seam { display: none; }
  .is-pending, .is-pending .mask-in, .is-pending img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
