/* ─────────────────────────────────────────────────────────────────────
   Tearney's Karate — editorial design system
   Single palette — Onyx Brand Kit (locked; from the client brand
   standards PDF: onyx black bg, oxblood maroon, chrome/silver/fog).
   #7A1F24 oxblood is FILLS ONLY (too dark as text on onyx);
   --accent is the ember tint of the same hue for readable accents.
   ───────────────────────────────────────────────────────────────────── */

/* fonts are loaded via <link> in each page head (avoids render-blocking @import chain) */

/* ── PALETTE — Onyx Brand Kit ─────────────────────────────────────── */

:root {
  color-scheme: dark;     /* native form controls, scrollbars */
  --bg: #0e0e0f;          /* onyx black — brand primary background */
  --bg-deep: #17171a;     /* raised band */
  --paper: #1b1b1e;       /* card / panel surface */
  --ink: #e8e9ea;         /* fog — primary text */
  --ink-soft: #c9ccce;    /* chrome */
  --ink-mute: #9aa0a3;    /* silver */
  --ink-faint: rgba(232,233,234,.25);
  --rule: rgba(232,233,234,.16);
  --accent: #d4555c;      /* ember — readable maroon-family accent on onyx */
  --accent-deep: #7a1f24; /* oxblood maroon — fills, rings, gradients */
  --maroon-shadow: #5e1518;
  --gold: #f4c84a;        /* gold-leaf — stars & fine accent lines only */
  /* soft neumorphic surface (Uiverse-inspired, adapted to onyx:
     dark shadow lower-right, faint light upper-left) */
  --soft-radius: 30px;
  --soft-shadow: 15px 15px 30px rgba(0, 0, 0, .55), -15px -15px 30px rgba(255, 255, 255, .045);
  --panel-grad: linear-gradient(180deg, #1e1e22 0%, #131316 100%);  /* card/panel surface */
  --stamp: #d4555c;
  --gray-placeholder: #232327;
  --gray-placeholder-2: #2c2c31;
  --sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* ── BASE ─────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "kern" 1;
}

body {
  /* subtle grain via layered radial noise */
  background-image:
    radial-gradient(rgba(232,233,234,.022) 1px, transparent 1px),
    radial-gradient(rgba(232,233,234,.016) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1.5px 1.5px;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: var(--bg); }

/* ── TYPE SYSTEM ──────────────────────────────────────────────────── */

.label-mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

/* ── LAYOUT ───────────────────────────────────────────────────────── */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 760px) {
  .shell { padding: 0 24px; }
}

/* ── HEADER ───────────────────────────────────────────────────────── */

/* white header bar — light island over the dark page */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fcfcfd;
  border-bottom: 1px solid rgba(14, 14, 15, .1);
  box-shadow: 0 1px 14px rgba(0, 0, 0, .25);
  color-scheme: light;
}
.site-head-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.brand {
  font-family: var(--sans);
  font-weight: 800;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mon {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--paper);
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5a5f62;   /* slate, on the white bar */
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a {
  color: #5a5f62;
  padding: 6px 2px;
  position: relative;
  transition: color .15s;
}
.nav a:hover { color: #131316; }
.nav a.active { color: #131316; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-deep);
}

/* ── nav dropdown (Classes → class pages) ───────────────────────── */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
/* label-only dropdown trigger (e.g. Resources) — looks like a nav link */
.nav-top {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: #5a5f62;
  padding: 6px 2px;
  transition: color .15s;
}
.nav-top:hover,
.nav-top.active,
.nav-item.open .nav-top { color: #131316; }

.nav-caret {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 10px;            /* ≥24px hit area (WCAG 2.5.8) */
  margin: -8px -6px;             /* ...without growing the layout */
  color: #8a8f92;
  font-size: 0.5rem;
  line-height: 1;
  transition: color .15s;
}
.nav-item:hover .nav-caret { color: #131316; }
.nav-caret span { display: inline-block; transition: transform .2s ease; }
.nav-item.open .nav-caret span { transform: rotate(180deg); }
.nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  padding: 8px 0;
  background: #fcfcfd;
  border: 1px solid rgba(14, 14, 15, .12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  display: none;
  z-index: 70;
}
.nav-panel::before {
  /* invisible bridge so the pointer can cross the gap without closing */
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-item:hover .nav-panel,
.nav-item.open .nav-panel { display: block; }
.nav-panel a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 16px;
  color: #5a5f62;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.nav-panel a:hover,
.nav-panel a.active { background: #f2f3f4; color: #131316; }
.nav-panel .age {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: .04em;
  color: #8a8f92;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .nav-item { flex-wrap: wrap; justify-content: center; }
  .nav-panel {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(14, 14, 15, .1);
    background: transparent;
    box-shadow: none;
    padding: 2px 0 0;
    margin-top: 6px;
  }
  .nav-panel a:hover,
  .nav-panel a.active { background: rgba(14, 14, 15, .05); }
  .nav-panel::before { display: none; }
}

.head-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.head-phone {
  display: inline-flex;
  align-items: center;
  padding: 12px;                 /* ≥40px hit area */
  margin: -6px;
  color: #5a5f62;
  transition: color .15s;
}
.head-phone:hover { color: var(--accent-deep); }
.head-phone svg { display: block; }

/* ── mobile header: logo on top, nav as a distinct color band ───────── */
@media (max-width: 860px) {
  .site-head-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav";
    align-items: center;
    height: auto;
    row-gap: 0;
    padding: 0;
  }
  .brand { grid-area: brand; justify-content: center; padding: 11px 22px; }
  .brand-logo { height: 40px; }
  .brand-sub { display: none; }
  .head-cta { display: none; }          /* offer bar carries the CTA on mobile (less invasive) */
  .nav {
    grid-area: nav;
    background: #f1f2f3;                 /* distinct band → clear separation from the logo row */
    border-top: 1px solid rgba(14, 14, 15, .1);
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    padding: 11px 22px;
  }
}

/* ── drop-down offer bar (above the sticky header) — editorial/premium ─ */
.promo-bar {
  background: linear-gradient(180deg, #8a2328 0%, var(--accent-deep) 46%, var(--maroon-shadow) 100%);
  color: var(--paper);
  position: relative;
  z-index: 60;
  box-shadow: inset 0 2px 0 rgba(244, 200, 74, .5);   /* gold-leaf top accent */
  animation: promo-drop .5s cubic-bezier(.2, .7, .2, 1);
}
@keyframes promo-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .promo-bar { animation: none; } }
.promo-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 11px; padding-bottom: 11px;
  position: relative;
}
.promo-rating { display: inline-flex; align-items: center; gap: 8px; }
.promo-stars {
  color: #f4c84a; letter-spacing: 2px; font-size: 0.75rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}
.promo-rating-label {
  font-family: var(--mono);
  font-size: 0.625rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(247, 241, 225, .82);
}
.promo-divider { width: 1px; height: 17px; background: rgba(247, 241, 225, .28); }
.promo-msg {
  font-family: var(--sans);
  font-style: italic; font-weight: 600; font-size: 0.9375rem;
  color: var(--paper);
}
.promo-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 6px 18px;
  font-family: var(--sans);
  font-size: 0.6562rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.promo-cta span { transition: transform .15s ease; }
.promo-cta:hover { background: #26262b; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0, 0, 0, .4); }
.promo-cta:hover span { transform: translateX(3px); }
.promo-x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: rgba(247, 241, 225, .5); cursor: pointer;
  font-size: 1.125rem; line-height: 1; padding: 12px 14px;   /* ≥24px hit area */
  transition: color .15s;
}
.promo-x:hover { color: var(--paper); }
@media (max-width: 600px) {
  .promo-inner { gap: 8px 12px; padding-right: 26px; }
  .promo-divider { display: none; }
  .promo-msg { font-size: 1.0312rem; }
  .promo-rating-label { font-size: 0.5938rem; }
}

/* ── BUTTONS ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-deep);
  color: var(--ink);
  border: 1px solid var(--accent-deep);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn { box-shadow: 0 8px 24px rgba(94, 21, 24, .35); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(122, 31, 36, .5); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-arrow::after {
  content: '→';
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* ── PLACEHOLDERS ─────────────────────────────────────────────────── */

.ph {
  position: relative;
  background:
    linear-gradient(135deg, var(--gray-placeholder) 0%, var(--gray-placeholder-2) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph::before {
  /* diagonal stripe pattern subtle */
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.05) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}
.ph::after {
  /* tiny corner marks */
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255,255,255,.35);
  pointer-events: none;
}
.ph-cap {
  position: relative;
  width: 100%;
  padding: 36px 16px 12px;
  font-family: var(--mono);
  font-size: 0.6562rem;
  letter-spacing: 0.05em;
  color: rgba(247,241,225,.95);
  background: linear-gradient(180deg, rgba(11,10,8,0) 0%, rgba(11,10,8,.45) 40%, rgba(11,10,8,.78) 100%);
  margin-top: auto;
}
.ph-cap small {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,241,225,.62);
  margin-bottom: 2px;
}

/* ── STAMP / SEAL ─────────────────────────────────────────────────── */

.stamp {
  display: inline-grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  text-align: center;
  font-family: var(--sans);
  position: relative;
  transform: rotate(-8deg);
  background: transparent;
  flex-shrink: 0;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--stamp);
  border-radius: 50%;
  opacity: 0.5;
}
.stamp .year {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.02em;
}
.stamp .lbl {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* ── SECTION HEAD ─────────────────────────────────────────────────── */

.section {
  padding: 96px 0;
  position: relative;
}
.section-tight { padding: 64px 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.section-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(27px, 4.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: inherit;
}
.section-kicker {
  justify-self: end;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── FOOTER ───────────────────────────────────────────────────────── */

.site-foot {
  background: linear-gradient(180deg, #17171b 0%, #0c0c0d 100%);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 72px 0 40px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.site-foot a:hover { color: var(--accent); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.foot-brand {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.foot-brand { color: var(--ink); }
.foot-tag {
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(232,233,234,.6);
  max-width: 30ch;
  line-height: 1.55;
}
.foot-col h2 {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 6px; color: rgba(232,233,234,.8); }
.foot-col a { color: rgba(232,233,234,.8); }
.foot-bot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(232,233,234,.14);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6562rem;
  letter-spacing: 0.04em;
  color: rgba(232,233,234,.5);
}

.foot-sub { padding-left: 14px; }
.foot-sub a { opacity: .85; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ── HERO ─────────────────────────────────────────────────────────── */

.hero {
  padding: 36px 0 80px;
  position: relative;
  isolation: isolate;   /* keep the ::before glow above the body bg */
}
.hero::before {
  /* maroon glow rising behind the collage */
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(900px 640px at 78% 10%, rgba(122, 31, 36, .55), transparent 66%),
    radial-gradient(620px 420px at 4% 92%, rgba(122, 31, 36, .22), transparent 70%);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 36px;
}
.hero-top .label-mono { color: var(--ink); }
.hero-meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.hero-meta strong { color: var(--ink); font-weight: 500; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero-headline {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 7.6vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent);
}
.hero-headline .sm {
  display: block;
  font-size: clamp(15px, 1.5vw, 19px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mute);
  margin-top: 20px;
  line-height: 1.5;
  max-width: 42ch;
}

.hero-lede {
  font-size: 1.0312rem;
  line-height: 1.6;
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 24px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* hero collage — large, unframed, bleeds to the viewport edge
   (.hero has no side padding on desktop, so only the centered-shell
   overflow beyond 1280px needs recovering) */
.hero-collage {
  position: relative;
  height: 620px;
  margin-right: calc(-1 * max((100vw - 1280px) / 2, 0px));
}
.hero-collage .ph {
  position: absolute;
  box-shadow: 0 0 0 10px var(--bg);   /* paper gap between overlapping photos, not a frame */
}
.hero-collage .pc-1 {
  width: 66%;
  height: 62%;
  left: 0;
  top: 0;
}
.hero-collage .pc-2 {
  width: 52%;
  height: 56%;
  right: 0;
  bottom: 44px;
}
.hero-collage .pc-3 {
  width: 40%;
  height: 40%;
  left: 26%;
  bottom: 0;
}
.hero-collage .stamp-pos {
  position: absolute;
  right: 28px;
  top: 12px;
  z-index: 4;
  background: var(--paper);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-collage { height: 480px; margin-right: 0; }
  .hero-collage .stamp-pos { right: 20px; }
}

/* ── CLASS CARDS ──────────────────────────────────────────────────── */

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.class-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-grad);
  border: 1px solid var(--rule);
  border-radius: var(--soft-radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform .3s cubic-bezier(.22, .68, 0, 1), border-color .3s, box-shadow .3s;
}
.class-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 85, 92, .5);
  box-shadow: 18px 18px 36px rgba(0, 0, 0, .65), -15px -15px 30px rgba(255, 255, 255, .05), 0 8px 30px rgba(122, 31, 36, .3);
}
.class-card .ph {
  aspect-ratio: 4/4.6;
  margin-bottom: 18px;
}
.class-card .age {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 22px 8px;
}
.class-card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 22px 10px;
}
.class-card h3 em { font-style: italic; color: var(--ink-mute); font-weight: inherit; }
.class-card p {
  font-size: 0.9062rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 22px 18px;
  flex: 1;
}
.class-card .meta-row {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin: 0 22px 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .class-grid { grid-template-columns: 1fr; }
}

/* ── CTA STRIP ────────────────────────────────────────────────────── */

.cta-strip {
  background: linear-gradient(180deg, var(--accent-deep) 0%, var(--maroon-shadow) 100%);
  color: #fdf6f6;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  /* gold-leaf accent line (matches the promo bar) */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 4px;
  background: rgba(244, 200, 74, .55);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
}
.cta-strip h2 em { font-style: italic; color: rgba(255,255,255,.55); }
.cta-strip .btn {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}
.cta-strip .btn:hover { background: #f4f5f6; color: #131316; border-color: #f4f5f6; }

/* ── INSTRUCTOR / ABOUT cards ─────────────────────────────────────── */

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.inst-card {
  background: var(--panel-grad);
  border: 1px solid var(--rule);
  border-radius: var(--soft-radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  padding-bottom: 24px;
}
.inst-card .ph {
  aspect-ratio: 3/4;
  margin-bottom: 18px;
}
.inst-title {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 24px 6px;
}
.inst-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.02em;
  margin: 0 24px 4px;
}
.inst-rank {
  font-style: italic;
  color: var(--ink-mute);
  margin: 0 24px 12px;
  font-size: 0.8438rem;
}
.inst-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 24px;
}

@media (max-width: 900px) {
  .instructor-grid { grid-template-columns: 1fr; }
}

/* ── CONTACT ──────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.req { color: var(--accent); }
.form-hint {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin: 0 0 20px;
}

/* consent checkbox row (both forms) */
.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 4px 0 24px;
}
.field-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.field-consent label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

/* ── pop-out lead form (native dialog, injected by shared.js) ─────── */
.lead-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--soft-radius);
  background: linear-gradient(180deg, #1a1a1e 0%, #101012 100%);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.lead-modal::backdrop {
  background: rgba(6, 6, 7, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.lead-modal[open] { animation: lead-pop .28s cubic-bezier(.22, .68, 0, 1); }
@keyframes lead-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lead-modal[open] { animation: none; } }

.lead-modal-scroll { max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px 32px 32px; }
.lead-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 20px;
}
.lead-eyebrow {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 8px;
}
.lead-title {
  font-family: var(--sans); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); margin: 0;
}
.lead-title em { font-style: italic; color: var(--accent); }
.lead-close {
  flex-shrink: 0;
  appearance: none; background: none; border: 1px solid var(--rule);
  border-radius: 50%; width: 38px; height: 38px; cursor: pointer;
  color: var(--ink-mute); font-size: 1.25rem; line-height: 1;
  display: grid; place-items: center;
  transition: color .15s, border-color .15s;
}
.lead-close:hover { color: var(--ink); border-color: var(--ink-mute); }
.lead-modal .field { margin-bottom: 16px; }
.lead-modal .btn { width: 100%; justify-content: center; margin-top: 4px; }

.lead-success { text-align: center; padding: 20px 8px 8px; }
.lead-success h3 {
  font-family: var(--sans); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px;
}
.lead-success p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; }
.lead-error {
  font-size: 0.8125rem; color: var(--accent); margin: 0 0 14px; display: none;
}
.lead-error.show { display: block; }
.lead-turnstile { margin: 4px 0 16px; min-height: 65px; }
.lead-turnstile:empty { min-height: 0; }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9688rem;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.info-block {
  font-family: var(--sans);
}
.info-block h2 {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}
.info-block p { margin: 0 0 24px; font-size: 0.9688rem; line-height: 1.6; }
.info-block p a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── HEAD UTILITIES ───────────────────────────────────────────────── */

.h-flex { display: flex; flex-wrap: wrap; }
.soft { border-radius: var(--soft-radius); box-shadow: var(--soft-shadow); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--accent-deep);
  color: #fdf6f6;
  padding: 12px 20px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* trust checklist — ember check chips */
.check-list {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: grid; gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓' / '';   /* decorative; empty alt keeps screen readers quiet */
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800; line-height: 1;
  color: var(--accent);
  background: rgba(212, 85, 92, .12);
  border: 1px solid rgba(212, 85, 92, .45);
  border-radius: 50%;
}
.h-between { justify-content: space-between; }
.h-center { align-items: center; }
.h-gap-2 { gap: 16px; }
.h-gap-3 { gap: 24px; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-4 { margin-top: 48px; }
.muted { color: var(--ink-mute); }
.accent { color: var(--accent); }

/* ── PAGE HEADER (inner pages) ────────────────────────────────────── */

.page-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 56px;
  position: relative;
  isolation: isolate;
}
.page-head::before {
  /* maroon glow behind inner-page heroes */
  content: '';
  position: absolute;
  top: -140px; bottom: -40px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
  background: radial-gradient(860px 520px at 82% 0%, rgba(122, 31, 36, .45), transparent 66%);
}
.page-head-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.page-head h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 18ch;
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-lede {
  font-size: 1.0312rem;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--ink-soft);
  margin: 24px 0 0;
}

/* ── DOJO KUN / values strip ──────────────────────────────────────── */

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 32px 0;
  list-style: none;   /* numbering is deliberately dropped */
  margin: 0;
}
.value-item {
  padding: 0 24px;
  border-right: 1px solid var(--rule);
  text-align: left;
}
.value-item:last-child { border-right: 0; }
.value-item .vn {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.value-item h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.value-item p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .values { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .value-item { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
}

/* ── PROGRAM ROW (classes hub + class pages) ─────────────────────── */

.prog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* even programs flip the photo to the left */
.prog-row.flip .prog-media { order: -1; }

.prog-row .ph {
  aspect-ratio: 4/5;
  border-radius: var(--soft-radius);
  box-shadow: var(--soft-shadow);
}

.prog-eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.prog-body .section-title {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 22px;
}
.prog-body p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 18px;
}
.prog-body p strong { color: var(--ink); font-weight: 600; }

.prog-details {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.prog-details li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.prog-details li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 860px) {
  .prog-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prog-row > * { min-width: 0; }
  .prog-row.flip .prog-media { order: 0; }
  .prog-details { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION (homepage + class pages) ──────────────────────── */

.faq { max-width: 840px; margin: 48px auto 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; text-align: left;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  transition: color .18s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  flex: 0 0 auto; width: 26px; height: 26px; position: relative; color: var(--accent);
  transition: transform .3s ease;
}
.faq-chevron::before, .faq-chevron::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
}
.faq-chevron::before { top: 12px; left: 4px; width: 18px; height: 2px; }       /* horizontal */
.faq-chevron::after  { left: 12px; top: 4px; width: 2px; height: 18px;          /* vertical   */
  transition: transform .3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-chevron::after { transform: scaleY(0); }                    /* + → −      */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  font-family: var(--sans); font-size: 0.9688rem; line-height: 1.62;
  color: var(--ink-soft); margin: 0 0 24px; max-width: 66ch; padding-right: 36px;
}

/* ── SECTION BANDS — full-bleed backgrounds behind shell sections ──
   Add .band + a flavor class to any .section for surface rhythm:
   .band-maroon = brand drench · .band-panel = raised charcoal panel  */

.band { position: relative; isolation: isolate; }
.band::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: -1;
}
.band-maroon::before {
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(150deg, #6e1b20 0%, var(--maroon-shadow) 52%, #431013 100%);
  box-shadow: inset 0 1px 0 rgba(244, 200, 74, .35), inset 0 -1px 0 rgba(0, 0, 0, .4);
}
.band-panel::before {
  background: linear-gradient(180deg, #212127 0%, #141418 100%);
  border-top: 1px solid rgba(232, 233, 234, .1);
  border-bottom: 1px solid rgba(232, 233, 234, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.band-tint::before {
  /* maroon-washed dark — warm, clearly not black */
  background:
    radial-gradient(820px 480px at 88% 0%, rgba(212, 85, 92, .12), transparent 62%),
    linear-gradient(165deg, #2c1518 0%, #1c0e10 58%, #170c0e 100%);
  border-top: 1px solid rgba(212, 85, 92, .18);
  border-bottom: 1px solid rgba(212, 85, 92, .18);
}
.band-glow::before {
  /* onyx with rising maroon light */
  background:
    radial-gradient(1000px 620px at 84% 0%, rgba(122, 31, 36, .42), transparent 64%),
    radial-gradient(700px 480px at 2% 100%, rgba(122, 31, 36, .22), transparent 70%);
}
/* band sections keep their own breathing room even mid-flow */
.section.band, .section + .section.band { padding-top: 88px; padding-bottom: 88px; }
.section-tight.band, .section + .section-tight.band { padding-top: 56px; padding-bottom: 56px; }

/* content sitting on the maroon drench */
.band-maroon .values { border-top-color: transparent; border-bottom-color: transparent; }
.band-maroon .value-item { border-right-color: rgba(255, 255, 255, .18); border-bottom-color: rgba(255, 255, 255, .18); }
.band-maroon .value-item h4 { color: #fff; }
.band-maroon .value-item p { color: rgba(255, 255, 255, .72); }
.band-maroon .section-title { color: #fff; }
.band-maroon .section-title em { color: var(--gold); }
.band-maroon .section-kicker { color: rgba(255, 255, 255, .6); }
.band-maroon .section-head { border-bottom-color: rgba(255, 255, 255, .35); }

/* ── SHARED: header logo · real-photo fills · numbering ── */
.brand-logo { height: 46px; width: auto; display: block; }

.ph.has-photo { background: #0b0c0d; }
.ph.has-photo::before,
.ph.has-photo::after { display: none; }
.ph .ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.has-photo .ph-cap { position: relative; z-index: 2; }

/* drop redundant numbering globally (Roman numerals + § section numbers) */
.value-item .vn,
.section-num { display: none; }

/* ── MOBILE OVERRIDES (placed last so they win source-order) ───────── */
html { overflow-x: clip; }              /* safety net; clip keeps sticky header working */
/* form fields must shrink with their container (prevents narrow-screen overflow) */
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; min-width: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { gap: 18px; }
}
@media (max-width: 860px) {
  /* header: static (not sticky) on mobile — the two-row header would
     otherwise cover ~150px of every scroll position */
  .site-head { position: static; }
  .brand { padding: 8px 22px; }
  .nav { padding: 8px 22px; }
  /* restore comfortable side padding + trim excessive vertical space */
  .hero { padding: 26px 22px 52px; }
  .section { padding: 52px 22px; }
  .section-tight { padding: 40px 22px; }
  .cta-strip { padding: 48px 0; }
  .brand-logo { height: 40px; }
  /* large display headings scale down on small screens */
  .hero-headline { font-size: 2.375rem; }
  /* prevent grid min-content blowout (column was forcing > viewport) */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > * { min-width: 0; }
  /* collage runs edge-to-edge on mobile (matches 22px hero padding) */
  .hero-collage { margin-left: -22px; margin-right: -22px; }
  .hero-collage .ph { box-shadow: 0 0 0 6px var(--bg); }
}
@media (max-width: 700px) {
  /* the Est./Style/Lineage strip wraps into a cramped column stack —
     the same facts live in the stamp and the copy */
  .hero-meta { display: none; }
  .cta-inner { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
}
@media (max-width: 560px) {
  .promo-rating, .promo-divider { display: none; }
  .promo-inner { padding-top: 8px; padding-bottom: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bot { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 420px) {
  .hero, .section { padding-left: 18px; padding-right: 18px; }
  /* long CTA labels must wrap rather than overflow a 320px viewport */
  .btn { white-space: normal; max-width: 100%; }
  .hero-headline { font-size: 2rem; }
  .section-title { font-size: 1.5625rem; }
  .hero-collage { margin-left: -18px; margin-right: -18px; height: 420px; }
  .day td { padding-left: 11px; padding-right: 11px; }
  .day .t { font-size: 0.625rem; }
  .sched-block { padding: 20px; }
  .btn { letter-spacing: 0.07em; padding-left: 14px; padding-right: 14px; }
}
