/* DW Calhoun: design system and components.
   Point of view: "curtain up". Warm paper canvas, navy-black stage sections, the studio's own brush blue.
   Tokens live in :root only. No raw colors below this block. */

@font-face {
  font-family: "Bricolage Display";
  src: url("../fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallbacks keep the font swap from shifting layout.
   Computed with fontTools: mean advance of a mixed-case sample vs Arial (0.5335 em),
   ascent/descent from hhea divided by size-adjust. Custom properties are not allowed in @font-face. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial");
  size-adjust: 94.94%;
  ascent-override: 97.96%;
  descent-override: 28.44%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial");
  size-adjust: 98.11%;
  ascent-override: 101.93%;
  descent-override: 30.88%;
  line-gap-override: 0%;
}

:root {
  /* Color */
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --paper-3: #e2ddd1;
  --ink: #0b1220;
  --ink-2: #141d31;
  --ink-3: #1d2842;
  --ink-muted: #4a5468;
  --on-dark: #f6f4ef;
  --on-dark-muted: #aab4c6;
  --brand: #0c71c3;
  --brand-deep: #0a5ea3;
  --brand-bright: #4aa3ec;
  --spot: #ffd89a;
  --line: rgba(11, 18, 32, 0.12);
  --line-dark: rgba(246, 244, 239, 0.14);
  --focus: #0a5ea3;
  --focus-on-dark: #ffd89a;

  /* Type */
  --font-display: "Bricolage Display", "Bricolage Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4.2rem);
  --step-5: clamp(2.9rem, 1.9rem + 4.6vw, 6.4rem);

  /* Space (8-based) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --wrap: 76rem;
  --measure: 66ch;

  /* Shape and depth */
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;
  --radius-pill: 999px;
  --shadow-card: 0 1px 0 rgba(11, 18, 32, 0.06), 0 12px 32px -18px rgba(11, 18, 32, 0.35);
  --shadow-lift: 0 1px 0 rgba(11, 18, 32, 0.06), 0 24px 48px -24px rgba(11, 18, 32, 0.45);

  /* Motion: one signature ease, two durations */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-slow: 0.7s;

  --header-h: 4.25rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Inline icons inside links and text never size themselves from the container. */
a svg, p svg, span svg { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }
a { color: var(--brand-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--ink); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.stage :focus-visible { outline-color: var(--focus-on-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 96%; letter-spacing: -0.01em; line-height: 1.1; }
h4 { font-size: var(--step-1); font-stretch: 100%; letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: var(--s-3) var(--s-5); border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--paper-2 { background: var(--paper-2); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-deep); margin: 0 0 var(--s-3);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-muted); max-width: 52ch; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 48rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* Stage (dark) sections */
.stage {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--ink); color: var(--on-dark);
}
.stage::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(255, 216, 154, 0.16), rgba(255, 216, 154, 0) 70%),
              radial-gradient(40% 40% at 85% 20%, rgba(74, 163, 236, 0.18), rgba(74, 163, 236, 0) 70%);
}
.stage a:not(.btn) { color: var(--brand-bright); }
.stage a:not(.btn):hover { color: var(--on-dark); }
.stage .eyebrow { color: var(--spot); }
.stage .lede, .stage .muted { color: var(--on-dark-muted); }
.muted { color: var(--ink-muted); }

/* Buttons */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-border);
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; line-height: 1.2; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { --btn-bg: var(--brand-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(12, 113, 195, 0.8); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); color: var(--on-dark); box-shadow: none; }
.stage .btn--ghost { --btn-fg: var(--on-dark); --btn-border: rgba(246, 244, 239, 0.55); }
.stage .btn--ghost:hover { --btn-bg: var(--on-dark); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 30rem) { .btn-row .btn { flex: 1 1 100%; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 2.9rem; height: 2.9rem; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 1.2rem; line-height: 1; letter-spacing: -0.01em; }
.brand__sub { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.2rem; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-3);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; border-radius: var(--radius-pill);
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--brand-deep); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-4);
  background: var(--ink); color: var(--on-dark); border: 0; border-radius: var(--radius-pill);
  font: 700 0.95rem var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 1.2rem; height: 1.2rem; }
.mobile-nav { border-top: 1px solid var(--line); padding: var(--s-4) 0 var(--s-6); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem;
  font-family: var(--font-display); font-weight: 700; font-stretch: 90%; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav .btn-row { margin-top: var(--s-5); }
@media (min-width: 62rem) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Hero: the signature moment */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero .lede { font-size: var(--step-0); }
.hero h1 { font-size: clamp(2.9rem, 1.4rem + 5.4vw, 5.6rem); font-stretch: 82%; line-height: 0.92; letter-spacing: -0.018em; word-spacing: 0.04em; margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--brand-bright); }
.hero .lede { margin-bottom: var(--s-6); }
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.reveal-line > span { display: block; }
.js .reveal-line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease) forwards; animation-delay: calc(0.12s + 0.12s * var(--i, 0)); }
@keyframes line-up { to { transform: translateY(0); } }
.swash { width: min(100%, 34rem); height: auto; margin: calc(-1 * var(--s-3)) 0 var(--s-5); color: var(--brand); overflow: visible; }
.swash path { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; }
.js .swash path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l); }
.hero__badge {
  position: absolute; left: calc(-1 * var(--s-5)); bottom: var(--s-6);
  background: var(--paper); color: var(--ink); border-radius: var(--radius-m); padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lift); max-width: 15rem;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: var(--step-3); font-stretch: 80%; line-height: 1; color: var(--brand-deep); }
@media (max-width: 61.99rem) { .hero__badge { left: var(--s-4); } }

/* Ticker of verified wins */
.ticker { display: flex; overflow: clip; border-block: 1px solid var(--line-dark); background: var(--ink-2); color: var(--on-dark); }
.ticker__track { display: flex; flex: none; gap: var(--s-7); padding: var(--s-4) var(--s-7) var(--s-4) 0; white-space: nowrap; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.ticker__item::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--spot); }
.ticker__item span { color: var(--on-dark-muted); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-100%); } }
.ticker { position: relative; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* WCAG 2.2.2: moving content longer than 5 seconds needs a visible pause control, not just hover. */
.ticker__toggle {
  position: absolute; right: var(--s-2); top: 50%; transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-4);
  border: 1px solid var(--line-dark); border-radius: var(--radius-pill); background: var(--ink); color: var(--on-dark);
  font: 700 0.85rem var(--font-body); cursor: pointer;
}
.ticker__toggle:hover { background: var(--on-dark); color: var(--ink); }
.ticker__toggle svg { width: 0.9rem; height: 0.9rem; }

/* Stats */
.stats { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.stat { border-top: 2px solid var(--brand); padding-top: var(--s-4); }
.stat__value { font-family: var(--font-display); font-weight: 800; font-stretch: 78%; font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.03em; }
.stat__label { color: var(--ink-muted); font-weight: 600; }
.stage .stat { border-color: var(--spot); }
.stage .stat__label { color: var(--on-dark-muted); }

/* Program cards (bento, not three equal cards) */
.programs { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
@media (min-width: 62rem) {
  .programs { grid-template-columns: repeat(6, 1fr); }
  .programs > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .programs > :nth-child(2), .programs > :nth-child(3) { grid-column: span 3; }
  .programs > :nth-child(n + 4) { grid-column: span 2; }
}
.program {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 12rem; padding: var(--s-6); border-radius: var(--radius-l);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.program--feature { background: var(--ink); color: var(--on-dark); border-color: transparent; justify-content: flex-end; min-height: 16rem; overflow: hidden; isolation: isolate; }
@media (min-width: 62rem) { .program--feature { min-height: 22rem; } }
.program--feature:hover { color: var(--on-dark); }
.program--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; transition: transform var(--dur-slow) var(--ease); }
.program--feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0.15) 70%); }
.program--feature:hover img { transform: scale(1.04); }
.program h3 { margin: 0; font-size: var(--step-2); }
.program p { margin: 0; color: inherit; opacity: 0.85; }
.program__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-weight: 700; font-size: 0.95rem; }
.program__arrow { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; transition: transform var(--dur-fast) var(--ease); }
.program:hover .program__arrow { transform: translateX(4px); }
.program__arrow svg { width: 1.1rem; height: 1.1rem; }

/* Class finder */
.finder { display: grid; gap: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 2.75rem; padding: 0 var(--s-5); border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 0.98rem var(--font-body); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.finder__status { font-weight: 600; color: var(--ink-muted); min-height: 1.6em; }

/* Schedule */
.schedule-day { margin-bottom: var(--s-7); }
.schedule-day h3 { display: flex; align-items: baseline; gap: var(--s-3); border-bottom: 2px solid var(--ink); padding-bottom: var(--s-2); }
.schedule-day h3 small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; }
.class-row {
  display: grid; gap: var(--s-1) var(--s-4); grid-template-columns: 1fr; padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .class-row { grid-template-columns: 11rem 1fr auto; align-items: baseline; } }
.class-row__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.class-row__name { font-weight: 600; }
.class-row__where { color: var(--ink-muted); font-size: var(--step--1); }
.class-row[hidden] { display: none; }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.note {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-m); background: var(--paper-2); border-left: 4px solid var(--brand);
}
.note svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.2rem; color: var(--brand-deep); }
.note p { margin: 0; }

/* Awards */
.awards-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.award {
  display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--radius-m);
  background: var(--ink-2); border: 1px solid var(--line-dark);
}
.award__tier { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--spot); }
.award__title { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: var(--step-2); line-height: 1.05; margin: 0; }
.award__routine { color: var(--on-dark); font-weight: 600; }
.award__event { color: var(--on-dark-muted); font-size: var(--step--1); }
.award__source { font-size: var(--step--1); }
/* position: relative contains the absolutely positioned .visually-hidden labels in each row;
   without it they escape the scroll box and widen the whole page on phones. */
.results-table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--paper); }
.results-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 40rem; }
.results-table caption { text-align: left; padding: var(--s-4); font-weight: 700; }
.results-table th, .results-table td { text-align: left; padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); vertical-align: top; }
.results-table th { font-weight: 700; background: var(--paper-2); }
.results-table td.num { white-space: nowrap; }

/* Reviews */
.reviews { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.review { margin: 0; padding: var(--s-6); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); display: grid; gap: var(--s-4); align-content: start; }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.review blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 0.6; color: var(--brand); height: 1.4rem; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 500; color: var(--ink-muted); font-size: var(--step--1); }
.stars { display: inline-flex; gap: 2px; color: var(--brand-deep); }
.stars svg { width: 1rem; height: 1rem; }

/* FAQ */
.faq { display: grid; gap: var(--s-3); max-width: 52rem; }
.faq details { border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5); font-weight: 700; font-size: var(--step-1); min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--brand-deep); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--s-5) var(--s-5); max-width: var(--measure); }

/* Locations */
.locations { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.location { padding: var(--s-6); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
.location address { font-style: normal; font-size: var(--step-1); line-height: 1.4; }
.copy-line { display: block; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band__inner { display: grid; gap: var(--s-6); align-items: end; }
@media (min-width: 62rem) { .cta-band__inner { grid-template-columns: 1.3fr 0.7fr; } }
.cta-band h2 { font-size: var(--step-5); font-stretch: 78%; line-height: 0.92; margin: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--step--1); color: var(--ink-muted); padding-top: var(--s-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--paper-3); }
.breadcrumbs a { color: var(--ink-muted); }
.stage .breadcrumbs, .stage .breadcrumbs a { color: var(--on-dark-muted); }

/* Page hero (inner pages) */
.page-hero { padding-block: var(--s-6) var(--section-y); }
.page-hero h1 { font-size: var(--step-5); font-stretch: 80%; line-height: 0.95; letter-spacing: -0.03em; max-width: 16ch; margin-top: var(--s-5); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--s-9) var(--s-6); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--spot); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spot); margin-bottom: var(--s-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-grid li a { display: inline-flex; min-height: 2rem; align-items: center; }
.footer-brand img { width: 4.5rem; height: 4.5rem; margin-bottom: var(--s-4); }
.footer-base a, .section-head p > a:only-child { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-base { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; font-size: var(--step--1); }
.social { display: flex; gap: var(--s-2); }
.social a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); }
.social a:hover { background: var(--on-dark); color: var(--ink); text-decoration: none; }
.social svg { width: 1.15rem; height: 1.15rem; }

/* Mobile call bar */
.callbar {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .btn { min-height: 2.9rem; padding-inline: var(--s-3); font-size: 0.95rem; }
body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
@media (min-width: 62rem) { .callbar { display: none; } body { padding-bottom: 0; } }

/* Header phone */
.header-phone { display: none; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-2); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 1.1rem; height: 1.1rem; color: var(--brand-deep); }
@media (min-width: 75rem) { .header-phone { display: inline-flex; } }

/* Split section: heading left, content right */
.split { display: grid; gap: var(--s-6); }
@media (min-width: 62rem) { .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; } .split > .section-head { position: sticky; top: calc(var(--header-h) + var(--s-5)); margin-bottom: 0; } }
.h3-size { font-size: var(--step-2); }

/* Page hero with media */
.page-hero__grid { display: grid; gap: var(--s-7); align-items: end; }
@media (min-width: 62rem) { .page-hero__grid { grid-template-columns: 1.2fr 0.8fr; } }
.page-hero__media img { width: 100%; border-radius: var(--radius-l); aspect-ratio: 4 / 5; object-fit: cover; }
.page-hero__media--wide img { aspect-ratio: 4 / 3; }
.page-hero .lede { margin-block: var(--s-5) var(--s-6); max-width: 60ch; }
.page-hero h1 { max-width: 22ch; }
.page-address { font-style: normal; font-size: var(--step-1); margin-bottom: var(--s-5); font-weight: 600; }

/* Age index (home) */
.age-index { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.age-index a {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: var(--s-1) var(--s-3);
  min-height: 7.5rem; padding: var(--s-5); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.age-index a:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); background: var(--ink); color: var(--on-dark); }
.age-index__label { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: var(--step-2); line-height: 1.05; grid-column: 1 / -1; }
.age-index__count { font-weight: 600; color: var(--ink-muted); }
.age-index a:hover .age-index__count { color: var(--on-dark-muted); }
.age-index svg { width: 1.25rem; height: 1.25rem; justify-self: end; color: var(--brand); }

/* Program index (classes hub) */
.program-index { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.program-index a span { white-space: nowrap; }
.program-index a { display: flex; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: 0 var(--s-5); border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.program-index a span:first-child { margin-right: auto; }
.program-index a:hover { border-color: var(--ink); }
.program-index svg { width: 1.1rem; height: 1.1rem; color: var(--brand); }

/* Age groups (classes hub) */
.age-groups { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.age-group { padding: var(--s-5); border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.age-group:target { outline: 3px solid var(--brand); outline-offset: 2px; }
.age-group h3 { font-size: var(--step-2); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.age-group h3 small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; }
.class-list--compact li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.finder__label { font-weight: 700; margin: var(--s-5) 0 0; }
.finder { margin-bottom: var(--s-6); }
.finder[hidden] { display: none; }
[data-day][hidden] { display: none; }

/* Jump nav */
.jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.jump a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; padding: 0 var(--s-4); border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.jump a span { font-size: 0.8rem; background: var(--paper); border-radius: var(--radius-pill); padding: 0.1rem 0.5rem; }
.jump a:hover { background: var(--ink); color: var(--on-dark); }
section[id] { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }

/* Steps and rules */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.steps > li { counter-increment: step; position: relative; padding: var(--s-5) var(--s-5) var(--s-5) 4.25rem; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: var(--s-5); top: var(--s-5); width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font-display); }
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.steps p { margin: 0; }
.section--paper-2 .steps > li, .section--paper-2 .rules > li { background: var(--paper); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.rules > li { padding: var(--s-4) var(--s-5); border-radius: var(--radius-m); background: var(--paper-2); border: 1px solid var(--line); display: grid; gap: var(--s-1); }
.rules > li p { margin: 0; }
.rules__ref { font-size: var(--step--1); font-weight: 600; color: var(--ink-muted); justify-self: start; }
.cross-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.cross-links a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.75rem; font-weight: 700; }
.cross-links svg { width: 1.1rem; height: 1.1rem; }
.related { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.count-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-2); }
.count-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: var(--s-2) 0; font-weight: 600; }
.hero__badge { text-decoration: none; transition: transform var(--dur-fast) var(--ease); }
.hero__badge:hover { transform: translateY(-3px); color: var(--ink); }
.ticker__track { list-style: none; margin: 0; }
.award h3.award__title { color: var(--on-dark); }
.stage .note { background: var(--ink-2); border-left-color: var(--spot); }
.stage .note svg { color: var(--spot); }
.location .note { margin-block: var(--s-2); }

/* Reveal on scroll (armed by JS; content is visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Page transitions (progressive enhancement) */
@view-transition { navigation: auto; }

/* Reduced motion: everything settles instantly */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal-line > span { transform: none; animation: none; }
  .js .swash path { stroke-dashoffset: 0; animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker { overflow: visible; }
  .ticker__track { animation: none; flex: 1 1 100%; flex-wrap: wrap; white-space: normal; gap: var(--s-3) var(--s-6); padding: var(--s-4) var(--gutter); }
  .ticker__track[aria-hidden="true"], .ticker__toggle { display: none; }
}

@media print {
  .site-header, .callbar, .ticker, .site-footer .social { display: none; }
  .stage { background: none; color: var(--ink); }
}
