/* Keystone Chiropractic · styles */

@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --mist: #F3F7F6;
  --sea: #E3EEEC;
  --ink: #082F31;
  --ink-2: #0C3D3F;
  --ink-3: #052224;
  --slate: #46605F;
  --teal: #0E6B68;
  --teal-2: #3FA79F;
  --coral: #FF6B4A;
  --coral-deep: #C9381C;
  --mint: #9FE3D6;
  --on-ink: #A9C4C2;
  --line: #CFE0DD;
  --white: #FFFFFF;
  --head: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1260px;
  --gutter: clamp(20px, 4.5vw, 52px);
  --section: clamp(80px, 10vw, 140px);
  --r: 12px;
  --r-lg: 24px;
  --shadow: 0 30px 60px -30px rgba(8, 47, 49, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Page transitions between pages (supported browsers; others just load normally) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
h3 { font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .65); }
.section--sea { background: var(--sea); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--slate); }
.center { text-align: center; margin-top: 32px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--coral); transform: rotate(45deg); }
.eyebrow--light { color: var(--mint); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); text-wrap: balance; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 36em; }
.hl { font-style: normal; color: var(--coral); }

/* Buttons */
.btn { white-space: nowrap; --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .3s; }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--coral:hover { box-shadow: 0 14px 30px -12px rgba(255, 107, 74, .75); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: #0B5754; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: rgba(159, 227, 214, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--mint); background: rgba(159, 227, 214, .08); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }
.btn--full { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* Arch shapes (the brand's signature frame) */
.arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; }
.arch-soft { border-radius: 220px 220px var(--r-lg) var(--r-lg); overflow: hidden; }
.arch img, .arch-soft img { width: 100%; height: 100%; object-fit: cover; }
.parallax { height: 100%; }
.parallax img { height: 115%; margin-top: -7.5%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; background: rgba(243, 247, 246, .9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 12px 30px -22px rgba(8, 47, 49, .5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand img { width: clamp(180px, 15vw, 214px); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 2px; }
.nav__list a { position: relative; display: block; white-space: nowrap; padding: 10px 12px; font-weight: 500; text-decoration: none; border-radius: 999px; transition: background-color .2s; }
.nav__list a:hover { background: var(--sea); }
.nav__list a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.nav__list a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__phone .icon { color: var(--teal); }
.menu-toggle { display: none; }

/* ---------- Home hero with the aligning spine ---------- */
.hero { position: relative; height: 210vh; background: var(--ink); color: var(--white); }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 520px at 72% 52%, rgba(63, 167, 159, .28), rgba(63, 167, 159, 0) 70%), radial-gradient(500px 400px at 10% 100%, rgba(255, 107, 74, .14), rgba(255, 107, 74, 0) 70%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; height: 100%; padding-top: 80px; padding-bottom: 24px; }
.hero__title { font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: .95; letter-spacing: -.04em; margin-bottom: 26px; }
.hero__lede { font-size: 1.22rem; color: #CFE2DF; max-width: 30em; margin-bottom: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--on-ink); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--mint); }
.hero__spine { position: relative; height: min(calc(100svh - 150px), 720px); display: grid; place-items: center; }
.spine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spine__axis { stroke: var(--mint); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: 0; }
.vert__body { fill: rgba(159, 227, 214, .1); stroke: var(--mint); stroke-width: 1.6; }
.vert__wing, .vert__spinous { stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.vert__sacrum { fill: rgba(159, 227, 214, .1); stroke: var(--mint); stroke-width: 1.6; }
.disc { fill: var(--coral); }
.meter { position: absolute; right: 0; bottom: 6%; display: grid; gap: 6px; width: 170px; padding: 16px 18px; border-radius: 18px; background: rgba(5, 34, 36, .7); border: 1px solid rgba(159, 227, 214, .2); backdrop-filter: blur(8px); }
.meter__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink); }
.meter__value { font: 800 2.2rem/1 var(--head); color: var(--white); }
.meter__bar { height: 6px; border-radius: 3px; background: rgba(159, 227, 214, .18); overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 62%; border-radius: 3px; background: linear-gradient(90deg, var(--coral), var(--mint)); }
.meter__hint { font-size: .82rem; color: var(--on-ink); }
.hero.is-aligned .meter__hint { color: var(--mint); }
.hero__in { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; }
.hero__in:nth-of-type(1) { animation-delay: .1s; }
.hero__lede.hero__in { animation-delay: .55s; }
.actions.hero__in { animation-delay: .7s; }
.hero__facts.hero__in { animation-delay: .85s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Highlights strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__list li { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; }
.strip__list li + li { border-left: 1px solid var(--line); }
.strip .icon { width: 32px; height: 32px; color: var(--teal); }
.strip strong { display: block; font-family: var(--head); font-size: 1.08rem; line-height: 1.25; }
.strip span span, .strip li > span { color: var(--slate); font-size: .95rem; line-height: 1.4; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro__media { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.intro .h2 { margin-bottom: 22px; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.counters strong { display: block; font: 800 clamp(2.6rem, 4.5vw, 3.6rem)/1 var(--head); color: var(--teal); letter-spacing: -.03em; }
.counters span span, .counters li > span { color: var(--slate); font-size: .95rem; }

/* Section heads */
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }
.section-head--row .h2 { max-width: 16em; }
.section-head--center { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }

/* ---------- Body map ---------- */
.bodymap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.bodymap__figure { position: relative; max-width: 400px; width: 100%; margin-inline: auto; }
.figure__body { fill: var(--white); stroke: #B8D3CF; stroke-width: 2; }
.section--sea .figure__body { fill: var(--mist); }
.figure__spine rect { fill: var(--line); }
.spot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--coral); box-shadow: 0 0 0 6px rgba(255, 107, 74, .2); transition: transform .3s var(--ease-out), background-color .3s, box-shadow .3s; }
.spot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coral); animation: ping 2.4s var(--ease) infinite; }
.spot:hover { transform: scale(1.15); }
.spot.is-active { background: var(--ink); box-shadow: 0 0 0 6px rgba(8, 47, 49, .15), 0 0 0 12px rgba(255, 107, 74, .35); transform: scale(1.12); }
.spot.is-active::after { border-color: var(--ink); }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.bodymap__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bodymap__panel { position: relative; min-height: 330px; }
.area { padding: clamp(24px, 3.5vw, 38px); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.area.is-swap { animation: swap .5s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }
.area h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.area p { color: var(--slate); margin-bottom: 18px; }
.ticks { display: grid; gap: 9px; margin-bottom: 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--coral-deep); margin-top: .15em; stroke-width: 2.4; }
.ticks--big li { font-size: 1.1rem; }
.bodymap__fine { margin-top: 14px; color: var(--slate); font-size: .88rem; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; transition: transform .45s var(--ease-out), box-shadow .45s; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile:hover img { transform: scale(1.06); }
.tile--big { grid-row: span 2; color: var(--white); }
.tile--big::after, .tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 47, 49, 0) 40%, rgba(8, 47, 49, .85)); }
.tile--photo { color: var(--white); }
.tile__body { position: relative; z-index: 1; display: grid; gap: 10px; }
.tile__k { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.tile strong { font: 800 clamp(1.3rem, 2vw, 1.75rem)/1.12 var(--head); letter-spacing: -.02em; }
.tile--big strong { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 14em; }
.tile--coral { background: var(--coral); color: var(--ink); }
.tile--ink { background: var(--ink); color: var(--white); }
.tile--ink .tile__k { color: var(--mint); }
.tile__ico { position: absolute; top: 24px; left: 24px; width: 46px; height: 46px; }

/* ---------- Pinned first visit ---------- */
.visit { background: var(--ink); color: var(--white); position: relative; }
.visit__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding-block: 90px; overflow: hidden; }
.visit__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.visit .h2 { max-width: 14em; }
.visit__progress { width: 220px; height: 4px; border-radius: 2px; background: rgba(159, 227, 214, .2); overflow: hidden; flex: none; }
.visit__progress span { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 2px; }
.visit__track { display: flex; gap: 24px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; }
.vstep { flex: none; width: min(460px, 78vw); background: var(--ink-2); border: 1px solid rgba(159, 227, 214, .14); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.vstep__media { aspect-ratio: 16 / 10; overflow: hidden; }
.vstep__media img { width: 100%; height: 100%; object-fit: cover; }
.vstep__body { padding: 26px 28px 30px; }
.vstep__time { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.vstep__word { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 10px; }
.vstep__body p:last-child { color: #CFE2DF; }
.vstep--cta { justify-content: center; gap: 16px; padding: 40px; background: var(--coral); color: var(--ink); border: 0; }
.vstep--cta h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.vstep--cta .btn--coral { background: var(--ink); color: var(--white); align-self: flex-start; }

/* Membership */
.member { padding-block: calc(var(--section) * .6); }
.member__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(30px, 5vw, 56px); border-radius: var(--r-lg); background: var(--coral); position: relative; overflow: hidden; }
.member__inner::after { content: ""; position: absolute; right: -60px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(8, 47, 49, .08); }
.member .eyebrow { color: var(--ink); }
.member .eyebrow::before { background: var(--ink); }
.member .h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 10px; }
.member .lede { color: rgba(8, 47, 49, .8); }

/* Review ribbon */
.ribbon { display: flex; overflow: hidden; gap: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon__track { display: flex; gap: 20px; flex: none; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 20px)); } }
.rcard { width: 360px; flex: none; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rcard p { margin: 12px 0 14px; font-size: 1.04rem; }
.rcard__who { color: var(--slate); margin: 0 !important; font-size: .95rem !important; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: #F2A33A; }

/* Doctor */
.doc__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.doc__media { aspect-ratio: 4 / 5; box-shadow: var(--shadow); max-width: 420px; }
.doc__quote { font: 800 clamp(1.9rem, 3.6vw, 3rem)/1.1 var(--head); letter-spacing: -.025em; margin-bottom: 22px; }
.doc__name { margin-bottom: 14px; color: var(--slate); }
.doc__name strong { display: block; color: var(--ink); font-size: 1.1rem; }
.doc .lede { margin-bottom: 20px; }

/* CTA band */
.cta { background: var(--ink); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta__inner { position: relative; padding-block: clamp(80px, 10vw, 130px); display: grid; justify-items: center; gap: 20px; }
.cta__arch { width: 120px; margin-bottom: 6px; }
.cta__arch path { fill: var(--teal-2); }
.cta__arch .k { fill: var(--coral); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14em; }
.cta p { color: var(--on-ink); font-size: 1.15rem; max-width: 34em; }

/* ---------- Inner page hero ---------- */
.phero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 420px at 80% 60%, rgba(63, 167, 159, .25), transparent 70%); }
.phero__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 80px); align-items: end; padding-block: clamp(56px, 8vw, 100px) 0; }
.phero__copy { padding-bottom: clamp(56px, 8vw, 100px); }
.phero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); margin-bottom: 20px; max-width: 12em; }
.phero__lede { font-size: 1.18rem; color: #CFE2DF; max-width: 32em; margin-bottom: 30px; }
.phero__media { aspect-ratio: 4 / 4.4; max-height: 520px; width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story .h2 { margin-bottom: 22px; }
.story p { color: var(--slate); font-size: 1.1rem; margin-bottom: 16px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.values li { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.values li:nth-child(2) { transform: translateY(32px); }
.values li:nth-child(4) { transform: translateY(32px); }
.values .icon { width: 36px; height: 36px; color: var(--coral-deep); margin-bottom: 14px; }
.values h3 { font-size: 1.25rem; margin-bottom: 6px; }
.values p { color: var(--slate); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.person figure { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.person h3 { font-size: 1.25rem; }
.person__role { color: var(--coral-deep); font-weight: 700; font-size: .92rem; margin: 4px 0 8px; }
.person p:last-child { color: var(--slate); }
.gallery2 { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.gallery2 figure { aspect-ratio: 3 / 4; }
.gallery2 figure:last-child { margin-top: 90px; }
.gallery2__text { text-align: center; }
.gallery2__text .h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.gallery2__text .lede { margin-inline: auto; }

/* Services */
.svcs { display: grid; gap: clamp(70px, 9vw, 120px); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.svc--flip .svc__media { order: 2; }
.svc__media { aspect-ratio: 4 / 4.2; box-shadow: var(--shadow); }
.svc__k { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--sea); color: var(--teal); margin-bottom: 20px; }
.svc__k .icon { width: 30px; height: 30px; }
.svc .h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 3rem); }
.svc .lede { margin-bottom: 20px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .h2 { margin-bottom: 14px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; font: 700 1.15rem/1.3 var(--head); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sea); transition: background-color .3s, transform .4s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; background: var(--ink); }
.plus::after { transform: rotate(90deg); transition: transform .3s; }
.faq details[open] .plus { background: var(--coral); transform: rotate(180deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq__a { padding: 0 24px 22px; color: var(--slate); }

/* New patients */
.bring { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bring .h2 { margin-bottom: 24px; }
.bring__card { padding: 34px; border-radius: var(--r-lg); background: var(--ink); color: var(--white); }
.bring__card .icon { width: 40px; height: 40px; color: var(--coral); margin-bottom: 14px; }
.bring__card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bring__card p { color: var(--on-ink); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.price__name { font-weight: 700; }
.price__amt { font: 800 3rem/1 var(--head); letter-spacing: -.03em; color: var(--teal); }
.price__amt span { font-size: 1rem; color: var(--slate); font-family: var(--body); font-weight: 500; letter-spacing: 0; }
.price > p:last-child, .price > p:nth-child(3) { color: var(--slate); }
.price--feature { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-14px); box-shadow: var(--shadow); }
.price--feature .price__amt { color: var(--coral); }
.price--feature p { color: var(--on-ink) !important; }
.price--feature .price__name { color: var(--white) !important; }
.price--feature .btn { margin-top: auto; align-self: flex-start; }
.price__badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--coral); color: var(--ink) !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Reviews page */
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rg { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; }
.rg blockquote p { font-size: 1.08rem; }
.rg--big { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--white); justify-content: center; padding: clamp(30px, 4vw, 50px); }
.rg--big blockquote p { font: 800 clamp(1.6rem, 2.8vw, 2.3rem)/1.18 var(--head); letter-spacing: -.02em; }
.rg__who { display: flex; flex-direction: column; color: var(--slate); }
.rg--big .rg__who { color: var(--on-ink); }

/* Contact */
.contact-hero { padding-block: 64px 10px; }
.contact-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin-bottom: 14px; max-width: 13em; }
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.seg, .days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend, .days legend { width: 100%; font: 700 1.1rem/1.3 var(--head); margin-bottom: 10px; padding: 0; }
.seg label, .days label { position: relative; cursor: pointer; }
.seg input, .days input { position: absolute; opacity: 0; }
.seg span, .days span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; transition: all .2s; }
.days span { min-width: 64px; justify-content: center; padding: 0 14px; }
.seg input:checked + span, .days input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seg input:focus-visible + span, .days input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }
.optional { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; background: var(--mist); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2346605F' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(14, 107, 104, .14); }
.field [aria-invalid="true"] { border-color: var(--coral-deep); }
.error { color: var(--coral-deep); font-size: .92rem; font-weight: 700; }
.form__fine { color: var(--slate); font-size: .9rem; text-align: center; }
.form-success { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 30px 10px; }
.form-success h2 { font-size: 2.2rem; }
.form-success a { color: var(--teal); font-weight: 700; }
.form-success:focus { outline: none; }
.success-arch { width: 110px; }
.success-arch path { fill: var(--teal-2); }
.success-arch .k { fill: var(--coral); transform-box: fill-box; transform-origin: center; animation: drop .9s .2s var(--ease-out) both; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } }
.contact-info { display: grid; gap: 18px; }
.info { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.info h2 { font-size: 1.3rem; margin-bottom: 12px; }
.info p { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); margin-bottom: 8px; }
.info p .icon { color: var(--teal); margin-top: 3px; }
.info--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.info--ink > .icon { width: 38px; height: 38px; color: var(--coral); margin-bottom: 12px; }
.info--ink p { color: var(--on-ink); }
.info__phone { display: inline-block; margin-top: 6px; font: 800 1.7rem/1 var(--head); text-decoration: none; color: var(--white); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--slate); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours tr.is-today th::after { content: "Today"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--ink-3); color: var(--on-ink); padding: 80px 0 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .btn { color: var(--ink); }
.site-footer .btn:hover { text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(169, 196, 194, .2); }
.footer__brand img { width: 210px; margin-bottom: 18px; }
.footer__brand p { color: var(--white); font: 700 1.3rem/1.3 var(--head); margin-bottom: 20px; }
.footer__h { font: 700 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.footer__links li, .site-footer p { margin-bottom: 10px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 30px; padding-top: 24px; font-size: .9rem; }
.footer__base p { margin: 0; }
.credit a { text-decoration: underline !important; text-underline-offset: 3px; }
.mobile-bar { display: none; }

/* ---------- Scroll animations (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
.js .split-ready .w > span { transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.js .split-ready.is-in .w > span { transform: none; }
.draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw:not(.is-drawn) [pathLength] { stroke-dashoffset: 1; }

/* ---------- Tablet ---------- */
@media (max-width: 1340px) {
  .nav__phone { display: none; }
}
@media (max-width: 1180px) {
  .nav__list a { padding: 10px 9px; }
}
@media (max-width: 1060px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px 240px; }
  .tile--big { grid-column: span 2; grid-row: auto; }
  .team { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .price--feature { transform: none; }
  .strip__list { grid-template-columns: 1fr 1fr; }
  .strip__list li:nth-child(3) { border-left: 0; }
  .strip__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Phones ---------- */
@media (max-width: 920px) {
  html { scroll-padding-top: 76px; }
  .site-header { backdrop-filter: none; background: var(--mist); }
  .header__inner { min-height: 68px; }
  .menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; background: none; border: 0; cursor: pointer; z-index: 60; }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), background-color .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; inset: 68px 0 0; z-index: 55; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: 18px var(--gutter) 28px; background: var(--mist); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { padding: 15px 4px; font: 800 1.6rem/1.2 var(--head); border-radius: 0; }
  .nav__list a:hover { background: none; }
  .nav__list a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -3px 0 0; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__phone { display: flex; justify-content: center; padding: 14px; border: 1.5px solid var(--ink); border-radius: 999px; }

  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; overflow: visible; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 48px 40px; gap: 10px; }
  .hero__title { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__lede { font-size: 1.08rem; }
  .hero__spine { height: 440px; }
  .meter { right: 0; bottom: 10px; width: 140px; padding: 12px 14px; }
  .meter__value { font-size: 1.7rem; }

  .intro__grid, .bodymap, .doc__grid, .story, .svc, .faq-wrap, .bring, .contact, .phero__inner { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .intro__media { max-width: 460px; }
  .counters strong { font-size: 2.4rem; }
  .bodymap__figure { max-width: 290px; }
  .section-head--row { flex-direction: column; align-items: start; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .tile--big { grid-column: auto; min-height: 320px; }
  .visit__pin { min-height: 0; }
  .visit__head { flex-direction: column; align-items: start; }
  .visit__progress { display: none; }
  .visit__track { flex-direction: column; padding-inline: var(--gutter); }
  .vstep { width: 100%; }
  .member__inner { flex-direction: column; align-items: start; }
  .doc__media { max-width: 320px; }
  .phero__copy { padding-bottom: 20px; }
  .phero__media { max-width: 380px; aspect-ratio: 1; justify-self: center; }
  .values li:nth-child(2), .values li:nth-child(4) { transform: none; }
  .gallery2 { grid-template-columns: 1fr 1fr; }
  .gallery2__text { grid-column: 1 / -1; grid-row: 1; }
  .gallery2 figure:last-child { margin-top: 0; }
  .rgrid { grid-template-columns: 1fr; }
  .rg--big { grid-column: auto; grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 110px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: rgba(243, 247, 246, .97); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .mobile-bar__call { background: var(--ink); color: var(--white); }
  .mobile-bar__book { background: var(--coral); color: var(--ink); }
  .rcard { width: 290px; }
}
@media (max-width: 620px) {
  .strip__list li { flex-direction: column; gap: 8px; padding: 20px 14px; }
  .counters { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .counters span { font-size: .85rem; }
  .values, .field-row, .prices { grid-template-columns: 1fr; }
  .team { gap: 16px; }
  .person h3 { font-size: 1.05rem; }
  .person p:last-child { font-size: .92rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .bodymap__panel { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-ready .w > span { transform: none; }
  .js .draw [pathLength] { stroke-dashoffset: 0; }
  .hero__in { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: auto; min-height: 100svh; }
  .ribbon { overflow-x: auto; }
  .visit__track { overflow-x: auto; padding-bottom: 12px; }
  .visit__progress { display: none; }
}
