/* ───────── Tokens ───────── */
:root {
  --blue: #3F67D8;
  --blue-deep: #2D4FB8;
  --blue-soft: rgba(63, 103, 216, 0.08);
  --green: #6BD128;
  --green-deep: #4FA81C;

  --bg: #F8F9FB;
  --bg-warm: #FBFAF6;
  --paper: #FFFFFF;
  --ink: #0F1430;
  --ink-soft: #2A2F4D;
  --muted: #6E7387;
  --line: #E2E5EE;
  --line-soft: #EEF0F6;
  --line-strong: #C9CDDC;

  --display: 'Fraunces', 'Tiempos Headline', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Snell Roundhand', cursive;
  /* Fraunces variation: SOFT 0 = sharp terminals, WONK 0 = clean (no quirky details) */
  --display-vars: "opsz" 96, "SOFT" 0, "WONK" 0;
  --display-vars-large: "opsz" 144, "SOFT" 0, "WONK" 0;
  --display-vars-small: "opsz" 24, "SOFT" 0, "WONK" 0;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 22px;

  --container: 1200px;
  --container-tight: 920px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 0.68, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "kern" on;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--blue-deep); }

.skip {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  z-index: 1000; transition: top .2s;
}
.skip:focus { top: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section {
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head--narrow { max-width: 580px; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split .display { margin-bottom: 0; max-width: 14ch; }

/* ───────── Typography ───────── */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.25rem;
  font-feature-settings: "ss01" on;
}
.eyebrow--green { color: var(--green); }

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  max-width: 22ch;
}
.display em {
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.625rem;
  border-radius: 999px;
  transition: transform .25s var(--ease-out), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
  text-decoration: none !important;
  letter-spacing: 0.005em;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper) !important;
}
.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.btn--ghost {
  color: var(--ink) !important;
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: gap .2s var(--ease-out), color .2s;
}
.link-arrow:hover {
  color: var(--blue) !important;
  border-color: var(--blue);
  gap: 0.75rem;
}

/* ───────── Court-line scroll thread ───────── */
.court-thread {
  position: fixed;
  top: 0;
  bottom: 0;
  right: clamp(1rem, 4vw, 3rem);
  width: 1px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.court-thread__line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--green) 12%, var(--green) 88%, transparent);
  height: 100%;
  transform-origin: top;
  transform: scaleY(0);
  animation: courtThread 1.6s 1.4s var(--ease-out) forwards;
  opacity: 0.3;
}
@keyframes courtThread {
  to { transform: scaleY(1); }
}
@media (max-width: 768px) {
  .court-thread { display: none; }
}

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 251, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled {
  border-color: var(--line-soft);
  background: rgba(248, 249, 251, 0.95);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink) !important;
}
.nav__mark {
  color: var(--blue);
  flex-shrink: 0;
  width: 96px;
  height: auto;
  display: block;
}
@media (max-width: 540px) {
  .nav__mark { width: 80px; }
}
.nav__links {
  display: flex;
  gap: 1.875rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--ink-soft) !important;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}
.nav__links a:hover { color: var(--ink) !important; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav.is-menu-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line);
    gap: 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-menu-open .nav__links {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(63, 103, 216, 0.06), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero__mark {
  width: clamp(260px, 56vw, 580px);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  position: relative;
  /* Subtle parallax via scroll-driven motion */
  will-change: transform;
}
.hero__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* === Real logo build-in animation === */

/* Rackets (paths 1-2): fade in + slight scale-up */
.hero__svg .logo__rackets {
  opacity: 0;
  transform-origin: center;
  transform: scale(0.78) translateY(8px);
  filter: blur(4px);
  animation: rackEnter 1.3s 0.15s var(--ease-out) forwards;
}
@keyframes rackEnter {
  0% { opacity: 0; transform: scale(0.78) translateY(8px); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Cursive script (paths 4-10): handwriting reveal left-to-right */
.hero__svg .logo__script {
  opacity: 0;
  animation: scriptWrite 1.6s 1.3s var(--ease-out) forwards;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}
@keyframes scriptWrite {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
  8% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
}

/* Green grip (path 3): extends from inside the right racket out the right */
.hero__svg .logo__grip {
  opacity: 0;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  animation: gripExtend 0.7s 2.7s var(--ease-out) forwards;
}
@keyframes gripExtend {
  0% { opacity: 0; transform: scaleX(0); }
  20% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Continuous gentle hover on the rackets after the build-in */
.hero__svg .logo__rackets {
  animation: rackEnter 1.3s 0.15s var(--ease-out) forwards,
             rackBreathe 6s 3.6s ease-in-out infinite;
}
@keyframes rackBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.012) translateY(-2px); }
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
}
.hero__title-line:nth-child(1) { animation: heroFade 0.85s 0s var(--ease-out) both; }
.hero__title-line:nth-child(2) { animation: heroFade 0.85s 0.15s var(--ease-out) both; }
.hero__title-line--em em {
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
}
@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
  opacity: 0;
  animation: heroFade 0.85s 0.3s var(--ease-out) both;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  opacity: 0;
  animation: heroFade 0.85s 0.45s var(--ease-out) both;
}

.hero__pills {
  list-style: none;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  max-width: 720px;
  opacity: 0;
  animation: heroFade 0.85s 0.6s var(--ease-out) both;
}
.hero__pills li {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}
.hero__pill-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* ───────── Philosophy ───────── */
.philosophy { background: var(--bg); }

/* ── Pillar tabs (interactive) ── */
.pillar-tabs {
  border-top: 1px solid var(--line);
}
.pillar-tabs__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.pillar-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  color: var(--ink);
  transition: background .25s var(--ease-out), padding .25s var(--ease-out);
}
.pillar-tab:last-child { border-right: none; }
.pillar-tab:hover { background: rgba(63, 103, 216, 0.04); }
.pillar-tab.is-active { background: rgba(63, 103, 216, 0.05); }
.pillar-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.pillar-tab.is-active::after { transform: scaleX(1); }
.pillar-tab__meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.pillar-tab__label {
  font-family: var(--display);
  font-size: clamp(1.4375rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
  line-height: 1.1;
}
.pillar-tab[aria-selected="false"] .pillar-tab__label { color: var(--ink-soft); opacity: 0.7; }
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(63, 103, 216, 0.08);
  color: var(--blue);
  transition: background .3s var(--ease-out), color .3s, transform .3s, box-shadow .3s;
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar-tab.is-active .pillar__icon {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 8px 24px -10px rgba(63, 103, 216, 0.6);
}
.pillar-tab[aria-selected="false"] .pillar__icon { opacity: 0.6; }
.pillar-tab:hover:not(.is-active) .pillar__icon { opacity: 1; transform: translateY(-2px); background: rgba(63, 103, 216, 0.13); }
.pillar__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--blue);
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0;
  opacity: 0.7;
}

.pillar-tabs__panels {
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
  position: relative;
}
.pillar-panel {
  max-width: 60ch;
}
.pillar-panel[hidden] { display: none; }
.pillar-panel.is-active { animation: panelFade 0.45s var(--ease-out) both; }
.pillar-panel p {
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .pillar-tabs__nav { grid-template-columns: repeat(3, 1fr); }
  .pillar-tab {
    padding: 1.25rem 0.5rem;
    gap: 0.625rem;
    border-right: 1px solid var(--line);
    align-items: center;       /* Center icon block */
    text-align: center;        /* Center text */
  }
  .pillar-tab:last-child { border-right: none; }
  .pillar-tab__meta {
    align-items: center;       /* Center numeral + label */
    gap: 0.25rem;
  }
  .pillar__icon { width: 40px; height: 40px; border-radius: 10px; }
  .pillar__icon svg { width: 22px; height: 22px; }
  .pillar-tab__label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .pillar__num { font-size: 0.75rem; }
  .pillar-tabs__panels { padding-top: 1.75rem; }
  .pillar-panel p { font-size: 1rem; }
}

/* ───────── Programs ───────── */
.programs { background: var(--bg-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.programs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.programs__grid--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .programs__grid--three { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .programs__grid { grid-template-columns: 1fr; }
}

.program {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.program:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -20px rgba(15, 20, 48, 0.12);
  border-color: rgba(63, 103, 216, 0.25);
}
.program__head {
  margin-bottom: 1.25rem;
}
.program__num {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--green-deep);
  margin-bottom: 0.625rem;
  font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0;
  letter-spacing: -0.005em;
}
.program h3 {
  font-family: var(--display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
}
.program__desc {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.program__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line-soft);
}
.program__list li {
  position: relative;
  padding: 0.875rem 0 0.875rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.program__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.25em;
  width: 8px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* Accent variant — the Competitive Coaching pathway card.
   Must come AFTER .program so its overrides win on same specificity. */
.program--accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.program--accent h3 { color: var(--paper); }
.program--accent .program__num { color: var(--green); }
.program--accent .program__desc { color: rgba(255, 255, 255, 0.82); }
.program--accent .program__list { border-top-color: rgba(255, 255, 255, 0.14); }
.program--accent .program__list li { color: rgba(255, 255, 255, 0.82); border-bottom-color: rgba(255, 255, 255, 0.10); }
.program--accent .program__list li::before { background: var(--green); }
.program--accent .link-arrow {
  color: var(--paper) !important;
  border-bottom-color: var(--paper);
}
.program--accent .link-arrow:hover {
  color: var(--green) !important;
  border-bottom-color: var(--green);
}
.program--accent:hover {
  border-color: var(--green);
}

/* ───────── About / Coach ───────── */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
}
.portrait {
  margin: 0;
  position: sticky;
  top: 110px;
}
@media (max-width: 768px) {
  .portrait {
    position: static;
    max-width: 320px;
    margin: 0 auto 1rem;
  }
}
.portrait__frame {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, rgba(63, 103, 216, 0.10), rgba(107, 209, 40, 0.06) 60%, rgba(63, 103, 216, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.portrait__frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(63, 103, 216, 0.15);
  border-radius: calc(var(--radius-lg) - 8px);
}
.portrait__racket {
  position: absolute;
  inset: 8% 8% auto 8%;
  width: 84%;
  opacity: 0.85;
}
.portrait__monogram {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 7rem);
  color: var(--blue);
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  position: relative;
  z-index: 1;
  margin-top: 8%;
}
.portrait__caption {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  letter-spacing: 0.04em;
  font-feature-settings: "ss01" on;
}

.about__copy p {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
  max-width: 60ch;
}
.about__copy .signature {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--blue);
  border-left: 2px solid var(--blue);
  padding-left: 1.5rem;
  margin: 2rem 0 0;
  max-width: 50ch;
  font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0;
}

/* ───────── Process ───────── */
.process { background: var(--bg-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background .3s;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--paper); }
.step__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
}
.step p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

/* ───────── Service area ───────── */
.area { background: var(--bg); }
.cities {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.city {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.125rem 1.25rem 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  transition: padding .25s var(--ease-out), color .25s;
  cursor: default;
}
.city:hover {
  padding-left: 0.75rem;
  background: linear-gradient(to right, var(--blue-soft), transparent 70%);
}
.city__name {
  font-family: var(--display);
  font-size: 1.1875rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
}
.city__zip {
  font-family: var(--body);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ───────── FAQ ───────── */
.faq { background: var(--bg-warm); border-top: 1px solid var(--line-soft); }
.faq__list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.faq__item summary {
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.5rem 3rem 1.5rem 0;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
  transition: color .2s;
}
.faq__item summary:hover { color: var(--blue); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 12px no-repeat;
  transition: transform .3s var(--ease-out), border-color .3s, background-size .3s;
  color: var(--ink);
}
.faq__item[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/0 12px no-repeat;
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--blue);
  color: var(--blue);
}
.faq__body {
  padding: 0 3rem 1.75rem 0;
  max-width: 65ch;
}
.faq__body p {
  margin: 0;
  color: var(--ink-soft);
}

/* ───────── Book / CTA ───────── */
.book {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.book::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(107, 209, 40, 0.12), transparent 60%);
  pointer-events: none;
}
.book .display { color: var(--paper); }
.book .display em { color: var(--green); }
.book .lede { color: rgba(255, 255, 255, 0.72); }
.book__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.book__methods {
  margin-top: clamp(2.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.method {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: left;
  color: var(--paper) !important;
  transition: background .25s, border-color .25s, transform .25s var(--ease-out);
}
.method:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 209, 40, 0.6);
  transform: translateY(-2px);
}
.method__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.625rem;
}
.method__value {
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0;
}

/* ───────── Inline CTA strip (after Programs) ───────── */
.cta-strip {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.cta-strip__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip__text .display {
  margin-bottom: 0;
  max-width: 16ch;
}
.cta-strip__btn {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cta-strip { padding: 3rem 0; }
  .cta-strip__inner { gap: 1.5rem; align-items: start; flex-direction: column; }
  .cta-strip__btn { width: 100%; justify-content: center; }
  .cta-strip__btn span[aria-hidden] { margin-left: auto; }
}

/* About section: train-with-Arun CTA */
.about__cta {
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .about__cta .btn { width: 100%; justify-content: center; }
}

/* Book section: primary CTA */
.book__primary {
  margin-top: clamp(2rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.book__or {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  font-weight: 500;
}
.btn--book-primary {
  background: var(--green);
  color: var(--ink) !important;
  padding: 1.0625rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 28px -8px rgba(107, 209, 40, 0.5);
}
.btn--book-primary:hover {
  background: var(--green-deep);
  color: var(--paper) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(107, 209, 40, 0.55);
}

/* ───────── Booking modal ───────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 48, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: backdropFade 0.3s var(--ease-out) forwards;
}
@keyframes backdropFade {
  to { opacity: 1; }
}
.modal__dialog {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 800px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 40px 100px -20px rgba(15, 20, 48, 0.4);
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  animation: dialogIn 0.4s 0.05s var(--ease-out) forwards;
}
@keyframes dialogIn {
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 540px) {
  .modal { padding: 0; align-items: stretch; }
  .modal__dialog {
    max-height: 100vh;
    border-radius: 0;
    padding: 1.5rem 1.25rem 2rem;
  }
}
.modal__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  right: clamp(0.75rem, 2vw, 1.25rem);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--paper);
  transition: background .2s, color .2s, transform .2s;
  z-index: 2;
}
.modal__close:hover { background: var(--line-soft); color: var(--ink); transform: scale(1.05); }
.modal__close svg { width: 18px; height: 18px; }

.modal__header { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.modal__header .eyebrow { margin-bottom: 0.625rem; }
.modal__header .display {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.modal__lede {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ───────── Form ───────── */
/* Global: anything with the `hidden` attribute must actually hide.
   Without this, our `display: flex / grid` rules below override the browser's
   default `[hidden] { display: none }` and the field groups stack on top of
   each other. */
[hidden] { display: none !important; }

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__legend {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.875rem;
  padding: 0;
}
.form__choice { border: 0; padding: 0; margin: 0; }
.form__choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__inner {
  display: block;
  padding: 1rem 1.125rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s, transform .15s;
  text-align: left;
}
.choice__title {
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 24, "SOFT" 0, "WONK" 0;
  margin-bottom: 0.125rem;
}
.choice__sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.choice:hover .choice__inner { border-color: var(--blue); }
.choice input:checked + .choice__inner {
  border-color: var(--blue);
  background: rgba(63, 103, 216, 0.05);
}
.choice input:focus-visible + .choice__inner {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form__group { display: flex; flex-direction: column; gap: 1rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field--narrow { max-width: 140px; }
.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.field__opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.9375rem;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(63, 103, 216, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%232A2F4D' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 L6 6 L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 11px;
  padding-right: 2rem;
}

.form__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.form__spinner {
  width: 18px;
  height: 18px;
  display: none;
  animation: spin 0.9s linear infinite;
}
.form--submitting .form__spinner { display: inline-block; }
.form--submitting .form__submit-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}

.form__success {
  text-align: center;
  padding: 1.5rem 0;
}
.form__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(107, 209, 40, 0.12);
  color: var(--green-deep);
  display: grid;
  place-items: center;
}
.form__success-icon svg { width: 32px; height: 32px; }
.form__success h3 {
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
}
.form__success p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
}

.form__error {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}
.form__error p { font-size: 0.875rem; margin: 0; }
.form__error a { color: inherit; text-decoration: underline; }

/* Lock scroll when modal is open */
body.is-modal-open { overflow: hidden; }

/* ───────── Footer ───────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__logo {
  width: 130px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .footer__logo { width: 100px; margin-bottom: 0.75rem; }
}
.footer__word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--blue);
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  display: block;
}
@media (max-width: 768px) {
  .footer__word { font-size: 1.25rem; }
}
.footer__tag {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin: 0.375rem 0 0;
  text-transform: uppercase;
  font-weight: 500;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
}
.footer__col h4 {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}
.footer__col a, .footer__col p {
  display: block;
  color: var(--ink-soft) !important;
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
  text-decoration: none;
}
.footer__col a:hover { color: var(--blue) !important; }
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__bottom p { margin: 0; }

/* ───────── Reveal animation ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────  Reduced motion ─────────
   When the user has "Reduce Motion" enabled, we still give a gentle
   opacity-only fade-in (no movement, no scale, no blur — those are what
   trigger vestibular issues). This preserves the "page feels alive"
   moment without violating the accessibility contract. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  html { scroll-behavior: auto; }

  /* Logo: simple opacity fade only */
  .hero__svg .logo__rackets,
  .hero__svg .logo__script,
  .hero__svg .logo__grip {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    animation: rmFade 0.6s ease-out both !important;
  }
  .hero__svg .logo__script { animation-delay: 0.2s !important; }
  .hero__svg .logo__grip   { animation-delay: 0.4s !important; }

  /* Hero text: opacity fade only, no translateY */
  .hero__title-line,
  .hero__lede,
  .hero__ctas,
  .hero__pills {
    transform: none !important;
    animation: rmFade 0.5s ease-out both !important;
  }
  .hero__title-line:nth-child(1) { animation-delay: 0s !important; }
  .hero__title-line:nth-child(2) { animation-delay: 0.1s !important; }
  .hero__lede                    { animation-delay: 0.25s !important; }
  .hero__ctas                    { animation-delay: 0.35s !important; }
  .hero__pills                   { animation-delay: 0.45s !important; }

  /* Section reveal: keep, but pure opacity */
  .reveal { transform: none !important; transition: opacity .5s ease-out !important; }
}
@keyframes rmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ───────── Focus visibility ───────── */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
