/* ==========================================================
   Good Manners Dog School — concept site by Happy Dog League
   Direction: classic prep school
   Fonts: Libre Caslon Text (headings) + Hanken Grotesk (body)
   Palette: oxblood, cream, parchment and antique gold
   ========================================================== */

:root {
  --oxblood: #6e1f2f;
  --oxblood-deep: #4a1320;
  --cream: #f8f4ec;
  --parchment: #efe6d5;
  --gold: #b8924a;          /* rules and ornaments only */
  --gold-light: #dcc08a;    /* gold text on oxblood */
  --gold-deep: #7d5c22;     /* gold text on cream (AA) */
  --text: #2a2225;
  --ink-soft: #5d5256;
  --paper: #fffdf9;
  --line: #e2d7c4;
  --rose: #f2e3df;

  /* aliases used by page markup */
  --ink: var(--oxblood-deep);
  --sun: #ecdfc2;
  --sun-soft: var(--parchment);
  --coral: var(--rose);
  --coral-deep: var(--oxblood);
  --sky: #e8ddcb;
  --mint: #e0d3bb;

  --font-head: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;

  --radius: 4px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  color: inherit;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--oxblood); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.center .lede { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--oxblood); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9em;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: var(--gold); }
.eyebrow svg { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: .03em;
  padding: 1em 1.8em; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--oxblood);
  background: var(--oxblood); color: #fff;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: #fff; }
.btn.sun, .btn.coral { background: var(--oxblood); }
.btn.ghost { background: transparent; color: var(--oxblood); }
.btn.ghost:hover { background: var(--oxblood); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--oxblood-deep); color: var(--gold-light); font-size: .84rem; letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 720px) { .topbar .wrap { justify-content: center; } .topbar .tb-right { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 236, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-pill { width: min(100% - 32px, var(--wrap)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--oxblood); }
.logo svg { width: 42px; height: 48px; flex: none; }
.logo-text { font-family: var(--font-head); line-height: 1; }
.logo-text strong { display: block; font-size: 1.4rem; font-weight: 400; letter-spacing: .01em; }
.logo-text span { display: block; margin-top: 5px; font-family: var(--font-body); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--text); text-decoration: none; padding: .5em .7em; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: .7em; right: .7em; bottom: .15em; height: 1px; background: var(--oxblood); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover { color: var(--oxblood); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--oxblood); }
.nav-links .btn { margin-left: 12px; padding: .7em 1.4em; color: #fff; }
.nav-links .btn::after { content: none; }
.nav-toggle { display: none; border: 1px solid var(--oxblood); background: transparent; width: 48px; height: 48px; border-radius: var(--radius); cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--oxblood); margin: auto; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 22px; display: none; }
  .nav-open .nav-links { display: flex; }
  .nav-links a { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 400; padding: .45em 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .btn { display: flex; margin: 18px 0 0; font-family: var(--font-body); font-size: 1rem; }
}

/* ---------- Home hero ---------- */
.hero-prep { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.hp-text h1 { margin-bottom: .4em; }
.hp-text .lede { margin-bottom: 0; }
.hero-meta { list-style: none; margin: 2.6rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; font-size: .92rem; color: var(--ink-soft); }
.hero-meta li { padding: 0 22px; border-left: 1px solid var(--line); line-height: 1.4; }
.hero-meta li:first-child { padding-left: 0; border-left: 0; }
.hero-meta strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; color: var(--text); }
.hp-photo { position: relative; padding: 0 0 34px 34px; }
.hp-frame { position: relative; background: var(--parchment); aspect-ratio: 4 / 4.7; }
.hp-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.75); pointer-events: none; }
.hp-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hp-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 1px solid var(--gold); z-index: -1; }
.seal { position: absolute; left: -6px; top: 36px; width: 132px; height: 132px; z-index: 2; filter: drop-shadow(0 6px 14px rgba(74, 19, 32, .18)); }
.hp-note { position: absolute; right: 18px; bottom: 54px; background: var(--paper); padding: 14px 20px; text-decoration: none; color: var(--text); font-size: .9rem; line-height: 1.35; box-shadow: 0 10px 30px rgba(42, 34, 37, .12); z-index: 2; border-top: 3px solid var(--oxblood); }
.hp-note b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; color: var(--oxblood); }
.hp-note:hover { color: var(--text); }
@media (max-width: 900px) {
  .hp-grid { grid-template-columns: 1fr; }
  .hp-photo { order: -1; padding: 0 0 22px 22px; max-width: 520px; }
  .seal { width: 100px; height: 100px; top: 18px; left: -4px; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta li { padding: 0; border: 0; }
}

/* Stat strip under hero */
.stat-strip { background: var(--oxblood); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 max(16px, calc((100% - var(--wrap)) / 2)); }
.stat-strip > div { padding: 38px 28px; text-align: center; border-left: 1px solid rgba(220, 192, 138, .3); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip b { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--gold-light); margin-bottom: 8px; }
.stat-strip span { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #ead8d9; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: 1fr; } .stat-strip > div { padding: 22px 20px; border-left: 0; border-top: 1px solid rgba(220, 192, 138, .3); } .stat-strip > div:first-child { border-top: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--parchment); padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 92px); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .doodle-blob { display: none; }
.page-hero::after {
  content: ""; position: absolute; right: max(16px, calc((100% - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%);
  width: 240px; height: 270px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72' fill='none' stroke='%23b8924a' stroke-width='.5'%3E%3Cpath d='M32 2 61 10v24c0 18-13 30-29 36C16 64 3 52 3 34V10z'/%3E%3Cpath d='M32 5 58 12.3V34c0 16.4-11.8 27.4-26 32.8C17.8 61.4 6 50.4 6 34V12.3z'/%3E%3Cpath d='M6 24h52'/%3E%3Cg fill='%23b8924a' stroke='none'%3E%3Cellipse cx='32' cy='45' rx='6' ry='5.2'/%3E%3Cellipse cx='25' cy='38' rx='2.2' ry='2.8'/%3E%3Cellipse cx='29.3' cy='34' rx='2.2' ry='2.9'/%3E%3Cellipse cx='34.7' cy='34' rx='2.2' ry='2.9'/%3E%3Cellipse cx='39' cy='38' rx='2.2' ry='2.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14em; }
.page-hero .lede { margin-bottom: 0; }
@media (max-width: 720px) { .page-hero::after { width: 140px; height: 160px; right: -20px; } }

/* ---------- Bands ---------- */
.band-sun { background: var(--parchment); }
.band-sky { background: var(--paper); border-block: 1px solid var(--line); }
.band-coral, .band-ink { background: var(--oxblood); color: #fff; }
.band-coral .lede, .band-ink .lede, .band-coral p { color: #ead8d9; }
.band-coral .eyebrow, .band-ink .eyebrow { color: var(--gold-light); }
.band-coral .eyebrow::before, .band-coral .eyebrow::after, .band-ink .eyebrow::before, .band-ink .eyebrow::after { background: var(--gold-light); }
.band-coral h1 em, .band-coral h2 em { color: var(--gold-light); }
.band-coral .card, .band-ink .card { color: var(--text); }
.band-coral .card p { color: var(--text); }
.band-coral .btn { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.band-coral .btn:hover { background: #fff; color: var(--oxblood-deep); }
.wave-top, .wave-bottom, .doodle { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card { text-align: center; padding: 40px 32px 36px; border-top: 3px solid var(--oxblood); }
.feature-card .icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50% !important; border: 1px solid var(--gold); display: grid; place-items: center; }
.feature-card .icon svg { width: 28px; height: 28px; }
.feature-card .icon svg * { stroke: var(--oxblood); stroke-width: 1.6; }
.feature-card h3 { font-size: 1.55rem; margin-bottom: .4em; }
.feature-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Signature: paw-print level path ---------- */
.level-path { position: relative; padding: 20px 0 10px; }
.level-path svg.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.level-path .trail { fill: none; stroke: rgba(184, 146, 74, .5); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.paw { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 1; opacity: 0; transform: scale(.6) rotate(var(--r, 0deg)); transition: opacity .4s ease, transform .4s ease; color: var(--oxblood); }
.paw svg { width: 100%; height: 100%; display: block; }
.paw.on { opacity: .45; transform: scale(1) rotate(var(--r, 0deg)); }
.level-stops { position: relative; z-index: 2; display: grid; gap: 60px; }
.level-stop { display: flex; align-items: stretch; width: min(100%, 600px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.level-stop:nth-child(odd) { justify-self: start; }
.level-stop:nth-child(even) { justify-self: end; }
.level-stop .stop-num {
  flex: none; width: 120px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); line-height: 1; background: var(--oxblood); color: var(--gold-light);
  border-radius: 0 !important; opacity: 0; transition: opacity .6s ease; position: relative;
}
.level-stop .stop-num::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(220, 192, 138, .45); }
.level-stop .stop-num b { display: block; font-size: 3.2rem; font-weight: 400; }
.level-stop .stop-num small { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ead8d9; }
.level-stop.on .stop-num { opacity: 1; }
.level-stop:nth-child(5) .stop-num { background: var(--oxblood-deep); }
.level-stop .stop-body { padding: 24px 28px; }
.level-stop h3 { margin-bottom: .25em; font-size: 1.5rem; }
.level-stop h3 a:hover { color: var(--oxblood) !important; }
.level-stop .meta { font-weight: 600; color: var(--gold-deep); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5em; }
.level-stop p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 700px) {
  .level-stops { gap: 44px; }
  .level-stop, .level-stop:nth-child(even) { justify-self: stretch; width: 100%; }
  .level-stop .stop-num { width: 84px; }
  .level-stop .stop-num b { font-size: 2.4rem; }
  .level-stop .stop-num small { font-size: .56rem; letter-spacing: .12em; }
  .level-stop .stop-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .paw, .level-stop .stop-num { transition: none; } }

/* ---------- Report card ---------- */
.report-card { background: var(--paper); border: 1px solid var(--line); max-width: 540px; position: relative; box-shadow: 0 18px 40px rgba(42, 34, 37, .08); }
.report-card header { background: var(--oxblood); color: #fff; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.report-card header h3 { margin: 0; font-size: 1.6rem; color: var(--gold-light); }
.report-card header span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #ead8d9; }
.report-card table { width: 100%; border-collapse: collapse; }
.report-card th, .report-card td { padding: 13px 26px; text-align: left; border-bottom: 1px solid var(--line); }
.report-card th { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.report-card td.grade { font-family: var(--font-head); text-align: right; white-space: nowrap; font-size: 1.2rem; color: var(--oxblood); }
.report-card .stars { color: var(--gold); letter-spacing: 1px; font-size: .85rem; margin-right: 8px; }
.report-card footer { padding: 18px 26px 24px; font-size: .97rem; color: var(--ink-soft); background: var(--parchment); font-style: italic; }
.report-card footer .sig { font-family: var(--font-head); color: var(--oxblood); font-style: italic; }
.report-card .gold-star { position: absolute; right: 22px; bottom: 20px; width: 40px; }
.report-card .gold-star path:first-child { fill: var(--gold); stroke: none; }
.report-card .gold-star path:last-child { stroke: #fff; }

/* ---------- Photos ---------- */
.photo-blob { position: relative; overflow: hidden; border-radius: 0 !important; }
.photo-blob::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.7); pointer-events: none; }
.photo-blob img { width: 100%; height: 100%; object-fit: cover; }
.blob, .blob-2, .blob-3 { border-radius: 0; }
.split-media { position: relative; padding: 0 22px 22px 0; }
.split-media::before { content: ""; position: absolute; right: 0; bottom: 0; width: 65%; height: 65%; border: 1px solid var(--gold); }
.split-media .photo-blob { aspect-ratio: 4 / 4.6; }
.split-media .sticker { position: absolute; right: -6px; bottom: 40px; z-index: 2; }
.band-coral .split-media::before { border-color: var(--gold-light); }
.sticker {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 124px; height: 124px; border-radius: 50%; padding: 14px;
  font-family: var(--font-head); font-size: 1.02rem; line-height: 1.15; font-style: italic;
  background: var(--oxblood) !important; color: var(--gold-light) !important;
  box-shadow: 0 0 0 4px var(--oxblood), inset 0 0 0 1px var(--gold-light), 0 0 0 5px var(--gold);
}

/* Graduate cards */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.polaroid { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 0; transition: box-shadow .25s; }
.polaroid:hover { box-shadow: 0 14px 30px rgba(42, 34, 37, .1); }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px 16px; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; }
.polaroid figcaption small { font-family: var(--font-body); }
.grad-card.hide { display: none; }

/* Level tags */
.lvl-tag { display: inline-block; padding: 3px 10px; border-radius: 2px; font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--oxblood-deep); }
.lvl-puppy { background: var(--rose); }
.lvl-basic { background: var(--sun); }
.lvl-int { background: var(--sky); }
.lvl-adv { background: var(--mint); }
.lvl-cgc { background: var(--oxblood); color: var(--gold-light); }

/* ---------- Class cards ---------- */
.class-card { display: grid; grid-template-columns: 420px 1fr; overflow: hidden; padding: 0; }
.class-card + .class-card { margin-top: 28px; }
.class-card .class-photo { position: relative; min-height: 340px; }
.class-card .class-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.class-card .class-photo .sticker { position: absolute; left: 22px; top: 22px; width: 88px; height: 88px; font-size: .92rem; }
.class-card .class-info { padding: 38px 42px; }
.class-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: .35em; }
.class-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 20px; padding: 0; list-style: none; }
.class-facts li { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); padding: 0 14px; border-left: 1px solid var(--line); }
.class-facts li:first-child { padding-left: 0; border-left: 0; }
.skills { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.skills li { padding-left: 22px; position: relative; }
.skills li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 860px) { .class-card { grid-template-columns: 1fr; } .class-card .class-photo { min-height: 250px; } .class-card .class-info { padding: 28px 24px; } .skills { grid-template-columns: 1fr; } .class-facts { gap: 6px 18px; } .class-facts li { padding: 0; border: 0; } }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; margin: 0 auto; padding: clamp(26px, 4vw, 48px); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.quiz legend { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: .7em 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.choice span:hover { border-color: var(--oxblood); }
.choice input:checked + span { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.quiz-result { display: none; }
.quiz-result.show { display: block; animation: rise .4s ease; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.quiz-result .card { background: var(--parchment); display: flex; gap: 26px; align-items: center; }
.quiz-result .sticker { width: 100px; height: 100px; flex: none; }
@media (max-width: 560px) { .quiz-result .card { flex-direction: column; align-items: flex-start; } }

/* ---------- Schedule ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tab-btn { font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer; padding: .8em 1.3em; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-soft); }
.tab-btn:hover { color: var(--oxblood); }
.tab-btn[aria-selected="true"], .tab-btn[aria-pressed="true"] { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.schedule-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.schedule-table th, .schedule-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.schedule-table thead th { background: var(--parchment); color: var(--ink-soft); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table a { font-weight: 600; }
.spots { font-weight: 600; }
.spots.low { color: var(--oxblood); }
.spots.full { color: var(--ink-soft); text-decoration: line-through; }
.schedule-table a.waitlist { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }
@media (max-width: 720px) {
  .schedule-table thead { display: none; }
  .schedule-table, .schedule-table tbody { display: block; width: 100%; }
  .schedule-table tr { display: grid; grid-template-columns: repeat(4, auto) 1fr; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .schedule-table td { border: 0; padding: 0; }
  .schedule-table td[data-label="Class"] { grid-column: 1 / 5; margin-bottom: 6px; }
  .schedule-table td[data-label="Spots"] { grid-column: 5; grid-row: 1; justify-self: end; margin-bottom: 6px; font-size: .9rem; }
  .schedule-table td[data-label="Day"] { grid-column: 1; font-weight: 600; }
  .schedule-table td[data-label="Time"]::before { content: "\00a0\00b7\00a0"; color: var(--gold); }
  .schedule-table td[data-label="First class"]::before { content: "\00a0\00b7\00a0starts\00a0"; color: var(--ink-soft); }
  .schedule-table td[data-label="Teacher"]::before { content: "\00a0\00b7\00a0"; color: var(--gold); }
  .schedule-table td[data-label="Teacher"] { color: var(--ink-soft); }
  .schedule-table td.no-label { grid-column: 1 / -1; margin-top: 10px; }
  .schedule-table td.no-label a { display: block; text-align: center; padding: .6em; border: 1px solid var(--oxblood); border-radius: var(--radius); text-decoration: none; }
  .schedule-table td.no-label a:not(.waitlist) { background: var(--oxblood); color: #fff; }
}


/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--oxblood); padding: clamp(26px, 4vw, 50px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: block; font-weight: 600; font-size: .92rem; }
label.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--text); border: 1px solid #d3c7b2; border-radius: var(--radius); padding: .75em .9em; background: var(--cream); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oxblood); box-shadow: 0 0 0 3px rgba(110, 31, 47, .12); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--oxblood); flex: none; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.show { display: block; animation: rise .4s ease; }
.form-success svg { width: 64px; margin: 0 auto 12px; }
.form-success svg path:first-child { fill: var(--gold); stroke: none; }
.form-success svg path:last-child { stroke: #fff; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; padding: 34px 30px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-card .top { display: none; }
.price-card h3 { font-size: 1.45rem; }
.price-card .price { font-family: var(--font-head); font-size: 3.4rem; line-height: 1; margin: 18px 0 6px; color: var(--oxblood); }
.price-card .per { color: var(--ink-soft); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.price-card p { flex: 1; }
.price-card .btn { align-self: stretch; }
.price-card[style*="background"] { border-color: var(--oxblood); background: var(--oxblood) !important; }
.price-card[style*="background"] h3 { color: #fff; }
.price-card[style*="background"] .price { color: var(--gold-light); }
.price-card[style*="background"] .lvl-tag { background: var(--gold-light) !important; color: var(--oxblood-deep) !important; }
.price-card[style*="background"] .btn { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.bundle { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; background: var(--parchment); border: 1px solid var(--line); padding: 36px 42px; }
.bundle p { color: var(--ink-soft); }
@media (max-width: 760px) { .bundle { grid-template-columns: 1fr; justify-items: start; } }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.policy-list li { display: flex; gap: 14px; align-items: flex-start; }
.policy-list li svg { width: 24px; height: 24px; flex: none; margin-top: 3px; }
.policy-list li svg * { stroke: var(--oxblood); stroke-width: 1.7; }

/* ---------- Gallery filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; margin-bottom: 36px; border-bottom: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 1.9rem !important; color: var(--oxblood); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; position: relative; font-family: var(--font-head); font-size: 1.22rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; font-family: var(--font-body); color: var(--oxblood); }
.faq-item[open] summary::after { content: "–"; background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.faq-item .answer { padding: 0 56px 24px 0; color: var(--ink-soft); }
.faq-item .answer p:last-child { margin: 0; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; border: 0; padding: 36px 32px; }
.quote-card .qmark { font-family: var(--font-head); font-size: 4.4rem; line-height: .6; color: var(--gold); height: 36px; }
.quote-card blockquote { margin: 12px 0 22px; font-family: var(--font-head); font-style: italic; font-size: 1.12rem; line-height: 1.6; flex: 1; }
.quote-card cite { font-style: normal; font-weight: 600; padding-top: 16px; border-top: 1px solid var(--line); display: block; }
.quote-card cite span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.stars-row { color: var(--gold); letter-spacing: 3px; font-size: .9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.team-card { background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 28px; text-align: center; }
.team-card .photo-blob { width: 100%; height: 300px; margin: 0 0 24px; }
.team-card h3, .team-card p { padding: 0 18px; }
.team-card h3 { margin-bottom: .2em; font-size: 1.55rem; }
.team-card .role { font-weight: 600; color: var(--gold-deep); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9em; line-height: 1.5; }
.team-card p { color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--oxblood); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(220, 192, 138, .35); pointer-events: none; }
.cta-band h2 { max-width: 20em; margin-inline: auto; }
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: var(--gold-light); }
.cta-band .lede { color: #ead8d9; }
.cta-band .btn, .cta-band .btn.coral, .cta-band .btn.sun { background: var(--cream); border-color: var(--cream); color: var(--oxblood); }
.cta-band .btn:hover { background: #fff; color: var(--oxblood-deep); }
.cta-band .btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn.ghost:hover { background: #fff; color: var(--oxblood); }

/* ---------- Footer ---------- */
.site-footer { background: #2b1419; color: #cdbcbf; padding: 80px 0 30px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4, .site-footer .foot-h { color: var(--gold-light); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo-text span { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(220, 192, 138, .2); margin-top: 52px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #a8969a; }
.concept-note { border: 1px solid rgba(220, 192, 138, .35); padding: 12px 16px; font-size: .88rem; color: #e6d3b0; margin-top: 22px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.notebook { background: var(--paper); border: 1px solid var(--line); padding: 36px 38px; position: relative; }
.notebook::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.notebook h3 { font-size: 1.6rem; margin-bottom: .8em !important; color: var(--oxblood); text-align: center; }
.notebook ol { counter-reset: rule; list-style: none; padding: 0 !important; margin: 0; }
.notebook li { counter-increment: rule; display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.notebook li:last-child { border-bottom: 0; }
.notebook li::before { content: counter(rule, upper-roman) "."; font-family: var(--font-head); color: var(--gold-deep); min-width: 3.2ch; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border: 1px solid var(--gold); border-radius: 50%; color: var(--oxblood); display: grid; place-items: center; font-weight: 700; font-size: .7rem; line-height: 1; }
.band-coral .checklist li::before { color: var(--gold-light); border-color: var(--gold-light); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stat-row > div { padding: 10px 24px; border-left: 1px solid rgba(220, 192, 138, .3); }
.stat-row > div:first-child { border-left: 0; }
.stat-row .num { font-family: var(--font-head); font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: var(--gold-light); }
.stat-row .label { color: #ead8d9; margin-top: 10px; font-size: .95rem; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; row-gap: 30px; } .stat-row > div:nth-child(3) { border-left: 0; } }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding-left: 76px; margin-bottom: 30px; }
.timeline .yr { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); color: var(--oxblood); display: grid; place-items: center; text-align: center; line-height: 1.05; font-family: var(--font-head); font-size: .82rem; }
.band-sun .timeline .yr, .section .timeline .yr { background: var(--paper); }
.timeline h3 { font-size: 1.3rem; margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--ink-soft); }
.map-card { overflow: hidden; aspect-ratio: 4 / 3; background: var(--parchment); border: 1px solid var(--line); }
.map-card svg { width: 100%; height: 100%; display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: transparent !important; border: 1px solid var(--gold); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list .ic svg * { stroke: var(--oxblood); stroke-width: 1.7; }
.info-list strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; }
