/* Stage Pass Music — design system
   Two worlds: the warm room where lessons happen (paper) and the stage they lead to (night).
   Spacing runs on an 8px scale; type is fluid; every section shares one container edge. */

@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-latin.woff2') format('woff2'); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #FBF7F1;
  --paper-2: #F4EDE2;
  --paper-3: #EDE3D4;
  --card: #FFFFFF;
  --line: #E3D8C8;
  --line-strong: #CDBFAB;
  --ink: #1A1621;
  --ink-2: #3A3443;
  --muted: #5F5866;
  --night: #16122A;
  --night-2: #221C3D;
  --night-line: rgba(255,255,255,.12);
  --on-night: #F6F1EA;
  --on-night-muted: #BDB5CC;
  --brand: #C9431C;        /* buttons + links on light (AA with white text) */
  --brand-hover: #A9361A;
  --flare: #F0643A;        /* decorative orange, and accents on night */
  --gold: #F3B53F;
  --peach: #FCE5D6;
  --peach-2: #F9D3BB;
  --sage: #E3E8DA;
  --ok: #2F7D4F;
  --err: #B3261E;

  --font-display: 'Bricolage', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --fs-hero: clamp(2.75rem, 1.55rem + 4.6vw, 5.5rem);
  --fs-h1: clamp(2.4rem, 1.6rem + 3.1vw, 4.3rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.2rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .55vw, 1.7rem);
  --fs-lead: clamp(1.18rem, 1.08rem + .4vw, 1.42rem);
  --fs-body: 1.125rem;
  --fs-sm: 1rem;
  --fs-xs: .875rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(72px, 9vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(26,22,33,.06), 0 8px 24px rgba(26,22,33,.07);
  --shadow-lg: 0 2px 6px rgba(26,22,33,.07), 0 24px 60px rgba(26,22,33,.14);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: manual; font-family: var(--font-display); font-weight: 760; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 var(--s5); color: inherit; font-variation-settings: 'opsz' 96; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: var(--s3); font-variation-settings: 'opsz' 32; }
h4 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: var(--s2); font-variation-settings: 'opsz' 24; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.2em; }
li { margin-bottom: var(--s2); }
strong { font-weight: 650; }
em.serif, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 .serif, h2 .serif, .hero-title .serif { font-size: 1.08em; line-height: .9; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section.tight { padding: calc(var(--section) * .6) 0; }
.section + .section.same { padding-top: 0; }
.bg-2 { background: var(--paper-2); }
.bg-peach { background: var(--peach); }
.bg-white { background: var(--card); }
.night { background: var(--night); color: var(--on-night); }
.night a:not(.btn) { color: var(--gold); }
.night .muted, .night .lead { color: var(--on-night-muted); }
.grid { display: grid; gap: var(--s6); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split.wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split.top { align-items: start; }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split.wide-left, .split.wide-right { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .grid { gap: var(--s5); } }
.stack > * + * { margin-top: var(--s4); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }
.row-between { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s7); }
.row-between .section-head { margin-bottom: 0; }

/* Text bits */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s4); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.night .eyebrow { color: var(--gold); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.kicker-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.kicker-line span { display: inline-flex; align-items: center; gap: 8px; }
.kicker-line svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff; font: 650 1.0625rem/1.1 var(--font-body); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.btn:hover { --b: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,67,28,.28); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.lg { min-height: 60px; padding: 16px 32px; font-size: 1.125rem; }
.btn.sm { min-height: 44px; padding: 10px 18px; font-size: .98rem; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { color: var(--brand); box-shadow: none; }
.btn.light { --b: #fff; color: var(--ink); }
.btn.light:hover { --b: var(--peach); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.btn.flare { --b: var(--flare); color: var(--ink); }
.btn.flare:hover { --b: #ff7a52; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--brand); }
.link-arrow::after { content: '→'; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }
.night .link-arrow { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,247,241,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(26,22,33,.05); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo svg { height: 40px; width: auto; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo .wordmark b { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; font-variation-settings: 'opsz' 48; }
.logo .wordmark small { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a, .nav-drop > button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; font: 600 1rem/1 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.main-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: var(--paper-3); color: var(--ink); }
.main-nav > a[aria-current="page"] { color: var(--brand); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-38%); width: min(860px, calc(100vw - 48px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s6); display: none; grid-template-columns: 1.6fr 1fr; gap: var(--s6); }
.nav-drop.open .mega { display: grid; }
.nav-h { margin: 0 0 var(--s3); }
.mega .nav-h { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: var(--s3); }
.mega-instruments { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px 12px; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem; }
.mega a:hover { background: var(--paper-2); color: var(--brand); }
.mega a svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.mega .mega-side { border-left: 1px solid var(--line); padding-left: var(--s6); }
.mega .mega-all { margin-top: var(--s4); font-weight: 650; color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: var(--s3); flex: none; }
.header-phone { font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1180px) { .header-phone { display: none; } .main-nav > a, .nav-drop > button { padding: 0 11px; } }
@media (max-width: 1060px) {
  .main-nav, .header-cta .btn-secondary-hide { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 520px) { .header-cta .btn { display: none; } .logo .wordmark small { display: none; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(22,18,42,.5); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding: var(--s5) var(--s5) var(--s7); overflow-y: auto; display: flex; flex-direction: column; gap: var(--s2); box-shadow: var(--shadow-lg); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.drawer a.d-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font: 650 1.25rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .d-group { padding: var(--s4) 0 var(--s2); border-bottom: 1px solid var(--line); }
.drawer .d-group .nav-h { font-family: var(--font-body); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.drawer .d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer .d-chips a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.drawer .btn { margin-top: var(--s5); width: 100%; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; gap: 8px; padding: 8px; background: rgba(22,18,42,.94); border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 10px 16px; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body.has-mobile-cta { padding-bottom: 84px; } }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.035em; margin-bottom: var(--s5); }
.hero .lead { margin-bottom: var(--s6); }
.hero .btn-row { margin-bottom: var(--s6); }
.hero-media { position: relative; }
.hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); background: var(--paper-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -28px; bottom: 36px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; max-width: 300px; }
.hero-badge img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.hero-badge b { display: block; font-size: 1rem; line-height: 1.25; }
.hero-badge span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.hero-chip { position: absolute; right: -18px; top: 28px; background: var(--night); color: var(--on-night); border-radius: 999px; padding: 10px 16px; font-weight: 650; font-size: .95rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; }
.hero-chip i { width: 9px; height: 9px; border-radius: 50%; background: #5BD98C; box-shadow: 0 0 0 4px rgba(91,217,140,.25); }
@media (max-width: 980px) { .hero-photo { aspect-ratio: 4 / 3.4; } .hero-badge { left: 16px; bottom: 16px; } .hero-chip { right: 16px; top: 16px; } }
@media (max-width: 520px) { .hero-badge { max-width: calc(100% - 32px); padding: 12px 14px; } .hero-badge img { width: 44px; height: 44px; } }
.hero-deco { position: absolute; z-index: -1; right: -12%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--peach) 0%, rgba(252,229,214,.6) 45%, rgba(252,229,214,0) 100%); pointer-events: none; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); position: relative; }
.page-hero .lead { margin-bottom: var(--s6); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); margin-bottom: var(--s5); list-style: none; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); background: var(--paper-3); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: '✦'; color: var(--flare); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: var(--s3); }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--peach); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--s5); }
.icon-badge svg { width: 26px; height: 26px; }
.night .card { background: var(--night-2); border-color: var(--night-line); box-shadow: none; color: var(--on-night); }
.night .icon-badge { background: rgba(243,181,63,.14); color: var(--gold); }

/* Audience cards (Kids / Teens / Adults) */
.aud-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.aud-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.aud-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.aud-card:hover .ph img { transform: scale(1.04); }
.aud-card .body { padding: var(--s5) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.aud-card .ages { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.aud-card h3 { margin: 0; }
.aud-card p { color: var(--muted); margin: 0; flex: 1; }
.aud-card .link-arrow { margin-top: var(--s3); }

/* Instrument grid */
.inst-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 1060px) { .inst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
.inst { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .22s, box-shadow .22s, border-color .22s; }
.inst:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: var(--ink); }
.inst .ph { aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.inst .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.inst:hover .ph img { transform: scale(1.05); }
.inst .t { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 16px; }
.inst .t b { font: 700 1.15rem/1.15 var(--font-display); letter-spacing: -0.015em; }
.inst .t span { color: var(--brand); font-weight: 700; transition: transform .2s; }
.inst:hover .t span { transform: translateX(3px); }
.inst-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s6); }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; transition: border-color .2s, color .2s; }
.chip-link:hover { border-color: var(--brand); color: var(--brand); }
.chip-link svg { width: 18px; height: 18px; color: var(--brand); }

/* Three ways to learn */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 980px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.way .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.way .ph img { width: 100%; height: 100%; object-fit: cover; }
.way .body { padding: var(--s6); display: flex; flex-direction: column; flex: 1; }
.way .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--peach); color: var(--brand-hover); margin-bottom: var(--s4); }
.way h3 { margin-bottom: var(--s3); }
.way p { color: var(--muted); }
.way ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.way li { display: flex; gap: 10px; margin: 0; font-size: 1rem; }
.way li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }

/* Setlist steps */
.setlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.setlist li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s5); align-items: start; padding: var(--s6) 0; border-bottom: 1px solid var(--line); margin: 0; }
.setlist .n { font: 800 2.6rem/1 var(--font-display); color: var(--flare); letter-spacing: -0.04em; }
.setlist h3 { margin-bottom: var(--s2); }
.setlist p { margin: 0; color: var(--muted); max-width: 62ch; }
.setlist .time { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: 8px; }
.night .setlist, .night .setlist li { border-color: var(--night-line); }
.night .setlist p, .night .setlist .time { color: var(--on-night-muted); }
@media (max-width: 720px) { .setlist li { grid-template-columns: 56px minmax(0, 1fr); } .setlist .n { font-size: 2rem; } .setlist .time { grid-column: 2; padding-top: 0; } }

/* The access pass (founder laminate) */
.pass-wrap { position: relative; display: flex; justify-content: center; padding-top: 132px; }
/* lanyard: drawn on the card itself (.pass-lanyard), so it tilts with it */
.pass { position: relative; width: min(400px, calc(100% - 20px)); background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); overflow: visible; transform: rotate(-2.5deg); transition: transform .4s; }
.pass:hover { transform: rotate(0deg); }
.pass::before { content: ''; position: absolute; top: 14px; left: 50%; width: 64px; height: 12px; transform: translateX(-50%); border-radius: 12px; background: var(--night); z-index: 2; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
.pass-top { background: var(--flare); border-radius: 22px 22px 0 0; padding: 40px 24px 16px; display: flex; align-items: end; justify-content: space-between; }
.pass-top b { font: 800 2.2rem/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--night); text-transform: uppercase; }
.pass-top span { font: 800 .8rem/1 var(--font-body); letter-spacing: .2em; color: var(--night); border: 2px solid var(--night); padding: 6px 8px; border-radius: 6px; }
.pass-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2); }
.pass-photo img { width: 100%; height: 100%; object-fit: cover; }
.pass-body { padding: 20px 24px 22px; border-radius: 0 0 22px 22px; }
.pass-name { font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 4px; }
.pass-role { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.pass-credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; border-top: 1.5px dashed var(--line-strong); padding-top: 14px; }
.pass-credits li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin: 0; }
.pass-credits li b { font-weight: 700; }
.pass-credits li span { color: var(--muted); text-align: right; }
.pass-bar { height: 34px; margin-top: 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; border-radius: 2px; }

/* Founder band */
.founder { overflow: hidden; }
.founder .split { align-items: center; }
.founder blockquote { margin: 0 0 var(--s6); font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.22; color: #fff; }
.credit-list { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
.credit-list li { margin: 0; padding-left: 18px; position: relative; color: var(--on-night); }
.credit-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); }
.credit-list li span { display: block; font-size: .9rem; color: var(--on-night-muted); }
@media (max-width: 520px) { .credit-list { grid-template-columns: 1fr; } }
.stage-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-top: var(--s7); }
.stage-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--night-2); }
.stage-strip figure:first-child { aspect-ratio: auto; }
.stage-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
@media (max-width: 720px) { .stage-strip { grid-template-columns: 1fr 1fr; } .stage-strip figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* Standards / checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; margin: 0; align-items: flex-start; }
.checks li svg { width: 24px; height: 24px; flex: none; color: var(--ok); margin-top: 2px; }
.checks li b { display: block; }
.night .checks li svg { color: var(--gold); }
.standard-num { font: 800 clamp(3rem, 2rem + 4vw, 5.5rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--brand); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
@media (max-width: 980px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-card .flag { position: absolute; top: -14px; left: var(--s6); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.price-card h3 { margin-bottom: var(--s2); }
.price-card .sub { color: var(--muted); font-size: 1rem; margin-bottom: var(--s5); min-height: 3em; }
.price-rows { list-style: none; padding: 0; margin: 0 0 var(--s5); border-top: 1px solid var(--line); }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.price-rows li span { color: var(--ink-2); font-weight: 550; }
.price-rows li b { font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.03em; }
.price-rows li b small { font: 500 .9rem var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.price-card .checks { margin-bottom: var(--s6); font-size: 1rem; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { font-size: .95rem; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 650; }
td.no { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); padding: var(--s5) 0; font: 680 1.22rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1621' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 var(--s5); color: var(--ink-2); max-width: 72ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); background: var(--night); color: var(--on-night); padding: clamp(40px, 6vw, 80px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--s6); align-items: center; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(240,100,58,.45), rgba(240,100,58,0) 70%); pointer-events: none; }
.cta-band h2 { margin-bottom: var(--s3); }
.cta-band p { color: var(--on-night-muted); margin: 0; font-size: var(--fs-lead); }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.stat b { display: block; font: 800 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--flare); margin-bottom: var(--s2); }
.stat span { color: var(--on-night-muted); font-size: 1rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Area list */
.area-cols { columns: 3 220px; column-gap: var(--s6); }
.area-cols a, .area-cols span { display: block; break-inside: avoid; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
.area-cols a:hover { color: var(--brand); }
.zone-card h3 { display: flex; align-items: center; gap: 10px; }
.zone-card .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }

/* Quote / note cards */
.note { border-left: 4px solid var(--flare); background: var(--card); padding: var(--s5) var(--s6); border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }
.pull { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.25; margin: 0 0 var(--s4); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s5); }
.field label, .field .label, legend { font-weight: 650; font-size: 1rem; color: var(--ink); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: -4px; }
.req { color: var(--brand); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea { min-height: 120px; resize: vertical; }
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1621' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; padding-right: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(201,67,28,.14); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--err); }
.field .err-msg { color: var(--err); font-size: .92rem; font-weight: 600; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
legend { padding: 0; margin-bottom: var(--s3); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice-grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; font-weight: 600; font-size: 1rem; line-height: 1.25; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice > span svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.choice span small { display: block; font-weight: 450; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.choice.tall > span { flex-direction: column; align-items: flex-start; padding: 16px; min-height: 96px; }
.choice input:hover + span { border-color: var(--ink-2); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(240,100,58,.35); }
.choice input:checked + span { border-color: var(--brand); background: var(--peach); box-shadow: inset 0 0 0 1px var(--brand); }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: var(--s4); }
.form-msg.show { display: block; }
.form-msg.err { background: #FDECEA; color: var(--err); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.privacy-line { font-size: .9rem; color: var(--muted); margin: var(--s4) 0 0; }

/* Multi-step */
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--s5); }
.steps-count { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.progress { height: 6px; background: var(--paper-3); border-radius: 6px; overflow: hidden; margin-bottom: var(--s6); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--flare), var(--brand)); border-radius: 6px; transition: width .35s; }
.step { display: none; }
.step.active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: var(--s2); }
.step .step-sub { color: var(--muted); margin-bottom: var(--s5); }
.done-box { text-align: center; padding: var(--s6) 0; }
.done-box .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--sage); color: var(--ok); display: grid; place-items: center; margin: 0 auto var(--s5); }
.done-box .big-check svg { width: 42px; height: 42px; }
.next-steps { text-align: left; max-width: 560px; margin: var(--s6) auto 0; }

/* Teacher recruiting */
.perk-num { font: 800 1rem/1 var(--font-body); letter-spacing: .14em; color: var(--brand); text-transform: uppercase; margin-bottom: var(--s3); display: block; }
.night .perk-num { color: var(--gold); }
.pay-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: var(--s6); }
.pay-card table th { background: transparent; color: var(--on-night-muted); border-color: var(--night-line); }
.pay-card table td { border-color: var(--night-line); color: var(--on-night); }
.pay-card .table-wrap { background: transparent; border-color: var(--night-line); }

/* Article / prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.4rem); margin-top: var(--s8); }
.prose h3 { margin-top: var(--s6); }
.prose p, .prose li { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: var(--s9) 0 var(--s6); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid var(--night-line); }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: var(--s4); }
.footer-brand .logo .wordmark small { color: var(--on-night-muted); }
.footer-brand p { max-width: 36ch; font-size: 1rem; }
.site-footer .nav-h { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; font-size: 1rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); font-size: .9rem; }
.footer-bottom nav { display: flex; gap: var(--s5); flex-wrap: wrap; }

/* Utility spacing */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); } .mb-7 { margin-bottom: var(--s7); }
.rounded-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-3); }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }
.ar-43 { aspect-ratio: 4 / 3; } .ar-45 { aspect-ratio: 4 / 5; } .ar-11 { aspect-ratio: 1 / 1; } .ar-169 { aspect-ratio: 16 / 9; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print { .site-header, .mobile-cta, .site-footer, .drawer { display: none !important; } body { background: #fff; } }

/* Small phones: tables fit without sideways scrolling; long button labels wrap */
@media (max-width: 600px) {
  th, td { padding: 11px 10px; font-size: .94rem; }
  th { font-size: .72rem; letter-spacing: .06em; }
  td .muted { display: block; font-size: .82rem; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .btn.lg { padding-left: 24px; padding-right: 24px; }
}

/* plans table: drop the notes column on phones so the four price columns fit */
@media (max-width: 640px) { #plans .how { display: none; } #plans table { font-size: .86rem; } #plans td, #plans th { padding-left: 8px; padding-right: 8px; } }

/* "More instruments" row under the photo cards: labelled so it reads as part of the list */
.inst-more-label { margin: var(--s6) 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.inst-more-tight { margin-top: var(--s3); }

/* ---------- Phones & small tablets: one column, photo leads, the button closes ---------- */
@media (max-width: 980px) {
  /* Content sections: the photo moves above its text, so every section ends on its button */
  .split > .rounded-img, .split > figure, .split > .pass-wrap, .split > .page-hero-media { order: -1; }
  /* Page tops: headline, then the photo, then the buttons (still on the first screen) */
  .hero-grid, .page-hero .split { row-gap: 0; }
  .hero-grid > div:has(> h1), .page-hero .split > div:has(> h1) { display: contents; }
  .hero-grid > .hero-media, .page-hero .split > .page-hero-media, .page-hero .split > .rounded-img, .page-hero .split > .pass-wrap { order: 1; margin: var(--s2) 0 var(--s6); }
  .hero-grid > div:has(> h1) > .btn-row, .hero-grid > div:has(> h1) > .kicker-line,
  .page-hero .split > div:has(> h1) > .btn-row, .page-hero .split > div:has(> h1) > .kicker-line { order: 2; }
  .hero-grid > div:has(> h1) > .lead, .page-hero .split > div:has(> h1) > .lead { margin-bottom: var(--s5); }
}
@media (max-width: 640px) {
  /* Landscape crop keeps the hero photo and the buttons on one screen; the founder badge sits under it */
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-photo img { object-position: 50% 35%; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -30px 14px 0; max-width: none; }
  .hero-chip { font-size: .85rem; padding: 8px 13px; right: 12px; top: 12px; }
  .page-hero-media { aspect-ratio: 4 / 3; }
  /* Full-width buttons: same size, easy to hit */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
  /* Thumb-sized tap areas */
  .link-arrow { min-height: 44px; }
  .site-footer ul { gap: 0; }
  .site-footer li a, .footer-bottom nav a { display: inline-block; padding: 9px 0; }
  /* Small caps labels a touch larger */
  th, .tag, .site-footer .nav-h { font-size: .8rem; }
}
@media (max-width: 640px) {
  /* Founder pass: centred with a little air on both sides, gentler tilt */
  .pass { width: min(360px, calc(100% - 40px)); transform: rotate(-1.5deg); }
  /* About gallery: two across so six photos don't become one long column */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery-grid figcaption { font-size: .78rem; line-height: 1.4; margin-top: 8px; }
}

/* the hidden attribute always wins (buttons and flex boxes were overriding it) */
[hidden] { display: none !important; }

/* headings focused by script (for screen readers) don't need a visible ring */
[tabindex="-1"]:focus { outline: none; }

/* Founder credits (About): name + role on one line, the note underneath; stacks cleanly on phones */
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.credits li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.credits li:last-child { border-bottom: 0; padding-bottom: 0; }
.credits b { font-size: 1.05rem; }
.credits .role { color: var(--ink-2); text-align: right; }
.credits .credit-note { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.media-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0 0; }
.media-list span { padding: 6px 12px; border-radius: 999px; background: var(--paper-2, #F5EEE4); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.founder-media { margin: var(--s5) 0 var(--s5); color: var(--on-night-muted); font-size: .95rem; line-height: 1.6; }
.founder-media b { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 640px) {
  .credits li { grid-template-columns: minmax(0, 1fr); }
  .credits .role { text-align: left; }
}

/* ==========================================================================
   Stage Pass HQ: staff HQ (/admin/) + Teacher Hub (/hub/). Private pages only.
   Reuses the site tokens, buttons, fields and cards above; everything new is prefixed app-, hq- or hub-.
   ========================================================================== */
.app-page { background: var(--paper); }
.app-header .header-inner { height: 68px; gap: var(--s4); }
.app-header .logo svg { height: 36px; }
.app-label { flex: none; font: 700 .74rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-hover); background: var(--peach); padding: 7px 12px; border-radius: 999px; }
.app-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.app-who { font-size: .95rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.app-footer { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .app-header .logo .wordmark { display: none; } .app-who { display: none; } }

.hq { max-width: 1400px; margin: 0 auto; padding: var(--s5) var(--gutter) var(--s8); min-height: 70vh; }
.hq-title { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); margin-bottom: var(--s3); }
.hq-login { max-width: 460px; margin: var(--s7) auto; }
.hq-wide { width: 100%; }
.hq input[type=search], .hq input[type=time] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font-body); -webkit-appearance: none; appearance: none; }
.hq input[type=search]:focus, .hq input[type=time]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(201,67,28,.14); }
.hq .btn { white-space: normal; }

/* Tabs, pipeline stages, toolbar */
.hq-top { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.hq-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hq-tabs button, .hq-tabs a { display: inline-flex; align-items: center; min-height: 44px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 18px; font: 600 1rem/1.1 var(--font-body); cursor: pointer; text-decoration: none; }
.hq-tabs button:hover, .hq-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.hq-tabs .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hq-tabs .on:hover { color: #fff; }
.hq-tools { display: flex; gap: var(--s3); align-items: center; flex: 1 1 320px; justify-content: flex-end; }
.hq-tools input { max-width: 340px; }
.hq-tools .btn { flex: none; white-space: nowrap; }
.hq-pipe { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s5); }
.hq-pipe button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 8px 6px 14px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); border-radius: 999px; font: 600 .92rem/1 var(--font-body); cursor: pointer; }
.hq-pipe button span { min-width: 26px; padding: 4px 7px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: .82rem; text-align: center; }
.hq-pipe button.zero { color: var(--muted); }
.hq-pipe button.all { margin-right: 6px; }
.hq-pipe button:hover { border-color: var(--line-strong); }
.hq-pipe button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hq-pipe button.on span { color: var(--brand-hover); }

/* List + detail */
.hq-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.hq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; align-content: start; }
.hq-board.open .hq-list { grid-template-columns: minmax(0, 1fr); }
.hq-empty { padding: var(--s5) 0; }
.hq-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.hq-card:hover { border-color: var(--line-strong); }
.hq-card.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.hq-card-open { display: grid; gap: 6px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-sm); }
.hq-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hq-card .top b { font-size: 1.06rem; line-height: 1.3; overflow-wrap: anywhere; }
.hq-card .when { flex: none; font-size: .82rem; color: var(--muted); }
.hq-card .sub { font-size: .92rem; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.hq-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hq-pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--peach); color: var(--brand-hover); }
.hq-pill.ghost { background: var(--paper-2); color: var(--ink-2); }
.hq-pill.s-new, .hq-pill.s-applicant, .hq-pill.s-lead { background: #E3F4E9; color: #1E6B3A; }
.hq-pill.s-active, .hq-pill.s-enrolled, .hq-pill.s-onboarded { background: var(--night); color: var(--on-night); }
.hq-pill.s-closed, .hq-pill.s-declined, .hq-pill.s-left, .hq-pill.s-paused { background: var(--paper-3); color: var(--muted); }
.hq-mini { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.hq-chk { position: relative; display: inline-flex; }
.hq-chk input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hq-chk span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); background: #fff; }
.hq-chk span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.hq-chk.done span { border-color: var(--ok); color: var(--ok); background: #EEF6F0; }
.hq-chk.done span::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hq-chk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(240,100,58,.4); }

.hq-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5) var(--s6) var(--s6); }
.hq-detail-head { display: flex; justify-content: space-between; align-items: center; margin: -8px 0 var(--s3) -8px; }
.hq-h { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: var(--s2); overflow-wrap: anywhere; }
.hq-subline { margin-bottom: var(--s4); font-size: .98rem; overflow-wrap: anywhere; }
.hq-status { max-width: 280px; margin-bottom: var(--s4); }
.hq-status select { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.hq-sec { border-top: 1px solid var(--line); padding-top: var(--s5); margin-top: var(--s5); }
.hq-sec h3 { font-size: 1.2rem; margin-bottom: var(--s3); }
.hq-sec.hq-done { background: var(--sage); border: 0; border-radius: var(--radius-sm); padding: var(--s4) var(--s5); }
.hq-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .98rem; }
.hq-dl dt { color: var(--muted); }
.hq-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.hq-checklist { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 10px; }
.hq-checklist li { margin: 0; }
.hq-ready { margin: 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.hq-ready.yes { background: #E3F4E9; color: #1E6B3A; }
.hq-ready.no { background: var(--peach); color: var(--brand-hover); }
.hq-students { padding-left: 1.1em; }
.hq-form { margin-top: var(--s4); }
.hq-form .field { margin-bottom: var(--s4); }
.hq-form input[type=text], .hq-form input[type=email], .hq-form input[type=tel], .hq-form textarea { min-height: 48px; padding: 10px 14px; font-size: 1rem; }
.hq-student { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: var(--s4); margin-bottom: var(--s4); }
.hq-student legend { padding: 0 6px; font-size: .95rem; }
.hq-linkbox { margin-top: var(--s4); padding: var(--s4); border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line); }
.hq-linkbox label { display: block; font-size: .95rem; margin-bottom: 8px; }
.hq-linkrow { display: flex; gap: 8px; }
.hq-linkrow input { min-height: 44px; padding: 8px 12px; font: 500 .9rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hq-linkbox p { margin: 8px 0 0; }
.hq-note textarea { min-height: 84px; font-size: 1rem; }
.hq-note-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.hq-legacy { margin-top: var(--s4); padding: var(--s3) var(--s4); border-left: 3px solid var(--line-strong); background: var(--paper); font-size: .95rem; }
.hq-legacy .txt, .hq-timeline .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.hq-timeline { list-style: none; padding: 0; margin: var(--s4) 0 0; border-left: 2px solid var(--line); }
.hq-timeline li { position: relative; margin: 0; padding: 0 0 var(--s4) var(--s4); }
.hq-timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.hq-timeline li.k-note::before { background: var(--flare); }
.hq-timeline li.k-convert::before, .hq-timeline li.k-password::before { background: var(--ok); }
.hq-timeline li.none::before { display: none; }
.hq-timeline .meta { font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.hq-timeline .from { font-style: italic; }
.hq-timeline .txt { font-size: .98rem; }
.hq-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 300; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: var(--night); color: var(--on-night); font-weight: 600; box-shadow: var(--shadow-lg); }
.hq-toast.bad { background: var(--err); color: #fff; border-radius: 16px; }

@media (min-width: 1100px) {
  .hq-board.open { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
  .hq-detail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
@media (max-width: 1099px) {
  .hq-detail { position: fixed; inset: 0; z-index: 160; overflow-y: auto; border: 0; border-radius: 0; padding: var(--s4) var(--gutter) var(--s8); }
  body.hq-lock { overflow: hidden; }
}
@media (max-width: 640px) {
  .hq-tools { flex-basis: 100%; }
  .hq-tools input { max-width: none; }
  .hq-tabs button, .hq-tabs a { padding: 8px 14px; font-size: .95rem; }
  .hq-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hq-dl dt { margin-top: 8px; font-size: .85rem; }
  .hq-status { max-width: none; }
  .hq-linkrow { flex-direction: column; }
}

/* Teacher Hub */
.hub { max-width: 1100px; }
.hub-auth { max-width: 480px; margin: var(--s6) auto; }
.hub-head { margin: var(--s3) 0 var(--s5); }
.hub-hello { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); margin-bottom: var(--s2); }
.hub-tabs { margin-bottom: var(--s5); }
.hub-h2 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.8rem); margin-bottom: var(--s2); }
.hub-h3 { font-size: 1.2rem; margin: var(--s6) 0 var(--s3); }
.hq-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.hub-grid .hub-soon { grid-column: 1 / -1; background: var(--paper-2); border-style: dashed; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } }
.hub-checklist, .hub-todo, .hub-list { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: 12px; }
.hub-checklist li, .hub-todo li, .hub-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.hub-checklist li > span:not(.tick):not(.sr-only) { display: grid; }
.hub-list li div { display: grid; }
.hub .tick { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.hub .done .tick, .hub-list .tick, .hub-todo .pay .tick { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hub-todo .pay .tick { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E"); }
.hub-todo a { font-weight: 600; }
.hub-todo .done a { color: var(--ink-2); }
.hub-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--peach); color: var(--brand-hover); font-weight: 600; font-size: .98rem; }
.hub-note.yes { background: #E3F4E9; color: #1E6B3A; }
.hub-form fieldset { margin-bottom: var(--s5); }
.hub-add { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr auto; gap: var(--s3); align-items: end; margin: var(--s5) 0 var(--s4); }
.hub-add .field { margin: 0; }
.hub-add select { min-height: 48px; padding-top: 10px; padding-bottom: 10px; font-size: 1rem; }
.hub-add .btn { min-height: 48px; }
@media (max-width: 860px) { .hub-add { grid-template-columns: 1fr 1fr; } .hub-add .field:first-child, .hub-add .field:nth-child(4), .hub-add .btn { grid-column: 1 / -1; } }
.hub-week { border-top: 1px solid var(--line); }
.hub-day { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hub-day.empty b { color: var(--muted); font-weight: 600; }
.hub-blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-block { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-weight: 650; font-size: .95rem; }
.hub-block small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.hub-block.s-home { background: var(--peach); border-color: var(--peach-2); }
.hub-block.s-online { background: var(--sage); }
.hub-block button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hub-block button:hover { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .hub-day { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
@media (max-width: 600px) {
  .hq-panel { padding: 18px 16px; }
  .hub [data-pay] th, .hub [data-pay] td { padding: 10px 7px; }
  .hub [data-pay] td:first-child { min-width: 92px; }
}

/* ==========================================================================
   Stage Pass HQ, Phase 2: scheduling. Staff Schedule tab + family panel (/admin/), Teacher Hub schedule and
   students (/hub/), Family portal (/family/). Private pages only. New classes are prefixed sch- or fam-.
   ========================================================================== */
.hq input[type=date] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font-body); -webkit-appearance: none; appearance: none; }
.hq input[type=date]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(201,67,28,.14); }
.hq-form select, .sch-filter select { min-height: 48px; padding-top: 10px; padding-bottom: 10px; font-size: 1rem; }
.hq .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Lesson status pills (shared by all three views) */
.hq-pill.st-taught { background: #E3F4E9; color: #1E6B3A; }
.hq-pill.st-no_show { background: #FDECEA; color: var(--err); }
.hq-pill.st-late_cancel { background: var(--peach); color: var(--brand-hover); }
.hq-pill.st-cancelled_notice, .hq-pill.st-teacher_cancel { background: var(--paper-3); color: var(--muted); }
.hq-pill.st-moved_online { background: var(--sage); color: var(--ink-2); }
.hq-pill.st-scheduled { background: var(--paper-2); color: var(--ink-2); }
.sch-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s3); }
.hq-timeline li.k-lesson::before { background: var(--gold); }
.hq-timeline li.k-schedule::before { background: var(--ok); }
.hq-timeline li.k-makeup-request::before { background: var(--flare); }

/* Week toolbar (staff + Teacher Hub) */
.sch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.sch-nav { display: flex; gap: 6px; }
.sch-nav .btn { min-width: 44px; padding-left: 14px; padding-right: 14px; }
.sch-title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); margin: 0; flex: 1 1 auto; }
.sch-filter { min-width: 220px; }
.sch-break { margin: 0 0 var(--s4); padding: 12px 16px; border-radius: 12px; background: var(--peach); color: var(--brand-hover); font-weight: 600; }
.sch-foot { margin: var(--s4) 0 var(--s3); }

/* Staff week view: 7 columns on wide screens, days stacked on phones */
.hq-board.sched, .hq-board.sched.open { display: block; }
.sch-week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .sch-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sch-week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.sch-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; min-width: 0; }
.sch-day.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.sch-day h3 { display: flex; align-items: center; gap: 8px; font: 700 .95rem/1.2 var(--font-body); letter-spacing: 0; margin: 0 0 10px; }
.sch-day.empty { background: var(--paper-2); }
.sch-day.empty p { margin: 0; }
.sch-items { display: grid; gap: 8px; }
.sch-lesson { display: grid; gap: 2px; width: 100%; padding: 8px 10px 9px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.sch-lesson:hover { border-color: var(--line-strong); }
.sch-lesson.on { box-shadow: 0 0 0 2px var(--brand); }
.sch-lesson.set-home { border-left-color: var(--flare); }
.sch-lesson.set-studio { border-left-color: var(--gold); }
.sch-lesson.set-online { border-left-color: var(--ok); }
.sch-lesson .t { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.sch-lesson b { font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.sch-lesson .s { font-size: .82rem; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.sch-lesson .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sch-lesson .tags .hq-pill { font-size: .66rem; padding: 3px 8px; }
.sch-lesson.st-cancelled_notice, .sch-lesson.st-teacher_cancel, .sch-lesson.st-late_cancel { background: var(--paper); }
.sch-lesson.st-cancelled_notice b, .sch-lesson.st-teacher_cancel b { text-decoration: line-through; color: var(--muted); }
.sch-outbox { margin-top: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.sch-outbox summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.sch-mail { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 12px; }
.sch-mail li { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .95rem; }
.sch-mail .meta { font-size: .82rem; color: var(--muted); }
.sch-mail .txt { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* On the Schedule tab the lesson panel slides over the week instead of squeezing it */
@media (min-width: 1100px) {
  .hq-board.sched .hq-detail { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); max-height: none; z-index: 160; border-radius: 0; border-width: 0 0 0 1px; box-shadow: var(--shadow-lg); padding-top: var(--s5); }
}

/* Lesson panel + family panel (staff) */
.sch-inline { min-height: 36px; padding: 4px 8px; margin: -4px 0 -4px -8px; }
.sch-act { margin-top: var(--s3); }
.sch-act .field { margin-bottom: var(--s3); }
.sch-policy { padding: 12px 14px; border-radius: 12px; background: var(--sage); font-weight: 600; font-size: .98rem; }
.sch-policy.late { background: var(--peach); color: var(--brand-hover); }
.sch-serieslist, .sch-rows, .sch-credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sch-series, .sch-credits li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.sch-series.s-paused, .sch-series.s-ended, .sch-credits li.cr-used, .sch-credits li.cr-expired { opacity: .75; }
.sch-series-top, .sch-credit-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 2px; }
.sch-credit-top .hq-pill { margin-left: auto; }
.sch-series .btn-row .btn, .sch-credits .btn-row .btn { min-height: 40px; }
.sch-rows li { margin: 0; }
.sch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sch-row:hover { border-color: var(--line-strong); }
.sch-row .t { font-weight: 650; font-size: .95rem; }
.sch-row .w { grid-column: 1; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.sch-row .hq-pill { grid-column: 2; grid-row: 1 / span 2; }
.sch-form { margin-top: var(--s4); padding: var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--card); }
.sch-form h4 { font-size: 1.1rem; margin-bottom: var(--s3); }
.sch-form .field { margin-bottom: var(--s4); }
.sch-form .field .check-line { margin-top: 4px; font-weight: 500; }
.sch-chips { margin-bottom: var(--s4); }
.sch-chips legend { font-size: 1rem; margin-bottom: 8px; }
.sch-chips .choice-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.sch-form .choice > span { min-height: 46px; height: 100%; padding: 8px 12px; }
.sch-avail { margin: -8px 0 var(--s4); }
.sch-avail p { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.sch-warn { margin: 0 0 var(--s4); padding: 12px 14px; border-radius: 12px; background: #FFF4D6; border: 1px solid var(--gold); }
.sch-warn ul { margin: 6px 0 10px; font-size: .95rem; }
.sch-warn li { margin-bottom: 4px; }

/* Teacher Hub: agenda, students, coming up */
.hub-grid .hub-wide { grid-column: 1 / -1; }
.sch-aday { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s4); }
.sch-aday h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: var(--s2); }
.sch-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; }
.sch-card + .sch-card { border-top: 1px dashed var(--line); }
.sch-card-time { display: grid; align-content: start; gap: 2px; }
.sch-card-time b { font-size: 1.02rem; }
.sch-card-time span { font-size: .88rem; color: var(--muted); }
.sch-card-body h4 { font-size: 1.2rem; margin-bottom: 4px; }
.sch-card-body h4 small, .sch-student h3 small { font: 500 .9rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.sch-meta { margin: 0 0 var(--s2); color: var(--ink-2); font-weight: 600; font-size: .98rem; }
.sch-line { margin: 0 0 6px; font-size: .98rem; overflow-wrap: anywhere; }
.sch-line b { display: inline-block; min-width: 64px; color: var(--muted); font-weight: 600; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.sch-acts { margin: var(--s3) 0 6px; }
.sch-card.st-cancelled_notice, .sch-card.st-teacher_cancel, .sch-card.st-late_cancel { opacity: .72; }
.sch-plan { margin-top: var(--s3); }
.sch-plan label { display: block; font-weight: 650; font-size: .98rem; margin-bottom: 6px; }
.sch-plan textarea { min-height: 90px; font-size: 1rem; }
.sch-plan-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.sch-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s4); }
.sch-student { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.sch-student h3 { font-size: 1.25rem; margin-bottom: 4px; }
.sch-coming { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); display: grid; gap: 10px; }
.sch-coming li { display: grid; gap: 2px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }
.sch-coming span { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .sch-card { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sch-card-time { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
  .sch-filter { flex-basis: 100%; min-width: 0; }
  .sch-title { flex-basis: 100%; order: -1; }
  .sch-row { grid-template-columns: minmax(0, 1fr); }
  .sch-row .hq-pill { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* Tabs on phones: an even grid instead of a ragged wrap (Teacher Hub has six, the Family portal three) */
@media (max-width: 520px) {
  .hub-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fam .hub-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-tabs a { justify-content: center; text-align: center; padding: 8px 10px; line-height: 1.15; }
}

/* Family portal */
.fam .hub-h2 { margin-bottom: var(--s3); }
.fam [data-panel] > .hq-panel + .hq-panel, .fam [data-upcoming] > .hq-panel, .fam-weekly { margin-bottom: var(--s5); }
.fam-slots { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: 8px; }
.fam-slots li { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }
.fam-slots span { color: var(--ink-2); }
.fam-list { display: grid; }
.fam-lesson { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.fam-lesson:first-child { border-top: 0; padding-top: 0; }
.fam-when { display: grid; align-content: start; gap: 2px; }
.fam-when b { font-size: 1.05rem; }
.fam-when span { color: var(--muted); font-size: .95rem; }
.fam-what { margin: 0 0 var(--s2); overflow-wrap: anywhere; }
.fam-acts { margin-top: var(--s3); }
.fam-lesson.st-cancelled_notice .fam-what b, .fam-lesson.st-teacher_cancel .fam-what b { text-decoration: line-through; color: var(--muted); }
.fam-confirm { margin-top: var(--s4); padding: var(--s4); border-radius: var(--radius-sm); background: var(--sage); }
.fam-confirm.late { background: var(--peach); }
.fam-confirm p { margin-bottom: var(--s3); }
.fam-confirm .field { margin-bottom: var(--s3); }
.fam-confirm input[type=text] { min-height: 48px; padding: 10px 14px; font-size: 1rem; }
.fam-done { margin: var(--s3) 0 0; padding: 12px 14px; border-radius: 12px; background: #E3F4E9; color: #1E6B3A; font-weight: 600; }
.fam-pass { display: grid; gap: 2px; margin-bottom: var(--s4); padding: 12px 14px; border-radius: 12px; background: #E3F4E9; color: #1E6B3A; }
.fam-pass.used { background: var(--paper-2); color: var(--ink-2); }
.fam-pass span { font-size: .95rem; }
.fam-credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fam-credits li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.fam-credits li.cr-used, .fam-credits li.cr-expired { opacity: .72; }
.fam-notes { list-style: none; padding: 0; margin: 0; }
.fam-notes li { margin: 0; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.fam-notes li:first-child { border-top: 0; padding-top: 0; }
.fam-notes .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .95rem; color: var(--ink-2); margin-bottom: 6px; }
.fam-notes .txt { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-left: 3px solid var(--flare); background: var(--paper); border-radius: 0 10px 10px 0; }
.fam-rules .hub-list { margin-top: 0; }
@media (max-width: 600px) {
  .fam-lesson { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fam-when { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
}

/* Lanyard: a real photo (keyed from a green-screen render) whose clasp loop hooks into the slot; its loop ends inside the dark slot, as if hooked through the hole */
.pass-lanyard { position: absolute; left: 50%; top: -125px; width: 80px; height: 149px; transform: translateX(-50%); z-index: 3; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.28)); }
