/* Precision Spine & Wellness Center · spinal decompression landing page
   Brand: sky #00AFEF, amber #FFAE00, Oswald display, Roboto body. */

:root {
  --ink: #06131f;
  --ink-2: #0c2333;
  --ink-soft: #33495a;
  --sky: #00afef;
  --sky-deep: #0077a8;
  --amber: #ffae00;
  --amber-press: #e89d00;
  --paper: #f4f9fc;
  --white: #fff;
  --danger: #ffb4a8;
  --gutter: clamp(1rem, 4vw, 3rem);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Roboto', system-ui, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Labels ---------- */
.eyebrow {
  font: 500 .72rem/1.3 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 1rem;
}
.eyebrow--sky { color: var(--sky); }
.eyebrow--ink { color: var(--ink); }

/* ---------- Glass pill chrome ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .55rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
  cursor: pointer;
}
.pill:active { transform: scale(.97); }
.pill--lg { min-height: 3.25rem; padding: .8rem 1.6rem; font-size: 1.02rem; }
.pill--block { width: 100%; }
.pill--cta { background: var(--amber); color: var(--ink); font-weight: 700; box-shadow: 0 8px 24px rgb(255 174 0 / 28%); }
.pill--cta:hover { background: var(--amber-press); }
.pill--ink { background: var(--ink); color: var(--white); }
.pill--ink:hover { background: var(--ink-2); }
.pill--glass {
  background: rgb(6 19 31 / 42%); color: var(--white);
  border-color: rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.pill--glass:hover { background: rgb(6 19 31 / 60%); }
.pill--phone svg { width: 1rem; height: 1rem; fill: currentColor; }
.pill--brand {
  background: rgb(255 255 255 / 72%); color: var(--ink);
  border-color: rgb(255 255 255 / 60%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--display); font-size: 1rem; letter-spacing: .02em; text-transform: uppercase;
}
.brand__mark { width: .7rem; height: .7rem; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgb(0 175 239 / 25%); }
.brand__name span { color: var(--sky-deep); }

.chrome {
  position: fixed; inset: max(.75rem, env(safe-area-inset-top)) var(--gutter) auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome__actions { display: flex; gap: .5rem; }

/* ---------- Scenes ---------- */
.scene { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.scene__media, .scene__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.scene__media { will-change: transform; }
.scene__cue {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  font: 500 .64rem/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  opacity: .7;
}

/* Hero: copy on the open sky, top-left on wide screens, top on phones. */
.scene--hero { display: flex; align-items: flex-start; }
.scene--hero .scene__media img { object-position: 80% 30%; }
.scene__copy--hero {
  color: var(--ink);
  padding: clamp(6.5rem, 15vh, 10rem) var(--gutter) 3rem;
  max-width: 46rem;
}
/* The brand blue label measures 1.7:1 on this sky, so the hero label is navy. */
.scene--hero .eyebrow { color: var(--ink); }
.hero__title {
  /* Height-aware too: on short, wide screens a width-only size pushes the subhead below the horizon. */
  font-size: clamp(2.6rem, min(6.4vw, 9svh), 5.6rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.02em;
  max-width: 14ch;
}
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34rem; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__doctor { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; font-size: .92rem; color: var(--ink-2); max-width: 30rem; }
/* Short, wide screens (open foldables, small laptops in landscape): the copy column would reach the
   horizon and the figure, so it tightens up and narrows to stay on open sky. */
@media (min-width: 50.01rem) and (max-height: 47.5rem) {
  .scene__copy--hero { padding-top: 5.5rem; }
  .hero__title { font-size: clamp(2.4rem, min(6.4vw, 8svh), 5.6rem); }
  .hero__sub { max-width: 30rem; margin-top: 1rem; }
  .hero__actions { margin-top: 1.5rem; }
}
/* On wide screens the doctor line lands below the horizon, over the sea, so it rides a light glass pill. */
@media (min-width: 50.01rem) {
  .hero__doctor {
    width: fit-content; padding: .4rem 1.1rem .4rem .4rem; border-radius: 999px;
    background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 60%);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
}
.hero__doctor img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px rgb(255 255 255 / 80%); flex: none; }

/* Pressure: the wide photo at its native 2.4:1 ratio, so the dark wall at left stays
   in frame; only the headline sits on it. The paragraph and tags live on the surface below. */
.scene--pressure { min-height: 0; background: var(--ink); overflow: visible; }
.scene--pressure .scene__media { position: relative; display: block; aspect-ratio: 5616 / 2326; max-height: 92svh; width: 100%; overflow: hidden; z-index: 0; }
.scene--pressure .scene__media img { object-position: 60% 40%; }
.scene__copy--pressure {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: min(32%, 30rem); height: min(100vw / 2.414, 92svh);
  display: flex; align-items: center; padding: 0 0 0 var(--gutter);
}
.scene--pressure h2 {
  font-size: clamp(2rem, 3.6vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 2px 18px rgb(0 0 0 / 22%);
}
.pressure__detail { padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) clamp(4rem, 10vh, 6rem); }
.pressure__lede { max-width: 44rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgb(255 255 255 / 88%); }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem .85rem; border-radius: 999px;
  background: rgb(6 19 31 / 45%); border: 1px solid rgb(255 255 255 / 16%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Reveal headlines are split into words by motion.js; unsplit text stays readable. */
.reveal i { display: inline-block; font-style: normal; will-change: transform, opacity; }

/* ---------- Mechanism (pinned scrub) ---------- */
/* Default is the static tier: readable with JS off, reduced motion, touch, or a CDN failure.
   motion.js adds .is-scrub to <body> only when the full scrub can run (fine pointer, wide screen, motion allowed). */
.mechanism { position: relative; overflow: clip; background: radial-gradient(120% 80% at 20% 50%, #0d2a3d 0%, var(--ink) 62%); }
.mechanism__pin {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  padding: 5rem var(--gutter) 3rem;
  max-width: 82rem; margin: 0 auto;
}
.mechanism__figure { display: grid; place-items: center; }
/* Leaves headroom for the vertebrae to spread (about 12% taller at full stretch). */
.spine { height: min(64svh, 36rem); width: auto; overflow: visible; }
.spine__arrow { fill: var(--sky); }
.spine__nerve path { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(255 174 0 / 60%)); }
.spine__bulge { fill: var(--amber); }
.spine__vertebra, .spine__disc { transform-box: fill-box; transform-origin: center; }
.mechanism__copy h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 300; line-height: 1.08; margin-bottom: 2rem; }
.beats { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.beat { transition: opacity .45s var(--ease); border-left: 2px solid var(--sky); padding-left: 1.1rem; }
.beat__label { display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: .55rem; }
.beat p { color: rgb(255 255 255 / 86%); max-width: 36rem; }
.mechanism__rail { display: none; margin-top: 2rem; height: 2px; background: rgb(255 255 255 / 12%); border-radius: 2px; overflow: hidden; max-width: 36rem; }
.mechanism__rail i { display: block; height: 100%; width: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); }

/* Motion tier: pinned for three screens, beats light up as the stretch progresses. */
.is-scrub .mechanism { height: 300svh; }
.is-scrub .mechanism__pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
.is-scrub .beat { opacity: .32; border-left-color: rgb(255 255 255 / 14%); }
.is-scrub .beat.is-active { opacity: 1; border-left-color: var(--sky); }
.is-scrub .spine__arrow { opacity: 0; }
.is-scrub .mechanism__rail { display: block; }

/* ---------- Stat as hero ---------- */
.stat {
  min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 6rem var(--gutter); background: var(--sky); color: var(--ink);
}
.stat__figure { display: flex; align-items: flex-start; line-height: .8; font-weight: 300; letter-spacing: -.04em; }
.stat__number { font-size: clamp(9rem, 30vw, 24rem); }
.stat__unit { font-size: clamp(2.5rem, 7vw, 6rem); margin-top: .4em; margin-left: .1em; font-weight: 400; }
.stat__line { max-width: 34rem; margin: 2rem 0 2.25rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

/* ---------- Steps ---------- */
.steps { padding: clamp(5rem, 14vh, 9rem) var(--gutter); max-width: 82rem; margin: 0 auto; }
.steps__head h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 300; line-height: 1.05; max-width: 20ch; }
.steps__list { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.step { border-top: 1px solid rgb(255 255 255 / 16%); padding-top: 1.5rem; }
.step__number { font: 300 clamp(3.5rem, 6vw, 5.5rem)/1 var(--display); color: var(--sky); display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.45rem; font-weight: 400; margin-bottom: .6rem; letter-spacing: .01em; }
.step p { color: rgb(255 255 255 / 80%); }

/* ---------- Doctor ---------- */
.doctor {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
  padding: clamp(5rem, 14vh, 9rem) var(--gutter); max-width: 80rem; margin: 0 auto;
}
/* The hero's dawn, carried down the page as a glow behind the portrait. */
.doctor::before {
  content: ''; position: absolute; z-index: -1; inset: 8% auto auto 0; width: min(46rem, 70vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(195 165 199 / 26%), rgb(0 175 239 / 8%) 55%, transparent);
}
.doctor__portrait { position: sticky; top: 6rem; margin: 0; }
.doctor__portrait picture { display: block; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 30px 80px rgb(0 0 0 / 45%), 0 0 0 1px rgb(255 255 255 / 10%); }
.doctor__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor__plate {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: .2rem; padding: .85rem 1.1rem; border-radius: 1rem;
  background: rgb(255 255 255 / 76%); color: var(--ink); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.doctor__plate strong { font: 400 1.2rem/1.15 var(--display); letter-spacing: .01em; }
.doctor__plate span { font: 500 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.doctor h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.02; }
.doctor__lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgb(255 255 255 / 92%); max-width: 40rem; }
.doctor__body { margin-top: 1rem; color: rgb(255 255 255 / 78%); max-width: 40rem; }

.credentials { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.6rem 2rem; }
.credential { display: grid; gap: .35rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 16%); }
.credential__value { font: 400 1.3rem/1.15 var(--display); color: var(--white); letter-spacing: .01em; }
.credential__label { font-size: .92rem; line-height: 1.45; color: rgb(255 255 255 / 70%); }
.credential__link { display: inline-block; color: var(--sky); text-underline-offset: 3px; }

.doctor__quote { margin: 2.75rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--amber); }
.doctor__quote p { font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1.2 var(--display); color: var(--amber); }
.doctor__quote cite { display: block; margin-top: .7rem; font: 500 .7rem/1.4 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / 62%); }
.doctor__quote cite a { color: inherit; text-underline-offset: 3px; }

.doctor__press { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.doctor__press-label { font: 500 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }
.doctor__press ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.doctor__press a {
  display: inline-flex; align-items: baseline; gap: .55rem; padding: .55rem 1rem; border-radius: 999px; text-decoration: none;
  background: rgb(255 255 255 / 8%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); color: var(--white);
}
.doctor__press a:hover { background: rgb(255 255 255 / 14%); }
.doctor__press strong { font-weight: 500; }
.doctor__press span { font-size: .82rem; color: rgb(255 255 255 / 62%); }

.doctor__actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.doctor__address { font-style: normal; color: rgb(255 255 255 / 70%); }
.doctor__address a { text-decoration-color: rgb(255 255 255 / 30%); text-underline-offset: 3px; }

/* ---------- Request scene ---------- */
.scene--request { display: flex; align-items: center; justify-content: flex-end; padding: 6rem var(--gutter); background: #9cc4bf; }
.scene--request .scene__media img { object-position: 30% 50%; }
.request__plate {
  width: min(100%, 31rem); color: var(--white);
  background: rgb(6 19 31 / 72%);
  border: 1px solid rgb(255 255 255 / 14%);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  border-radius: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgb(6 19 31 / 35%);
}
.request__plate h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.08; }
.request__sub { margin: .75rem 0 1.5rem; color: rgb(255 255 255 / 82%); font-size: .98rem; }

.lead-form { display: grid; gap: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .82rem; font-weight: 500; color: rgb(255 255 255 / 86%); padding: 0; }
.field small { font-weight: 400; color: rgb(255 255 255 / 60%); }
.field input {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: 400 1rem var(--body); color: var(--ink);
  background: var(--white); border: 2px solid transparent; border-radius: .75rem;
}
.field input:focus { outline: none; border-color: var(--sky); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-style: normal; font-size: .8rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.field--choices { grid-template-columns: repeat(4, auto); justify-content: start; gap: .4rem; }
.field--choices legend { margin-bottom: .45rem; }
.field--choices label { position: relative; }
.field--choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.field--choices span {
  display: inline-block; padding: .55rem .8rem; border-radius: 999px; font-size: .85rem;
  border: 1px solid rgb(255 255 255 / 28%); color: rgb(255 255 255 / 86%);
}
.field--choices input:checked + span { background: var(--sky); border-color: var(--sky); color: var(--ink); font-weight: 500; }
.field--choices input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .78rem; line-height: 1.45; color: rgb(255 255 255 / 74%); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .1rem; accent-color: var(--sky); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .88rem; color: var(--danger); min-height: 1.2em; }
.form__status:empty { min-height: 0; }
.form__privacy { font-size: .75rem; color: rgb(255 255 255 / 58%); }
.lead-form button[disabled] { opacity: .65; cursor: progress; }
.form__success h3 { font-size: 2rem; font-weight: 400; color: var(--sky); margin-bottom: .5rem; }
.form__success a { color: var(--amber); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #030b12; padding: 4rem var(--gutter) 7rem; color: rgb(255 255 255 / 72%); font-size: .92rem; }
.footer__grid { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer__brand { font: 400 1.15rem var(--display); color: var(--white); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .75rem; }
.footer__label { font: 500 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: .75rem; }
.footer address { font-style: normal; }
.footer a { text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / 30%); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 18rem; }
.footer__fine p + p { margin-top: .75rem; }
.footer__fine { font-size: .82rem; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 60;
  display: none; grid-template-columns: auto 1fr; gap: .5rem;
  transform: translateY(160%); transition: transform .35s var(--ease);
}
.dock.is-visible { transform: none; }

/* ---------- Phones and narrow tablets ---------- */
@media (max-width: 50rem) {
  .chrome__actions .pill--cta { display: none; }
  .pill--phone span { display: none; }
  .pill--phone { width: 2.75rem; padding: 0; }
  .dock { display: grid; }

  /* Two-part phone hero: copy on a solid sky (PHONE_SKY, sampled from the top row of
     hero-tall), then the figure band below it, fading up into the same colour. The copy
     never overlaps the figure, whatever the phone's height. */
  .scene--hero { display: flex; flex-direction: column; min-height: 0; background: #c3a5c7; }
  .scene--hero .scene__media { position: relative; order: 2; height: auto; margin-top: -4.5rem; z-index: 0; }
  .scene--hero .scene__media img {
    position: relative; height: auto; aspect-ratio: 2074 / 3456; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
  .scene__copy--hero { order: 1; position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 0; }
  .scene__cue { display: none; }
  .hero__actions .pill { flex: 1 1 100%; }

  /* The pain photo cannot carry type at phone proportions (measured), so it becomes a silent band. */
  .scene--pressure .scene__media { aspect-ratio: auto; height: 62svh; max-height: none; }
  .scene--pressure .scene__media img { position: absolute; z-index: 0; object-position: 50% 50%; }
  .scene__copy--pressure { position: static; width: auto; height: auto; padding: 2.5rem var(--gutter) 0; }
  .scene--pressure h2 { text-shadow: none; }
  .pressure__detail { padding-top: 1.5rem; }

  .mechanism__pin { grid-template-columns: 1fr; padding: 4.5rem var(--gutter); min-height: 0; }
  .spine { height: 20rem; }

  .stat { min-height: 80svh; }
  .steps__list { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; gap: 2rem; padding-top: 3.5rem; }
  .doctor__portrait { position: relative; top: auto; width: min(78%, 18rem); }
  .doctor::before { inset: 0 auto auto -20%; width: 120vw; }

  .scene--request { display: block; padding: 0; background: var(--ink); min-height: 0; }
  .scene--request .scene__media { position: relative; display: block; height: 34svh; }
  .scene--request .scene__media img { position: absolute; z-index: 0; object-position: 70% 40%; }
  .request__plate {
    width: auto; margin: -3rem var(--gutter) 0; position: relative;
    background: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .field--choices { grid-template-columns: repeat(2, auto); }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Review montage (hero) ----------
   Real Google review passages arriving and leaving on the sky beside the copy.
   Ported from the Preserve Chiropractic montage and re-themed: instead of white
   handwriting on a darkened photo, each passage rides a light glass card like
   the page's pills, so navy type stays legible over sky, sea and sand alike and
   the photograph is never veiled. Positions come from review-montage.js, which
   measures the copy, pills and figure on the visitor's screen. */
.review-montage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.review-wall { display: none; position: absolute; inset: 0; }
.scene--hero[data-montage='measuring'] .review-wall--wide,
.scene--hero[data-montage='on'] .review-wall--wide { display: block; }

.review-card, .review-still {
  margin: 0; color: var(--ink);
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 1rem;
  box-shadow: 0 14px 34px -16px rgb(6 19 31 / 45%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.review-card {
  position: absolute; left: var(--x, 0); top: var(--y, 0);
  width: max-content; padding: .65rem .95rem .6rem;
  opacity: 0; transform-origin: 50% 60%; will-change: opacity, transform;
}
.scene--hero[data-montage='on'] .review-card {
  animation: review-burst var(--cycle, 12s) cubic-bezier(.2, .9, .25, 1) infinite;
  animation-delay: var(--delay, 0s);
}
.review-card[data-benched] { visibility: hidden; }

.review-card blockquote, .review-still blockquote {
  margin: .15rem 0 .3rem; font-family: var(--display); font-weight: 400;
  line-height: 1.18; letter-spacing: .005em; text-wrap: pretty;
}
/* Sizes are drawn at random by the server, so large and small type share the sky. */
.review-card--xl { max-width: min(19rem, 22vw); }
.review-card--xl blockquote { font-size: clamp(1.3rem, 1.75vw, 1.75rem); }
.review-card--lg { max-width: min(17.5rem, 20.5vw); }
.review-card--lg blockquote { font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
.review-card--md { max-width: min(16rem, 19vw); }
.review-card--md blockquote { font-size: clamp(1.02rem, 1.2vw, 1.18rem); }
.review-card--sm { max-width: min(14.5rem, 17.5vw); }
.review-card--sm blockquote { font-size: clamp(.94rem, 1.02vw, 1.02rem); line-height: 1.22; }

/* The one phrase per review that carries the praise, struck with the brand amber like a highlighter. */
.review-card mark, .review-still mark {
  color: inherit; padding: 0 .06em;
  background: linear-gradient(transparent 56%, rgb(255 174 0 / 62%) 56%, rgb(255 174 0 / 62%) 92%, transparent 92%);
}
.review-stars { display: block; font-size: .78rem; letter-spacing: .1em; line-height: 1; }
.review-stars__on { color: var(--amber); }
.review-stars__off { color: rgb(6 19 31 / 18%); }
.review-card figcaption, .review-still figcaption {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}

/* Fast in, past full size, a brief hold, then out while drifting its own way.
   The visible window (28% of the loop) MUST match `life` for the wide wall in
   src/reviews/montage-plan.js, which uses it to know which cards share the screen. */
@keyframes review-burst {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.72) rotate(calc(var(--rot, 0deg) * 1.6)); }
  2.5% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.05) rotate(var(--rot, 0deg)); }
  4.5% { transform: translate3d(0, 0, 0) scale(1) rotate(var(--rot, 0deg)); }
  22.5% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(var(--rot, 0deg)); }
  28% { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, -10px), 0) scale(.93) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, -10px), 0) scale(.93) rotate(var(--rot, 0deg)); }
}
/* The phone wall's window is 24% of its loop, matching its `life`. */
@keyframes review-burst-narrow {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.75) rotate(calc(var(--rot, 0deg) * 1.6)); }
  2% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.05) rotate(var(--rot, 0deg)); }
  3.6% { transform: translate3d(0, 0, 0) scale(1) rotate(var(--rot, 0deg)); }
  19% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(var(--rot, 0deg)); }
  24% { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, -8px), 0) scale(.93) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, -8px), 0) scale(.93) rotate(var(--rot, 0deg)); }
}

/* The still review: the hero's DEFAULT, shown unless the montage is confirmed running. */
.review-still {
  position: absolute; right: var(--gutter); top: 9rem; width: min(24rem, 32vw);
  padding: .85rem 1.1rem .8rem;
}
.review-still blockquote { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.scene--hero[data-montage] .review-still { display: none; }

/* The verified Google rating, linked to the listing. Top right under the menu on wide screens. */
.review-badge {
  position: absolute; z-index: 3; right: var(--gutter); top: 5.25rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem; border-radius: 999px; text-decoration: none;
  font-size: .86rem; color: var(--ink);
  background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 60%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.review-badge strong { font-weight: 700; }
.review-badge__stars { color: var(--amber); letter-spacing: .08em; font-size: .8rem; }
.review-badge:hover { background: rgb(255 255 255 / 88%); }
.review-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Pause and slow. Quiet until looked for; shown only while the montage runs. */
.montage-controls {
  position: absolute; right: var(--gutter); bottom: 1.1rem; z-index: 3;
  display: none; gap: .55rem; pointer-events: auto;
}
.scene--hero[data-montage='on'] .montage-controls { display: flex; }
/* Laid out but invisible while cards are being placed, so the driver can keep cards off them. */
.scene--hero[data-montage='measuring'] .montage-controls { display: flex; visibility: hidden; }
.montage-controls__btn {
  position: relative; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0;
  border: 1px solid rgb(255 255 255 / 55%); border-radius: .45rem; cursor: pointer;
  background: rgb(255 255 255 / 30%); color: rgb(6 19 31 / 70%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 160ms ease, color 160ms ease;
}
.montage-controls__btn::before { content: ''; position: absolute; inset: -.45rem; }
.montage-controls__btn:hover, .montage-controls__btn:focus-visible, .montage-controls__btn[aria-pressed='true'] {
  background: rgb(255 255 255 / 80%); color: var(--ink);
}
.montage-controls__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.montage-controls__icon { width: .85rem; height: .85rem; fill: currentColor; }
.montage-controls__icon--line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.montage-controls__icon--play, .scene--hero[data-montage-paused] .montage-controls__icon--pause { display: none; }
.scene--hero[data-montage-paused] .montage-controls__icon--play { display: block; }

@media (max-width: 50rem) {
  .scene--hero[data-montage='measuring'] .review-wall--wide,
  .scene--hero[data-montage='on'] .review-wall--wide { display: none; }
  .scene--hero[data-montage='measuring'] .review-wall--narrow,
  .scene--hero[data-montage='on'] .review-wall--narrow { display: block; }
  .scene--hero[data-montage='on'] .review-card { animation-name: review-burst-narrow; }
  .review-card { padding: .5rem .75rem .45rem; border-radius: .85rem; }
  .review-card--xl { max-width: 64vw; }
  .review-card--xl blockquote { font-size: 1.15rem; }
  .review-card--lg { max-width: 56vw; }
  .review-card--lg blockquote { font-size: 1.02rem; }
  .review-card--md { max-width: 47vw; }
  .review-card--md blockquote { font-size: .95rem; }
  .review-card--sm { max-width: 43vw; }
  .review-card--sm blockquote { font-size: .9rem; }
  /* On a phone the rating sits in the flow under the copy, on the solid sky band. */
  .review-badge { position: relative; order: 1; right: auto; top: auto; align-self: flex-start; margin: 1.1rem var(--gutter) 0; }
  /* Above the figure's head in the photograph band: the band is the last
     166.6vw of the hero (its 2074x3456 plate at full width). */
  .review-still { right: auto; left: 50%; transform: translateX(-50%); top: calc(100% - 166.6vw + 24vw); width: min(88vw, 24rem); }
}

/* Reduced motion gets the still review, never a frozen pile of cards. */
@media (prefers-reduced-motion: reduce) {
  .scene--hero[data-montage] .review-wall { display: none; }
  .scene--hero[data-montage] .review-still { display: block; }
  .scene--hero[data-montage] .montage-controls { display: none; }
}
