/* ============================================================
   Sports Chiropractic Health & Rehab — "Range of Motion" world
   Deep teal clinical ground, teal/aqua goniometer geometry, smoked-glass
   panels, warm cream reading sections. Teal is the practice's real
   storefront awning color; gold stays reserved for review stars.
   Display: Archivo (wide) · Body: Work Sans
   ============================================================ */

:root {
  --ink: #0e2428;
  --ink-2: #153136;
  --ink-3: #1d4045;
  --line: rgba(190, 232, 226, 0.13);
  --line-strong: rgba(190, 232, 226, 0.24);
  --teal: #2cc5b4;
  --aqua: #62e0d0;
  --teal-deep: #0a6f64;
  --teal-ghost: rgba(44, 197, 180, 0.13);
  --gold: #f0b429;
  --text-hi: #f4faf8;
  --text-body: #cfe1dd;
  --text-dim: #94aeab;
  --bone: #f4ecdd;
  --bone-2: #e9dfcc;
  --bone-card: #fffaf0;
  --bone-ink: #12292b;
  --bone-body: #45585a;
  --bone-dim: #5c6f71;
  --glass: rgba(21, 49, 54, 0.56);
  --glass-strong: rgba(14, 36, 40, 0.80);
  --radius: 14px;
  --shell: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
html.menu-locked { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

p { max-width: 62ch; }

a { color: inherit; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--ink); padding: 10px 18px;
  font-weight: 600; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15.5px; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 999px;
  background: var(--teal); color: #062522;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 10px 30px -12px rgba(44, 197, 180, 0.55);
}
.button:hover { background: var(--aqua); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.ghost {
  background: transparent; color: var(--text-hi);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.button.ghost:hover { border-color: var(--teal); color: var(--aqua); background: var(--teal-ghost); }
.button.on-bone { box-shadow: 0 12px 28px -14px rgba(10, 111, 100, 0.6); }
.button.ghost.on-bone { color: var(--bone-ink); border-color: rgba(18, 41, 43, 0.25); }
.button.ghost.on-bone:hover { border-color: var(--teal-deep); color: var(--teal-deep); background: rgba(10, 111, 100, 0.08); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), backdrop-filter 0.45s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy {
  font-family: var(--font-display);
  font-weight: 800; font-size: 15px; line-height: 1.2;
  color: var(--text-hi); letter-spacing: 0.01em;
}
.brand-copy small {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 11px; color: var(--text-dim); letter-spacing: 0.12em;
  text-transform: uppercase; margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.button) {
  font-size: 14.5px; font-weight: 500; color: var(--text-body);
  text-decoration: none; position: relative; padding: 6px 0;
  transition: color 0.3s var(--ease-out);
}
.nav-links > a:not(.button)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out); border-radius: 2px;
}
.nav-links > a:not(.button):hover { color: var(--text-hi); }
.nav-links > a:not(.button):hover::after,
.nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links > a[aria-current="page"] { color: var(--text-hi); }
.nav-links .button { padding: 12px 22px; font-size: 14px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--text-hi); text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.nav-phone:hover { color: var(--aqua); }
.nav-phone svg { width: 15px; height: 15px; }

.menu-button {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--text-hi); border-radius: 10px; padding: 10px 12px; cursor: pointer;
}
.menu-button .bars { display: block; width: 20px; height: 14px; position: relative; }
.menu-button .bars::before, .menu-button .bars::after, .menu-button .bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.menu-button .bars::before { top: 0; }
.menu-button .bars span { top: 6px; }
.menu-button .bars::after { top: 12px; }
.menu-button[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .bars span { opacity: 0; }
.menu-button[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 150px 0 120px;
  overflow: clip;
  background:
    radial-gradient(1100px 700px at 82% 18%, rgba(44, 197, 180, 0.15), transparent 60%),
    radial-gradient(900px 600px at -10% 95%, rgba(10, 111, 100, 0.13), transparent 55%),
    var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 2s var(--ease-out);
  filter: saturate(0.8) contrast(1.05) brightness(0.85);
}
.hero-media video.is-active { opacity: 0.45; }
.hero-media-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 36, 40, 0.94) 8%, rgba(14, 36, 40, 0.78) 46%, rgba(14, 36, 40, 0.5) 100%),
    linear-gradient(to top, rgba(14, 36, 40, 1) 0%, rgba(14, 36, 40, 0) 26%),
    linear-gradient(to bottom, rgba(14, 36, 40, 0.85) 0%, rgba(14, 36, 40, 0) 22%);
}
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  font-stretch: 112%;
  margin: 0 0 26px;
}
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero .lead {
  font-size: 18.5px; line-height: 1.7; color: var(--text-body);
  max-width: 54ch; margin-bottom: 36px;
}
.hero .lead strong { color: var(--text-hi); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-rating {
  margin-top: 46px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.hero-rating:hover { border-color: var(--teal); transform: translateY(-2px); }
.g-mark { width: 26px; height: 26px; flex: none; }
.hero-rating .stars { display: inline-flex; gap: 2px; }
.hero-rating .stars svg { width: 15px; height: 15px; fill: var(--gold); }
.hero-rating b { font-family: var(--font-display); font-size: 17px; color: var(--text-hi); font-weight: 800; }
.hero-rating span { font-size: 13.5px; color: var(--text-dim); }

/* hero arc figure */
.hero-figure { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.hero-figure .vitruvian {
  position: absolute; inset: 12%;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(44, 197, 180, 0.17), rgba(14, 36, 40, 0) 68%);
}
.hero-figure .vitruvian img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0.55;
}
.arc-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc-svg .ring-ticks { transform-origin: 50% 50%; animation: ringSpin 90s linear infinite; }
.arc-svg .arc-sweep {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: arcDraw 2.2s var(--ease-out) 0.5s forwards;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes arcDraw { to { stroke-dashoffset: 320; } }

/* hero entrance */
.rise { opacity: 0; transform: translateY(28px); animation: riseIn 1s var(--ease-out) forwards; }
.rise.d1 { animation-delay: 0.1s; }
.rise.d2 { animation-delay: 0.24s; }
.rise.d3 { animation-delay: 0.38s; }
.rise.d4 { animation-delay: 0.52s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- conditions marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: var(--ink-2);
  display: flex; white-space: nowrap;
}
.marquee-row {
  display: inline-flex; align-items: center; gap: 34px;
  padding-right: 34px;
  animation: marquee 46s linear infinite;
  flex: none;
}
.marquee:hover .marquee-row,
.marquee:focus-within .marquee-row,
.marquee.is-paused .marquee-row { animation-play-state: paused; }
.marquee.is-static { white-space: normal; }
.marquee.is-static .marquee-row { animation: none; flex-wrap: wrap; justify-content: center; }
.marquee-row span {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; color: var(--text-dim); text-transform: uppercase;
}
.marquee-row i {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--teal); opacity: 0.55;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.bone { background: var(--bone); color: var(--bone-body); }
.section.bone h2, .section.bone h3 { color: var(--bone-ink); }
.section.raised { background: var(--ink-2); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 18px; font-stretch: 106%; }
.section-head p { font-size: 17.5px; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- services carousel ---------- */
/* The bone section carries a bleeding goniometer plate — the instrument the
   treatments are measured against, not decoration. */
.section.bone.svc-section { position: relative; overflow: clip; }
.svc-plate {
  position: absolute; top: 50%; right: -320px; transform: translateY(-50%);
  width: 940px; height: 940px; pointer-events: none; opacity: 0.85;
}
.svc-plate svg { width: 100%; height: 100%; display: block; }
.svc-plate .plate-ticks { transform-origin: 50% 50%; animation: ringSpin 140s linear infinite reverse; }

.svc-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 52px; align-items: stretch; }
.svc-intro { position: sticky; top: 120px; display: flex; flex-direction: column; }
.svc-intro h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 18px; font-stretch: 106%; }
.svc-intro p { margin-bottom: 26px; }
.svc-intro .button { align-self: flex-start; }
.svc-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.svc-controls button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(18, 41, 43, 0.22); background: transparent; color: var(--bone-ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.3s;
}
.svc-controls button:hover:not(:disabled) { background: var(--bone-ink); color: var(--bone); border-color: var(--bone-ink); }
.svc-controls button:disabled { opacity: 0.35; cursor: default; }
.svc-controls svg { width: 18px; height: 18px; }
.svc-progress { flex: 1; height: 2px; background: rgba(18, 41, 43, 0.14); border-radius: 2px; overflow: hidden; }
.svc-progress i { display: block; height: 100%; width: 100%; background: var(--teal-deep); transform-origin: left; transform: scaleX(0.06); transition: transform 0.3s var(--ease-out); }

.svc-track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 6px 6px 26px; margin: -6px;
  cursor: grab;
}
.svc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.svc-track.is-dragging .svc-slide { pointer-events: none; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-slide {
  scroll-snap-align: start; flex: none;
  position: relative; overflow: hidden;
  width: calc((100% - 20px) / 2);
  background:
    radial-gradient(420px 240px at 88% -8%, rgba(10, 111, 100, 0.10), transparent 70%),
    var(--bone-card);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  box-shadow: 0 18px 40px -22px rgba(18, 41, 43, 0.35);
  display: flex; flex-direction: column; min-height: 430px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.svc-slide::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 111, 100, 0);
  transition: box-shadow 0.5s var(--ease-out); pointer-events: none;
}
.svc-slide:hover { transform: translateY(-8px); box-shadow: 0 30px 56px -24px rgba(18, 41, 43, 0.45); }
.svc-slide:hover::after { box-shadow: inset 0 0 0 1px rgba(10, 111, 100, 0.38); }

/* the dial: each treatment sits at its own angle on the goniometer */
.svc-dial { display: block; width: 132px; height: 132px; margin: 0 0 26px -6px; }
.svc-dial svg { width: 100%; height: 100%; display: block; }
.svc-dial .dial-sweep {
  stroke-dasharray: 360; stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.is-in .svc-dial .dial-sweep { stroke-dashoffset: var(--dial-rest, 250); }
.svc-slide:hover .dial-sweep { stroke-dashoffset: 96; }
.svc-dial .dial-needle {
  transform-origin: 60px 60px;
  transform: rotate(var(--dial-angle, 0deg));
  transition: transform 0.9s var(--ease-out);
}
.svc-slide:hover .dial-needle { transform: rotate(calc(var(--dial-angle, 0deg) + 26deg)); }

.svc-slide h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; }
.svc-slide p { font-size: 15px; line-height: 1.6; color: var(--bone-body); }
.svc-slide .svc-note {
  margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--bone-dim);
  border-top: 1px solid rgba(18, 41, 43, 0.1);
}

/* ---------- doctor ---------- */
.doctor { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 70px; align-items: center; }
.portrait-frame { position: relative; max-width: 440px; margin-inline: auto; }
.portrait-frame::before {
  content: ""; position: absolute; inset: -26px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 26px);
  pointer-events: none;
}
.portrait-frame img {
  border-radius: var(--radius); width: 100%; height: auto;
  aspect-ratio: 6 / 7; object-fit: cover; object-position: 50% 8%;
  filter: saturate(0.94) contrast(1.03);
}
.portrait-frame .arc-badge {
  position: absolute; right: -34px; bottom: -34px; width: 120px; height: 120px;
}
.doctor-copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); margin-bottom: 8px; font-stretch: 106%; }
.doctor-copy .role { font-size: 15px; color: var(--aqua); font-weight: 600; margin-bottom: 26px; letter-spacing: 0.02em; }
.doctor-copy p { margin-bottom: 18px; font-size: 16.5px; }
.doctor-copy p strong { color: var(--text-hi); font-weight: 600; }
.cred-list { list-style: none; margin: 30px 0 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cred-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--text-body);
}
.cred-list li b { font-family: var(--font-display); color: var(--text-hi); font-weight: 700; flex: none; width: 150px; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- reviews ---------- */
.reviews-wrap { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 64px; align-items: center; }
.reviews-score .g-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.reviews-score .g-lockup .g-mark { width: 34px; height: 34px; }
.reviews-score .g-lockup span { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.reviews-score .big {
  font-family: var(--font-display); font-weight: 900; font-stretch: 115%;
  font-size: clamp(4.6rem, 9vw, 7rem); line-height: 1; color: var(--text-hi);
  letter-spacing: -0.03em;
}
.reviews-score .stars-row { display: flex; gap: 6px; margin: 18px 0 14px; }
.reviews-score .stars-row svg { width: 30px; height: 30px; fill: var(--gold); opacity: 0; transform: scale(0.4); }
.is-in .stars-row svg { animation: starPop 0.5s var(--ease-out) forwards; }
.is-in .stars-row svg:nth-child(1) { animation-delay: 0.15s; }
.is-in .stars-row svg:nth-child(2) { animation-delay: 0.28s; }
.is-in .stars-row svg:nth-child(3) { animation-delay: 0.41s; }
.is-in .stars-row svg:nth-child(4) { animation-delay: 0.54s; }
.is-in .stars-row svg:nth-child(5) { animation-delay: 0.67s; }
@keyframes starPop { 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
.reviews-score p { font-size: 15.5px; margin-bottom: 26px; }
.reviews-score .all-link {
  color: var(--aqua); font-weight: 600; font-size: 15px;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.reviews-score .all-link:hover { border-color: var(--aqua); }

.rev-stage { position: relative; min-height: 320px; }
.rev-card {
  position: absolute; inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 42px;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.rev-card.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.rev-card .rev-stars { display: flex; gap: 3px; }
.rev-card .rev-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.rev-card blockquote {
  font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.66; color: var(--text-hi);
  font-weight: 400; max-width: 58ch;
}
.rev-card footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.rev-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--teal-ghost); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--aqua);
}
.rev-card footer b { display: block; color: var(--text-hi); font-size: 14.5px; font-weight: 600; }
.rev-card footer span { font-size: 13px; color: var(--text-dim); }
.rev-nav { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.rev-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--line-strong); transition: background 0.3s, transform 0.3s var(--ease-out);
}
.rev-dot.is-active { background: var(--teal); transform: scale(1.35); }

/* ---------- first visit steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(18, 41, 43, 0.16); }
.step {
  padding: 44px 36px 10px; border-left: 1px solid rgba(18, 41, 43, 0.16);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step .step-arc { display: block; width: 58px; height: 58px; margin-bottom: 24px; }
.step h3 { font-size: 22px; margin-bottom: 12px; font-weight: 700; }
.step p { font-size: 15.5px; }

/* ---------- locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.loc-card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.loc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.loc-photo { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.loc-photo iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.92) contrast(1.02); }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.loc-card:hover .loc-photo img { transform: scale(1.045); }
.loc-photo.map-fallback {
  background:
    radial-gradient(420px 200px at 70% 30%, rgba(44, 197, 180, 0.22), transparent 70%),
    var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.loc-photo.map-fallback svg { width: 130px; height: 130px; }
.loc-body { padding: 32px 34px 34px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.loc-body h3 { font-size: 24px; font-weight: 800; font-stretch: 106%; }
.loc-body address { font-style: normal; font-size: 15.5px; color: var(--text-body); line-height: 1.6; }
.loc-body .loc-note { font-size: 13.5px; color: var(--text-dim); }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-body); }
.hours td:last-child { text-align: right; color: var(--text-hi); }
.hours tr:last-child td { border-bottom: 0; }
.loc-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* ---------- closing CTA ---------- */
.close-cta {
  position: relative; overflow: clip; text-align: center;
  padding: 150px 0;
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(44, 197, 180, 0.22), transparent 65%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.close-cta h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 20px; font-stretch: 110%; }
.close-cta p { margin: 0 auto 40px; font-size: 17.5px; }
.close-cta .hero-ctas { justify-content: center; }

/* ---------- SMS consent disclosure (A2P — always visible, never hidden) ---------- */
.sms-disclosure {
  padding: 64px 0 72px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.sms-disclosure h2 {
  font-size: 24px; font-stretch: 106%; margin-bottom: 18px;
}
.sms-disclosure p { font-size: 14.5px; line-height: 1.7; color: var(--text-body); margin-bottom: 14px; max-width: 78ch; }
.sms-disclosure p strong { color: var(--text-hi); font-weight: 600; }
.sms-disclosure ul { list-style: none; margin: 0 0 16px; display: grid; gap: 8px; }
.sms-disclosure li {
  font-size: 14.5px; color: var(--text-body); line-height: 1.6;
  padding-left: 18px; position: relative; max-width: 78ch;
}
.sms-disclosure li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}
.sms-disclosure li strong { color: var(--text-hi); font-weight: 600; }
.sms-disclosure a { color: var(--aqua); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 36px; margin-bottom: 54px; }
.footer-brand .brand-copy { font-size: 16px; }
.footer-brand p { font-size: 14.5px; color: var(--text-dim); margin-top: 14px; max-width: 30ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--text-body); text-decoration: none; font-size: 14.5px; transition: color 0.3s; }
.footer-col a:hover { color: var(--aqua); }
.footer-col p { font-size: 14.5px; color: var(--text-body); line-height: 1.7; }
.copyright {
  border-top: 1px solid var(--line); padding-top: 30px;
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ---------- popup (smoked glass) ---------- */
.popup[hidden] { display: none; }
.popup {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10, 28, 31, 0.55);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), backdrop-filter 0.5s var(--ease-out), -webkit-backdrop-filter 0.5s var(--ease-out);
}
.popup.is-open {
  opacity: 1;
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}
.popup-card {
  position: relative; width: min(520px, 100%);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 52px 48px 44px;
  transform: translateY(26px) scale(0.96);
  transition: transform 0.5s var(--ease-out);
  text-align: left;
}
.popup.is-open .popup-card { transform: none; }
.popup-card .popup-arc { display: block; width: 62px; height: 62px; margin-bottom: 24px; }
.popup-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; font-stretch: 106%; }
.popup-card p { font-size: 16px; margin-bottom: 30px; }
.popup-card .hero-ctas { gap: 12px; }
.popup-card { max-height: calc(100svh - 48px); overflow-y: auto; }
.popup-form { display: grid; gap: 16px; margin-top: 22px; }
.popup-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.popup-form .consent { font-size: 11.5px; }
.popup-form .button { width: 100%; margin-top: 4px; }
.popup-form .form-legal { margin: 0; }
.popup-success { text-align: left; }
.popup-success h2 { margin-bottom: 14px; }
.popup-success p { margin-bottom: 26px; }
.popup-card .popup-note { font-size: 13px; color: var(--text-dim); margin: 22px 0 0; }
.popup-card .popup-disclaimer { font-size: 10.5px; line-height: 1.55; letter-spacing: 0.01em; max-width: none; }
.popup-offer {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--teal-ghost);
  font-size: 14.5px; margin-bottom: 18px;
}
.popup-offer span { color: var(--text-body); }
.popup-offer s { color: var(--text-dim); }
.popup-offer b { font-family: var(--font-display); font-weight: 800; color: var(--aqua); font-size: 16.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.fl-disclaimer { font-size: 11.5px; line-height: 1.55; color: var(--text-dim); margin-bottom: 24px; max-width: 60ch; }
.popup-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.popup-close:hover { color: var(--text-hi); border-color: var(--line-strong); transform: rotate(90deg); }
.popup-close svg { width: 16px; height: 16px; }

/* ---------- sticky mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar .button { flex: 1; padding: 14px 10px; font-size: 14.5px; }

/* ---------- interior page hero ---------- */
.page-hero {
  position: relative; overflow: clip;
  padding: 190px 0 90px;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(44, 197, 180, 0.13), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 20px; font-stretch: 110%; }
.page-hero .lead { font-size: 18px; max-width: 60ch; }
.page-hero { min-height: 460px; display: flex; align-items: center; }
.page-hero .hero-arc {
  position: absolute; top: 50%; right: -120px;
  transform: translateY(-50%) rotate(var(--arc-spin, 0deg));
  width: 560px; height: 560px; pointer-events: none;
  will-change: transform;
}
.page-hero .hero-arc .ring-ticks { transform-origin: 50% 50%; animation: ringSpin 90s linear infinite; }
.page-hero .hero-arc .arc-sweep {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: arcDraw 2.2s var(--ease-out) 0.4s forwards;
}
/* home hero figure also parallaxes on scroll */
.hero-figure { --arc-spin: 0deg; }
.hero-figure .arc-svg { transform: rotate(var(--arc-spin, 0deg)); will-change: transform; }
@media (max-width: 1020px) {
  .page-hero .hero-arc { width: 400px; height: 400px; right: -130px; opacity: 0.75; }
}
@media (max-width: 780px) {
  .page-hero { min-height: 0; display: block; }
  .page-hero .hero-arc { width: 280px; height: 280px; right: -110px; opacity: 0.55; }
}

/* conditions grid (services page) */
.cond-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cond-grid span {
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(18, 41, 43, 0.2); color: var(--bone-ink);
  font-size: 14.5px; font-weight: 500; background: var(--bone-card);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.cond-grid span:hover { border-color: var(--teal-deep); transform: translateY(-2px); }

/* long-form legal / prose */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; font-size: 15.5px; }
.prose a { color: var(--aqua); }
.section.bone .prose a { color: var(--teal-deep); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-aside h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 18px; font-stretch: 106%; }
.contact-aside p { margin-bottom: 24px; }
.contact-aside .big-phone {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-hi); text-decoration: none; letter-spacing: -0.01em;
  border-bottom: 2px solid var(--teal); padding-bottom: 4px;
  transition: color 0.3s;
}
.contact-aside .big-phone:hover { color: var(--aqua); }
.contact-aside .contact-locs { margin-top: 44px; display: grid; gap: 26px; }
.contact-aside .contact-locs b { font-family: var(--font-display); color: var(--text-hi); display: block; margin-bottom: 6px; font-size: 15px; }
.contact-aside .contact-locs address { font-style: normal; font-size: 14.5px; line-height: 1.6; }

.lead-form {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(44, 197, 180, 0.24);
  border-radius: 18px; padding: 44px 42px;
  display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-hi); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  background: rgba(14, 36, 40, 0.6); border: 1px solid var(--line-strong);
  color: var(--text-hi); border-radius: 10px; padding: 13px 15px;
  font: inherit; font-size: 15px;
  transition: border-color 0.3s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 197, 180, 0.2);
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.consent input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.form-status { font-size: 14px; color: var(--aqua); min-height: 1.2em; }
.form-legal { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.form-legal a { color: var(--aqua); }

/* about page extras */
.about-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 70px; align-items: start; }
.about-photos figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0; position: relative; }
.about-photos img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.about-photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px; font-size: 13px; color: var(--text-hi);
  background: linear-gradient(transparent, rgba(10, 28, 31, 0.82));
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-figure { max-width: 400px; order: -1; margin-bottom: -30px; }
  .svc-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .svc-layout > div { min-width: 0; }
  .svc-intro { position: static; }
  .doctor { grid-template-columns: 1fr; gap: 48px; }
  .reviews-wrap { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photos { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 90px; min-height: 0; }
  .hero-figure { max-width: 300px; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(26px) saturate(1.2);
    backdrop-filter: blur(26px) saturate(1.2);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; z-index: 99; }
  .nav-links > a:not(.button) { font-size: 22px; font-family: var(--font-display); font-weight: 700; color: var(--text-hi); }
  .nav-phone { display: none; }
  .menu-button { display: inline-flex; }
  .svc-slide { width: 100%; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-left: 0; border-top: 1px solid rgba(18, 41, 43, 0.16); padding: 36px 0 10px; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .action-bar { display: flex; }
  body { padding-bottom: 0; }
  .rev-card { padding: 30px 26px; }
  .rev-stage { min-height: 380px; }
  .popup-card { padding: 44px 30px 36px; }
  .portrait-frame .arc-badge { right: -10px; bottom: -20px; width: 90px; height: 90px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .arc-svg .ring-ticks, .arc-svg .arc-sweep, .marquee-row { animation: none !important; }
  .arc-svg .arc-sweep { stroke-dashoffset: 320; }
  .is-in .stars-row svg { animation: none; opacity: 1; transform: none; }
  .stars-row svg { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
