:root {
  --bg: #f6f6f6;
  --ink: #051211;
  --ink-muted: rgba(5, 18, 17, 0.62);
  --ink-faint: rgba(5, 18, 17, 0.4);
  --surface: #ffffff;
  --hairline: rgba(5, 18, 17, 0.08);
  --blackwoods: #051211;
  --blackwoods-soft: rgba(5, 18, 17, 0.3);
  --dark: #051211;
  --spring: #c1e0c4;
  --cherry-blossom: #f1a4c9;
  --error: #E73939;

  /* Glass system — apply via .glass-dark / .glass-light. */
  --glass-blur: blur(20px) saturate(180%);
  --glass-dark-bg: rgba(5, 18, 17, 0.35);
  --glass-dark-border: rgba(255, 255, 255, 0.06);
  --glass-light-bg: rgba(246, 246, 246, 0.85);
  --glass-light-border: rgba(0, 0, 0, 0.06);

  /* Spacing scale — 4/8 grid. Use these for all margin/padding/gap values. */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-80: 80px;
  --s-96: 96px;
  --s-120: 120px;

  --radius-card: var(--s-24);
  --radius-pill: 999px;
  --page-pad: var(--s-32);
  --container: 1440px;
  --gap: var(--s-32);

  /* Semantic layout spacing — swap per breakpoint, not per use site. */
  --space-section: var(--s-120);  /* between page sections */
  --space-row: var(--s-64);       /* between grid rows */

  /* Type scale — fluid between 480px and 1280px viewport. Authored in rem (1rem = 16px). */
  --text-xs: 0.75rem;                                       /* 12 */
  --text-sm: 0.875rem;                                      /* 14 */
  --text-base: 1rem;                                        /* 16 */
  --text-lg: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);    /* 18 → 20 */
  --text-card: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);      /* 20 → 24 */
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);            /* 24 → 32 */
  --text-section: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);   /* 28 → 44 */
  --text-display: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);   /* 36 → 56 */

  /* Line-heights */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.55;

  /* Letter-spacing */
  --tracking-tight: -0.01em;
  --tracking-snug: -0.005em;
  --tracking-normal: 0;

  /* Weights — Lexend Light for display, Regular for body */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
}

@media (max-width: 720px) {
  :root {
    --page-pad: var(--s-16);
    --space-section: var(--s-64);  /* ~50% of 120, snapped to grid */
    --space-row: var(--s-32);       /* 50% of 64 */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }

html {
  font-size: 100%;
  scroll-padding-top: 140px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.h-display {
  font-weight: var(--weight-light);
  font-size: var(--text-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.h-section {
  font-weight: var(--weight-light);
  font-size: var(--text-section);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-snug);
}
.h-2xl {
  font-weight: var(--weight-light);
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
}
.h-card {
  font-weight: var(--weight-light);
  font-size: var(--text-card);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
}
.body-lg {
  font-weight: var(--weight-regular);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
}
.body {
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
}
.body-sm {
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .body-sm,
  .hero-sub { font-size: var(--text-sm); }
}
.eyebrow {
  font-weight: var(--weight-regular);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Glass utility classes — apply to any element that needs a glassmorphic surface.
   .glass-dark for light/colored content on a dark surface; .glass-light for the inverse. */
.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
}
.glass-light {
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-border);
}

/* Material Symbols Rounded — use any icon: <span class="material-symbols-rounded">menu</span>.
   Override size with font-size, color with color. Weight/fill set globally. */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* ===== Page layout ===== */
main { padding-block: 0; }
section { margin-block: var(--space-section); }
section.hero-wrap { margin-block: var(--s-24); }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.brand-logo--mark { display: none; }
@media (max-width: 720px) {
  .brand-logo--wordmark { display: none; }
  .brand-logo--mark { display: block; }
  .brand-logo { height: 32px; }
}

@media (max-width: 720px) {
  .site-header .nav-waitlist { display: none; }
}

.pill-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-12) var(--s-24);
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill-btn--dust {
  background: var(--bg);
  color: var(--ink);
}
.pill-btn--dust:hover,
.pill-btn--dust:focus-visible {
  background: var(--spring);
  outline: none;
}
.pill-btn--lg {
  padding: var(--s-16) var(--s-32);
}
.pill-btn--ink {
  background: var(--ink);
  color: var(--bg);
}
.pill-btn--ink:hover,
.pill-btn--ink:focus-visible {
  background: var(--spring);
  color: var(--ink);
  outline: none;
}

.pill-btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: 0.25;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pill-btn-ripple 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pill-btn-ripple {
  to { transform: translate(-50%, -50%) scale(25); opacity: 0; }
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: clamp(480px, 60vw, 720px);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%),
    radial-gradient(120% 80% at 70% 30%, #2a2a2a 0%, #0e0e0e 70%);
  color: #fff;
  isolation: isolate;
}
@media (max-width: 720px) {
  section.hero-wrap {
    margin-block-start: 0;
    padding-inline: 0;
    max-width: none;
  }
  .hero {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }
}
.hero::after {
  content: "Hero photo: athlete mid-squat, weight plates in frame";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.18);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  left: var(--s-48);
  right: var(--s-48);
  top: calc(50% - 80px);
  max-width: 800px;
  display: grid;
  gap: var(--s-16);
}
@media (max-width: 720px) {
  .hero-content {
    left: var(--s-16);
    right: var(--s-16);
    max-width: none;
    justify-items: center;
    text-align: center;
  }
  .hero-sub { max-width: 28ch; margin-inline: auto; }
}
.hero-title { margin: 0; color: #fff; }
.hero-sub {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: var(--text-base);
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--s-16);
}
@media (max-width: 720px) {
  .hero-cta { justify-content: center; }
}

/* Waitlist form lives inside the modal — glass pill input, stacked CTA. */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  margin-top: 0;
  width: 100%;
}
.waitlist input {
  width: 100%;
  height: var(--s-48);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(5, 18, 17, 0.08);
  border-radius: var(--radius-pill);
  padding: 0 var(--s-24);
  color: var(--ink);
  font-size: var(--text-base);
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}
.waitlist input::placeholder { color: var(--ink-muted); }
.waitlist input:focus { border-color: var(--ink); }
.waitlist.error input { border-color: var(--error); }
.waitlist button { width: 100%; height: var(--s-48); padding: 0 var(--s-24); }

.waitlist-error {
  color: var(--error);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.waitlist.error ~ .waitlist-error {
  max-height: 30px;
  opacity: 1;
  margin-top: var(--s-8);
}

.waitlist-disclaimer {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: var(--lh-normal);
  margin: 0;
  text-align: center;
}
.waitlist-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.waitlist-disclaimer a:hover { color: var(--ink); }

/* Statement */
.statement { text-align: center; }
.statement .h-section { margin: 0 auto; max-width: 880px; }

/* Manifesto grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-row) var(--gap);
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  display: grid;
  gap: var(--s-16);
}
.card-photo {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, #2c2f33 0%, #15181b 100%);
  position: relative;
  overflow: hidden;
}
.card-photo::after {
  content: attr(data-photo);
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-12) var(--s-16);
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}
/* Shared profile-photo overlay — drop a JPG at /images/coaches/<slug>.jpg and it
   covers the placeholder in both the carousel card and the coach-page portrait.
   Missing files are removed via onerror so the gradient placeholder stays visible. */
.card-photo img,
.coach-portrait img.coach-photo-img,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
/* Hide placeholder labels/initials once a real image is in place. Falls back
   automatically if onerror strips the img. */
.card-photo:has(img)::after,
.coach-portrait:has(img)::after,
.coach-gallery-item:has(img)::after,
.site-nav-submenu-avatar:has(img)::after,
.drawer-nav-sub-avatar:has(img)::after,
.hero:has(.hero-photo)::after {
  display: none;
}
.card-body {
  display: grid;
  gap: var(--s-8);
  text-align: center;
}
.card-body .h-card { margin: 0; }
.card-body .body-sm { margin: 0; max-width: 56ch; margin-inline: auto; }

/* Coaches roster — scrolling ticker of coach cards in a white band. */
.coaches {
  text-align: center;
  background: #ffffff;
  margin-block: 0;
  padding-block: var(--space-section);
}
.coaches-label {
  margin: 0 0 var(--s-48);
}
.ticker {
  position: relative;
  overflow: hidden;
}
.ticker-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: start;
  width: max-content;
  gap: var(--s-32);
  animation: ticker 60s linear infinite;
}
.ticker-item { flex-shrink: 0; display: flex; }
.coach-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.coach-card-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}
.coach-card {
  margin: 0;
  width: 360px;
  display: grid;
  gap: var(--s-12);
  text-align: left;
}
.coach-photo { aspect-ratio: 4 / 3; }
.coach-caption {
  display: grid;
  gap: 2px;
  padding: 0 var(--s-4);
}
.coach-name {
  font-size: 16px;
  font-weight: var(--weight-light);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
}
.coach-specialty {
  font-size: 14px;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .coach-card { width: 280px; }
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-33.3333%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media (hover: hover) {
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

/* Investor grid — full-bleed Black Woods band; logos recolored to Dust. */
.investor-grid {
  text-align: center;
  background: var(--blackwoods);
  color: var(--bg);
  margin-block: 0;
  padding-block: var(--space-section);
}
.investor-grid-label {
  margin: 0 0 var(--s-32);
}
.investor-grid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-48) var(--s-32);
  align-items: center;
  justify-items: center;
}
.investor-grid-list img {
  height: 150px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: brightness(0) invert(1);
}
@media (max-width: 720px) {
  .investor-grid-list { grid-template-columns: repeat(2, 1fr); gap: var(--s-32); }
  .investor-grid-list img { height: 100px; }
}

/* Process */
.process {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.5fr;
  gap: var(--s-64);
  align-items: start;
  margin-bottom: 0;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr; }
}
.process-intro { position: sticky; top: 140px; }
.process-intro .h-section { margin: 0 0 var(--s-12); }
.process-sub { margin: 0; }

.process-track {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-32);
  align-items: start;
}
.process-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 140px;
  padding-top: 14px;
  align-self: start;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}
/* Spacer inside the list provides scroll runway for the last step's dot to complete
   AND keeps all sticky cards bound by a parent tall enough that they all stay
   stacked together until the section ends. */
.steps::after {
  content: "";
  display: block;
  height: 0;
}
.step {
  position: sticky;
  top: calc(140px + var(--idx, 0) * 8px);
  min-height: 100vh;
  display: block;
}
@media (max-width: 880px) {
  .process { gap: var(--s-24); margin-bottom: var(--space-section); }
  .process-intro { position: static; top: auto; }
  .process-track { grid-template-columns: 1fr; gap: var(--s-24); }

  /* Carousel: horizontal scroll-snap, native swipe, scrollbar hidden */
  .steps {
    display: flex;
    flex-direction: row;
    gap: var(--s-16);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps::after { display: none; }

  .step {
    position: static;
    top: auto;
    min-height: auto;
    flex: 0 0 85%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Dots: horizontal row centered below the carousel. order:2 renders after .steps. */
  .process-dots {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--s-12);
    position: static;
    top: auto;
    padding: 0;
    order: 2;
  }
}

/* Progress dots — active (the topmost stacked card) fills with solid Black Woods,
   all others stay at 30% Black Woods. */
.process-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blackwoods-soft);
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}
.process-dot.is-active { background: var(--blackwoods); }

.step-card { display: grid; gap: var(--s-16); background: var(--bg); border-radius: var(--radius-card); }
.step-photo { aspect-ratio: 16 / 9; }
.step-card .card-body { text-align: left; padding: 0 var(--s-4); }
.step-card .card-body .body-sm { margin-inline: 0; }

/* Coach profile — individual pages at /coaches/<slug>/.
   Uses .coach-hero (NOT .hero) so centerHero() in main.js does not absolutely-position the content.
   Desktop: content left, 4:3 portrait right, vertically centered.
   Mobile: portrait above, content (name + specialty) below — all left-aligned.
   The waitlist CTA lives in the floating .scroll-to-top button (mobile) + the persistent nav pill (all sizes). */
.coach-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "content portrait";
  gap: var(--gap);
  align-items: center;
}
.coach-portrait {
  grid-area: portrait;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--portrait-grad-a, var(--blackwoods-soft)) 0%, var(--portrait-grad-b, var(--blackwoods)) 100%);
  position: relative;
  overflow: hidden;
}
.coach-portrait::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: var(--weight-light);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  letter-spacing: var(--tracking-tight);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.coach-hero-content {
  grid-area: content;
  display: grid;
  gap: var(--s-8);
}
.coach-name-display { margin: 0; }
.coach-specialty-line {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  section.coach-hero-wrap { margin-block: 0; }
  section.coach-bio { margin-block-start: var(--s-24); }
  .coach-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "portrait"
      "content";
    gap: var(--s-32);
  }
  .coach-portrait {
    aspect-ratio: 4 / 5;
    margin-inline: calc(var(--page-pad) * -1);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }
}

.coach-bio p { margin: 0 0 var(--s-16); }
.coach-bio p:last-child { margin-bottom: 0; }

.coach-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.coach-gallery-item {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--portrait-grad-a, var(--blackwoods-soft)) 0%, var(--portrait-grad-b, var(--blackwoods)) 100%);
}
/* Only the outer edges of the three-tile panel are rounded; middle tile stays square. */
.coach-gallery-item:first-child { border-radius: var(--radius-card) 0 0 var(--radius-card); }
.coach-gallery-item:last-child { border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.coach-gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-12) var(--s-16);
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  pointer-events: none;
}
/* Pre-styled for when each <li> swaps from <div> placeholder to <img>. */
.coach-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  /* Horizontal scroll-snap carousel — tiles join into one continuous panel; only the
     outer corners (first-child left, last-child right) stay rounded. The list sits
     inside the parent .container's --page-pad, giving tile 1 a left gutter that
     matches the bio text. (No negative-margin breakout: it would cancel the
     padding and snap-flush the first tile to the viewport edge.) */
  .coach-gallery-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .coach-gallery-list::-webkit-scrollbar { display: none; }
  .coach-gallery-item {
    flex: 0 0 75%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* Statement-style closer — one centered dynamic line + CTA per coach.
   Mirrors the homepage .statement pattern. */
.value-prop { text-align: center; }
.value-prop-headline {
  margin: 0 auto var(--s-48);
  max-width: 36ch;
}
.value-prop-cta { display: flex; justify-content: center; }

/* Light-header theme — applied via body class on pages without a dark hero
   (e.g., coach profiles). Recolors logo, nav text, menu toggle, and the scrolled
   glass background so they read against the light --bg surface. */
.theme-header-light .brand-logo { filter: brightness(0); }
.theme-header-light .site-nav > a { color: var(--ink); }
.theme-header-light .site-nav > a:hover,
.theme-header-light .site-nav > a:focus-visible { background: rgba(5, 18, 17, 0.06); }
.theme-header-light .menu-toggle { color: var(--ink); }
.theme-header-light .site-header.is-scrolled {
  background: var(--glass-light-bg);
  border-color: var(--glass-light-border);
}

.site-footer {
  background: var(--blackwoods);
  color: var(--bg);
  padding: var(--s-64) 0 var(--s-32);
}
.site-footer-wordmark {
  display: block;
  height: 40px;
  width: auto;
  align-self: flex-start;
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-48);
}
.site-footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-48);
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.site-footer-heading {
  margin: 0 0 var(--s-8);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--bg);
}
.site-footer a {
  color: rgba(246, 246, 246, 0.72);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--bg); }
.site-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(246, 246, 246, 0.5);
}

@media (max-width: 720px) {
  .site-footer { padding: var(--s-32) 0; }
  .site-footer-inner { gap: var(--s-32); }
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-24); }
  .site-footer-meta { flex-direction: column; gap: var(--s-8); align-items: flex-start; }
}

/* Site header — floating pill. Width tracks the page content width (container max
   minus its inline padding) so the pill edges line up exactly with the cards below.
   Brand uses margin-right: auto so everything else hugs the right edge with a
   consistent 32px gap. */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(1440px - 64px);
  height: 64px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--s-32);
  padding: 0 16px;
  border-radius: 999px;
  color: #f6f6f6;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.site-header .brand { margin-right: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.site-nav a {
  color: #f6f6f6;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--s-8) var(--s-16);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(246, 246, 246, 0.1);
  outline: none;
}

/* Nav submenu (disclosure pattern) — Coaches dropdown. Hover/focus reveal is CSS-only;
   JS toggles .is-open on click for touch users. ARIA: button has aria-expanded that
   tracks click intent. */
.site-nav-item { position: relative; }
.site-nav-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #f6f6f6;
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--s-8) var(--s-16);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
.site-nav-trigger:hover,
.site-nav-trigger:focus-visible {
  background: rgba(246, 246, 246, 0.1);
  outline: none;
}
.theme-header-light .site-nav-trigger { color: var(--ink); }
.theme-header-light .site-nav-trigger:hover,
.theme-header-light .site-nav-trigger:focus-visible { background: rgba(5, 18, 17, 0.06); }

/* Caret affordance — rotates 180° when the panel is open (aria-expanded is
   synced by JS for both hover and click paths). */
.site-nav-trigger-caret {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.site-nav-trigger[aria-expanded="true"] .site-nav-trigger-caret { transform: rotate(180deg); }

.site-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + var(--s-24));
  left: 50%;
  transform: translateX(-50%);
  min-width: 640px;
  max-width: 1080px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--blackwoods);
  border-radius: var(--radius-card);
  padding: var(--s-12);
  z-index: 160;
}
.site-nav-item--has-submenu.is-open .site-nav-submenu { display: block; }
.site-nav-submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8) var(--s-16);
}
.site-nav-submenu a {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-12);
  border-radius: var(--radius-pill);
  color: #f6f6f6;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.site-nav-submenu-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--portrait-grad-a, var(--blackwoods-soft)) 0%, var(--portrait-grad-b, var(--blackwoods)) 100%);
}
.site-nav-submenu-avatar::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: var(--weight-light);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.site-nav-submenu-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-nav-submenu a:hover,
.site-nav-submenu a:focus-visible {
  background: rgba(246, 246, 246, 0.1);
  outline: none;
}
.site-nav-submenu-name {
  font-size: var(--text-sm);
  line-height: 1.2;
}
.site-nav-submenu-sub {
  font-size: var(--text-xs);
  color: rgba(246, 246, 246, 0.62);
  line-height: 1.2;
}
/* Narrower desktop viewports — the 720px grid panel can't fit centered under the
   trigger, so pin both edges to the page padding and let the 3 columns reflow. */
@media (max-width: 900px) and (min-width: 721px) {
  .site-nav-submenu {
    left: var(--s-32);
    right: var(--s-32);
    transform: none;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
}
@media (min-width: 721px) {
  .site-header {
    top: 36px;
    width: calc(100% - 64px);
    padding: 0 8px 0 20px;
  }
}
.site-header.is-scrolled {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-dark-border);
}

/* Menu toggle — standalone fixed button, mobile only. Stays above drawer so the morph
   remains visible when drawer is open. Position matches the header pill's right edge
   and vertical center. */
.menu-toggle {
  display: none;
  position: fixed;
  top: 28px;
  right: 32px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 250;
  color: #f6f6f6;
  transition: color 0.3s ease;
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .menu-toggle .material-symbols-rounded { font-size: 28px; }
}
body.drawer-open .menu-toggle { color: #051211; }
.menu-toggle-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu-toggle-icon--close { opacity: 0; transform: rotate(-90deg); }
body.drawer-open .menu-toggle-icon--menu { opacity: 0; transform: rotate(90deg); }
body.drawer-open .menu-toggle-icon--close { opacity: 1; transform: rotate(0); }

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.4s;
}
body.drawer-open .drawer {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 17, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.drawer-open .drawer-backdrop { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 80vw);
  background: #f6f6f6;
  border-radius: 24px 0 0 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 64px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-panel { transform: translateX(0); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-nav a {
  font-size: 1.5rem;
  font-weight: 300;
  color: #051211;
  text-decoration: none;
}

/* Drawer disclosure — tap-to-expand Coaches row. Chevron rotates 180° when open;
   sublist animates via the grid-template-rows 0fr → 1fr height-auto pattern. */
.drawer-nav-item--has-submenu { display: flex; flex-direction: column; }
.drawer-nav-trigger {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 300;
  color: #051211;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.drawer-nav-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}
.drawer-nav-chevron {
  font-size: 24px;
  transition: transform 0.2s ease;
}
.drawer-nav-trigger[aria-expanded="true"] .drawer-nav-chevron { transform: rotate(180deg); }

.drawer-nav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.drawer-nav-trigger[aria-expanded="true"] + .drawer-nav-sub { grid-template-rows: 1fr; }
.drawer-nav-sub-inner { overflow: hidden; }
.drawer-nav-sub ul {
  list-style: none;
  margin: 0;
  padding: 12px 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-nav-sub a {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  font-size: 1.125rem;
  font-weight: 300;
  color: #051211;
  text-decoration: none;
}
.drawer-nav-sub-name { line-height: 1.2; }
.drawer-nav-sub-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--portrait-grad-a, var(--blackwoods-soft)) 0%, var(--portrait-grad-b, var(--blackwoods)) 100%);
}
.drawer-nav-sub-avatar::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: var(--weight-light);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.drawer-nav-sub-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-footer {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  margin-inline: calc(var(--s-24) * -1);
  margin-bottom: 0;
  padding: var(--s-16) var(--s-24) var(--s-24);
  background: #f6f6f6;
  z-index: 1;
}
.drawer-waitlist {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-16) var(--s-24);
  font-size: var(--text-lg);
}
.drawer-waitlist:hover,
.drawer-waitlist:focus-visible {
  background: var(--spring);
  color: var(--ink);
  outline: none;
}

/* Modal — first modal pattern. Desktop: centered card. Mobile (≤720px): bottom sheet. */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.35s;
}
.modal.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}
body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 17, 0.5);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-open .modal-backdrop { opacity: 1; }

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  opacity: 0;
  width: min(480px, calc(100vw - var(--page-pad) * 2));
  height: 400px;
  background: var(--glass-light-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-light-border);
  color: var(--ink);
  border-radius: 20px;
  padding: var(--s-24);
  box-shadow: 0 24px 60px rgba(5, 18, 17, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-logomark {
  width: 48px;
  height: 48px;
  display: block;
}
.modal.is-open .modal-panel {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: var(--s-12);
  right: var(--s-12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close:hover,
.modal-close:focus-visible { background: rgba(5, 18, 17, 0.08); outline: none; }
.modal-close .material-symbols-rounded { font-size: 22px; }

.modal-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--s-24);
}
.modal-view[hidden] { display: none; }
.modal-view h2 { margin: 0; }
.modal-view .waitlist { margin-top: var(--s-32); }
.modal-view .waitlist-disclaimer { margin-top: var(--s-16); }
.modal-view--success .body { color: var(--ink-muted); margin-top: var(--s-8); }
.modal-view--success .pill-btn { margin-top: var(--s-24); }

@media (max-width: 720px) {
  .modal-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 400px;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
    padding: var(--s-24);
    box-shadow: 0 -12px 40px rgba(5, 18, 17, 0.25);
  }
  .modal.is-open .modal-panel { transform: translateY(0); }
}

/* Sticky waitlist CTA — fades in once the hero scrolls out of view.
   Glass treatment mirrors the header's `.is-scrolled` state. */
.scroll-to-top {
  position: fixed;
  bottom: var(--s-24);
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  color: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(5, 18, 17, 0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.scroll-to-top:hover,
.scroll-to-top:focus-visible {
  background: var(--spring);
  color: var(--ink);
  border-color: transparent;
  outline: none;
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Coach pages: floating CTA is visible on load, solid Blackwoods + Dust, 56px tall.
   Visibility extends to desktop too (override inside the media query below). */
body.theme-header-light .scroll-to-top {
  height: 56px;
  background: var(--blackwoods);
  color: var(--bg);
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.theme-header-light .scroll-to-top:hover,
body.theme-header-light .scroll-to-top:focus-visible {
  background: var(--spring);
  color: var(--ink);
}
@media (min-width: 721px) {
  .scroll-to-top { display: none; }
  body.theme-header-light .scroll-to-top { display: inline-flex; }
}

.site-footer-socials {
  display: flex;
  flex-direction: row;
  gap: var(--s-12);
  margin-top: var(--s-4);
}
.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
}
.site-footer-socials svg { display: block; }

.legal-page {
  padding-block: var(--s-120) var(--space-section);
  max-width: 720px;
}
.legal-page .legal-meta {
  margin: var(--s-16) 0 var(--s-48);
}
.legal-page h2 {
  font-weight: var(--weight-light);
  font-size: var(--text-card);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  margin: var(--s-48) 0 var(--s-16);
}
.legal-page p {
  margin: 0 0 var(--s-16);
}
@media (max-width: 720px) {
  .legal-page { padding-block: var(--s-64) var(--space-section); }
}
