@charset "UTF-8";

/* ---------------------------------------------------------------
   5 Note Fun Music Studio
   The five-line staff is the organising device: it marks section
   boundaries and, on programme cards, encodes the age ladder as
   pitch. Colour comes straight from the logo artwork.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand, sampled from the logo vectors */
  --ink: #231f20;
  /* Identity blue: note-heads, rules, anything that isn't carrying text */
  --blue: #1a93be;
  /* Interactive blue: darkened until white text on it clears 4.5:1 */
  --blue-ink: #10718c;
  --blue-deep: #044c64;
  --sedona: #b24424;
  --sedona-deep: #612a10;

  /* The four programme hues, each from its own curriculum mark */
  --prog-sb: #f0903c;
  --prog-lpm: #54a830;
  --prog-presto: #6f4fae;
  --prog-cello: #b24424;

  /* Surfaces */
  --paper: #fdfcfb;
  --paper-sunk: #f2f5f7;
  --rule: #d9e4ea;
  --rule-strong: #b9cdd7;

  /* Text */
  --text: #231f20;
  --text-soft: #55595c;

  /* The accent swaps to Sedona inside Guthrie Cello Studio */
  --accent: var(--blue);
  --accent-ink: var(--blue-ink);
  --accent-deep: var(--blue-deep);
  --accent-wash: #eaf5f9;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --shell: 74rem;

  /* Staff geometry: five lines, four gaps */
  --staff-gap: 7px;
  --staff-line: 1px;

  --radius-tile: 18px;
  --radius-card: 14px;
  --radius-control: 8px;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.38vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.74vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.45vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.63rem + 2.8vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  font-variation-settings: "wght" 400, "wdth" 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  /* Slightly condensed and heavy, echoing the logo lockup */
  font-variation-settings: "wght" 700, "wdth" 92;
  line-height: 1.08;
  letter-spacing: -0.021em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  line-height: 1.2;
}
h4 {
  font-size: var(--step-0);
  font-variation-settings: "wght" 700, "wdth" 100;
  letter-spacing: -0.005em;
}

p,
li {
  max-width: var(--measure);
  text-wrap: pretty;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

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

/* --- Layout primitives ---------------------------------------- */

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

.shell-wide {
  max-width: 86rem;
}

section {
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-control) 0;
}

.skip:focus {
  left: 0;
}

/* --- The staff ------------------------------------------------- */

/* Five hairlines. Used as a section rule and as the bed for note-heads. */
.staff {
  height: calc(var(--staff-gap) * 4 + var(--staff-line) * 5);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule) 0,
    var(--rule) var(--staff-line),
    transparent var(--staff-line),
    transparent calc(var(--staff-gap) + var(--staff-line))
  );
  background-size: 100% calc(var(--staff-gap) * 4 + var(--staff-line) * 5);
  background-repeat: no-repeat;
}

.staff-rule {
  --staff-gap: 4px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--accent) 42%, transparent) 0,
    color-mix(in srgb, var(--accent) 42%, transparent) var(--staff-line),
    transparent var(--staff-line),
    transparent calc(var(--staff-gap) + var(--staff-line))
  );
}

/* A note-head riding the staff. `--pos` 0 is the bottom line, 8 the top. */
.notehead {
  position: relative;
  display: block;
}

.notehead::after {
  content: "";
  position: absolute;
  left: var(--note-x, 1.75rem);
  bottom: calc(var(--pos, 4) * 4px - 6px);
  width: 16px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: rotate(-20deg);
}

/* --- Header ---------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 251, 0.94);
  backdrop-filter: blur(10px);
}

.masthead::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--prog-sb) 0 25%,
    var(--prog-lpm) 25% 50%,
    var(--prog-presto) 50% 75%,
    var(--prog-cello) 75% 100%
  );
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding-block: 0.6rem;
}

.masthead__logo {
  flex: 0 0 auto;
  margin-right: auto;
}

.masthead__logo img {
  width: 152px;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.5vw, 1.35rem);
}

.masthead__nav a {
  color: var(--text);
  text-decoration: none;
  font-variation-settings: "wght" 520, "wdth" 96;
  font-size: 1rem;
  padding: 0.5rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.masthead__nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}

.masthead__nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
  font-variation-settings: "wght" 650, "wdth" 96;
}

.nav-toggle {
  display: none;
}

/* --- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  font: inherit;
  font-size: 0.96rem;
  font-variation-settings: "wght" 650, "wdth" 96;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.btn--primary {
  background: var(--accent-ink);
  color: #fff;
  border-color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--text);
}

.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: var(--step-0);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.split .btn-row:has(.btn + .btn) .btn,
.contact-grid .btn-row:has(.btn + .btn) .btn {
  flex: 1 1 13rem;
}

/* --- Hero ------------------------------------------------------ */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero__title {
  font-variation-settings: "wght" 730, "wdth" 88;
  letter-spacing: -0.028em;
}

.hero__lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 34ch;
}

.hero__media {
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--paper-sunk);
  aspect-ratio: 16 / 11;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__meta {
  margin-top: 2rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.hero__meta strong {
  color: var(--text);
  font-variation-settings: "wght" 650, "wdth" 100;
}

/* --- Program ladder -------------------------------------------- */

.ladder {
  background: var(--accent-wash);
}

.ladder__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.ladder__head p {
  margin: 0;
  color: var(--text-soft);
  max-width: 44ch;
}

.ladder__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pcard:hover {
  border-color: var(--accent);
  color: inherit;
}

.pcard:focus-visible {
  outline-color: var(--accent);
}

.pcard:hover .pcard__name {
  color: var(--accent-deep);
}

/* The card's head is a field of the curriculum's colour, with its logo
   centred on the staff. Every card puts the logo in the same place. */
.pcard__field {
  position: relative;
  height: 118px;
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.pcard__field .staff {
  --staff-gap: 13px;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in srgb, var(--accent) 48%, transparent) 0,
    color-mix(in srgb, var(--accent) 48%, transparent) var(--staff-line),
    transparent var(--staff-line),
    transparent calc(var(--staff-gap) + var(--staff-line))
  );
}

.pcard__mark {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
}

.pcard__body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard__ages {
  font-size: var(--step--1);
  color: var(--text-soft);
  font-variation-settings: "wght" 550, "wdth" 96;
  margin: 0 0 0.2rem;
}

.pcard__name {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
  color: var(--accent-deep);
}

.pcard__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-soft);
  line-height: 1.5;
}

.pcard__cue {
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
  color: var(--accent-deep);
}

/* --- Promises -------------------------------------------------- */

.promises {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

/* Each promise takes one colour from the studio palette, so five statements
   of similar length stay distinguishable at a glance. */
.promise {
  border-top: 5px solid var(--promise, var(--blue));
  padding-top: 1.15rem;
  max-width: none;
}

.promise:nth-child(1) { --promise: var(--blue); }
.promise:nth-child(2) { --promise: var(--prog-sb); }
.promise:nth-child(3) { --promise: var(--prog-lpm); }
.promise:nth-child(4) { --promise: var(--prog-presto); }
.promise:nth-child(5) { --promise: var(--prog-cello); }

.promise h3 {
  margin-bottom: 0.5rem;
  font-size: var(--step-1);
}

.promise p {
  color: var(--text-soft);
  font-size: var(--step-0);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --- Testimonials ---------------------------------------------- */

.quotes {
  background: var(--blue-deep);
  color: #fff;
}

.quotes h2 {
  color: #fff;
}

.quotes__intro {
  color: #9cc3d4;
  margin-bottom: 0;
  font-size: var(--step-0);
}

.quotes__head h2 {
  margin-bottom: 0.4rem;
}

.quotes__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.quotes__grid li {
  max-width: none;
  display: flex;
}

.quote-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: var(--radius-tile);
  background: #16596f;
  border: 1px solid #2c697d;
}

.quote-card__mark {
  display: block;
  height: 2.6rem;
  font-size: 4.5rem;
  line-height: 1;
  font-variation-settings: "wght" 700;
  color: #7fd0ee;
}

.quote-card blockquote {
  margin: 0 0 1.25rem;
}

.quote-card blockquote p {
  margin: 0;
  font-size: var(--step-1);
  font-variation-settings: "wght" 500, "wdth" 96;
  line-height: 1.35;
  letter-spacing: -0.008em;
}

.quote-card blockquote p::after {
  content: "\201D";
}

.quote-card figcaption {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #2c697d;
  color: #b7d6e3;
  font-size: var(--step--1);
  font-variation-settings: "wght" 600, "wdth" 96;
}

/* --- Homepage questions --------------------------------------- */

.faq__list {
  display: grid;
  gap: 0 clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  margin: 2rem 0 0;
}

.faq__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.faq__item dt {
  font-size: var(--step-1);
  font-variation-settings: "wght" 650, "wdth" 96;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.faq__item dd {
  margin: 0;
}

.faq__item dd p {
  margin: 0 0 0.5rem;
  color: var(--text-soft);
}

/* --- Generic content ------------------------------------------- */

.lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 46ch;
}

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* Programme and cello pages open on their own colour. */
.page-head--branded {
  /* A stronger tint than --accent-wash, so each class opens on its own colour. */
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.page-head__grid {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.curriculum-mark {
  flex: 0 0 auto;
  width: clamp(96px, 11vw, 140px);
  height: auto;
}

@media (max-width: 40rem) {
  .page-head__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.page-head__kicker {
  display: inline-block;
  font-size: var(--step--1);
  color: #fff;
  background: var(--accent-ink);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-variation-settings: "wght" 650, "wdth" 96;
  margin: 0 0 0.9rem;
}

.teacher__role {
  margin: 0 0 0.5rem;
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
  letter-spacing: 0.02em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.split--narrow-right {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.split--center {
  align-items: center;
}

.figure {
  margin: 0;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--paper-sunk);
}

.figure img {
  width: 100%;
}

/* Art with its own shape (transparent edges): no tile behind it. */
.figure--cutout {
  background: none;
  border-radius: 0;
}

/* --- Detail lists ---------------------------------------------- */

.facts {
  margin: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.facts > div {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 1rem 0.9rem 0;
}

.facts dt {
  font-size: var(--step--1);
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.facts dd {
  margin: 0;
  font-variation-settings: "wght" 600, "wdth" 98;
}

/* --- Price tables ---------------------------------------------- */

.costs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.costs > *,
.split > *,
.contact-grid > *,
.ladder__grid > *,
.tiles > *,
.hero__grid > * {
  min-width: 0;
}

.cost-block h3 {
  margin-bottom: 0.3rem;
}

.cost-block > p {
  color: var(--text-soft);
  font-size: var(--step--1);
  max-width: 52ch;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 22rem;
}

caption {
  text-align: left;
  font-variation-settings: "wght" 650, "wdth" 96;
  padding-bottom: 0.6rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--ink);
  font-variation-settings: "wght" 650, "wdth" 96;
  white-space: nowrap;
}

tbody th {
  font-variation-settings: "wght" 600, "wdth" 98;
}

td:nth-child(2) {
  font-variation-settings: "wght" 650, "wdth" 96;
  white-space: nowrap;
}

.table-note {
  font-size: var(--step--1);
  color: var(--text-soft);
  margin-top: 0.7rem;
}

/* --- Cost sheets ------------------------------------------------ */

.cost-sheet {
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 4px solid var(--accent);
}

.cost-sheet h2 {
  color: var(--accent-deep);
  margin-bottom: 0.3rem;
}

.cost-sheet__mark {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
}

.cost-sheet thead th {
  border-bottom-color: var(--accent);
}

/* A colour chip per programme, matching its section below. The anchor is
   display:block for tap-target reasons, so the chip is an inline-block. */
.plainlist li[style*="--accent"] > a::before {
  content: "";
  display: inline-block;
  vertical-align: baseline;
  width: 11px;
  height: 11px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Callout --------------------------------------------------- */

.callout {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  margin-block: 2rem;
}

.callout h3 {
  margin-bottom: 0.4rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* --- Steps (enrolment) ----------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  align-items: start;
  max-width: none;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-ink);
  color: #fff;
  font-variation-settings: "wght" 700, "wdth" 96;
  font-size: var(--step--1);
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.steps > li > div > :last-child {
  margin-bottom: 0;
}

/* --- Policy accordion ------------------------------------------ */

.policy {
  border-bottom: 1px solid var(--rule);
}

.policy summary {
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-variation-settings: "wght" 650, "wdth" 96;
  list-style: none;
  position: relative;
}

.policy summary::-webkit-details-marker {
  display: none;
}

.policy summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.policy[open] summary::after {
  transform: rotate(-135deg);
}

.policy p {
  color: var(--text-soft);
  font-size: var(--step--1);
  padding-bottom: 1rem;
  margin: 0;
}

/* --- Let's Play Music semesters --------------------------------- */

/* Three years, two named semesters in each. The colours are the
   curriculum's own, taken from its semester logos. */
.semester-years {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.semester-year {
  max-width: none;
}

.semester-year > h3 {
  margin: 0 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rule-strong);
  font-size: var(--step-1);
}

.semester-year > h3 span {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  font-variation-settings: "wght" 450, "wdth" 100;
  letter-spacing: 0;
  color: var(--text-soft);
}

.semester-year__detail {
  font-size: var(--step--1);
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.semester-year > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

/* Each semester name in its own colour. */
.semester {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--semester) 11%, #fff);
  color: color-mix(in srgb, var(--semester) 72%, #000);
  font-variation-settings: "wght" 650, "wdth" 96;
  font-size: var(--step-0);
}

.semester::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 10px;
  border-radius: 50%;
  background: var(--semester);
  transform: rotate(-20deg);
}

/* --- Tiles (cello formats, credentials) ------------------------ */

.tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.tile {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  max-width: none;
}

.tile h3 {
  margin-bottom: 0.4rem;
}

.tile p {
  color: var(--text-soft);
  font-size: var(--step--1);
  margin: 0;
}

/* Programme tiles carry the curriculum's mark and colour. */
.tile--program {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}

.tile__mark {
  width: 56px;
  height: 56px;
  margin-bottom: 0.85rem;
}

.tile--program h3 {
  color: var(--accent-deep);
}

.tile__meta {
  margin-bottom: 1.1rem !important;
}

.tile--program .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Enroll picker: all five in one row on desktop, equal buttons along the
   bottom. */
.tiles--enroll {
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.tiles--enroll .btn {
  align-self: stretch;
  justify-content: center;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

.plainlist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.resource__note {
  display: block;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.plainlist li {
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  padding: 0.6rem 0;
}

/* Give the link the full row so the tap target clears 44px */
.plainlist li > a:only-child {
  display: block;
  margin: -0.6rem 0;
  padding: 0.8rem 0;
}

/* --- Contact --------------------------------------------------- */

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

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: var(--step--1);
  font-variation-settings: "wght" 600, "wdth" 98;
}

.field .hint {
  font-size: var(--step--1);
  color: var(--text-soft);
}

input,
select,
textarea {
  font: inherit;
  font-size: var(--step-0);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text);
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
}

.contact-card {
  background: var(--paper-sunk);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-size: var(--step--1);
  color: var(--text-soft);
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.1rem 0 0;
  font-variation-settings: "wght" 600, "wdth" 98;
}

/* --- Closing CTA ----------------------------------------------- */

.closer {
  background: var(--accent-deep);
  color: #fff;
  text-align: center;
}

.closer h2 {
  margin-inline: auto;
  max-width: 20ch;
  color: #fff;
}

.closer p {
  margin-inline: auto;
  color: color-mix(in srgb, #fff 82%, var(--accent));
  max-width: 48ch;
}

.closer .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--accent-deep);
}

.closer .btn--primary:hover {
  background: var(--accent-wash);
  border-color: var(--accent-wash);
  color: var(--accent-deep);
}

.closer .btn--ghost {
  border-color: color-mix(in srgb, #fff 55%, transparent);
  color: #fff;
}

.closer .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.closer :focus-visible {
  outline-color: #fff;
}

.closer .btn-row {
  justify-content: center;
}

/* --- Footer ---------------------------------------------------- */

.footer {
  background: var(--ink);
  color: #c9d6dc;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--step--1);
}

.footer a {
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(9rem, 1fr));
}

.footer h2 {
  font-size: var(--step-0);
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.15rem;
}

.footer li > a,
.footer address a {
  display: inline-block;
  padding-block: 0.4rem;
}

.footer img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #3c3739;
  color: #8fa3ab;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer__legal p {
  margin: 0;
  max-width: none;
}

/* A link that is the whole of its paragraph, cell or definition is a
   standalone target, not an inline one, so give it a real tap area. */
.prose p > a:only-child,
p > a:only-child,
.contact-card dd > a:only-child,
tbody th > a:only-child,
.facts dd > a:only-child {
  display: inline-block;
  padding-block: 0.4rem;
}

/* --- Utility --------------------------------------------------- */

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

.stack-sm > * + * {
  margin-top: 0.75rem;
}

.mark {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-tile);
}

/* --- Responsive ------------------------------------------------ */

@media (max-width: 62rem) {
  .hero__grid,
  .split,
  .split--narrow-right,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}

@media (max-width: 48rem) {
  /* Logo, Enroll and Menu stay on one row: the masthead is sticky, so its
     height is a running cost for the whole scroll. */
  .masthead__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 3.9rem;
  }

  .masthead__logo img {
    width: 118px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    order: 3;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-control);
    font-size: var(--step--1);
    font-variation-settings: "wght" 650, "wdth" 96;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .masthead .btn--primary {
    order: 2;
    padding: 0.5rem 0.8rem;
  }

  /* The panel always wraps to its own line, open or shut */
  .masthead__nav {
    display: none;
    order: 4;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .masthead__nav[data-open="true"] {
    display: flex;
  }

  .masthead__nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .masthead__nav a:hover,
  .masthead__nav a[aria-current="page"] {
    border-bottom-color: var(--rule);
  }

  /* Equal-width buttons read as a deliberate pair rather than ragged */
  .btn-row .btn {
    flex: 1 1 100%;
  }

  .steps > li {
    grid-template-columns: 2rem 1fr;
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .masthead,
  .footer,
  .closer,
  .btn-row {
    display: none;
  }
  .policy[open] p,
  .policy p {
    display: block;
  }
}

/* --- Homepage rotator ------------------------------------------ */

/* Five photos, one per kind of class. Crossfades; the caption names the class
   and links to it. Controls sit bottom-right and are 44px tap targets. */
.rotator {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: var(--paper-sunk);
  aspect-ratio: 16 / 11;
}

.rotator__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.rotator__slide.is-active {
  opacity: 1;
}

.rotator__slide img,
.rotator__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rotator__slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
}

.rotator__slide figcaption a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(253, 252, 251, 0.94);
  color: var(--text);
  text-decoration: none;
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
}

.rotator__controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.rotator__controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 252, 251, 0.94);
  color: var(--text);
  font: inherit;
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
  cursor: pointer;
}

.rotator__controls button[data-rot="prev"],
.rotator__controls button[data-rot="next"] {
  font-size: 1.5rem;
  line-height: 1;
}

/* --- Group classes: who each class is for --------------------- */

.picker {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.picker__panel {
  padding: 1.5rem;
  border-radius: var(--radius-tile);
  background: var(--paper-sunk);
}

.picker__panel h2 {
  margin: 0 0 0.4rem;
  font-size: var(--step-1);
}

.picker__panel p {
  margin: 0 0 1rem;
}

.picker__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.picker__panel li {
  max-width: none;
}

.picker__panel a {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-control);
  background: var(--paper);
  border-left: 0.35rem solid var(--accent);
  color: var(--text);
  text-decoration: none;
  font-variation-settings: "wght" 650, "wdth" 96;
}

.picker__panel a:hover {
  background: var(--accent-wash);
}

.picker__ages {
  margin-left: auto;
  color: var(--text-soft);
  font-size: var(--step--1);
  font-variation-settings: "wght" 450, "wdth" 100;
}

/* --- Group class cards ----------------------------------------- */

.class-list {
  display: grid;
  gap: 1.5rem;
}

.class-card {
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 6rem;
}

.class-card__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.class-card__head h2 {
  margin: 0;
  color: var(--accent-deep);
}

.class-card__mark {
  width: 64px;
  height: 64px;
}

.class-card__ages {
  margin: 0 0 0.2rem;
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.class-card__tagline {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.class-card__summary {
  margin: 1.1rem 0 0;
  max-width: var(--measure);
}

.class-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.class-card__actions .btn--ghost {
  background: var(--paper);
}

.class-card__actions button[aria-expanded="true"] {
  border-color: var(--accent-ink);
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 14%, #fff);
}

.class-card__actions button[aria-controls]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.class-card__actions button[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.class-card__actions--page {
  margin-top: 1.75rem;
}

.class-card__panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
}

.class-card__panel > h3:first-child {
  margin-top: 0;
}

.class-card__panel h3 {
  margin-top: 1.5rem;
}

.class-card__panel ul {
  padding-left: 1.2rem;
}

.class-card__more {
  margin: 1.25rem 0 0;
  font-variation-settings: "wght" 650, "wdth" 96;
}

/* --- Widgets, video, expectations -------------------------------- */

/* A MyMusicStaff form. The widget script adds its own iframe after the
   fallback link; the link stays as a way out if the form misbehaves. */
.mms {
  margin-top: 1rem;
  min-height: 3rem;
}

.mms__fallback {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.mms iframe {
  display: block;
  width: 100%;
  border: 0;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--ink);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lede-sm {
  font-size: var(--step-0);
  color: var(--text);
  font-variation-settings: "wght" 520, "wdth" 100;
}

.expects {
  display: grid;
  gap: 0.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.expect h3,
.expect h4 {
  margin: 1rem 0 0.4rem;
  font-size: var(--step-0);
  color: var(--accent-deep);
}

.expect ul {
  padding-left: 1.2rem;
  margin: 0;
}

.expect li,
.expect p {
  font-size: var(--step--1);
  max-width: none;
}

.class-card__panel :is(h3, h4) {
  margin-top: 1.4rem;
  font-size: var(--step-1);
}

.class-card__panel .expect :is(h3, h4) {
  font-size: var(--step-0);
  margin-top: 1rem;
}

.class-card__panel .cost-block:first-child :is(h3, h4) {
  margin-top: 0;
}

/* On a detail page the stack sits beside a photo, without its own heading. */
.class-card--bare {
  align-self: start;
}

.class-card--bare .class-card__summary {
  margin-top: 0;
  font-size: var(--step-1);
  max-width: 60ch;
}

/* Sound Beginnings: the seven foundation elements. */
.elements {
  list-style: none;
  counter-reset: el;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.elements li {
  counter-increment: el;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-control);
  background: var(--accent-wash);
  font-variation-settings: "wght" 650, "wdth" 96;
}

.elements li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}

.semester-year .figure {
  margin: 0 0 1rem;
}

/* --- Upcoming classes ------------------------------------------ */

.upcoming {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.upcoming__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  max-width: none;
  padding: 1.35rem;
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
}

.upcoming__item h3 {
  margin: 0;
  font-size: var(--step-2);
  color: var(--accent-deep);
}

.upcoming__item h3 span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--step-0);
  font-variation-settings: "wght" 520, "wdth" 100;
  color: var(--text-soft);
}

.upcoming__status {
  margin: -0.5rem 0 1.5rem;
  font-variation-settings: "wght" 650, "wdth" 96;
  color: var(--accent-deep);
}

.upcoming__group {
  margin: 0.9rem 0 0;
  font-size: var(--step--1);
  font-variation-settings: "wght" 650, "wdth" 96;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.upcoming__times {
  margin-top: 0.4rem !important;
}

.upcoming__signup {
  margin-top: 1.25rem;
}

.upcoming__signup > summary {
  list-style: none;
}

.upcoming__signup > summary::-webkit-details-marker {
  display: none;
}

.upcoming__signup[open] > summary {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.upcoming__date {
  margin: 0.35rem 0 0;
  font-variation-settings: "wght" 600, "wdth" 98;
}

.upcoming__from {
  display: block;
  color: var(--text-soft);
  font-size: var(--step--1);
}

@media (max-width: 62rem) {
  .rotator {
    order: -1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 48rem) {
  .class-card__actions .btn {
    flex: 1 1 100%;
  }

  .rotator__slide figcaption {
    left: 0.75rem;
    top: 0.75rem;
    bottom: auto;
  }

  .rotator__controls {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator__slide {
    transition: none;
  }
}

@media print {
  .class-card__panel[hidden] {
    display: block;
  }
  .class-card__actions,
  .rotator__controls {
    display: none;
  }
}
