/* ==========================================================================
   sections.css — P.A. Perez Physio
   Section-specific styles. Fill in as each section gets built.
   ========================================================================== */


/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-base) var(--ease-out-smooth),
    border-color var(--dur-base) var(--ease-out-smooth),
    box-shadow var(--dur-base) var(--ease-out-smooth);
}
.site-header.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.02);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-3);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.site-header__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.site-header__name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1vw + 0.45rem, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  gap: 0.35em;
  color: var(--ink);
}
.site-header__name-a {
  color: var(--brand-cyan);
}
.site-header__name-b {
  color: var(--ink);
}
.site-header__tagline {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(0.5625rem, 0.4vw + 0.45rem, 0.6875rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--brand-cyan-deep);
  margin-top: 0.15rem;
}

/* ----- Nav (desktop) ----- */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-nav__list a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.375rem 0;
  transition: color var(--dur-base) var(--ease-out-smooth);
}
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brand-cyan);
  transition: width var(--dur-base) var(--ease-out-smooth);
}
.site-nav__list a:hover {
  color: var(--ink);
}
.site-nav__list a:hover::after {
  width: 100%;
}

/* ----- Mobile toggle ----- */
.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
}
.site-header__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out-smooth),
              opacity var(--dur-base) var(--ease-out-smooth);
}
@media (min-width: 960px) {
  .site-header__toggle {
    display: none;
  }
}

/* ----- Mobile menu ----- */
@media (max-width: 959.98px) {
  /* On mobile, kill the header's backdrop-filter so the nav's
     position:fixed anchors to the viewport (not the header element).
     Give the header a solid background so the blur isn't missed. */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-scrolled {
    background: var(--paper);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 45;
    background: var(--paper-pure);
    border-top: 1px solid var(--line);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition:
      transform var(--dur-base) var(--ease-out-smooth),
      opacity var(--dur-base) var(--ease-out-smooth);
  }
  .site-nav.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    width: 100%;
  }
  .site-nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .site-nav__list li:last-child {
    border-bottom: 0;
  }
  .site-nav__list a {
    display: block;
    width: 100%;
    padding: 0.875rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw + 0.4rem, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .site-nav__cta {
    margin-top: var(--space-2);
    align-self: stretch;
    justify-content: center;
  }

  body.menu-open .site-header__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .site-header__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .site-header__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Lock background scroll while the mobile menu is up */
  body.menu-open {
    overflow: hidden;
  }
}


/* ==========================================================================
   SECTION 1 — Hero (full-bleed editorial, dark scrim over branch photo)
   ========================================================================== */
.section--hero {
  position: relative;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  color: var(--paper-pure);
  isolation: isolate;
  background: var(--ink);
}

/* ----- Backdrop ----- */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  /* Subtle scale for a more cinematic feel */
  transform: scale(1.02);
}

/* Dark editorial scrim — vertical gradient + subtle cyan wash + left vignette */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* Left-weighted darkening for left-aligned content */
    linear-gradient(90deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.82) 30%,
      rgba(10, 22, 40, 0.55) 65%,
      rgba(10, 22, 40, 0.35) 100%),
    /* Vertical darkening for bottom legibility */
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.55) 0%,
      rgba(10, 22, 40, 0.25) 40%,
      rgba(10, 22, 40, 0.7) 100%),
    /* Cyan tint to pull the whole thing into brand */
    radial-gradient(60% 50% at 10% 40%, rgba(8, 145, 188, 0.28) 0%, rgba(8, 145, 188, 0) 70%);
}

/* Mobile: darken more heavily since photo is behind text at all widths */
@media (max-width: 760px) {
  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(10, 22, 40, 0.78) 0%,
        rgba(10, 22, 40, 0.55) 40%,
        rgba(10, 22, 40, 0.85) 100%),
      radial-gradient(70% 50% at 30% 60%, rgba(8, 145, 188, 0.25) 0%, rgba(8, 145, 188, 0) 70%);
  }
}

/* Photo credit / location stamp in the top-right of the backdrop area */
.hero__caption-key-overlay {
  position: absolute;
  top: calc(var(--header-h) + var(--space-2));
  right: var(--container-pad);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 250, 247, 0.55);
  padding: 0.4375rem 0.75rem;
  border: 1px solid rgba(250, 250, 247, 0.18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .hero__caption-key-overlay { display: none; }
}

/* ----- Content shell ----- */
.hero__shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: clamp(var(--space-4), 4vw, var(--space-6));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(var(--space-5), 6vw, var(--space-8));
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-2), 2.5vw, var(--space-3));
  max-width: 820px;
}

.hero__overline {
  color: var(--brand-cyan);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw + 0.5rem, 7rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--paper-pure);
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__headline-line {
  display: block;
  overflow: hidden;
}
.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan);
  font-feature-settings: 'ss01';
}

.hero__subhead {
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem);
  line-height: 1.55;
  color: rgba(250, 250, 247, 0.82);
  max-width: 58ch;
  text-wrap: pretty;
  margin-top: 0.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Dark-context button overrides — scoped to hero only */
.section--hero .btn-outline {
  color: var(--paper-pure);
  border-color: rgba(250, 250, 247, 0.42);
  background: transparent;
  backdrop-filter: blur(4px);
}
.section--hero .btn-outline:hover {
  background: var(--paper-pure);
  color: var(--ink);
  border-color: var(--paper-pure);
}

/* ----- Stats row ----- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(250, 250, 247, 0.22);
}
@media (min-width: 620px) {
  .hero__stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-3);
  }
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-right: var(--space-2);
}
.hero__stat + .hero__stat {
  border-left: 0;
  padding-left: 0;
}
@media (min-width: 620px) {
  .hero__stat + .hero__stat {
    border-left: 1px solid rgba(250, 250, 247, 0.14);
    padding-left: var(--space-3);
  }
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(250, 250, 247, 0.55);
  order: 2;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.4vw + 0.6rem, 2.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper-pure);
  order: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
/* Text-valued stats (e.g. "Programs", "Multiple") — slightly smaller and
   italic so they read as a phrase, not a number. */
.hero__stat-value--text {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.3vw + 0.65rem, 1.625rem);
  letter-spacing: -0.01em;
}
.hero__stat-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(250, 250, 247, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero__stat--hmo .hero__stat-value {
  color: var(--brand-cyan);
}

/* (legacy hero portrait/figure/annotations styles removed —
   new hero is full-bleed with backdrop + scrim, no right column.) */

/* (hero annotation rail + caption removed with the right-column portrait;
   the new full-bleed hero uses just an overline + headline + subhead + CTAs + stats) */

/* ----- Scroll cue (bottom-right on the dark hero) ----- */
.hero__scroll-cue {
  position: absolute;
  right: var(--container-pad);
  bottom: var(--space-3);
  display: none;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 247, 0.55);
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero__scroll-cue {
    display: inline-flex;
  }
}
.hero__scroll-cue-rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: rgba(250, 250, 247, 0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue-rule::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-cyan);
  transform-origin: left;
  transform: scaleX(0);
  animation: heroScrollCue 2.4s var(--ease-in-out-smooth) infinite;
}
@keyframes heroScrollCue {
  0%, 10% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  90%, 100% { transform: scaleX(0); transform-origin: right; }
}

/* ----- Entrance animation init states (JS-safe fallback) -----
   Applied via .js-ready on <html>, set synchronously in <head>.
   If GSAP fails to load, animations.js removes .js-ready so
   everything becomes visible again.
*/
.js-ready [data-anim="overline"],
.js-ready [data-anim="subhead"],
.js-ready [data-anim="cta"],
.js-ready [data-anim="stats"],
.js-ready [data-anim="headline"],
.js-ready [data-anim="backdrop"] {
  opacity: 0;
}
/* hero annotations removed — no longer need init state */

/* Scroll-reveal init states — only the ITEMS start hidden, not the section
   container (hiding the container cascades opacity to all children and leaves
   the whole section invisible until the child animation fires). GSAP drives
   items in as their section enters the viewport. */
.will-reveal[data-reveal-item],
.will-reveal [data-reveal-item] {
  opacity: 0;
}


/* ==========================================================================
   Shared section primitives — overlines, headers, lede, close, links
   ========================================================================== */

.section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 820px;
  margin-bottom: clamp(var(--space-4), 6vw, var(--space-8));
}

.section__header--center {
  text-align: center;
  margin-inline: auto;
  align-items: center;
}

.section__header--spread {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: end;
}
@media (min-width: 960px) {
  .section__header--spread {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(var(--space-4), 6vw, var(--space-8));
  }
}

.section__headline {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 3.6vw + 0.75rem, 3.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.section__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan-deep);
}
.section__header--center .section__headline {
  max-width: 24ch;
}

.section__lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}
.section__lede--aside {
  max-width: 46ch;
  color: var(--ink-muted);
}

.section__close {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1vw + 1rem, 1.625rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.35;
  color: var(--ink);
  max-width: 46ch;
  margin-top: clamp(var(--space-4), 5vw, var(--space-6));
  text-wrap: balance;
}
.section__close em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan-deep);
}

.section__note {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-top: var(--space-4);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-cyan-deep);
  font-weight: 500;
}
.overline__tick {
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--brand-cyan);
}
.overline--inverse {
  color: var(--brand-cyan);
}
.overline--inverse .overline__tick {
  background: var(--brand-cyan);
}

.link {
  color: var(--brand-cyan-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease-out-smooth);
}
.link:hover {
  color: var(--ink);
}

/* Shared "pilled" button class (already sized via btn--lg / btn--sm) */
.btn--pilled {
  padding-right: 0.5rem;
}


/* ==========================================================================
   SECTION 2 — Instant Differentiation
   ========================================================================== */
.section--differentiation {
  background: var(--paper-pure);
  border-top: 1px solid var(--line);
}

.vs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: stretch;
}
@media (min-width: 880px) {
  .vs {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: var(--space-4);
  }
}

.vs__column {
  padding: clamp(var(--space-3), 3vw, var(--space-4));
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.vs__column--us {
  background: var(--ink);
  color: var(--paper-pure);
  border-color: var(--ink);
  box-shadow:
    0 24px 48px -24px rgba(8, 145, 188, 0.35),
    0 10px 24px -12px rgba(10, 22, 40, 0.2);
}

.vs__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.vs__label--us {
  color: var(--brand-cyan);
}

.vs__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.vs__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink-muted);
}
.vs__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 1.5px;
  background: var(--ink-muted);
}
.vs__list--us li {
  color: rgba(250, 250, 247, 0.86);
}
.vs__list--us li::before {
  background: var(--brand-cyan);
  width: 16px;
  height: 2px;
}

.vs__divider {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 880px) {
  .vs__divider {
    display: flex;
  }
}
.vs__divider-rule {
  display: block;
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--line);
}
.vs__divider-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-muted);
}


/* ==========================================================================
   SECTION 3 — Your Recovery System (steps left, hero image right on desktop)
   ========================================================================== */
.section--system {
  background: var(--paper);
}

.system {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: start;
}
@media (min-width: 960px) {
  .system {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(var(--space-4), 6vw, var(--space-8));
  }
}

.system__content {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-3), 4vw, var(--space-4));
  min-width: 0;
}

.system__media {
  margin: 0;
  position: relative;
  order: -1;
}
@media (min-width: 960px) {
  .system__media {
    position: sticky;
    top: calc(var(--header-h) + var(--space-3));
    order: 0;
    align-self: start;
  }
}

.system__media-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--brand-cyan-soft);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(10, 22, 40, 0.04),
    0 30px 60px -24px rgba(8, 145, 188, 0.35),
    0 16px 32px -14px rgba(10, 22, 40, 0.14);
}
.system__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.system__caption {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 40ch;
}
.system__caption-key {
  color: var(--brand-cyan-deep);
  font-weight: 500;
  flex-shrink: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-3), 4vw, var(--space-4));
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--line) 40%, var(--line) 60%, var(--brand-cyan) 100%);
  opacity: 0.45;
}
@media (min-width: 780px) {
  .steps::before {
    left: 34px;
  }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-3);
  padding: clamp(var(--space-3), 3vw, var(--space-4));
  padding-left: 0;
  background: transparent;
}
@media (min-width: 780px) {
  .step {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: var(--space-4);
  }
}

.step__number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.25rem;
}
.step__num-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-pure);
  border: 1.5px solid var(--brand-cyan);
  color: var(--brand-cyan-deep);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px -4px rgba(8, 145, 188, 0.22);
}
@media (min-width: 780px) {
  .step__num-value {
    width: 68px;
    height: 68px;
    font-size: 1rem;
  }
}
.step__num-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding-left: 0.25rem;
}
@media (min-width: 780px) {
  .step__num-label { display: inline-block; }
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.4vw + 0.9rem, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.step__body > p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: var(--space-2);
}
.step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-2);
}
.step__meta li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  padding: 0.375rem 0.75rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
}


/* ==========================================================================
   SECTION 4 — Collaborative Care
   ========================================================================== */
.section--care {
  background: var(--paper-pure);
}

.care {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: start;
}
@media (min-width: 960px) {
  .care {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.care__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: pillar;
}
.care__pillars li {
  counter-increment: pillar;
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
.care__pillars li::before {
  content: '0' counter(pillar);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--brand-cyan-deep);
}
.care__pillar-label {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--ink);
}
.care__pillar-body {
  color: var(--ink-soft);
  max-width: 48ch;
}


/* ==========================================================================
   SECTION 5 — Advanced Pain Technology
   ========================================================================== */
.section--tech {
  background: var(--paper);
  position: relative;
}
.section--tech::before,
.section--tech::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--line);
  margin-block: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(var(--space-3), 3vw, var(--space-4));
}
@media (min-width: 720px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-pure);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out-smooth),
    box-shadow var(--dur-base) var(--ease-out-smooth);
  box-shadow:
    0 1px 0 rgba(10, 22, 40, 0.03),
    0 10px 24px -16px rgba(10, 22, 40, 0.15);
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(10, 22, 40, 0.04),
    0 20px 36px -18px rgba(8, 145, 188, 0.4),
    0 10px 18px -8px rgba(10, 22, 40, 0.1);
}

.tech-card__media {
  aspect-ratio: 4 / 3;
  margin: 0;
  background: linear-gradient(180deg, var(--brand-cyan-soft) 0%, var(--paper) 100%);
  overflow: hidden;
}
.tech-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-smooth);
}
.tech-card:hover .tech-card__media img {
  transform: scale(1.04);
}

.tech-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.tech-card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-cyan-deep);
}
.tech-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tech-card__body p:last-child {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin-top: auto;
}


/* ==========================================================================
   SECTION 6 — Data-Driven Approach (dark section)
   ========================================================================== */
.section--data {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.88);
  position: relative;
  overflow: hidden;
}
.section--data::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(55% 40% at 20% 30%, rgba(24, 182, 232, 0.15) 0%, transparent 70%),
    radial-gradient(40% 35% at 80% 80%, rgba(8, 145, 188, 0.12) 0%, transparent 75%);
  pointer-events: none;
}
.section--data > .container { position: relative; z-index: 1; }
.section--data .section__headline,
.section--data .section__close { color: var(--paper-pure); }
.section--data .section__lede { color: rgba(250, 250, 247, 0.72); }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(var(--space-3), 3vw, var(--space-4));
  margin-top: var(--space-4);
}

.metric {
  padding: var(--space-3);
  border: 1px solid rgba(250, 250, 247, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 247, 0.03);
  backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 240px;
}

.metric__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
}
.metric__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--paper-pure);
  letter-spacing: -0.015em;
}
.metric__copy {
  font-size: var(--fs-sm);
  color: rgba(250, 250, 247, 0.7);
  line-height: 1.5;
}

.metric__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(250, 250, 247, 0.1);
}
.metric__chart span {
  display: block;
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--brand-cyan) 0%, rgba(24, 182, 232, 0.4) 100%);
  border-radius: 3px 3px 0 0;
  opacity: 0.9;
}


/* ==========================================================================
   SECTION 7 — Whole-Person Approach
   ========================================================================== */
.section--whole {
  background: var(--paper);
}

.whole {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: center;
}
@media (min-width: 960px) {
  .whole {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }
}

.whole__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 30px 60px -30px rgba(8, 145, 188, 0.35),
    0 16px 32px -14px rgba(10, 22, 40, 0.15);
}
.whole__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.whole__caption {
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  padding: 0.75rem 0.875rem;
  background: rgba(10, 22, 40, 0.78);
  color: rgba(250, 250, 247, 0.86);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.6;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.whole__caption-key {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.whole__copy > p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: var(--space-2);
}

.whole__tag {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan-deep);
  margin-top: var(--space-3);
}
.whole__tag-hash {
  font-family: var(--font-mono);
  font-style: normal;
  color: var(--brand-cyan);
  margin-right: 0.125rem;
}


/* ==========================================================================
   SECTION 8 — Conditions We Treat
   ========================================================================== */
.section--conditions {
  background: var(--paper-pure);
  border-top: 1px solid var(--line);
}

.conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.conditions li {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  padding: 0.75rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  transition:
    border-color var(--dur-base) var(--ease-out-smooth),
    background var(--dur-base) var(--ease-out-smooth),
    color var(--dur-base) var(--ease-out-smooth),
    transform var(--dur-base) var(--ease-out-smooth);
  cursor: default;
}
.conditions li:hover {
  background: var(--brand-cyan-soft);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan-deep);
  transform: translateY(-1px);
}


/* ==========================================================================
   SECTION 9 — Testimonials
   ========================================================================== */
.section--testimonials {
  background: var(--paper);
}

/* Shared name/meta typography (reused by video + FB review cards) */
.quote__name {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.quote__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.15rem;
}

/* Base video player styling — applies to both feature and grid cards */
.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
  border-radius: inherit;
}

/* ----- Featured video + pull quote ----- */
.video-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-3), 3vw, var(--space-4));
  margin: 0 0 clamp(var(--space-4), 5vw, var(--space-6));
}
@media (min-width: 880px) {
  .video-feature {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-4), 4vw, var(--space-6));
  }
}

.video-feature__player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(10, 22, 40, 0.05),
    0 30px 60px -20px rgba(8, 145, 188, 0.25),
    0 16px 32px -14px rgba(10, 22, 40, 0.18);
}
@media (min-width: 880px) {
  .video-feature__player {
    max-width: 420px;
  }
}

.video-feature__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 48ch;
}
.video-feature__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-cyan-deep);
}
.video-feature__quote {
  margin: 0;
}
.video-feature__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 1.8vw + 0.65rem, 1.875rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.video-feature__quote em {
  font-style: normal;
  color: var(--brand-cyan-deep);
  font-weight: 400;
}
.video-feature__attrib {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  margin-top: var(--space-1);
}

/* ----- Video card grid ----- */
.video-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(var(--space-4), 5vw, var(--space-6));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.video-card__player {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(10, 22, 40, 0.04),
    0 14px 28px -16px rgba(10, 22, 40, 0.2);
  transition: transform var(--dur-base) var(--ease-out-smooth);
}
.video-card:hover .video-card__player {
  transform: translateY(-2px);
}
.video-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.25rem;
}
.video-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 0.25rem;
  letter-spacing: -0.005em;
}

/* ----- Verified Facebook reviews (text social proof) ----- */
.fb-reviews {
  padding-top: clamp(var(--space-4), 5vw, var(--space-6));
  border-top: 1px solid var(--line);
}
.fb-reviews__head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.fb-reviews__tick {
  width: 18px;
  height: 2px;
  background: var(--brand-cyan);
  display: inline-block;
}
.fb-reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .fb-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fb-review {
  margin: 0;
  padding: clamp(var(--space-3), 3vw, var(--space-4));
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.fb-review blockquote {
  margin: 0;
}
.fb-review blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1vw + 0.55rem, 1.125rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.fb-review blockquote p em {
  font-style: normal;
  color: var(--brand-cyan-deep);
  font-weight: 400;
}
.fb-review figcaption {
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  margin-top: auto;
}


/* ==========================================================================
   SUPPORTING — HMO Affiliations Strip
   ========================================================================== */
.section--hmo {
  background: var(--paper-pure);
  padding-block: clamp(var(--space-6), 6vw, var(--space-8));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hmo__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
@media (min-width: 880px) {
  .hmo__header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-4);
  }
}

.hmo__heading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
  max-width: 48ch;
}

/* ----- Auto-scrolling marquee ----- */
.hmo-marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* Edge fade so items enter/exit softly at the viewport edges */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hmo-marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: hmoMarquee 42s linear infinite;
  will-change: transform;
}

.hmo-marquee__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  padding-right: clamp(0.75rem, 1.2vw, 1.25rem);
  list-style: none;
  margin: 0;
}

/* ----- Wordmark plaque (placeholder until Nikki delivers real SVG logos) -----
   Unified pill container; each HMO name gets its own typographic character
   via [data-brand] overrides so the strip reads as a curated logo row, not
   a uniform text list. Swap the text inside <span> for <img> when assets
   arrive — no CSS changes needed. */
.hmo-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(52px, 5vw, 62px);
  padding: 0 clamp(1rem, 1.4vw, 1.375rem);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px -1px rgba(10, 22, 40, 0.04);
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  transition:
    transform var(--dur-base) var(--ease-out-smooth),
    border-color var(--dur-base) var(--ease-out-smooth),
    box-shadow var(--dur-base) var(--ease-out-smooth);
}
.hmo-logo:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 145, 188, 0.35);
  box-shadow:
    0 1px 2px -1px rgba(10, 22, 40, 0.04),
    0 10px 20px -14px rgba(8, 145, 188, 0.4);
}
.hmo-logo span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1vw + 0.5rem, 1.1875rem);
}
.hmo-logo em {
  font-style: normal;
}

/* Per-brand typographic treatments — approximate each wordmark's character.
   Not the actual trademarked logos; a styled placeholder until real assets land. */
.hmo-logo[data-brand="maxicare"] span {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #005F9E;
}
.hmo-logo[data-brand="inlife"] span {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.015em;
  font-size: clamp(1.125rem, 1.1vw + 0.6rem, 1.375rem);
}
.hmo-logo[data-brand="intellicare"] span {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #B8292E;
}
.hmo-logo[data-brand="avega"] span {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: clamp(0.9375rem, 0.9vw + 0.5rem, 1.0625rem);
}
.hmo-logo[data-brand="philcare"] span {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0A6FB4;
}
.hmo-logo[data-brand="pacificcross"] span {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  gap: 0.35em;
}
.hmo-logo[data-brand="pacificcross"] em {
  color: #C3002F;
  font-weight: 500;
  font-style: italic;
}
.hmo-logo[data-brand="medicard"] span {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hmo-logo[data-brand="lacson"] span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  gap: 0.3em;
}
.hmo-logo[data-brand="lacson"] em {
  color: var(--brand-cyan-deep);
  font-weight: 500;
}
.hmo-logo[data-brand="axa"] span {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(1.125rem, 1.1vw + 0.65rem, 1.375rem);
  color: #00005B;
}

.hmo-marquee:hover .hmo-marquee__track,
.hmo-marquee:focus-within .hmo-marquee__track {
  animation-play-state: paused;
}

@keyframes hmoMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hmo-marquee__track {
    animation: none;
    /* Wrap instead of loop so all items are still visible */
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding-inline: var(--container-pad);
  }
  .hmo-marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }
}

.hmo__note {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}


/* ==========================================================================
   SUPPORTING — About the Founder (Paul Andrew Perez, PTRP)
   ========================================================================== */
.section--founder {
  background: var(--paper);
}

.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-4), 5vw, var(--space-6));
  align-items: center;
}
@media (min-width: 960px) {
  .founder {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
}

.founder__media {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
/* Editorial portrait frame — paul-clinic.jpg is a studio-lit clinic
   portrait. Treat as a framed print: soft sage tray, cyan-tinted
   ambient shadow, faint inner highlight. */
.founder__frame {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: var(--brand-cyan-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px rgba(10, 22, 40, 0.04),
    0 30px 60px -24px rgba(8, 145, 188, 0.3),
    0 16px 32px -14px rgba(10, 22, 40, 0.16);
}
.founder__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.founder__creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.founder__creds li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-pure);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  box-shadow: 0 4px 10px -6px rgba(10, 22, 40, 0.08);
}
.founder__creds li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-cyan);
}

.founder__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.6rem 1rem 0.6rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-pure);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px -14px rgba(10, 22, 40, 0.5);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), background 0.25s ease;
}
.founder__social:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.founder__social:active {
  transform: translateY(0);
}
.founder__social svg {
  color: var(--brand-cyan);
}
.founder__social-arrow {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.founder__social:hover .founder__social-arrow {
  transform: translateX(2px);
  color: var(--brand-cyan);
}

.founder__copy > p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--space-2);
}
.founder__copy strong {
  color: var(--ink);
  font-weight: 600;
}

.founder__pull {
  margin-block: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--brand-cyan);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1vw + 0.8rem, 1.375rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  max-width: 48ch;
}


/* ==========================================================================
   SECTION 10 — Multiple Branches
   ========================================================================== */
.section--branches {
  background: var(--paper-pure);
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-3), 3vw, var(--space-4));
}
@media (min-width: 720px) {
  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.branch {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    border-color var(--dur-base) var(--ease-out-smooth),
    box-shadow var(--dur-base) var(--ease-out-smooth),
    transform var(--dur-base) var(--ease-out-smooth);
}
.branch:hover {
  border-color: transparent;
  box-shadow:
    0 20px 40px -20px rgba(8, 145, 188, 0.32),
    0 12px 28px -14px rgba(10, 22, 40, 0.14);
  transform: translateY(-2px);
}

.branch__media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--brand-cyan-soft);
}
.branch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-smooth);
}
.branch:hover .branch__media img {
  transform: scale(1.03);
}

.branch__badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-pure);
  background: var(--brand-cyan);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-full);
}

.branch__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.branch__tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-cyan-deep);
}
.branch__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.4vw + 0.75rem, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}
.branch__address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 36ch;
}
.branch__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  letter-spacing: 0;
}
.branch__meta-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: baseline;
  gap: 0.75rem;
}
.branch__meta-row dt {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding-top: 2px;
}
.branch__meta-row dd {
  color: var(--ink);
  line-height: 1.4;
}
.branch__phone a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
  transition: color var(--dur-base) var(--ease-out-smooth),
              border-color var(--dur-base) var(--ease-out-smooth);
}
.branch__phone a:hover {
  color: var(--brand-cyan-deep);
  border-color: var(--brand-cyan);
}

/* Pavia (opening-soon) placeholder — no photo, illustrative icon instead */
.branch__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--brand-cyan-soft) 0%, var(--paper) 100%);
  color: var(--brand-cyan-deep);
  position: relative;
}
.branch__badge--future {
  background: var(--ink);
  color: var(--brand-cyan);
}
.branch--future {
  border-style: dashed;
  border-color: var(--line);
  background: var(--paper-pure);
}
.branch--future:hover {
  border-style: solid;
  border-color: transparent;
}

.branch__cta {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--space-2);
  flex-wrap: wrap;
}


/* ==========================================================================
   SECTION 11 — Lead Capture (dark, focused)
   ========================================================================== */
.section--lead {
  background: var(--ink);
  color: var(--paper-pure);
  position: relative;
  overflow: hidden;
}
.section--lead::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(50% 40% at 30% 20%, rgba(24, 182, 232, 0.18) 0%, transparent 70%),
    radial-gradient(40% 35% at 80% 90%, rgba(8, 145, 188, 0.12) 0%, transparent 75%);
  pointer-events: none;
}
.section--lead > .container { position: relative; z-index: 1; }

.section--lead .section__headline {
  color: var(--paper-pure);
}
.section--lead .section__lede {
  color: rgba(250, 250, 247, 0.72);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: rgba(250, 250, 247, 0.04);
  border: 1px solid rgba(250, 250, 247, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-3), 4vw, var(--space-6));
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .lead-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.section--lead .label {
  color: rgba(250, 250, 247, 0.7);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.section--lead .input,
.section--lead .textarea,
.section--lead .select {
  background: rgba(10, 22, 40, 0.5);
  border: 1.5px solid rgba(250, 250, 247, 0.12);
  color: var(--paper-pure);
}
.section--lead .input::placeholder,
.section--lead .textarea::placeholder {
  color: rgba(250, 250, 247, 0.4);
}
.section--lead .input:focus,
.section--lead .textarea:focus,
.section--lead .select:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(24, 182, 232, 0.15);
}

.lead-form__consent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.78);
}
.consent__checkbox {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand-cyan);
  cursor: pointer;
  flex-shrink: 0;
}
.consent__checkbox[aria-invalid="true"] {
  outline: 2px solid rgba(239, 68, 68, 0.7);
  outline-offset: 2px;
  border-radius: 2px;
}
.consent__error {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ef4444;
  margin-left: 1.8rem;
}

.lead-form__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(250, 250, 247, 0.08);
  margin-top: var(--space-2);
}
@media (min-width: 640px) {
  .lead-form__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.lead-form__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 250, 247, 0.52);
  max-width: 34ch;
}

.lead-form__success {
  padding: var(--space-3);
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-md);
}
.lead-form__success-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--paper-pure);
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   SECTION 12 — Final CTA
   ========================================================================== */
.section--final {
  background: var(--paper);
  text-align: center;
  padding-block: clamp(var(--space-8), 10vw, var(--space-16));
}

.final {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.final .overline {
  color: var(--brand-cyan-deep);
}

.final__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw + 0.75rem, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}
.final__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-cyan-deep);
}

.final__lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 48ch;
}

.final__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-2);
}

/* Sign-off block — editorial italic serif, centered under final CTA */
.final__signoff {
  margin-top: clamp(var(--space-6), 8vw, var(--space-8));
  padding-top: var(--space-4);
  border-top: 1px solid rgba(250, 250, 247, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}
.final__signoff-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 1.5vw + 0.6rem, 1.5rem);
  color: rgba(250, 250, 247, 0.82);
  letter-spacing: -0.01em;
}
.final__signoff-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--brand-cyan);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 247, 0.7);
  padding-block: clamp(var(--space-6), 6vw, var(--space-8));
  font-size: var(--fs-sm);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 360px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--paper-pure);
}
.site-footer__name {
  display: inline-flex;
  gap: 0.35em;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.site-footer__name-a {
  color: var(--brand-cyan);
}
.site-footer__name-b {
  color: var(--paper-pure);
}
.site-footer__tagline {
  display: block;
  margin-top: 0.15rem;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brand-cyan);
}
.site-footer__bio {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.6);
  max-width: 42ch;
}

.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-cyan);
  margin-bottom: var(--space-2);
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.site-footer__col a {
  color: rgba(250, 250, 247, 0.72);
  transition: color var(--dur-base) var(--ease-out-smooth);
}
.site-footer__col a:hover {
  color: var(--paper-pure);
}

.site-footer__rule {
  height: 1px;
  background: rgba(250, 250, 247, 0.1);
  margin-block: var(--space-4);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250, 250, 247, 0.5);
}
@media (min-width: 720px) {
  .site-footer__legal {
    flex-direction: row;
    align-items: center;
  }
}
.site-footer__parent {
  display: block;
  color: rgba(250, 250, 247, 0.36);
  font-size: 0.625rem;
  margin-top: 0.25rem;
}
.site-footer__kcl a {
  color: var(--brand-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(24, 182, 232, 0.5);
}
.site-footer__kcl a:hover {
  color: var(--paper-pure);
  border-color: var(--paper-pure);
}

