/* =====================================================
   MED1 CLINIC — Design System
   ===================================================== */

:root {
  /* Palette */
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --ink-muted: #5a564f;
  --paper: #faf8f4;
  --bone: #f1ece2;
  --stone: #e2dccf;
  --hairline: #ccc4b3;
  --accent: #8a6f4e;      /* warm bronze */
  --accent-soft: #c9a37a;
  --line-light: rgba(255,255,255,0.18);
  --line-dark: rgba(20,20,20,0.12);

  /* Type */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Rhythm */
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(56px, 8vw, 110px);
  --maxw: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =====================================================
   Reset
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* =====================================================
   Type
   ===================================================== */

.display, .h-display, h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}

.display {
  font-size: clamp(48px, 9vw, 142px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; font-weight: 300; color: var(--accent); }

.h-display {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.h-display em { font-style: italic; font-weight: 300; color: var(--accent); }
.h-display--light, .num--light { color: var(--paper); }
.h-display--light em { color: var(--accent-soft); }

.eyebrow, .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}
.num--light { color: rgba(255,255,255,0.65); }

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}
.lede--light { color: rgba(255,255,255,0.82); }

.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 1.2em;
}
.muted { color: var(--ink-muted); }

.rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 18px;
}
.rule--light { background: var(--paper); opacity: 0.55; }

/* =====================================================
   Layout helpers
   ===================================================== */

.section {
  padding: var(--pad-y) var(--pad-x);
  position: relative;
}
.section__head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.section__head .h-display { margin-top: 14px; max-width: 22ch; }

.section--pathway { padding-top: clamp(48px, 6vw, 90px); padding-bottom: clamp(48px, 6vw, 90px); }
.section--faq { padding-top: clamp(48px, 6vw, 90px); padding-bottom: clamp(48px, 6vw, 90px); }
.section--pathway + .section--faq { padding-top: 0; }

.grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}
.col-num { padding-top: 12px; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease);
  cursor: pointer;
  text-decoration: none !important;
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--ink:hover { background: var(--accent); border-color: var(--accent); }

.btn--paper {
  background: var(--paper);
  color: var(--ink);
}
.btn--paper:hover { background: var(--accent-soft); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--ghost-light {
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }

/* =====================================================
   Nav
   ===================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  transition: background 400ms var(--ease), padding 400ms var(--ease), backdrop-filter 400ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(250,248,244,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line-dark);
}
.nav.is-hero .nav__brand img,
.nav.is-hero .nav__links a,
.nav.is-hero .nav__group > button,
.nav.is-hero .nav__cta { color: var(--paper); }
.nav.is-hero .nav__brand img { filter: invert(1) brightness(2); }
.nav.is-hero .nav__cta { border-color: rgba(255,255,255,0.6); }
.nav.is-hero .nav__cta:hover { background: var(--paper); color: var(--ink); }
.nav.is-hero.is-scrolled { background: rgba(20,20,20,0.7); border-bottom-color: rgba(255,255,255,0.08); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand img {
  height: 28px;
  width: auto;
  transition: filter 400ms var(--ease);
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links > a,
.nav__group > button {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  position: relative;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__links > a::after,
.nav__group > button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 320ms var(--ease);
}
.nav__links > a:hover::after,
.nav__group:hover > button::after,
.nav__group:focus-within > button::after,
.nav__links > a.is-active::after { width: 100%; }

/* Dropdown */
.nav__group { position: relative; }
.nav__group > button .nav__caret {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 280ms var(--ease);
}
.nav__group:hover > button .nav__caret,
.nav__group:focus-within > button .nav__caret {
  transform: rotate(-135deg) translateY(2px);
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  margin-top: 14px;
  min-width: 280px;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 0;
  padding: 10px 0;
  box-shadow:
    0 1px 0 var(--hairline),
    0 32px 64px -28px rgba(20,20,20,0.28),
    0 8px 24px -12px rgba(20,20,20,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease), visibility 360ms;
  z-index: 60;
}
/* Invisible bridge so cursor can travel from trigger to dropdown without losing hover */
.nav__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 22px;
}
/* Hairline accent across the top */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 600ms var(--ease) 80ms;
}
.nav__group:hover .nav__dropdown::after,
.nav__group:focus-within .nav__dropdown::after { width: 56px; }

.nav__group:has(.nav__dropdown:hover) > button .nav__caret { transform: rotate(-135deg) translateY(2px); }
.nav__dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink) !important;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color 280ms var(--ease), padding-left 380ms var(--ease), letter-spacing 380ms var(--ease);
}
.nav__dropdown a::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 380ms var(--ease);
}
.nav__dropdown a::after {
  content: '→';
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  margin-left: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 280ms var(--ease), transform 380ms var(--ease);
}
.nav__dropdown a:hover {
  color: var(--accent) !important;
  padding-left: 40px;
  letter-spacing: 0.26em;
}
.nav__dropdown a:hover::before { width: 16px; }
.nav__dropdown a:hover::after  { opacity: 1; transform: translateX(0); }

.nav.is-hero .nav__dropdown a { color: var(--ink) !important; }
.nav.is-hero .nav__dropdown a:hover { color: var(--accent) !important; }

/* Staggered drop-in on items when the menu opens */
.nav__dropdown a {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 360ms var(--ease),
    transform 380ms var(--ease),
    color 280ms var(--ease),
    padding-left 380ms var(--ease),
    letter-spacing 380ms var(--ease);
}
.nav__group:hover .nav__dropdown a,
.nav__group:focus-within .nav__dropdown a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.nav__group:hover .nav__dropdown a:nth-child(1),
.nav__group:focus-within .nav__dropdown a:nth-child(1) { transition-delay: 60ms, 60ms, 0ms, 0ms, 0ms; }
.nav__group:hover .nav__dropdown a:nth-child(2),
.nav__group:focus-within .nav__dropdown a:nth-child(2) { transition-delay: 140ms, 140ms, 0ms, 0ms, 0ms; }
.nav__group:hover .nav__dropdown a:nth-child(3),
.nav__group:focus-within .nav__dropdown a:nth-child(3) { transition-delay: 220ms, 220ms, 0ms, 0ms, 0ms; }

.nav__cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  transition: background 320ms var(--ease), color 320ms var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle { display: none; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    align-items: flex-end;
    justify-content: center;
  }
  .nav__toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: width 280ms var(--ease);
  }
  .nav__toggle span:nth-child(1) { width: 22px; }
  .nav__toggle span:nth-child(2) { width: 16px; }
}

/* =====================================================
   Hero
   ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--pad-x);
  padding-top: 140px;
  padding-bottom: clamp(60px, 9vw, 140px);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.02);
  display: block;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0.2) 28%, rgba(20,20,20,0.62) 100%),
    radial-gradient(ellipse at 30% 80%, rgba(20,20,20,0.45) 0%, transparent 60%);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 36px; display: block; }
.hero .display { color: var(--paper); margin-bottom: 36px; }
.hero .display em { color: var(--accent-soft); }
.hero .lede { color: rgba(255,255,255,0.85); margin-bottom: 48px; }

.hero__ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.hero__ctas .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__ctas .btn--ink:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.hero__ctas .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.6); }
.hero__ctas .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero__meta {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 820px;
}
.hero__meta li {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.82);
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-weight: 400;
}
.hero__meta li span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent-soft);
}

.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(60px, 9vw, 140px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__scroll span {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.6);
  display: block;
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: scrollIndicator 2.4s var(--ease) infinite;
}
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@media (max-width: 820px) {
  .hero__scroll { display: none; }
  .hero .display { font-size: clamp(48px, 14vw, 78px); }
}

/* =====================================================
   Intro / Practice section
   ===================================================== */

/* Light services section (replaces dark home services) */
.section--services-light {
  background: var(--stone);
  padding-top: clamp(48px, 6vw, 90px);
  padding-bottom: clamp(48px, 6vw, 90px);
}
.section--services-light .section__head { margin-bottom: 36px; }
.section--services-light .h-display { color: var(--ink); }
.section--services-light .h-display em { color: var(--accent); }
.section--services-light .num { color: var(--ink-muted); }
.section--services-light .rule { background: var(--ink); opacity: 0.7; }

.section--services-light .specialties { border-top: 1px solid var(--hairline); }
.section--services-light .spec {
  background: var(--paper);
  border-color: var(--hairline) !important;
}
.section--services-light .spec h3 { color: var(--ink); }
.section--services-light .spec h3 span { color: var(--accent); }
.section--services-light .spec p { color: var(--ink-soft); }
.section--services-light .spec__link {
  color: var(--ink);
  border-bottom-color: var(--hairline);
  margin-top: auto;
}
.section--services-light .spec__link:hover { color: var(--accent); border-color: var(--accent); }

/* Equal-height service cards: keep body fill + push link to bottom */
.section--services-light .spec__body p { flex: 1 0 auto; }

.section--intro {
  background: var(--paper);
}
.section--intro .h-display { max-width: 22ch; margin-bottom: 40px; }

/* =====================================================
   Specialties (dark)
   ===================================================== */

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .num { color: rgba(255,255,255,0.65); }
.section--dark .h-display { color: var(--paper); }
.section--dark .h-display em { color: var(--accent-soft); }

.specialties {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.spec {
  position: relative;
  border: 1px solid var(--line-light);
  border-right: none;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 480ms var(--ease);
}
.spec:nth-child(2n) { border-right: 1px solid var(--line-light); }
.spec:nth-child(n+3) { border-top: none; }
.spec:last-child { border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.spec:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-light); }

/* 3-column variant: one row, three services */
.specialties--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specialties--three .spec:nth-child(2n) { border-right: none; }
.specialties--three .spec { border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
@media (max-width: 980px) {
  .specialties--three { grid-template-columns: 1fr; }
  .specialties--three .spec { border-right: 1px solid var(--line-light) !important; }
}

/* 4-card 2x2 grid variant — used on the home page services block */
.specialties--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Reset the default 2-col rules that target last/penultimate items so a
   clean 2x2 emerges: each cell shows top + left, last column adds right,
   last row adds bottom. */
.specialties--four .spec {
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  border-right: none;
  border-bottom: none;
}
.specialties--four .spec:nth-child(2n) { border-right: 1px solid var(--line-light); }
.specialties--four .spec:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-light); }
.specialties--four .spec:last-child {
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
@media (max-width: 760px) {
  .specialties--four { grid-template-columns: 1fr; }
  .specialties--four .spec {
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
    border-right: 1px solid var(--line-light);
    border-bottom: none;
  }
  .specialties--four .spec:last-child { border-bottom: 1px solid var(--line-light); }
}

/* Aurora palette for the patch-testing card (matches the muted-clay tone) */
.spec[data-visual="patch"]    { --auroraA: #b09478; --auroraB: #d8c3a5; --auroraC: #2a1f15; }

/* Media slot — replace with <video> when Higgsfield lands */
.spec__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line-light);
}
.spec__aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 28% 32%, var(--auroraA, #8a6f4e) 0%, transparent 42%),
    radial-gradient(circle at 78% 68%, var(--auroraB, #c9a37a) 0%, transparent 45%),
    radial-gradient(circle at 55% 50%, var(--auroraC, #3a2e21) 0%, transparent 60%);
  filter: blur(28px) saturate(115%);
  opacity: 0.78;
  animation: aurora 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0%   { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  50%  { transform: translate(-6%, 4%) rotate(8deg) scale(1.08); }
  100% { transform: translate(5%, -3%) rotate(-6deg) scale(1.05); }
}
.spec__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.45) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012), rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.spec__media-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  padding: 6px 10px;
  background: rgba(20,20,20,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Per-card aurora palettes */
.spec[data-visual="gim"]      { --auroraA: #d2a86a; --auroraB: #6f5435; --auroraC: #1a1a1a; }
.spec[data-visual="infusion"] { --auroraA: #c9a37a; --auroraB: #8a6f4e; --auroraC: #2a1f12; }
.spec[data-visual="allergy"]  { --auroraA: #a89060; --auroraB: #d4b78a; --auroraC: #221b10; }
.spec[data-visual="peds"]     { --auroraA: #b88a5a; --auroraB: #e2c89a; --auroraC: #1f1810; }

/* Photo variant — actual image replaces the aurora animation */
.spec__media--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 1200ms var(--ease), filter 600ms var(--ease);
  will-change: transform;
}
.spec__media--photo::after {
  /* Soft warm vignette so the media-tag stays legible */
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.28) 100%),
    linear-gradient(180deg, rgba(20,20,20,0.05) 0%, rgba(20,20,20,0.25) 100%);
}
.spec:hover .spec__media--photo img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1.02);
}

.spec:hover .spec__aurora { animation-duration: 8s; opacity: 0.92; }
.spec:hover .spec__media::after { background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%); }

.spec__body {
  padding: 32px clamp(24px, 3vw, 36px) 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.spec h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--paper);
}
.spec h3 span {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
  font-size: 0.65em;
  margin-top: 6px;
  letter-spacing: 0;
}
.spec p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
  max-width: 48ch;
  margin-bottom: 28px;
}
.spec__link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
  transition: gap 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease);
}
.spec__link span { transition: transform 320ms var(--ease); }
.spec__link:hover { gap: 18px; border-color: var(--accent-soft); color: var(--accent-soft); }
.spec__link:hover span { transform: translateX(4px); }

@media (max-width: 820px) {
  .specialties { grid-template-columns: 1fr; }
  .spec:nth-child(even) { padding-left: 0; border-left: none; }
  .spec:nth-child(odd) { padding-right: 0; }
}

/* =====================================================
   Feature / Infusion
   ===================================================== */

.section--feature {
  background: var(--bone);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}
.feature__media {
  display: flex;
  justify-content: center;
}
.feature__art {
  width: clamp(180px, 22vw, 320px);
  background: var(--paper);
  padding: 48px 32px;
  border: 1px solid var(--hairline);
  position: relative;
}
.feature__art::before {
  content: 'INFUSION';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--ink-muted);
}
.feature__art-cap {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.feature__body {
  max-width: 680px;
}
.feature__body .num { display: block; margin-bottom: 22px; }
.feature__body .h-display { max-width: 18ch; margin-bottom: 32px; }
.feature__body .prose { margin-bottom: 48px; max-width: 60ch; }

.stat-row {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}
.stat-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}
.stat-row li + li {
  border-left: 1px solid var(--hairline);
}
.stat-row strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
/* Uniform-text variant: all phrases the same moderate size, tighter rhythm */
.stat-row--text { padding: 14px 0; margin: 0; }
.stat-row--text li { padding: 0 16px; }
/* Reduce content padding when stat-row sits directly inside content--bone */
.content--bone:has(.stat-row--text) { padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 36px); }

/* Slim stat-row variant — tighter section padding around the row */
.stat-row--slim {
  margin-bottom: 0;
  padding: 22px 0;
}
.content--bone:has(.stat-row--slim) {
  padding-top: clamp(28px, 3.5vw, 48px);
  padding-bottom: clamp(28px, 3.5vw, 48px);
}
.stat-row--text strong {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  display: block;
  color: var(--ink);
}
.stat-row--text strong span { display: none; }
.stat-row--text .stat-row__lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-top: 6px;
}
.stat-row strong span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}
.stat-row__lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 20px 0; }
  .stat-row li:nth-child(3) { border-left: none; }
}

.drips {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.drips li {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.drips li:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
  padding-right: 0;
}
.drips h4 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.drips p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}
.confirm {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(138,111,78,0.1);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 980px) {
  .section--feature { grid-template-columns: 1fr; }
  .feature__media { order: 2; }
  .drips { grid-template-columns: 1fr; }
  .drips li:nth-child(even) { padding-left: 0; border-left: none; }
}

/* =====================================================
   Pathway
   ===================================================== */

.section--pathway { background: var(--paper); }
.pathway {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  counter-reset: pathway;
  list-style: none;
}
.pathway li {
  padding: 48px 28px 48px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.pathway li + li {
  border-left: 1px solid var(--hairline);
  padding-left: 28px;
}
.pathway__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.pathway li h3 {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.15;
}
.pathway li p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 980px) {
  .pathway { grid-template-columns: repeat(2, 1fr); }
  .pathway li:nth-child(odd) { border-left: none; padding-left: 0; }
  .pathway li:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .pathway { grid-template-columns: 1fr; }
  .pathway li + li { border-left: none; padding-left: 0; }
}

/* =====================================================
   Approach
   ===================================================== */

.section--approach {
  background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%);
  padding-top: clamp(48px, 6vw, 90px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
}
.section--approach .section__head { margin-bottom: 36px; }
.section--approach .section__head .h-display { max-width: none; white-space: nowrap; }
@media (max-width: 720px) {
  .section--approach .section__head .h-display { white-space: normal; }
}

/* New: animated three-pillar luxury treatment */
.pillars {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.pillar {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 2.4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 600ms var(--ease), box-shadow 600ms var(--ease), border-color 600ms var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 900ms var(--ease) 200ms;
}
.pillar.is-in::before,
.pillar:hover::before { width: 100%; }
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -28px rgba(20,20,20,0.22);
  border-color: var(--accent);
}
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 14px;
  line-height: 1.2;
  color: var(--ink);
}
.pillar p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; gap: 16px; }
}

/* =====================================================
   Visit
   ===================================================== */

.section--visit { background: var(--bone); }
.section--visit .h-display { margin-bottom: 56px; }
.visit__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
}
.visit__cols h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.visit__cols p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.visit__cols a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .visit__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================
   Visit area-served line
   ===================================================== */
.visit__cols p.area {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* =====================================================
   About page Visit & Contact block
   ===================================================== */
.visit-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: 8px;
}
.visit-block__col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.visit-block__col p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--ink);
}
.visit-block__sub {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted) !important;
  margin-top: 10px !important;
  line-height: 1.7 !important;
}
.visit-hours {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.visit-hours th {
  text-align: left;
  font-weight: 500;
  padding: 6px 18px 6px 0;
  color: var(--ink-muted);
  white-space: nowrap;
}
.visit-hours td {
  text-align: left;
  padding: 6px 0;
  color: var(--ink);
}
.visit-contact {
  font-family: var(--sans) !important;
  font-size: 15px !important;
  margin: 0 0 6px !important;
  color: var(--ink) !important;
}
.visit-contact span {
  color: var(--ink-muted);
  font-weight: 500;
  display: inline-block;
  min-width: 78px;
}
.visit-contact a,
.visit-contact__num { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.visit-contact a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .visit-block { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================
   FAQ
   ===================================================== */

.section--faq { background: var(--paper); }
.faq {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 8px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 280ms var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  flex: 1;
}
.faq__icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform 360ms var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform 360ms var(--ease), opacity 360ms var(--ease);
}
.faq__icon::before {
  left: 0; right: 0; top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.faq__icon::after {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.faq__item[open] .faq__icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq__item[open] summary { padding-bottom: 8px; }
.faq__item:hover summary .faq__q { color: var(--accent); }

.faq__a {
  padding: 0 80px 32px 0;
  max-width: 70ch;
}
.faq__a p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 640px) {
  .faq__a { padding-right: 0; }
}

/* =====================================================
   Brand-mark video strip
   ===================================================== */

.section--brand-mark {
  padding: 0;
  margin: 0;
  background: #0a0a0a;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.section--brand-mark video {
  display: block;
  width: 100%;
  height: clamp(240px, 36vw, 460px);
  object-fit: cover;
  object-position: center;
}

/* =====================================================
   CTA
   ===================================================== */

.section--cta {
  background: #262422;
  color: var(--paper);
  text-align: center;
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
}

/* Make the "1" in MED1 obvious — sans numeral inside a serif word */
.med1-mark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-0.04em);
  padding-left: 0.04em;
}
.cta {
  max-width: 820px;
  margin: 0 auto;
}
.cta .num { display: block; margin-bottom: 18px; }
.cta .h-display { color: var(--paper); margin-bottom: 24px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta .lede { color: rgba(255,255,255,0.78); margin: 0 auto 36px; }
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Light CTA — used on home page "Start Your Journey" block */
.section--cta-light {
  background: linear-gradient(180deg, var(--bone) 0%, var(--paper) 100%);
  color: var(--ink);
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 90px);
}
.section--cta-light .num { color: var(--ink-muted); }
.section--cta-light .h-display { color: var(--ink); }
.section--cta-light .h-display em { color: var(--accent); }
.section--cta-light .lede { color: var(--ink-soft); }
.section--cta-light .btn--paper {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.section--cta-light .btn--paper:hover { background: var(--accent); border-color: var(--accent); }
.section--cta-light .btn--ghost-light {
  color: var(--ink);
  border-color: var(--ink);
}
.section--cta-light .btn--ghost-light:hover { background: var(--ink); color: var(--paper); }

/* =====================================================
   Footer
   ===================================================== */

.footer {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(56px, 7vw, 96px) var(--pad-x) 22px;
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%);
  transition: width 1400ms var(--ease) 200ms;
}
.footer.is-in::before,
.footer:hover::before { width: 100%; }

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: 36px;
}

.footer__rule {
  height: 1px;
  background: var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer__legal {
  max-width: var(--maxw);
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 12px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .footer__legal { font-size: 9px; flex-direction: column; }
}

/* =====================================================
   Reveal animations
   ===================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =====================================================
   Scroll-scrub cinematic hero
   300vh outer · sticky 100vh inner · scroll → video.currentTime
   ===================================================== */

.scroll-hero {
  position: relative;
  height: 300vh;
  background: #050505;
  margin: 0;
}
.scroll-hero__sticky {
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.scroll-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #050505;
}
.scroll-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.12) 22%, rgba(5,5,5,0.18) 60%, rgba(5,5,5,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.scroll-hero__overlay {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding: 0 var(--pad-x) clamp(60px, 8vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.scroll-hero__crumb {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.scroll-hero__crumb::before {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}
.scroll-hero__overlay h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--paper);
  max-width: 18ch;
}
.scroll-hero__overlay h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}
.scroll-hero__overlay .lede {
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
}
.scroll-hero__hint {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(28px, 4vw, 56px);
  z-index: 2;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hero__hint::before {
  content: '';
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.5);
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hero { height: 100vh; }
  .scroll-hero__sticky { position: relative; }
}
@media (max-width: 820px) {
  .scroll-hero { height: 240vh; } /* slightly less scroll distance on phones */
  .scroll-hero__overlay h1 { font-size: clamp(34px, 9vw, 52px); }
}

/* =====================================================
   Inner page-hero (typographic, no image required)
   ===================================================== */

.page-hero {
  background: var(--paper);
  padding: clamp(96px, 11vw, 130px) var(--pad-x) clamp(28px, 3vw, 48px);
  border-bottom: 1px solid var(--hairline);
}
.page-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: end;
}
.page-hero__meta {
  padding-bottom: 8px;
}
.page-hero__crumb {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 18ch;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
/* Deprecated: inline logo replacement — branding is now always rendered as text "MED1 Clinic" */
.h1-logo { display: none; }

/* Visual hero variant — text + image side-by-side */
.page-hero--visual { padding-top: clamp(96px, 11vw, 130px); padding-bottom: 0; border-bottom: none; }
.page-hero--visual .page-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.page-hero__visual {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--bone);
  border: 1px solid var(--hairline);
}
.page-hero__visual img,
.page-hero__visual video,
.page-hero__visual canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02);
  transition: transform 1800ms var(--ease);
  display: block;
}
.page-hero--visual:hover .page-hero__visual img,
.page-hero--visual:hover .page-hero__visual video,
.page-hero--visual:hover .page-hero__visual canvas { transform: scale(1.025); }
@media (max-width: 820px) {
  .page-hero--visual .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__visual { aspect-ratio: 4 / 3; }
}
.page-hero .lede {
  max-width: 60ch;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .page-hero { padding-top: 140px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* =====================================================
   Content prose / sections
   ===================================================== */

.content {
  padding: clamp(60px, 9vw, 120px) var(--pad-x);
}
.content--bone { background: var(--bone); }
.content--dark { background: #262422; color: var(--paper); }
.content--dark .num { color: rgba(255,255,255,0.65); }
.content--dark .h-display,
.content--dark h1,
.content--dark h2,
.content--dark h3,
.content--dark h4 { color: var(--paper); }
.content--dark .h-display em,
.content--dark h2 em,
.content--dark h3 em { color: var(--accent-soft); font-style: italic; font-weight: 300; }
.content--dark p { color: rgba(255,255,255,0.82); max-width: 62ch; text-wrap: pretty; }
.content--dark h2 {
  margin-bottom: 28px;
  text-wrap: balance;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  max-width: 22ch;
}

.content__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.content__head { padding-top: 12px; }
.content__body {
  max-width: 70ch;
}
.content__body h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.content__body h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.content--dark .content__body h2 em { color: var(--accent-soft); }
.content__body h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 36px 0 14px;
}
.content__body p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 1.1em;
}
.content__body ul {
  margin: 0 0 1.5em;
}
.content__body ul li {
  font-size: 15px;
  line-height: 1.75;
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.content__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.content--dark .content__body ul li { color: rgba(255,255,255,0.78); }

@media (max-width: 820px) {
  .content__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================
   Conditions grid
   ===================================================== */

.conditions {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.conditions article {
  padding: 40px 24px 40px 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.conditions article:nth-child(3n-1),
.conditions article:nth-child(3n) {
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.conditions__roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.conditions__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: clamp(54px, 6vw, 76px);
  height: clamp(54px, 6vw, 76px);
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  pointer-events: none;
  transition: transform 480ms var(--ease), opacity 480ms var(--ease);
  z-index: 1;
}
.conditions article:hover .conditions__icon {
  transform: translateY(-3px) scale(1.04);
  opacity: 1;
}
/* Make room for icon so title doesn't crash into it */
.conditions article:has(.conditions__icon) h3 { padding-right: 80px; }
.conditions h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 14px;
  line-height: 1.15;
}
.conditions p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 980px) {
  .conditions { grid-template-columns: repeat(2, 1fr); }
  .conditions article:nth-child(3n-1),
  .conditions article:nth-child(3n) { padding-left: 0; border-left: none; }
  .conditions article:nth-child(2n) {
    padding-left: 24px;
    border-left: 1px solid var(--hairline);
  }
}
@media (max-width: 560px) {
  .conditions { grid-template-columns: 1fr; }
  .conditions article { padding-left: 0 !important; border-left: none !important; }
}

/* =====================================================
   Team / Physicians
   ===================================================== */

.team-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.doc {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 64px);
  padding: clamp(40px, 5vw, 64px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--hairline);
  align-items: stretch;
  transition: background 360ms var(--ease);
  position: relative;
}
.doc:hover { background: rgba(138, 111, 78, 0.045); }
.doc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 360ms var(--ease);
}
.doc:hover::before { opacity: 1; }
.doc__photo {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #1a1a1a;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.doc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 1400ms var(--ease), filter 600ms var(--ease);
  will-change: transform;
}
.doc:hover .doc__photo img { filter: saturate(1.05) contrast(1.04); }

/* =====================================================
   Team — 3 tile gallery (click → modal)
   ===================================================== */

/* Slim luxury team hero */
.team-hero {
  padding-top: clamp(96px, 11vw, 130px);
  padding-bottom: clamp(28px, 3vw, 48px);
}
.team-hero .page-hero__inner {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}
.team-hero__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 22px;
}
.team-hero__head .page-hero__crumb { margin-bottom: 0; }
.team-hero h1 {
  max-width: 22ch;
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 18px;
}
.team-hero .lede {
  max-width: 64ch;
  margin: 0 0 14px;
}
.team-hero .team-hint {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 14px 0 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.team-hero .team-hint::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: block;
}

.team-tiles-section {
  padding: clamp(40px, 5vw, 80px) var(--pad-x) clamp(60px, 8vw, 120px);
}
.team-tiles {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
}
.team-tile {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform 480ms var(--ease);
}
.team-tile:hover { transform: translateY(-6px); }
.team-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

.team-tile__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--card-bg, #d6d6d6);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: border-color 480ms var(--ease), box-shadow 480ms var(--ease);
}
.team-tile:hover .team-tile__photo {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -24px rgba(20, 20, 20, 0.22);
}
.team-tile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 1000ms var(--ease);
  will-change: transform;
}
.team-tile:hover .team-tile__photo img { transform: scale(1.03); }
.team-tile[data-modal-open="modal-kashani"] .team-tile__photo img { object-position: center 30%; }

/* Subtle bottom gradient on the tile photo for a polished base */
.team-tile__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,0.04) 100%);
  pointer-events: none;
}

.team-tile__caption {
  padding: 22px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-tile__caption h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
  transition: color 320ms var(--ease);
}
.team-tile:hover .team-tile__caption h3 { color: var(--accent); }
.team-tile__caption p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.team-tile__role {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--accent) !important;
  font-weight: 500;
  margin-top: 4px !important;
}

/* "View bio" affordance — small label appears in corner of photo */
.team-tile__photo::before {
  content: '+';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  z-index: 2;
  transition: background 320ms var(--ease), color 320ms var(--ease), transform 320ms var(--ease);
}
.team-tile:hover .team-tile__photo::before {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(45deg) scale(1.05);
}

/* Modal heading style with inline credentials accent */
#modal-kashani h3 em, #modal-abadeh h3 em, #modal-barra h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 0.7em;
  margin-left: 8px;
}

@media (max-width: 980px) {
  .team-tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .team-tile:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .team-tiles { grid-template-columns: 1fr; gap: 24px; max-width: 420px; }
  .team-tile:last-child { max-width: none; margin: 0; }
}

/* =====================================================
   Team — Bordered editorial card with bottom-anchored figure
   ===================================================== */

/* About content merged under team — uses .team-about wrapper */
.team-about {
  background: var(--bone);
  padding: clamp(48px, 6vw, 96px) var(--pad-x);
}
.team-about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.team-about__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.team-about__head .num { letter-spacing: 0.22em; }
.team-about h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  max-width: 22ch;
}
.team-about h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.team-about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  max-width: 1180px;
}
.team-about__body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1em;
}
.team-about__body p:last-child { margin-bottom: 0; }
.team-about__commitments {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.team-about__commitments h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0;
}
.team-about__commitments ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 0;
}
.team-about__commitments ul li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
  list-style: none;
}
.team-about__commitments ul li::before { content: none; }
.team-about__commitments ul li strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
@media (max-width: 820px) {
  .team-about__body { grid-template-columns: 1fr; }
  .team-about__commitments { grid-template-columns: 1fr; }
  .team-about__commitments ul { grid-template-columns: 1fr; }
}

/* Visit & Contact block on Team page */
.team-visit {
  padding: clamp(48px, 6vw, 90px) var(--pad-x);
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.team-visit__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.team-visit__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}
.team-visit h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 36px;
  max-width: 22ch;
}
.team-visit h2 em { font-style: italic; font-weight: 300; color: var(--accent); }


/* Wrapper for the stack of team cards */
.team-stack {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) var(--pad-x) clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 56px);
}

.team-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--card-bg, #d6d6d6);
  border: none;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  align-items: stretch;
  transition: box-shadow 480ms var(--ease), transform 600ms var(--ease);
}
.team-spread:hover {
  box-shadow: 0 40px 80px -28px rgba(20, 20, 20, 0.22);
  transform: translateY(-4px);
}

/* Alternating side */
.team-spread--left > .team-spread__photo { order: 1; }
.team-spread--left > .team-spread__content { order: 2; }
.team-spread--right > .team-spread__content { order: 1; }
.team-spread--right > .team-spread__photo { order: 2; }

/* Photo column — same bg as card so it's seamless */
.team-spread__photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--card-bg, #d6d6d6);
  border: none;
}
.team-spread__photo img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  vertical-align: bottom;
  transform-origin: bottom center;
  transition: transform 1000ms var(--ease);
  will-change: transform;
}
.team-spread:hover .team-spread__photo img {
  transform: scale(1.02);
}
.team-spread__bg { display: none; }
.team-spread__numeral { display: none; }

/* Content column */
.team-spread__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 52px);
  max-width: none;
}
.team-spread__role { display: none; }

/* Name + brass accent bar */
.team-spread__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  color: var(--ink);
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.team-spread__name span {
  display: block;
  font-weight: 500;
  font-size: 0.6em;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
}

.team-spread__bio p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1em;
  max-width: 56ch;
}
.team-spread__bio p:last-child { margin-bottom: 0; }
.team-spread__role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-spread__role::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.team-spread__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.team-spread__creds {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--accent);
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}
.team-spread__bio p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
  max-width: 56ch;
}

/* Hover treatment on the whole spread */
.team-spread {
  transition: background 600ms var(--ease);
}
.team-spread:hover .team-spread__bg {
  animation-duration: 12s;
  opacity: 0.72;
}

/* Section divider between spreads */
.team-spread + .team-spread {
  border-top: 1px solid var(--hairline);
}

/* Responsive */
@media (max-width: 980px) {
  .team-spread {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 60px);
    gap: 32px;
  }
  .team-spread--left  > .team-spread__photo { order: 1; }
  .team-spread--left  > .team-spread__content { order: 2; }
  .team-spread--right > .team-spread__photo { order: 1; }
  .team-spread--right > .team-spread__content { order: 2; }
  .team-spread__photo { min-height: 400px; }
  .team-spread__photo img { max-width: 480px; }
  .team-spread__numeral { font-size: clamp(180px, 50vw, 320px); top: 4%; }
  .team-spread__bg { width: 100%; }
  .team-spread--right .team-spread__bg,
  .team-spread--left  .team-spread__bg { left: 0; right: 0; }
}
.doc:hover .doc__photo img { transform: scale(1.045); }
.doc__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,20,20,0.18) 100%);
  pointer-events: none;
}
.doc__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc__meta { padding-top: 8px; }
.doc__role {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.doc h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.doc__creds {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 24px;
}
.doc__bio p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1em;
  max-width: 62ch;
}
.doc__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc__tags span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  font-weight: 500;
}
@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
}

/* =====================================================
   Referral methods
   ===================================================== */

.methods {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.method {
  padding: 56px 32px 56px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.method + .method {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}
.method__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 20px;
}
.method h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 14px;
  line-height: 1.15;
}
.method p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1em;
}
.method__value {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: block;
}
.method__value a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .methods { grid-template-columns: 1fr; }
  .method + .method { padding-left: 0; border-left: none; }
}

/* =====================================================
   Data block (location/hours/contact card)
   ===================================================== */

.data-card {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  background: var(--paper);
}
.data-card__cell {
  padding: 40px 32px;
  border-right: 1px solid var(--hairline);
}
.data-card__cell:last-child { border-right: none; }
.data-card__cell h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.data-card__cell p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 6px;
}
.data-card__cell p a:hover { color: var(--accent); }
.data-card__cell p.small {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: var(--sans);
}
@media (max-width: 820px) {
  .data-card { grid-template-columns: 1fr; }
  .data-card__cell { border-right: none; border-bottom: 1px solid var(--hairline); }
  .data-card__cell:last-child { border-bottom: none; }
}

/* =====================================================
   Two-up split (image / text reusable)
   ===================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================
   Active nav indicator (per-page)
   ===================================================== */
.nav__links > a.is-active,
.nav__group.is-active > button { color: var(--accent); }

/* =====================================================
   Hide editorial numbering (per user preference)
   ===================================================== */
.spec__index,
.conditions__roman,
.pathway__num,
.pillar__num,
.method__num { display: none !important; }
.pillar, .method, .pathway li, .conditions article { padding-top: 0; }
.pathway li, .pillar { padding-top: 48px; }
.method { padding-top: 56px; }
.conditions article { padding-top: 40px; }

/* =====================================================
   Mobile nav panel
   ===================================================== */
.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  height: 100svh;
  background: var(--paper);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 480ms var(--ease);
  padding: 100px 32px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.menu-open .nav__mobile { transform: translateX(0); }
body.menu-open { overflow: hidden; }
body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.45);
  z-index: 65;
  opacity: 1;
  transition: opacity 360ms var(--ease);
}
.nav__mobile h6 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 24px 0 10px;
  padding: 0 4px;
}
.nav__mobile h6:first-child { margin-top: 0; }
.nav__mobile a {
  display: block;
  padding: 14px 4px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transition: color 280ms var(--ease), padding 280ms var(--ease);
}
.nav__mobile a:hover,
.nav__mobile a:focus { color: var(--accent); padding-left: 8px; }
.nav__mobile a small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}
.nav__mobile-foot {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
}
.nav__mobile-foot a { font-family: var(--sans); font-size: 14px; padding: 6px 0; border: 0; }

@media (min-width: 981px) {
  .nav__mobile { display: none; }
}

/* Hamburger animation */
.nav__toggle {
  position: relative;
  z-index: 80;
}
body.menu-open .nav__toggle span:nth-child(1) {
  width: 22px;
  transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open .nav__toggle span:nth-child(2) {
  width: 22px;
  transform: rotate(-45deg) translate(2px, -3px);
}

/* =====================================================
   Custom cursor (dot only)
   ===================================================== */
@media (hover: hover) and (pointer: fine) {
  html { cursor: none; }
  a, button, [data-hover], summary, input, textarea, select { cursor: none; }
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 220ms var(--ease), height 220ms var(--ease), opacity 240ms var(--ease);
  width: 8px;
  height: 8px;
  background: var(--paper);
}
.cursor-ring { display: none !important; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none !important; }
  html, a, button { cursor: auto !important; }
}

/* =====================================================
   Scroll progress bar
   ===================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100;
  transition: transform 80ms linear;
  pointer-events: none;
}

/* =====================================================
   Stagger reveal upgrade
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =====================================================
   Magnetic / hover lift
   ===================================================== */
.spec, .conditions article, .pillar, .method, .doc, .post-card {
  transition: transform 480ms var(--ease), background 480ms var(--ease);
}
.spec:hover, .conditions article:hover, .pillar:hover, .post-card:hover {
  transform: translateY(-4px);
}
.conditions article {
  position: relative;
}
.conditions article[data-modal-open] { cursor: pointer; }
.conditions article[data-modal-open]::after {
  content: '→';
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  transition: background 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), transform 320ms var(--ease);
}
.conditions article[data-modal-open]:hover::after {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: translateX(4px);
}

/* =====================================================
   Modal
   ===================================================== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20,20,20,0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms var(--ease), visibility 360ms;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal__panel {
  background: var(--paper);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  padding: clamp(32px, 5vw, 64px);
  transform: translateY(32px) scale(0.98);
  transition: transform 480ms var(--ease);
  border: 1px solid var(--hairline);
}
.modal.is-open .modal__panel {
  transform: none;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 18px;
  color: var(--ink);
  transition: background 240ms var(--ease), color 240ms var(--ease);
  cursor: pointer;
}
.modal__close:hover { background: var(--ink); color: var(--paper); }

/* Announcement variant — 2-col panel with editorial photo */
.modal__panel--announce {
  max-width: 920px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 0;
  box-shadow: 0 50px 100px -24px rgba(20,20,20,0.55);
}
.modal__panel--announce .modal__close {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.announce__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--bone);
}
.announce__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.98) contrast(1.02);
  transform: scale(1.06);
  transition: transform 12000ms ease-out;
}
.modal.is-open .announce__photo img { transform: scale(1); }
.announce__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.announce__status {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.announce__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: statusPulse 2400ms ease-in-out infinite;
}
.announce__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  animation: statusRing 2400ms ease-out infinite;
}
.modal__panel--announce h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}
.modal__panel--announce h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.announce__lede {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 38ch;
}
.announce__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.announce__actions .btn {
  height: 48px;
  padding: 0 26px;
  font-size: 12px;
}
.announce__dismiss {
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 240ms var(--ease);
}
.announce__dismiss:hover { color: var(--accent); }
@media (max-width: 760px) {
  .modal__panel--announce {
    grid-template-columns: 1fr;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .announce__photo { aspect-ratio: 16 / 10; }
  .modal__panel--announce h2 { font-size: 26px; }
}
.modal__crumb {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.modal__panel h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}
.modal__panel h3 em { font-style: italic; color: var(--accent); font-weight: 300; }
.modal__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  margin: 0 0 28px;
  font-size: 16px;
}
.modal__panel p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1em;
}
.modal__panel h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--ink);
}
.modal__panel ul {
  margin: 0 0 1em;
}
.modal__panel ul li {
  font-size: 14px;
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.modal__panel ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.modal__cta {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =====================================================
   Blog
   ===================================================== */
.posts {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.post-card {
  padding: 40px 28px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.post-card + .post-card,
.post-card:nth-child(n+2):nth-child(-n+3) {
  border-left: 1px solid var(--hairline);
}
.post-card:nth-child(3n+1) { border-left: none; }
.post-card__tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
}
.post-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.post-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.post-card.is-stub { opacity: 0.55; }
.post-card.is-stub h3 { color: var(--ink-muted); }
.post-card.is-stub:hover { transform: none; }
@media (max-width: 980px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post-card { border-left: none !important; }
  .post-card:nth-child(2n) { border-left: 1px solid var(--hairline) !important; }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
  .post-card { border-left: none !important; }
}

/* Single post layout */
.post-hero {
  background: var(--paper);
  padding: 200px var(--pad-x) 60px;
}
.post-hero__inner {
  max-width: 880px;
  margin: 0 auto;
}
.post-hero .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.post-hero .meta .tag { color: var(--accent); font-weight: 500; }
.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.post-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.post-hero .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--pad-x) 80px;
}
.post-body p,
.post-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
}
.post-body p strong { color: var(--ink); font-weight: 600; }
.post-body h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 36px 0 14px;
}
.post-body ul { padding-left: 24px; margin: 0 0 1.5em; }
.post-body ul li {
  list-style: none;
  position: relative;
  padding-left: 4px;
  margin-bottom: 8px;
}
.post-body ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 14px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
.post-body a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.post-body a:not(.btn):hover { color: var(--accent); }

/* =====================================================
   Compact one-page layout (Referral, Contact)
   ===================================================== */

.page-hero--compact {
  padding-top: clamp(96px, 11vw, 130px);
  padding-bottom: clamp(16px, 2vw, 28px);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero--compact .page-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.page-hero--compact h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 14px;
  max-width: 24ch;
  line-height: 1.02;
}
.page-hero--compact .lede {
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 60ch;
  margin-top: 0;
}

/* Referral hero — full-width copy on top */
.page-hero--referral {
  padding-top: clamp(150px, 15vw, 200px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.page-hero--referral .page-hero__copy h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(30px, 4.5vw, 56px);
}
@media (max-width: 900px) {
  .page-hero--referral .page-hero__copy h1 {
    white-space: normal;
    max-width: 22ch;
  }
}

/* Referral body — 2-column: photo on left, methods on the right */
.referral-body {
  padding: 0 var(--pad-x) clamp(60px, 8vw, 120px);
}
.referral-body__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.referral-body__photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--bone);
}
.referral-body__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.98) contrast(1.02);
  transition: transform 1800ms var(--ease);
}
.referral-body__photo:hover img { transform: scale(1.025); }
.referral-body__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body[data-page="referral"] .footer {
  padding-top: clamp(32px, 4vw, 52px);
}
@media (max-width: 900px) {
  .referral-body__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .referral-body__photo { aspect-ratio: 4 / 3; }
}
.page-hero--referral .page-hero__copy h1 { max-width: 16ch; }
.page-hero--contact .page-hero__copy h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(30px, 4.5vw, 56px);
}
@media (max-width: 760px) {
  .page-hero--contact .page-hero__copy h1 {
    white-space: normal;
    max-width: 22ch;
  }
}
.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: heroLineIn 1100ms var(--ease) 360ms both;
}
.page-hero__aside .small-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 -4px;
}
.page-hero__aside h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  margin: 0 0 4px;
  letter-spacing: -0.012em;
  padding-top: 18px;
  position: relative;
}
.page-hero__aside h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  animation: heroRuleDraw 1100ms var(--ease) 520ms forwards;
}
@keyframes heroRuleDraw {
  to { width: 56px; }
}
.page-hero__aside h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.page-hero__methods {
  display: contents;
  counter-reset: methodNum;
}
.page-hero__methods .method-row {
  counter-increment: methodNum;
}
.page-hero__methods .method-row__label {
  position: relative;
  padding-left: 22px;
}
.page-hero__methods .method-row__label::before {
  content: counter(methodNum, lower-roman) ".";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.page-hero__methods .method-row__value {
  position: relative;
}
.page-hero__methods .method-row__value::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  opacity: 0;
  transition: opacity 380ms var(--ease);
}
.page-hero__methods .method-row:hover .method-row__value::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-hero__aside h2::before { animation: none; width: 56px; }
}
.page-hero__actions {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.page-hero__actions .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
@media (max-width: 900px) {
  .page-hero--referral .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .page-hero--referral .page-hero__copy h1 { max-width: 24ch; }
}

/* Status indicator: pulsing brass dot above the headline */
.page-hero__status {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-hero__status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: statusPulse 2400ms ease-in-out infinite;
}
.page-hero__status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  animation: statusRing 2400ms ease-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes statusRing {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__status-dot,
  .page-hero__status-dot::before { animation: none; }
}

/* =====================================================
   Referrers marquee — "Patients Referred From" hospital logos
   ===================================================== */
.referrers {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
  background: transparent;
  overflow: hidden;
}
.referrers__track {
  display: flex;
  width: max-content;
  animation: referrersMarquee 40s linear infinite;
}
.referrers__row {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}
.referrers__row img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) contrast(1.6) brightness(0.28);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
@keyframes referrersMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.333%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .referrers__track { animation: none; }
}

/* =====================================================
   Compact hero entrance — staggered fade/slide for copy
   ===================================================== */
.page-hero--compact .page-hero__copy {
  animation: heroCopyIn 1400ms var(--ease) both;
}
.page-hero--compact .page-hero__copy .page-hero__status,
.page-hero--compact .page-hero__copy h1,
.page-hero--compact .page-hero__copy .lede,
.page-hero--compact .page-hero__copy .page-hero__inline-meta {
  animation: heroLineIn 1100ms var(--ease) both;
}
.page-hero--compact .page-hero__copy .page-hero__status     { animation-delay: 60ms; }
.page-hero--compact .page-hero__copy h1                     { animation-delay: 180ms; }
.page-hero--compact .page-hero__copy .lede                  { animation-delay: 360ms; }
.page-hero--compact .page-hero__copy .page-hero__inline-meta { animation-delay: 540ms; }

@keyframes heroCopyIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroLineIn  {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.page-hero__inline-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: clamp(24px, 3vw, 36px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.page-hero__inline-meta .dot {
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--compact .page-hero__copy,
  .page-hero--compact .page-hero__copy .page-hero__status,
  .page-hero--compact .page-hero__copy h1,
  .page-hero--compact .page-hero__copy .lede,
  .page-hero--compact .page-hero__copy .page-hero__inline-meta { animation: none; opacity: 1; transform: none; }
}

.compact-page {
  padding: clamp(12px, 2vw, 28px) var(--pad-x) clamp(40px, 5vw, 64px);
}
.compact-page__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}
/* Single-column variant — kept for legacy use */
.compact-page__inner--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.compact-page__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}
.compact-page__info h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.012em;
}
.compact-page__info .small-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 -4px;
}

.method-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  position: relative;
  transition: padding-left 420ms var(--ease);
}
.method-row::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 480ms var(--ease);
}
.method-row:hover { padding-left: 22px; }
.method-row:hover::before { width: 14px; }
.method-row:hover .method-row__label { color: var(--accent); }
.method-row__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 320ms var(--ease);
}
.method-row__value {
  font-family: var(--serif);
  font-size: clamp(17px, 1.45vw, 20px);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.method-row__value small {
  font-size: 11px !important;
  margin-top: 2px !important;
}
.method-row__value a {
  position: relative;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 420ms var(--ease), color 240ms var(--ease);
  padding-bottom: 2px;
}
.method-row__value a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}
.method-row__value small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-muted);
  margin-top: 4px;
  text-transform: none;
}

.compact-page__extras {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.compact-page__extras .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.compact-page__map {
  position: relative;
  min-height: 460px;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.compact-page__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.78) contrast(1.04);
  transition: filter 600ms var(--ease);
}
.compact-page__map:hover iframe { filter: saturate(0.95) contrast(1.02); }

@media (max-width: 820px) {
  .compact-page__inner { grid-template-columns: 1fr; gap: 24px; }
  .compact-page__map { min-height: 360px; }
  .method-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}

/* =====================================================
   Mobile audit & touch targets
   ===================================================== */
@media (max-width: 820px) {
  :root { --pad-x: 22px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav__inner { gap: 16px; }
  .nav__brand img { height: 22px; }

  .hero { padding-top: 110px; padding-bottom: 60px; min-height: 92vh; }
  .hero .display { font-size: clamp(44px, 12vw, 70px); }
  .hero__ctas { gap: 10px; margin-bottom: 56px; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { gap: 16px; flex-direction: column; }
  .hero__meta li { width: 100%; }

  .section, .content { padding-top: 64px; padding-bottom: 64px; }
  .section__head { margin-bottom: 36px; }
  .h-display { font-size: clamp(30px, 7.2vw, 44px); }

  .btn { width: 100%; justify-content: center; height: 52px; padding: 0 20px; font-size: 12px; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }

  .data-card__cell { padding: 28px 20px; }

  /* Make all touch targets >=44px */
  a, button, summary { min-height: 44px; }
  .nav__mobile a { min-height: 56px; }

  /* Disable hover-only states on touch */
  .conditions article::after { display: none; }

  .footer { padding: 56px var(--pad-x) 24px; }
  .footer__inner { padding-bottom: 28px; }

  .scroll-progress { display: none; }
}

@media (max-width: 480px) {
  .hero .lede { font-size: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .stat-row li:nth-child(3) { border-left: none; }
  .stat-row strong { font-size: clamp(24px, 8vw, 32px); }
  .modal { padding: 16px; }
  .modal__panel { padding: 40px 24px 32px; max-height: 90vh; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
