/* ============================================================
   Cadenza Studios — Landing
   Palette: warm beige, ink brown, muted modern-art accents
   ============================================================ */

:root {
  --beige:        #ede3d0;   /* base background */
  --beige-light:  #f5efe2;   /* lifted panels */
  --beige-deep:   #e3d5bd;   /* recessed / bands */
  --sand:         #d8c7a8;
  --ink:          #2b2621;   /* near-black brown */
  --ink-soft:     #5a5148;
  --line:         #c9b99b;

  --terracotta:   #c1683f;
  --sage:         #7f8d6b;
  --ochre:        #ca9a3f;
  --slate:        #6d7f92;
  --espresso:     #5b2f27;   /* deep warm oxblood-espresso for the wordmark */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:"Great Vibes", cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  /* Warm hero gradient promoted to a fixed, site-wide backdrop: it stays
     pinned to the viewport while the content scrolls over it, so transparent
     sections reveal a continuous warm wash (the "infinite scroll" feel).
     Opaque sections (ink panels, beige bands) simply cover it. */
  background:
    radial-gradient(135% 92% at 50% 116%, rgba(160, 74, 42, 0.30) 0%, rgba(193, 104, 63, 0.13) 34%, transparent 62%),
    radial-gradient(88% 66% at 10% 108%, rgba(202, 154, 63, 0.16), transparent 55%),
    radial-gradient(88% 66% at 90% 108%, rgba(193, 104, 63, 0.14), transparent 55%),
    linear-gradient(180deg, #f5ecdb 0%, #efe5d1 42%, #e6d1aa 100%);
  background-color: var(--beige);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--terracotta); color: var(--beige-light); }

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

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--terracotta); z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  z-index: 100; mix-blend-mode: normal;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(237, 227, 208, 0.72);
  backdrop-filter: blur(12px);
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(201, 185, 155, 0.5);
}
.nav__brand { display: inline-flex; align-items: center; }

/* ---- Brand logo: stacked lockup (ink) in the nav ---- */
.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 42px; } }

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; position: relative; padding: 4px 0;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width 0.4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--ink); border-radius: 40px; padding: 0.55rem 1.3rem !important;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--beige-light); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 3rem; overflow: hidden;
  /* Transparent: the warm gradient now lives on <body> as a fixed backdrop
     (see body), so the hero content scrolls over it. */
  background: transparent;
}
.hero__meta {
  position: absolute; top: 42%; display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__meta--left { left: clamp(1.2rem, 4vw, 3.5rem); text-align: left; }
.hero__meta--right { right: clamp(1.2rem, 4vw, 3.5rem); text-align: right; }

.hero__center { position: relative; z-index: 5; }
.hero__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.4rem; font-weight: 400; opacity: 0.72;
}
.hero__title { display: flex; flex-direction: column; align-items: center; line-height: 0.82; }

/* ---- Page-load reveal: title emerges from behind (depth) ---- */
.hero__script, .hero__studios { will-change: transform, filter, opacity; }
/* Hidden until the web font has loaded, to avoid a fallback-font flash */
body:not(.fonts-ready) .hero__title { opacity: 0; }
body.fonts-ready .hero__script  { animation: emergeBehind 1.7s var(--ease) 0.15s both; }
body.fonts-ready .hero__studios { animation: emergeBehind 1.3s var(--ease) 0.55s both; }
@keyframes emergeBehind {
  0%   { opacity: 0; transform: translateY(38px) scale(0.88); filter: blur(18px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero__script {
  font-family: var(--script);
  font-size: clamp(5rem, 20vw, 17rem);
  /* Deep espresso-oxblood so the wordmark sits in the cream rather than
     fighting it as near-black did. */
  color: var(--espresso); font-weight: 400;
}
.hero__studios {
  /* Recedes to a quiet subtitle beneath the script — lighter weight and
     lower contrast so it no longer competes with the eyebrow caps. */
  margin-top: 0.5rem; color: var(--ink-soft); opacity: 0.85;
  /* Flanking hairlines mirror the stacked logo lockup. */
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.75rem, 2.2vw, 1.5rem);
}
.hero__studios::before,
.hero__studios::after {
  content: ""; flex: none; height: 1px;
  width: clamp(1.75rem, 7vw, 5rem);
  background: currentColor; opacity: 0.55;
}
.hero__studios-word {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(0.9rem, 3.8vw, 2.7rem);
  /* padding-left offsets the trailing letter-spacing so the caps stay optically
     centred between the two rules. */
  letter-spacing: 0.5em; padding-left: 0.5em;
}
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--ink-soft); margin-top: 2rem; max-width: 32ch; margin-inline: auto;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line i { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ink); animation: scrolldrop 1.8s var(--ease) infinite; }
@keyframes scrolldrop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* modern-art blobs (used in teacher / enroll sections) */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.85; z-index: 1; }
.blob--terracotta { background: var(--terracotta); }
.blob--sage { background: var(--sage); }
.blob--ochre { background: var(--ochre); }


/* ---- Drifting staff-notation strips (seamless CSS marquee) ---- */
.hero__staves { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.staff-strip {
  position: absolute; left: -8%; width: 116%; height: clamp(58px, 8vw, 90px);
  /* Fade the ends so notation dissolves into the background, no hard cut. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.staff-strip--a { top: 20%;  color: var(--terracotta); opacity: 0.10; transform: rotate(-2.4deg); }
.staff-strip--b { top: 62%;  color: var(--sage);       opacity: 0.11; transform: rotate(2deg); }
.staff-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.staff-strip--a .staff-track { animation: staffScroll 62s linear infinite; }
.staff-strip--b .staff-track { animation: staffScroll 74s linear infinite reverse; }
.staff-tile { flex: 0 0 auto; width: clamp(520px, 62vw, 760px); height: 100%; overflow: visible; }
/* Tile is duplicated back-to-back, so -50% lands exactly on the seam → loops. */
@keyframes staffScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero line-art illustrations */
.hero__illus { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.illus { position: absolute; color: var(--terracotta); }
/* Guitar is the committed focal accent. Its upper half (neck/headstock)
   fades out so the "Private guitar tuition" label stays legible over it,
   while the body — sound hole and lower bout — reads at full strength. */
.illus-guitar {
  left: 4%; bottom: -6%; width: clamp(180px, 23vw, 340px);
  opacity: 0.42; pointer-events: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.16) 30%, #000 58%);
          mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.16) 30%, #000 58%);
}
/* Top-right note cluster — varied sizes so the corner feels intentional. */
.illus-notes { top: 14%; right: 10%; width: clamp(80px, 8.5vw, 120px); opacity: 0.42; }
.illus-note1 { top: 8%;  right: 5%;  width: clamp(24px, 2.4vw, 36px); opacity: 0.5; }
.illus-note2 { top: 26%; right: 16%; width: clamp(30px, 3vw, 44px);   opacity: 0.32; }
/* Sound waves behind the right-hand meta text (restored from main). */
.illus-waves { top: 38%; right: 5%; width: clamp(60px, 7vw, 92px); color: var(--sage); opacity: 0.30; }

/* Motion — only when the visitor hasn't asked to reduce it. Defaults
   (outside this block) leave the notes static, so reduced-motion users get
   the finished composition with no drift (the marquee already opts out via
   the global reduced-motion rule that disables all animation). */
@media (prefers-reduced-motion: no-preference) {
  /* Notes drift slowly in a continuous, subtle loop (per-note --dur/--nd). */
  .note-drift { animation: noteDrift var(--dur, 7s) ease-in-out var(--nd, 0s) infinite; }
  /* Strings pluck when the guitar is hovered; a per-string delay keeps them
     from moving in lockstep (set inline as --sd on each string). */
  .illus-guitar:hover .gtr-string {
    animation: stringVibrate 0.12s linear infinite;
    animation-delay: var(--sd, 0s);
  }
}
@keyframes noteDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1.4deg); }
}
@keyframes stringVibrate {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(0.7px); }
  75%      { transform: translateX(-0.7px); }
}

/* ---------- Section shared ---------- */
.section-label {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-label span {
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--terracotta); letter-spacing: 0;
}

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(6rem, 14vw, 12rem) clamp(1.2rem, 6vw, 6rem); max-width: 1400px; margin: 0 auto; }
.manifesto__text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -0.01em;
}
.manifesto__text span { display: block; }
.manifesto__text em { font-style: italic; color: var(--terracotta); }

/* ---------- Feature ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem);
  max-width: 1400px; margin: 0 auto;
}
.feature__heading { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin-bottom: 1.4rem; font-weight: 500; }
.feature__body { font-size: 1.02rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 2rem; line-height: 1.7; }
.feature__list { list-style: none; border-top: 1px solid var(--line); }
.feature__list li {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink);
}
.feature__list em { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-right: 0.6rem; color: var(--terracotta); }

.artframe {
  position: relative; aspect-ratio: 1 / 1; border-radius: 4px;
  background: var(--beige-deep);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(43,38,33,0.6);
}
.artframe__inner { position: absolute; inset: 0; }
.artframe__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.artframe__cap {
  position: absolute; bottom: 1rem; left: 1.1rem; right: 1.1rem; font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--beige-light); z-index: 2;
  text-shadow: 0 1px 12px rgba(43, 38, 33, 0.55);
}
/* subtle bottom scrim so the caption stays legible over the photo */
.artframe::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, rgba(43, 38, 33, 0.42), transparent);
  pointer-events: none; z-index: 1;
}

/* ---------- Programs / genres gallery ----------
   Default (no-JS + mobile): a clean vertical stack. Enhanced desktop turns
   the track into a pinned horizontal-scroll gallery (see @media below + JS). */
.programs { padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem); max-width: 1400px; margin: 0 auto; }
.programs__track { display: flex; flex-direction: column; }
.programs__title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; font-weight: 500; }
.programs__hint { display: none; }

.program-panel { position: relative; }
.program-panel--intro { padding-bottom: 2.5rem; }
.program-panel:not(.program-panel--intro) {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: clamp(1rem, 4vw, 3rem); padding: 2.4rem 0.5rem; border-top: 1px solid var(--line);
}
.program-panel:not(.program-panel--intro):last-child { border-bottom: 1px solid var(--line); }
.program-panel__body { max-width: 54ch; }
.program__no { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink-soft); display: block; margin-bottom: 0.5rem; }
.program__name { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; line-height: 1; margin-bottom: 0.6rem; transition: color 0.4s var(--ease); }
.program__desc { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0.8rem; }
.program__meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.program-motif { width: clamp(88px, 12vw, 148px); height: auto; color: var(--terracotta); opacity: 0.5; flex: none; transition: opacity 0.4s var(--ease); }
.program-panel:not(.program-panel--intro):hover .program__name { color: var(--terracotta); }
.program-panel:not(.program-panel--intro):hover .program-motif { opacity: 0.85; }

/* Enhanced desktop: pinned horizontal gallery (JS translates the track on x). */
@media (min-width: 901px) {
  html.is-enhanced .programs { max-width: none; margin: 0; padding: 0; height: 100vh; overflow: hidden; }
  html.is-enhanced .programs__track { flex-direction: row; flex-wrap: nowrap; height: 100vh; width: max-content; }
  html.is-enhanced .program-panel {
    height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 0 clamp(3rem, 8vw, 9rem); border: none !important;
  }
  html.is-enhanced .program-panel--intro { width: 92vw; }
  html.is-enhanced .program-panel:not(.program-panel--intro) {
    width: 62vw; display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: clamp(2rem, 4vw, 5rem); border-left: 1px solid var(--line) !important;
  }
  html.is-enhanced .program-panel__body { max-width: 42ch; }
  html.is-enhanced .program__no { font-size: 1.7rem; margin-bottom: 1rem; }
  html.is-enhanced .program__name { font-size: clamp(2.4rem, 4vw, 4.2rem); margin-bottom: 1rem; }
  html.is-enhanced .program__desc { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem; }
  html.is-enhanced .program-motif { width: clamp(150px, 18vw, 280px); }
  html.is-enhanced .programs__hint {
    display: flex; align-items: center; gap: 0.7rem; margin-top: 2.2rem;
    font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft);
  }
  html.is-enhanced .programs__hint-line { width: 46px; height: 1px; background: var(--ink-soft); display: inline-block; }

  /* Meet Murthy becomes a pinned, full-viewport stage (buildTeacherCinematic).
     margin-top is the deliberate "full-motion" gap after the hero unpins — you
     scroll through empty space before the section pins and reveals. */
  html.is-enhanced .teacher {
    min-height: 100vh; align-content: center;
    margin-top: clamp(28vh, 42vh, 52vh);
  }

  /* Showcase becomes a pinned, full-viewport stage: quote → stats → testimonials
     are absolutely stacked and cross-hand in place, driven by buildShowcaseCinematic. */
  html.is-enhanced .showcase { min-height: 100vh; overflow: hidden; }
  html.is-enhanced .showcase__stage { position: relative; height: 100vh; }
  html.is-enhanced .showcase__layer { position: absolute; inset: 0; padding: clamp(2rem, 6vw, 6rem); }
  html.is-enhanced .showcase__quote,
  html.is-enhanced .showcase__testimonials {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
  }
  html.is-enhanced .showcase__stats { align-content: center; max-width: 1100px; margin: 0 auto; }
}

/* ---------- Showcase: quote · stats · testimonials ----------
   Base (mobile / non-enhanced): three layers stacked in normal document flow.
   The enhanced desktop version (pinned stage with absolutely-stacked phases) is
   in the @media (min-width: 901px) block above, alongside the other pins. */
.showcase { position: relative; }

/* Phase 1 — pull quote (now on the light beige stage, ink-on-beige) */
.showcase__quote {
  text-align: center;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 8vw, 8rem) clamp(3rem, 6vw, 5rem);
}
.quote__mark { font-family: var(--serif); font-size: 9rem; line-height: 0.55; color: var(--terracotta); opacity: 0.5; display: block; }
.quote__text {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink);
  font-size: clamp(1.8rem, 4.5vw, 3.6rem); line-height: 1.2; max-width: 24ch; margin: 1rem auto 1.4rem;
}
.quote__flourish { display: block; width: clamp(160px, 30vw, 300px); height: auto; margin: 1.4rem auto; color: var(--terracotta); opacity: 0.75; }
.quote__cite { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); font-style: normal; }

/* Phase 2 — stats */
.showcase__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 6vw, 6rem); max-width: 1100px; margin: 0 auto;
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 500; line-height: 1; color: var(--ink); }
.stat__label { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* Phase 3 — circular testimonials (vanilla port of the React component) */
.showcase__testimonials {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 6vw, 4rem) clamp(5rem, 10vw, 8rem);
}
.showcase__testimonials .section-label { justify-content: center; margin-bottom: 3rem; }

.ctest { width: 100%; max-width: 56rem; display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ctest__images { position: relative; width: 100%; height: clamp(18rem, 30vw, 24rem); perspective: 1000px; }
.ctest__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 1.25rem; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(43, 38, 33, 0.6);
}
.ctest__content { display: flex; flex-direction: column; justify-content: space-between; }
.ctest__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.1; color: var(--ink); margin-bottom: 0.3rem; }
.ctest__desig { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.ctest__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.65; color: var(--ink); }
/* Per-word blur-in (replaces framer-motion); JS wraps words + sets transition-delay */
.ctest__quote span { display: inline-block; filter: blur(10px); opacity: 0; transform: translateY(5px); transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease; }
.ctest__quote span.is-in { filter: blur(0); opacity: 1; transform: none; }
.ctest__arrows { display: flex; gap: 1.2rem; padding-top: 2.4rem; }
.ctest__arrow {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
  background: var(--ink); color: var(--beige-light);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ctest__arrow:hover { background: var(--terracotta); transform: translateY(-2px); }
.ctest__arrow:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

@media (min-width: 768px) {
  .ctest { grid-template-columns: 1fr 1fr; }
  .ctest__arrows { padding-top: 0; }
}

/* ---------- Meet the teacher ---------- */
.teacher {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6vw, 6rem);
  max-width: 1400px; margin: 0 auto;
}
.teacher__name { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; font-weight: 500; margin-bottom: 1.4rem; }
.teacher__lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--ink); margin-bottom: 1.4rem; max-width: 40ch; }
.teacher__body { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.75; max-width: 46ch; margin-bottom: 2rem; }
.teacher__body em { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.1em; }
.teacher__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.2rem; }
.teacher__tags li {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line); border-radius: 40px; padding: 0.5rem 1.1rem; color: var(--ink);
}
.teacher__cta { display: inline-block; }
.teacher .blob.t1 { width: 170px; height: 170px; bottom: 8%; right: 4%; opacity: 0.28; }

/* ---------- Exams ---------- */
.exams {
  background: var(--ink); color: var(--beige);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 6vw, 6rem);
}
.exams__inner { max-width: 1100px; margin: 0 auto; }
.section-label--light { color: var(--sand); }
.section-label--light span { color: var(--ochre); }
.exams__title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; font-weight: 500; margin-bottom: 1.5rem; }
.exams__body { font-size: 1.05rem; line-height: 1.75; color: var(--beige); max-width: 54ch; margin-bottom: 3rem; opacity: 0.9; }
.exams__boards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.board { border-top: 1px solid rgba(216,199,168,0.25); padding-top: 1.6rem; }
.board__mark { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; color: var(--ochre); display: block; margin-bottom: 0.8rem; letter-spacing: 0.02em; }
.board p { font-size: 0.98rem; line-height: 1.65; color: var(--beige); opacity: 0.88; max-width: 34ch; }

/* ---------- Enroll ---------- */
.enroll {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(6rem, 14vw, 12rem) clamp(1.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--beige), var(--beige-deep));
}
.enroll__inner { position: relative; z-index: 5; max-width: 40rem; margin: 0 auto; }
.enroll__eyebrow { font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.5rem; font-weight: 500; }
.enroll__title { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; font-weight: 500; }
.enroll__title span { display: block; }
.enroll__script { font-family: var(--script); color: var(--terracotta); font-size: clamp(3.4rem, 11vw, 8rem); font-weight: 400; margin-top: -0.4rem; }
.enroll__flourish { display: block; width: clamp(180px, 34vw, 320px); height: auto; margin: 0.2rem auto 0; color: var(--terracotta); opacity: 0.8; }
.enroll__body { font-size: 1.02rem; color: var(--ink-soft); margin: 2rem auto 2.5rem; max-width: 44ch; line-height: 1.7; }
.enroll__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; padding: 1rem 2rem; border-radius: 40px; transition: all 0.4s var(--ease); }
.btn--solid { background: var(--ink); color: var(--beige-light); }
.btn--solid:hover { background: var(--terracotta); transform: translateY(-3px); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--beige-light); transform: translateY(-3px); }
.enroll .blob.e1 { width: 200px; height: 200px; top: 12%; left: 8%; opacity: 0.35; }
.enroll .blob.e2 { width: 150px; height: 150px; bottom: 14%; right: 10%; opacity: 0.3; border-radius: 46% 54% 60% 40%; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--beige); padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 6vw, 6rem) 2rem; }
.footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.footer-logo { width: clamp(120px, 13vw, 180px); height: auto; display: block; }
.footer-mark { width: clamp(48px, 6vw, 76px); height: auto; display: block; flex: none; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(216,199,168,0.2); padding-top: 2.5rem; }
.footer__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); display: block; margin-bottom: 0.8rem; }
.footer__col p { font-size: 0.95rem; line-height: 1.7; color: var(--beige); }
.footer__col a:hover { color: var(--terracotta); }
.footer__base {
  display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(216,199,168,0.2); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sand);
}

/* ============================================================
   SCROLL ANIMATION STATES
   ============================================================ */
/* Reveal targets are driven by GSAP (see initReveals in script.js), which sets
   both the hidden "from" and visible "to" states inline. The only CSS needed is a
   FOUC guard that hides them until GSAP takes over — applied solely when JS has
   enhanced the page. In reduced motion html.is-enhanced is never added, so every
   reveal target stays fully visible with no animation. */
html.is-enhanced [data-reveal],
html.is-enhanced [data-fade],
html.is-enhanced [data-reveal-lines] { visibility: hidden; }

/* Meet Murthy is revealed by class (buildTeacherReveal / buildTeacherCinematic target
   these directly — they have no data-reveal attribute), so they need their own guard.
   The photo column slides in, so .teacher__art is the guarded element. */
html.is-enhanced .teacher__art,
html.is-enhanced .teacher .section-label,
html.is-enhanced .teacher__name,
html.is-enhanced .teacher__lede,
html.is-enhanced .teacher__body,
html.is-enhanced .teacher__tags li,
html.is-enhanced .teacher__cta { visibility: hidden; }

/* Showcase phases are revealed by class (buildShowcaseCinematic / buildShowcaseReveal
   write visible states via autoAlpha), so the three phase wrappers are guarded. */
html.is-enhanced .showcase__quote,
html.is-enhanced .showcase__stats,
html.is-enhanced .showcase__testimonials { visibility: hidden; }

/* DrawSVG line-art is hidden until JS zeroes the strokes and draws them in,
   so unenhanced / reduced-motion pages still show the finished art. Each JS
   builder sets visibility:visible the moment it applies drawSVG:0. */
html.is-enhanced .hero__illus,
html.is-enhanced .program-motif,
html.is-enhanced .quote__flourish,
html.is-enhanced .enroll__flourish { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .hero__title, .hero__script, .hero__studios { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__meta { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature__col--art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .teacher { grid-template-columns: 1fr; }
  .teacher__art { order: -1; max-width: 380px; margin: 0 auto; width: 100%; }
  .exams__boards { grid-template-columns: 1fr; gap: 2rem; }
  .showcase__stats { gap: 2.5rem 1rem; }
  .footer__cols { grid-template-columns: 1fr; }
  .program { grid-template-columns: 50px 1fr; }
  .program__meta, .program__arrow { display: none; }
}

@media (max-width: 640px) {
  .nav__links { position: fixed; inset: 0; background: var(--beige); flex-direction: column; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.5s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 110; }
  .footer__base { flex-direction: column; gap: 0.5rem; }
  /* On phones, thin the decoration so the wordmark stays the focus, and
     stop the guitar's hit-area from intercepting taps (no hover on touch). */
  .illus-note1, .illus-note2, .illus-waves { display: none; }
  .illus-guitar { opacity: 0.26; pointer-events: none; }
  /* background-attachment: fixed is janky on mobile Safari — let it scroll. */
  body { background-attachment: scroll; }
}
