/* =====================================================================
   Perth Music Academy: mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Hard constraints: border-radius:0 everywhere; no glass/blur; no ambient
   animation; touch targets >=44px; reduced-motion supported.
   ===================================================================== */

/* ----------------------------------------------------------------------
   1. Tokens (:root): single source of truth, per design system §10
   ---------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale (fluid, §2.4–2.5) */
  --fs-display: clamp(2.5rem, 1.2rem + 5.8vw, 4.5rem);
  --fs-h1: clamp(2.125rem, 1.4rem + 3.2vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.375rem);
  --fs-h3: clamp(1.4375rem, 1.25rem + 0.8vw, 1.75rem);
  --fs-h4: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --fs-h5: 1.125rem;
  --fs-h6: 0.9375rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-xs: 0.875rem;
  --fs-overline: 0.8125rem;

  /* Raw palette */
  --c-ivory: #F6F1E7;  --c-ivory-deep: #EFE7D8;  --c-white: #FFFFFF;
  --c-ebony: #1A1714;  --c-ebony-80: #3A332C;    --c-slate: #4A5A5C;
  --c-slate-line: #D8CFBE;
  --c-red: #B11E2F;    --c-red-dark: #8E1726;     --c-red-tint: #F3DAD9;
  --c-teal: #2E5A5E;   --c-teal-dark: #234648;    --c-gold: #C8A24A;

  /* Semantic colour */
  --bg: var(--c-ivory);        --bg-alt: var(--c-ivory-deep);  --bg-dark: var(--c-ebony);
  --surface: var(--c-white);   --surface-dark: var(--c-ebony-80);
  --ink: var(--c-ebony);       --ink-soft: var(--c-ebony-80);  --muted: var(--c-slate);
  --ink-on-dark: var(--c-ivory); --muted-on-dark: #C9BFA9;
  --accent: var(--c-red);      --accent-ink: var(--c-red-dark); --accent-tint: var(--c-red-tint);
  --accent-on-dark: #E7B6AE;
  --link: var(--c-teal);       --link-hover: var(--c-teal-dark);
  --line: var(--c-slate-line); --line-dark: #4A4138; --focus: var(--c-red);

  /* Spacing: 8px base */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;

  /* Layout */
  --container: 1200px; --container-text: 68ch;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);

  /* Borders / radius / elevation */
  --radius: 0;
  --border: 1px solid var(--line);
  --border-2: 2px solid var(--ink);
  --border-accent: 2px solid var(--accent);
  --shadow-sm: 0 0 0 1px var(--line);
  --shadow-md: 6px 6px 0 0 var(--c-ebony);
  --shadow-accent: 6px 6px 0 0 var(--accent);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms; --dur: 180ms; --dur-slow: 240ms;

  /* Z-index */
  --z-header: 100; --z-skiplink: 200; --z-menu: 150;
}

/* ----------------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: var(--radius); /* hard constraint: 0 everywhere */
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text { max-width: 72ch; }

section { padding-block: var(--section-y); }

/* visually hidden but accessible */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------------
   3. Typography helpers
   ---------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
.h4 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }

.overline {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin: 0 0 var(--space-4);
}
.overline::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-right: 0.7em;
  background: var(--accent);
}
.overline--on-dark { color: var(--accent-on-dark); }

.section-head { max-width: 60ch; margin-bottom: var(--space-7); }
.section-head .lead { margin-top: var(--space-4); }

.prose p { margin-bottom: var(--space-5); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--link-hover); }

/* general inline link rule (non-button, non-nav) */
a:not(.btn):not(.nav-link):not(.footer-col a):not(.site-logo):not(.skip-link):not(.card__link):not(.teacher-card__name a) {
  color: var(--link);
}

/* ----------------------------------------------------------------------
   4. Signature motif: five-line stave tick (§4)
   ---------------------------------------------------------------------- */
.stave {
  --stave-gap: 5px;
  --stave-color: var(--line);
  position: relative;
  height: calc(var(--stave-gap) * 4 + 1px);
  border: 0;
  margin: var(--space-7) 0;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--stave-color) 0,
    var(--stave-color) 1px,
    transparent 1px,
    transparent var(--stave-gap)
  );
  background-repeat: no-repeat;
}
.stave::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 2px;
  height: calc(100% + 6px);
  background: var(--accent);
}
.stave--center { margin-inline: auto; }
.stave--on-dark { --stave-color: var(--line-dark); }

/* ----------------------------------------------------------------------
   5. Skip link & focus (§6.1)
   ---------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: var(--z-skiplink);
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ----------------------------------------------------------------------
   6. Header / navigation (§6.2)
   ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
/* condenses on scroll (JS adds .is-scrolled) */
.site-header.is-scrolled { box-shadow: 0 1px 0 0 var(--line), 0 6px 18px -16px rgba(26,23,20,0.6); }
.site-header.is-scrolled .site-header__inner { min-height: 60px; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  padding-block: var(--space-3);
  transition: min-height var(--dur) var(--ease);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
}
.site-logo span { color: var(--accent-ink); }
/* the stave-tick logomark */
.logo-mark {
  display: inline-block;
  width: 22px;
  height: 26px;
  flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 4px 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0, var(--ink) 1.4px, transparent 1.4px, transparent 6px);
  background-repeat: no-repeat, no-repeat;
  background-position: 4px 0, 0 3px;
  background-size: 2px 100%, 22px 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-2);
  transition: color var(--dur) var(--ease);
}
.nav-link:hover { color: var(--accent-ink); }
.nav-link[aria-current="page"] { color: var(--accent-ink); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--ink); color: var(--ink-on-dark); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; width: 20px; height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 768px) {
  .nav { gap: 0; }
  .nav-list {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px -18px rgba(26,23,20,0.7);
    padding: var(--space-4) var(--gutter) var(--space-6);
    z-index: var(--z-menu);
  }
  .nav-list.is-open { display: flex; }
  .nav-list .nav-link { min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav-list .nav-link[aria-current="page"]::after { bottom: 8px; left: 0; right: auto; width: 28px; }
  .nav-cta { margin-top: var(--space-4); }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
}

/* ----------------------------------------------------------------------
   7. Buttons (§6.3)
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--ink-on-dark);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--primary:active { transform: translateY(1px); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--ink-on-dark); }
.btn--secondary:active { transform: translateY(1px); }

/* secondary on a dark band */
.btn--secondary-on-dark {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: var(--ink-on-dark);
}
.btn--secondary-on-dark:hover { background: var(--ink-on-dark); color: var(--ink); }

.btn--ghost {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font-weight: 600;
  gap: var(--space-2);
}
.btn--ghost .arrow { transition: transform var(--dur) var(--ease); }
.btn--ghost:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover .arrow { transform: translateX(3px); }

.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ----------------------------------------------------------------------
   8. Hero (§6.4)
   ---------------------------------------------------------------------- */
.hero {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
  position: relative;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--muted-on-dark);
  max-width: 56ch;
  margin: 0 0 var(--space-7);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
/* faint stave along the bottom of the dark hero band */
.hero .stave { margin-top: var(--space-8); margin-bottom: 0; }

/* Light interior-page hero (Hero B) */
.page-hero {
  background: var(--bg);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  max-width: 20ch;
}
.page-hero__intro { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 62ch; line-height: 1.5; }
.page-hero .stave { margin-top: var(--space-7); margin-bottom: 0; }

/* ----------------------------------------------------------------------
   9. Trust strip (§6.5)
   ---------------------------------------------------------------------- */
.trust-strip {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.trust-strip__inner { padding-block: 0; }
.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  margin: 0;
  padding: var(--space-5) 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-strip__list li { display: inline-flex; align-items: center; }
.trust-strip__list li + li::before {
  content: "";
  width: 2px; height: 1em;
  background: var(--accent);
  margin-right: var(--space-6);
}
.cred-marks {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  list-style: none; margin: 0; padding: 0 0 var(--space-5);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ----------------------------------------------------------------------
   10. Section utilities
   ---------------------------------------------------------------------- */
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.section--dark .h2, .section--dark .h3 { color: var(--ink-on-dark); }
.section--dark .lead { color: var(--muted-on-dark); }
.section--dark .overline { color: var(--accent-on-dark); }

.grid-2 {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid-2--lead { grid-template-columns: 5fr 7fr; }
}

/* ----------------------------------------------------------------------
   11. Program / service cards (§6.6)
   ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--line);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:focus-within { box-shadow: var(--shadow-md); }
.card:hover::after, .card:focus-within::after { width: 56px; }

.card__kicker {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-ink);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin: 0;
}
.card__body { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }
.card__meta { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.card__link .arrow { transition: transform var(--dur) var(--ease); }
.card__link:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 4px; }
.card__link:hover .arrow { transform: translateX(3px); }

/* ----------------------------------------------------------------------
   12. Teacher cards (§6.7)
   ---------------------------------------------------------------------- */
.teacher-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.teacher-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.teacher-card__photo {
  aspect-ratio: 263 / 300;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.teacher-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.teacher-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin: 0;
}
.teacher-card__role { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.teacher-card__line { font-size: var(--fs-xs); color: var(--ink-soft); }

.cred-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); list-style: none; padding: 0; }
.cred-tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 2px var(--space-2);
  line-height: 1.4;
}

/* full teacher bio block (Teachers page) */
.teacher-bio {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
}
@media (min-width: 768px) {
  .teacher-bio { grid-template-columns: 220px 1fr; align-items: start; }
}
.teacher-bio__photo {
  aspect-ratio: 263 / 300;
  width: 100%;
  max-width: 220px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.teacher-bio__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: 0 0 var(--space-1); }
.teacher-bio__role { font-size: var(--fs-small); color: var(--accent-ink); font-weight: 600; margin: 0 0 var(--space-3); }
.teacher-bio__body p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--space-4); }
.teacher-bio__body p:last-child { margin-bottom: 0; }
.teacher-bio__note { font-size: var(--fs-xs); color: var(--muted); font-style: italic; margin-top: var(--space-4); }

/* ----------------------------------------------------------------------
   13. Category cards (§6.8)
   ---------------------------------------------------------------------- */
.category-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
}
.category-card + .category-card { margin-top: var(--space-5); }
@media (min-width: 768px) {
  .category-card { grid-template-columns: 14rem 1fr; align-items: start; }
}
.category-card__label { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.category-card__sub { font-size: var(--fs-small); color: var(--muted); margin-top: var(--space-2); }
.category-card__meta { font-size: var(--fs-small); color: var(--ink-soft); }
.category-card__meta p { margin-bottom: var(--space-3); }
.category-card__meta p:last-child { margin-bottom: 0; }

.band-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.band-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-small);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
}
.band-list li:last-child { border-bottom: 0; }
.band-list strong { min-width: 7rem; flex: none; font-weight: 600; }

/* feature list with stave-tick bullets */
.tick-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.tick-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 2px;
  background: var(--accent);
}
.tick-list--two { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tick-list--two { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-6); } }

/* ----------------------------------------------------------------------
   14. Values strip
   ---------------------------------------------------------------------- */
.value-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.value {
  border-top: 3px solid var(--line);
  padding-top: var(--space-4);
  position: relative;
}
.value::before {
  content: "";
  position: absolute;
  left: 0; top: -3px;
  width: 40px; height: 3px;
  background: var(--accent);
}
.value h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 var(--space-2); }
.value p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* ----------------------------------------------------------------------
   15. Fee tables (§6.9)
   ---------------------------------------------------------------------- */
.fee-block { margin-bottom: var(--space-8); }
.fee-block:last-child { margin-bottom: 0; }
.fee-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}
.fee-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.fee-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-4);
  caption-side: top;
}
.fee-table th,
.fee-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fee-table thead th {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 0;
  white-space: nowrap;
}
.fee-table tbody th { font-weight: 600; white-space: nowrap; }
.fee-table tbody tr:nth-child(even) td,
.fee-table tbody tr:nth-child(even) th { background: var(--bg-alt); }
.fee-table .per-lesson { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.fee-table .not-offered { color: var(--muted); font-weight: 400; }
@media (max-width: 480px) {
  .fee-table th, .fee-table td { padding: var(--space-2) var(--space-3); }
}
.fee-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-3); }

/* key/value policy + term layout */
.dl-grid { display: grid; gap: var(--space-5); }
.dl-grid .h4 { margin-bottom: var(--space-2); }

.term-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.term-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.term-list li:last-child { border-bottom: 0; }
.term-list strong { min-width: 5rem; font-weight: 600; }

.policy { margin-bottom: var(--space-7); }
.policy:last-child { margin-bottom: 0; }
.policy h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 var(--space-3); }
.policy p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--space-3); max-width: 70ch; }
.policy p:last-child { margin-bottom: 0; }
.policy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.policy ul li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.policy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 12px; height: 2px;
  background: var(--accent);
}

/* callout box (registration fee, payment note) */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: var(--space-6);
}
.callout .h4 { margin-bottom: var(--space-2); }
.callout p { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--space-3); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ----------------------------------------------------------------------
   16. Testimonials (§6.11)
   ---------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.quote {
  border-top: 3px solid var(--line);
  position: relative;
  padding-top: var(--space-6);
}
.quote::before {
  content: "";
  position: absolute;
  left: 0; top: -3px;
  width: 48px; height: 3px;
  background: var(--accent);
}
.quote__text {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}
.quote__cite {
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}

/* ----------------------------------------------------------------------
   17. Forms (§6.12)
   ---------------------------------------------------------------------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); padding: var(--space-7); }
@media (max-width: 480px) { .form-wrap { padding: var(--space-5); } }

.form-legend { font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .req { color: var(--accent-ink); }

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  width: 100%;
}
.textarea { min-height: 8rem; padding-top: var(--space-3); resize: vertical; line-height: 1.6; }
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.input[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.field__error { font-size: var(--fs-xs); color: var(--accent-ink); font-weight: 600; }

.field-row { display: grid; gap: 0 var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.choice { display: flex; gap: var(--space-3); align-items: flex-start; min-height: 44px; padding: var(--space-2) 0; }
.choice input { width: 22px; height: 22px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.choice label { font-weight: 400; font-size: var(--fs-small); color: var(--ink-soft); }

.form-actions { margin-top: var(--space-6); }
.form-actions .btn { width: 100%; }
@media (min-width: 600px) { .form-actions .btn { width: auto; min-width: 16rem; } }

/* steps list (enrol) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); }
.steps li {
  position: relative;
  padding-left: calc(var(--space-8) + var(--space-2));
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: var(--space-8); height: var(--space-8);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.steps h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 var(--space-2); }
.steps p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

/* contact detail list */
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.detail-list dt { font-size: var(--fs-overline); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--muted); margin-bottom: var(--space-1); }
.detail-list dd { margin: 0; font-size: var(--fs-body); }
.detail-list dd a { color: var(--link); }

/* ----------------------------------------------------------------------
   18. CTA band
   ---------------------------------------------------------------------- */
.cta-band { background: var(--bg-dark); color: var(--ink-on-dark); }
.cta-band__title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; margin: 0 0 var(--space-4); max-width: 22ch; }
.cta-band p { color: var(--muted-on-dark); max-width: 56ch; margin: 0 0 var(--space-6); }

/* ----------------------------------------------------------------------
   19. Footer (§6.13)
   ---------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding-block: var(--space-9) var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}
.footer-brand__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 var(--space-3); }
.footer-brand__name span { color: var(--accent-on-dark); }
.footer-brand p { font-size: var(--fs-small); color: var(--muted-on-dark); max-width: 32ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { min-height: 36px; display: flex; align-items: center; }
.footer-col a { color: var(--ink-on-dark); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-on-dark); }
.footer-col p { font-size: var(--fs-small); color: var(--muted-on-dark); margin-bottom: var(--space-3); }
.footer-col address { font-style: normal; font-size: var(--fs-small); color: var(--muted-on-dark); }

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--muted-on-dark);
}
.footer-cred { display: flex; flex-wrap: wrap; gap: var(--space-4); letter-spacing: 0.06em; text-transform: uppercase; list-style: none; margin: 0; padding: 0; }

/* ----------------------------------------------------------------------
   20. Scroll reveal motion (one effect, IntersectionObserver, §motion)
   ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------
   21. Reduced motion (§7)
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .teacher-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------
   22. Print (§9): the fees page is the one parents print
   ---------------------------------------------------------------------- */
@media print {
  :root { --bg: #fff; --bg-alt: #fff; --ink: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link, .hero__actions, .form-actions { display: none !important; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .fee-table thead th { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  .fee-table-wrap { border-color: #000; }
  a { color: #000 !important; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
