/* ============================================================
   The Strong Academy — styles

   BRAND TOKENS
   Vurple #8400C8 is a FILL color only (buttons, marquee, selected
   states) — as text on black it scores 2.82:1 and fails WCAG AA.
   Blush #EFE7E2 carries the warm accent role on text (17.2:1).
   Mid Gray #616161 is for borders/dividers only — at 3.39:1 it is
   not safe for body copy.
   ============================================================ */

:root {
  /* brand palette */
  --black: #000000;
  --dark-gray: #222223;
  --mid-gray: #616161;
  --light-gray: #B7B6BA;
  --blush: #EFE7E2;
  --vurple: #8400C8;
  --white: #FFFFFF;

  /* derived (tints of Vurple — fills and states only) */
  --vurple-hover: #9D33D3;
  --vurple-deep: #1D002C;
  --vurple-glow: rgba(132, 0, 200, 0.32);

  /* semantic roles */
  --bg: var(--black);
  --surface: var(--dark-gray);
  --surface-2: #2C2C2E;
  --border: #2A2A2B;
  --border-2: var(--mid-gray);
  --text: var(--blush);
  --text-dim: #D6D0CB;
  --text-muted: var(--light-gray);
  --text-faint: #8A8A8D;
  --accent-text: var(--blush);
  --error: #FF8A8A;

  --display: 'Bebas Neue', 'Oswald', sans-serif;
  --serif: 'Cormorant Garamond', serif;
  --body: 'DM Sans', system-ui, sans-serif;

  --pad-x: clamp(16px, 4vw, 48px);
  --pad-y: clamp(56px, 8vw, 110px);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

/* An author `display` rule beats the UA's [hidden]{display:none}, so any
   element toggled with el.hidden stays on screen. Bit the newsletter form
   (it lingered beside its own success message) and the CRM's overlay
   (an invisible scrim swallowed every click). Defend it globally. */
[hidden] { display: none !important; }


html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Long unbroken words in condensed display type can push past their box */
h1, h2, h3, .h2, .hero-title, .program-title, .cta-title { overflow-wrap: break-word; }
.program-grid > *, .pricing-grid > *, .svc-grid > *, .serve-grid > * { min-width: 0; }

a { color: var(--blush); text-decoration: none; transition: color 0.2s var(--ease-out-quart); }
a:hover { color: var(--white); }

::selection { background: var(--vurple); color: var(--white); }

:focus-visible { outline: 2px solid var(--vurple-hover); outline-offset: 3px; border-radius: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section-tail { padding-bottom: var(--pad-y); }

section[id], header[id] { scroll-margin-top: 84px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--vurple);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 2px;
  transition: transform 0.25s var(--ease-out-quart);
}
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }
.skip-link:focus { transform: translate(-50%, 0); color: var(--white); }

/* ---------- type ---------- */

/* Bebas Neue ships a single weight — hierarchy comes from size,
   tracking and color, never font-weight. */
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 62px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.05;
  text-wrap: balance;
}

.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  color: var(--blush);
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.accent { color: var(--blush); }
.accent-text { color: var(--blush); }

.section-intro {
  margin: 14px 0 0;
  max-width: 560px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: 4px;
  border: none;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-quart),
              border-color 0.2s var(--ease-out-quart),
              color 0.2s var(--ease-out-quart),
              box-shadow 0.25s var(--ease-out-quart);
}

/* Buttons animate a nested layer, so a magnetic inline transform on the
   button itself can never clobber hover-lift or press feedback. */
.btn > span, .btn-label {
  display: block;
  transition: transform 0.2s var(--ease-out-quart);
}
.btn:hover .btn-label { transform: translateY(-2px); }
.btn:active .btn-label { transform: scale(0.97); }

.btn-primary { background: var(--vurple); color: var(--white); }
.btn-primary:hover {
  background: var(--vurple-hover);
  color: var(--white);
  box-shadow: 0 8px 28px var(--vurple-glow);
}
.btn-primary:active { box-shadow: none; }

.btn-ghost {
  background: none;
  border: 2px solid var(--border-2);
  color: var(--text);
  padding: 12px 24px;
}
.btn-ghost:hover { border-color: var(--vurple-hover); color: var(--white); }

.btn-ghost-light {
  background: none;
  border: 2px solid var(--blush);
  color: var(--blush);
  padding: 12px 28px;
}
.btn-ghost-light:hover { border-color: var(--vurple-hover); color: var(--white); }

.btn-lg { padding: 17px 34px; font-size: 19px; }
.btn-ghost-light.btn-lg { padding: 15px 32px; }

/* ---------- arrow links ---------- */

.arrow-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;          /* comfortable tap target on touch devices */
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blush);
}
.arrow-link .arrow { display: inline-block; transition: transform 0.25s var(--ease-out-quart); }
.arrow-link:hover .arrow { transform: translateX(6px); }

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--vurple), var(--vurple-hover));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out-quart), transform 0.4s var(--ease-out-expo);
}
.nav.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); }
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  transition: padding 0.3s var(--ease-out-quart);
}
.nav.scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }

.wordmark { display: flex; align-items: baseline; gap: 8px; color: var(--blush); min-height: 44px; align-content: center; flex-wrap: wrap; }
.wordmark:hover { color: var(--white); }
.wordmark-main { font-family: var(--display); font-size: 24px; letter-spacing: 2px; }
.wordmark-sub { font-family: var(--display); font-size: 14px; letter-spacing: 5px; color: var(--light-gray); }
.v { color: var(--vurple-hover); }

.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px;
  width: 100%; height: 2px;
  background: var(--vurple-hover);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease-out-quart);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-link.active { color: var(--white); }

.btn-nav { padding: 10px 20px; font-size: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blush);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-quart);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* The full nav needs ~950px for the wordmark, five links and the button.
   Below that it wraps to two lines and pushes the page sideways, so the
   hamburger has to cover the whole tablet range, not just phones. */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--pad-x) 20px;
    display: none;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 15px 0; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .btn-nav { margin-top: 16px; padding: 15px 20px; }
}

/* Just above the hamburger the row still only just fits — drop the
   "ACADEMY" lockup and tighten spacing so it stays on one line. */
@media (min-width: 1024px) and (max-width: 1219px) {
  .wordmark-sub { display: none; }
  .nav-links { gap: 16px; }
  .nav-link { font-size: 16px; letter-spacing: 1.5px; }
  .btn-nav { font-size: 15px; padding: 10px 16px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Plain black. The photo layer and the scrim that sat over it are gone,
     so the type carries the hero on its own. */
  background: var(--black);
}

.hero-content { position: relative; width: 100%; padding-top: 140px; padding-bottom: 88px; }

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  /* floor lowered so the headline is never clipped by its reveal mask
     on a 320px screen */
  font-size: clamp(38px, 11vw, 128px);
  line-height: 0.92;
  letter-spacing: 2px;
}
.hero-title .serif-accent { line-height: 1.1; letter-spacing: 0; }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line { display: inline-block; }

.hero-sub {
  margin: 22px 0 34px;
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--text-dim);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scrollcue {
  position: absolute;
  bottom: 26px;
  right: var(--pad-x);
  width: 26px; height: 42px;
  border: 2px solid rgba(239, 231, 226, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero-scrollcue span {
  width: 3px; height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--vurple-hover);
  animation: scrollcue 2s var(--ease-out-quart) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: heroRise 0.8s var(--ease-out-expo) forwards;
  animation-delay: calc(0.12s + var(--d, 0) * 0.09s);
}
.hero-title .hero-anim { transform: translateY(105%); animation-name: heroLine; animation-duration: 0.9s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }
@keyframes heroLine { to { opacity: 1; transform: translateY(0); } }


/* ---------- marquee ---------- */

.marquee {
  background: var(--vurple);
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--vurple-hover);
  border-bottom: 1px solid var(--vurple-hover);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.marquee-track span { padding: 0 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.pillar-num {
  margin: 0;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--mid-gray);
  transition: -webkit-text-stroke-color 0.4s var(--ease-out-quart);
}
.pillar:hover .pillar-num { -webkit-text-stroke-color: var(--vurple-hover); }

.pillar-title {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pillar-body { margin: 0; line-height: 1.7; color: var(--text-muted); }

/* ---------- program cards ---------- */

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease-out-quart),
              transform 0.35s var(--ease-out-quart),
              box-shadow 0.35s var(--ease-out-quart);
}
.program-card:hover {
  border-color: var(--vurple-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.program-media { height: 240px; overflow: hidden; background: var(--black); }
.program-media .plx { height: 100%; will-change: transform; }
.program-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  filter: grayscale(0.35) contrast(1.04);
  transition: transform 0.7s var(--ease-out-quart), filter 0.7s var(--ease-out-quart);
}
.program-card:hover .program-media img { transform: scale(1.2); filter: grayscale(0) contrast(1); }

/* placeholder tile for programs awaiting client photography */
.media-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(132, 0, 200, 0.22), transparent 62%),
    var(--surface-2);
}
.media-placeholder .mp-mark {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--vurple-hover);
  opacity: 0.75;
}
.media-placeholder .mp-note {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.program-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.program-title { margin: 0; font-family: var(--display); font-size: 34px; letter-spacing: 1px; text-transform: uppercase; }
.program-copy { margin: 0; line-height: 1.7; color: var(--text-muted); flex: 1; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  font-family: var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--light-gray);
  transition: border-color 0.25s var(--ease-out-quart), color 0.25s var(--ease-out-quart);
}
.chip:hover { border-color: var(--vurple-hover); color: var(--blush); }

/* ---------- tinted sections ---------- */

.tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-section { border-bottom: none; }

/* ---------- quiz ---------- */

.quiz-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
  text-align: center;
}
.quiz-h2 { margin-bottom: 32px; }

.quiz-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.quiz-bar {
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--mid-gray);
  transition: background-color 0.4s var(--ease-out-quart);
}
.quiz-bar.on { background: var(--vurple-hover); }

.quiz-q { margin: 0 0 20px; font-size: 18px; font-weight: 500; }

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.quiz-opt {
  background: var(--black);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 22px 16px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  min-height: 44px;
  transition: border-color 0.25s var(--ease-out-quart),
              background-color 0.25s var(--ease-out-quart),
              transform 0.25s var(--ease-out-quart);
}
.quiz-opt:hover { border-color: var(--vurple-hover); background: var(--vurple-deep); transform: translateY(-2px); }
.quiz-opt:active { transform: scale(0.98); }

.quiz-back {
  margin-top: 20px;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--body);
  font-size: 14px;
  min-height: 44px;
  transition: color 0.2s;
}
.quiz-back:hover { color: var(--white); }

.quiz-result {
  background: var(--black);
  border: 1px solid var(--vurple-hover);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  box-shadow: 0 0 60px rgba(132, 0, 200, 0.18);
}
.quiz-result-label {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.quiz-result-name {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 48px);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.quiz-result-desc { margin: 0 auto 24px; max-width: 520px; line-height: 1.7; color: var(--text-muted); }
.quiz-result-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.quiz-step { animation: stepIn 0.35s var(--ease-out-quart) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- events ---------- */

.events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--blush);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out-quart), background-color 0.25s var(--ease-out-quart);
}
.cal-nav-btn:hover:not(:disabled) { border-color: var(--vurple-hover); background: var(--vurple-deep); }
.cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cal-nav { flex-wrap: wrap; }
.cal-range {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
  min-width: 200px;
  text-align: center;
}
/* 44+44 buttons + a 200px label overflows a 320px screen */
@media (max-width: 400px) {
  .cal-range { min-width: 0; flex: 1; font-size: 17px; letter-spacing: 2px; }
}

/* The calendar spans the full row rather than sharing it with the list.
   Side by side, two months got squeezed into ~235px each, giving 30px
   day cells on desktop — smaller than on a phone. Full width they read
   properly at every size, which is the point of the two-month view. */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

/* two months side by side inside the calendar card */
.cal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
}
.cal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.cal-month-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blush);
  text-align: center;
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow div {
  text-align: center;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--light-gray);
  padding: 4px 0;
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content, which bursts the 7-column track on narrow screens. The outer
   containers need it too, or the calendar card itself won't shrink. */
.events-grid > *, .cal-card, .cal-months, .cal-months > *,
.cal-grid > *, .cal-dow > * { min-width: 0; }

.cal-cell {
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--body);
  font-size: 13px;
  padding: 0;
  cursor: default;
  transition: background-color 0.25s var(--ease-out-quart),
              border-color 0.25s var(--ease-out-quart),
              transform 0.25s var(--ease-out-quart);
}
.cal-cell.blank { background: transparent; border-color: transparent; }
.cal-cell.has-events { color: var(--blush); cursor: pointer; }
.cal-cell.has-events:hover { border-color: var(--vurple-hover); transform: translateY(-2px); }
.cal-cell.today { background: var(--vurple-deep); border-color: var(--vurple); color: var(--blush); }
.cal-cell.selected { background: var(--vurple); border-color: var(--vurple-hover); color: var(--white); }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--vurple-hover); }
.cal-cell.selected .cal-dot { display: none; }
.cal-cell.sold-out .cal-dot { background: var(--light-gray); }

.events-list-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.events-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.events-list > * { min-width: 0; }
/* with the calendar full-width, upcoming events can sit two-up on wide screens */
@media (min-width: 900px) {
  .events-list { grid-template-columns: repeat(2, 1fr); }
}

.event-row {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  align-items: center;
  transition: border-color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
  animation: stepIn 0.4s var(--ease-out-quart) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.event-row:hover { border-color: var(--border-2); transform: translateX(4px); }

.event-date { text-align: center; min-width: 52px; }
.event-day {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--blush);
}
.event-mon {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.event-info { flex: 1; min-width: 0; }
.event-title { margin: 0; font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-meta { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

.sold-out-tag {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--mid-gray);
  border-radius: 999px;
  padding: 3px 10px;
}

.event-cta {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--blush);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}
.event-cta:hover { color: var(--white); }
.event-cta .arrow-glyph { display: inline-block; transition: transform 0.25s var(--ease-out-quart); }
.event-row:hover .event-cta .arrow-glyph { transform: translateX(5px); }
.event-cta.notify { color: var(--light-gray); }
.event-cta.notify:hover { color: var(--blush); }
.event-cta.notified { color: var(--blush); cursor: default; }

.events-empty { margin: 0; padding: 18px 20px; color: var(--text-muted); font-size: 14px; }

.clear-day {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--body);
  font-size: 13px;
  text-align: left;
  padding: 0;
  min-height: 44px;
  transition: color 0.2s;
}
.clear-day:hover { color: var(--white); }

/* ---------- packages (prices removed per client) ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.price-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.35s var(--ease-out-quart),
              transform 0.35s var(--ease-out-quart),
              box-shadow 0.35s var(--ease-out-quart);
}
.price-card:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.price-card.popular {
  background: linear-gradient(160deg, var(--vurple-deep), var(--black));
  border-color: var(--vurple-hover);
}
.price-card.popular:hover {
  border-color: var(--vurple-hover);
  box-shadow: 0 20px 56px rgba(132, 0, 200, 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--vurple);
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-name {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blush);
}

.price-list {
  margin: 0;
  padding: 0 0 0 18px;
  line-height: 2;
  color: var(--text-muted);
  flex: 1;
  font-size: 14px;
}

.package-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- booking / Calendly ---------- */

.book-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}
@media (max-width: 860px) { .book-layout { grid-template-columns: 1fr; } }

.book-step {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.svc-list { display: flex; flex-direction: column; gap: 10px; }

.svc-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  font-family: var(--body);
  width: 100%;
  transition: border-color 0.25s var(--ease-out-quart), background-color 0.25s var(--ease-out-quart);
}
.svc-card:hover { border-color: var(--vurple-hover); }
.svc-card.selected { background: var(--vurple-deep); border-color: var(--vurple-hover); }

.svc-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 15px; }
.svc-price { color: var(--light-gray); font-family: var(--display); letter-spacing: 1px; }
.svc-meta { display: block; margin-top: 3px; font-size: 13px; font-weight: 300; color: var(--text-muted); }

.scheduler {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 640px;
  overflow: hidden;
  position: relative;
}
.calendly-inline-widget { width: 100%; min-height: 640px; }

/* shown until real Calendly links are pasted into js/main.js */
.scheduler-placeholder {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: clamp(28px, 6vw, 64px);
}
.scheduler-placeholder .sp-mark { font-size: 40px; color: var(--vurple-hover); }
.scheduler-placeholder h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scheduler-placeholder p { margin: 0; max-width: 420px; line-height: 1.7; color: var(--text-muted); }
.scheduler-placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--black);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--blush);
}

.book-footnote { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-media { display: flex; justify-content: center; }

/* The bio runs long, so a vertically centred portrait leaves a tall empty
   gutter above and below it. On wide screens let the photo ride alongside
   the text instead. */
@media (min-width: 1024px) {
  .about-grid { align-items: start; }
  .about-media { position: sticky; top: 108px; }
}

.headshot {
  width: min(380px, 100%);
  /* Matches the file exactly, so the frame never stretches the photo. */
  aspect-ratio: 370 / 428;
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* A whisper of brand over the photo, and a floor under the lower edge so
   the frame still reads against the tinted section behind it. */
.headshot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(132, 0, 200, 0.16), transparent 62%),
    linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 38%);
}

.about-copy .h2 { margin-bottom: 16px; }
.about-bio { margin: 0 0 18px; line-height: 1.8; color: var(--text-muted); }

.testimonials-wrap { padding-bottom: clamp(56px, 8vw, 100px); }
/* These are real client quotes running from 350 to 700 characters. align-items
   keeps each card its natural height instead of stretching a whole row to the
   longest one; a multi-column layout packs tighter but reads top-to-bottom per
   column, which is the wrong order for a row of quotes. */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.quote-card {
  margin: 0;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  transition: border-color 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.quote-card:hover { border-color: var(--border-2); transform: translateY(-4px); }

.quote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--blush);
}

.quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.quote-photo {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-2);
  display: block;
}
.quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Faces sit above centre in every one of these, so bias the crop up. */
  object-position: center 28%;
  display: block;
}

@media (max-width: 1180px) { .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .testimonials { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); background: var(--black); }

.footer-grid {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(48px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 5vw, 56px);
}

.footer-wordmark { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 2px; }
.footer-mantra { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--blush); }
.footer-contact { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); line-height: 2; }

.footer-head {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.footer-links { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.footer-links a { width: fit-content; display: flex; align-items: center; min-height: 44px; }

.footer-blurb { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  transition: border-color 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}
.news-form input::placeholder { color: var(--light-gray); }
.news-form input:focus { outline: none; border-color: var(--vurple-hover); box-shadow: 0 0 0 3px rgba(132, 0, 200, 0.28); }
.btn-join { border-radius: 6px; padding: 13px 18px; font-size: 15px; min-height: 44px; }

.news-error { margin: 8px 0 0; font-size: 13px; color: var(--error); }
.news-done { margin: 0; color: var(--blush); font-size: 14px; animation: stepIn 0.4s var(--ease-out-quart) both; }

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 18px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-social a:hover { color: var(--blush); }

/* ---------- scroll reveal system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Hidden state is opacity-only: a fully clip-path'd element reports zero
   intersection area, so IntersectionObserver would never fire. */
.reveal-lines { opacity: 0; }
.reveal-lines.in { opacity: 1; }
.reveal-lines.in:not(.split) { animation: lineReveal 0.8s var(--ease-out-expo) both; }
@keyframes lineReveal {
  from { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
  to { clip-path: inset(-0.25em 0); transform: none; }
}

.reveal-lines .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.reveal-lines .wi { display: inline-block; transform: translateY(115%); }
.reveal-lines.in .wi {
  animation: wordUp 0.7s var(--ease-out-expo) both;
  animation-delay: calc(var(--wi, 0) * 55ms);
}
@keyframes wordUp { to { transform: translateY(0); } }

/* ---------- grain overlay ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- giant background words ---------- */

.bg-word-host { position: relative; overflow: hidden; }
.bg-word {
  position: absolute;
  top: 4%;
  right: -2%;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(130px, 24vw, 340px);
  line-height: 1;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  opacity: 0.8;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.bg-word-host > .container { position: relative; z-index: 1; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--black);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band .cta-word {
  top: 50%;
  left: 50%;
  right: auto;
  translate: -50% -50%;
  font-size: clamp(90px, 17vw, 250px);
  opacity: 0.55;
}
.cta-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
}
.cta-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 92px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.02;
}
.cta-sub {
  margin: 18px auto 32px;
  max-width: 480px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================================
   EverSTRONG at Work — corporate page
   Deliberately different layout families per section so the page
   never reads as the same grid repeated five times.
   ============================================================ */

/* typographic hero — no photography for this page, so the type is the image */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(132, 0, 200, 0.22), transparent 62%),
    var(--black);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 12vw, 148px);
  padding-bottom: clamp(56px, 9vw, 112px);
  max-width: 900px;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 9vw, 108px);
  line-height: 0.94;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-wrap: balance;
}
.page-hero-sub {
  margin: 22px 0 34px;
  max-width: 560px;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--text-dim);
}

/* section lede — used instead of an eyebrow so the page stays label-light */
.lede {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--blush);
}
.sub-lede { margin: 14px 0 0; max-width: 620px; line-height: 1.75; color: var(--text-muted); }

/* 1. fractional services — two-column card grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.svc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--vurple);
  border-radius: 8px;
  padding: 22px 24px;
  transition: border-color .3s var(--ease-out-quart), transform .3s var(--ease-out-quart);
}
.svc-item:hover { transform: translateY(-4px); border-color: var(--mid-gray); border-left-color: var(--vurple-hover); }
.svc-item h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}
.svc-item p { margin: 0; line-height: 1.7; color: var(--text-muted); font-size: 15px; }

/* 2. how it works — a real sequence, so numerals carry meaning here */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 38px;
  counter-reset: step;
}
.step { position: relative; padding-top: 14px; border-top: 2px solid var(--vurple); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--vurple-hover);
  margin-bottom: 10px;
}
.step p { margin: 0; line-height: 1.7; color: var(--text-muted); }

/* 3. individual services — divided list, not cards */
.offer-list { margin-top: 34px; border-top: 1px solid var(--border); }
.offer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 8px clamp(20px, 4vw, 48px);
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color .25s var(--ease-out-quart), padding-left .25s var(--ease-out-quart);
}
.offer:hover { background: rgba(132, 0, 200, 0.07); padding-left: 14px; }
@media (max-width: 720px) { .offer { grid-template-columns: 1fr; } }
.offer h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--blush);
}
.offer p { margin: 0; line-height: 1.7; color: var(--text-muted); font-size: 15px; }

/* 4. who we serve — tinted tiles */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 38px;
}
.serve-tile {
  background: linear-gradient(160deg, var(--vurple-deep), var(--black));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  min-height: 132px;
  display: flex;
  align-items: center;
  line-height: 1.6;
  color: var(--blush);
  font-size: 16px;
  transition: border-color .3s var(--ease-out-quart);
}
.serve-tile:hover { border-color: var(--vurple-hover); }
.serve-tile b { font-weight: 500; }

/* 5. why us — hairline-separated row, different rhythm from the tiles */
.why-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--border);
}
.why-item {
  padding: 24px clamp(14px, 2.5vw, 28px) 26px;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 15px;
}
/* vertical rules only when all four sit on one row — otherwise a wrapped
   item would carry a stray divider at the right edge */
@media (min-width: 1000px) {
  .why-item { border-right: 1px solid var(--border); }
  .why-item:last-child { border-right: none; }
}
.why-item::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--vurple-hover);
  margin-bottom: 14px;
}

.section-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- form fields (waitlist modal, and any future forms) ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.field input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: var(--vurple-hover);
  box-shadow: 0 0 0 3px rgba(132, 0, 200, 0.28);
}

.form-error { margin: 0; font-size: 13px; color: var(--error); }

/* ---------- waitlist modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease-out-quart) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--vurple-hover);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(132, 0, 200, 0.18);
  animation: modalIn 0.32s var(--ease-out-expo) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s var(--ease-out-quart);
}
.modal-close:hover { color: var(--blush); }

.modal-eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--light-gray);
}
.modal-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.05;
}
.modal-meta { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
.modal-note { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }

/* ---------- about: bio + mantra ---------- */

.about-bio + .about-bio { margin-top: 0; }
.about-mantra {
  margin: 6px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--vurple);
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--blush);
}

/* ---------- magnetic buttons ---------- */

.magnetic { will-change: transform; }

/* ---------- small-screen refinements ---------- */

@media (max-width: 420px) {
  /* reclaim horizontal room so day cells stay tappable */
  .cal-card { padding: 12px 10px; }
  .cal-grid, .cal-dow { gap: 3px; }
  .cal-cell { font-size: 12.5px; }
  /* the nowrap CTA can't share a line with the title on a 320px screen */
  .event-row { padding: 16px 14px; gap: 10px 12px; flex-wrap: wrap; }
  .event-date { min-width: 40px; }
  .event-row .event-cta { width: 100%; text-align: left; min-height: 40px; }
  .chip { font-size: 12px; padding: 5px 10px; }
  .btn-lg { padding: 15px 24px; font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
}

/* Landscape phones: 88dvh of hero leaves almost nothing on screen */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 0; }
  .hero-content { padding-top: 96px; padding-bottom: 56px; }
  .hero-scrollcue { display: none; }
  .page-hero-inner { padding-top: 88px; padding-bottom: 56px; }
}

/* Tablet: give sections a little more air than the phone layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Very wide screens: keep line lengths readable */
@media (min-width: 1600px) {
  .section-intro, .sub-lede, .about-bio { max-width: 640px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero-anim { opacity: 1; transform: none; animation: none; }
  .reveal, .reveal-lines { opacity: 1; transform: none; clip-path: none; transition: none; animation: none; }
  .reveal-lines .wi { transform: none; animation: none; }
  .marquee-track { animation: none; }
  .hero-scrollcue { display: none; }
  .scroll-progress { display: none; }
  .nav.hidden { transform: none; }
  .bg-word, .program-media .plx { transform: none !important; }
  .program-media img { transform: none; filter: none; }
}

/* ---------- EverSTRONG at Work: the workweek panel ----------
   A designed diagram rather than a photograph: it says what the offer is
   (one hour placed inside a week that is already full) in a way a stock
   photo of people stretching in an office never does. */

.work-visual {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: var(--surface-2);
}

.work-week {
  width: 100%;
  height: auto;
  display: block;
  min-width: 0;
}
.work-week .wk-busy rect { fill: #2a2a2d; stroke: #3f3f43; stroke-width: 1; }
.work-week .wk-hour {
  font-family: var(--body);
  font-size: 22px;
  fill: var(--light-gray);
}
.work-week .wk-day {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 3px;
  fill: var(--blush);
}

.work-visual-cap p { margin: 0 0 16px; line-height: 1.8; color: var(--text-muted); }
.work-visual-cap .eyebrow { margin-bottom: 10px; }

.wk-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wk-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--light-gray);
}
.wk-key { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.wk-key-session { background: var(--vurple-hover); }
.wk-key-busy { background: #2a2a2d; border: 1px solid #3f3f43; }

@media (max-width: 860px) {
  .work-visual { grid-template-columns: 1fr; }
}

/* SVG text sizes are viewBox units, so they shrink with the drawing. On a
   phone the day labels land at about 8px unless they are scaled back up. */
@media (max-width: 520px) {
  .work-week .wk-day { font-size: 52px; letter-spacing: 2px; }
  .work-week .wk-hour { font-size: 40px; }
}
