/* DoctorPerio preview. Six colour roles, two families, the seam. */

@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --sc-canvas:     #EEF2EE;
  --sc-surface:    #DCE5E0;
  --sc-ink:        #10293A;
  --sc-ink-soft:   #4B6272;
  --sc-accent:     #A8461F;
  --sc-accent-ink: #FFF7F1;
  --sc-font-display: "Newsreader", Georgia, serif;
  --sc-font-text:    "Satoshi", system-ui, sans-serif;
  --sc-font-mono:    "Satoshi", system-ui, sans-serif;
  --sc-shadow-color: 200 30% 22%;
  --sc-r-md: 14px;

  --pv-h: 32px;          /* preview bar height, measured by page.js */
  --bar-h: 56px;         /* phone header band */
  --rest: 200px;         /* desktop margin the seam rests at */
  --sx: 50vw;            /* seam x (desktop), written by page.js */
  --sy: 50vh;            /* seam y (phone), written by page.js */
  --band-o: 1;           /* how much worry ground the chrome sits on */
  --strip: max(20vw, 240px); /* the hero's worry strip */
  --cpl: calc(var(--rest) + clamp(2rem, 4vw, 4.5rem)); /* content left edge */
  color-scheme: light;
}

:root[data-theme="dark"] {
  --sc-canvas:     #0E1A22;
  --sc-surface:    #172832;
  --sc-ink:        #E7EEEA;
  --sc-ink-soft:   #A7B8B9;
  --sc-accent:     #EE8F63;
  --sc-accent-ink: #1A0E08;
  --sc-shadow-color: 205 50% 3%;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sc-canvas:     #0E1A22;
    --sc-surface:    #172832;
    --sc-ink:        #E7EEEA;
    --sc-ink-soft:   #A7B8B9;
    --sc-accent:     #EE8F63;
    --sc-accent-ink: #1A0E08;
    --sc-shadow-color: 205 50% 3%;
    color-scheme: dark;
  }
}

body { background: var(--sc-canvas); }
main { position: relative; z-index: 2; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------ honesty bar */
.preview-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  margin: 0; padding: 7px 16px;
  font-size: 12px; line-height: 1.5; letter-spacing: 0.01em; text-align: center;
  background: var(--sc-ink); color: var(--sc-canvas);
}
.skip {
  position: fixed; left: 16px; top: calc(var(--pv-h) + 8px); z-index: 95;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sc-accent); color: var(--sc-accent-ink); text-decoration: none;
  transform: translateY(calc(-100% - var(--pv-h) - 40px));
}
.skip:focus-visible { transform: none; }

/* ---------------------------------------------------------------- the seam */
.worry-ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--sc-surface);
  transform: translateX(calc(var(--sx) - 100%));
  will-change: transform;
}
.seam {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 1px; pointer-events: none;
  background: color-mix(in oklab, var(--sc-ink) 30%, transparent);
  transform: translateX(var(--sx));
  will-change: transform;
}

.chrome {
  position: fixed; z-index: 60; left: 0; top: var(--pv-h);
  width: var(--rest);
  padding: 22px 24px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  isolation: isolate;
}
.chrome::before, .chrome::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-bottom-right-radius: var(--sc-r-md);
}
.chrome::before { background: var(--sc-canvas); }
.chrome::after { background: var(--sc-surface); opacity: var(--band-o); }

.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--sc-ink); text-decoration: none; border-radius: 8px; }
.mark__glyph {
  width: 24px; height: 31px; flex: none;
  background: currentColor;
  -webkit-mask: url("assets/glyph.svg") left center / contain no-repeat;
  mask: url("assets/glyph.svg") left center / contain no-repeat;
}
.mark__word { font-family: var(--sc-font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.chrome__phone {
  font-size: 0.95rem; color: var(--sc-ink); text-decoration: none; font-variant-numeric: tabular-nums;
  padding: 4px 0; border-radius: 6px;
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.chrome__phone:hover { color: var(--sc-accent); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent);
  background: transparent; color: var(--sc-ink-soft); font-size: 0.85rem; cursor: pointer;
  transition: border-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.theme-toggle__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, var(--sc-ink) 50%, var(--sc-canvas) 50%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--sc-ink) 40%, transparent);
}
.theme-toggle:hover { color: var(--sc-ink); border-color: var(--sc-ink); }
.theme-toggle:active { transform: scale(0.96); }

/* The one CTA rides the seam. */
.handle {
  position: fixed; left: 0; bottom: 28px; z-index: 70;
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; white-space: nowrap; text-decoration: none;
  font-weight: 500; font-size: 0.98rem;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: var(--sc-e2);
  transform: translateX(calc(var(--sx) - 100% - 14px));
  will-change: transform;
  transition: opacity 220ms var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.handle:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
.handle:active { background: color-mix(in oklab, var(--sc-accent) 76%, var(--sc-ink)); }
.form-in-view .handle { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------- shared type */
.side-label {
  margin: 0 0 14px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.h2 {
  font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance;
  margin: 0;
}
.h2--sm { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.015em; }
.body { margin: 0; max-width: 60ch; color: var(--sc-ink-soft); line-height: 1.62; text-wrap: pretty; }
.note { margin: 0; font-size: 0.9rem; color: var(--sc-ink-soft); line-height: 1.55; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), border-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn--primary { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: var(--sc-e1); }
.btn--primary:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
.btn--quiet { background: transparent; color: var(--sc-ink); border-color: color-mix(in oklab, var(--sc-ink) 30%, transparent); }
.btn--quiet:hover { border-color: var(--sc-ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.content {
  position: relative;
  padding-left: var(--cpl);
  padding-right: clamp(1.5rem, 5vw, 5.5rem);
  max-width: 1500px;
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: clip; }
.hero__strip { position: absolute; z-index: 1; left: 24px; bottom: 16vh; width: calc(var(--strip) - 48px); }
.hero__worry {
  margin: 0; font-family: var(--sc-font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 0.9rem + 0.9vw, 1.9rem); line-height: 1.16; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__calm { position: absolute; z-index: 1; left: calc(var(--strip) + 5vw); top: calc(var(--pv-h) + 18vh); width: min(40vw, 640px); }
.hero__title {
  margin: 0; font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(2.5rem, 1.3rem + 3.1vw, 4.6rem); line-height: 1.02; letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero__lede { margin: 22px 0 0; max-width: 40ch; color: var(--sc-ink-soft); font-size: 1.08rem; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__portrait { position: absolute; z-index: 0; margin: 0; right: 5vw; top: calc(var(--pv-h) + 13vh); width: min(23vw, 360px); }
.hero__portrait img { max-width: none; width: 100%; height: auto; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); }

/* ----------------------------------------------------------------- worries */

.worries__stack {
  list-style: none; margin: 0; padding: 0;
  position: absolute; left: 2.2vw; top: 28vh; width: min(22vw, 330px);
}
.worry {
  font-family: var(--sc-font-display); font-style: italic;
  font-size: clamp(1.3rem, 1rem + 0.7vw, 1.7rem); line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 1.3rem; color: var(--sc-ink);
  will-change: transform, opacity;
}
.answers { position: absolute; left: 54vw; top: 26vh; width: min(38vw, 580px); }
.answer__slot { height: 7.6rem; }
.answers__intro { position: absolute; left: 0; top: 0; margin: 0; max-width: 22ch; font-family: var(--sc-font-display); font-size: clamp(1.9rem, 1.2rem + 1.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.answer { position: absolute; left: 0; right: 0; top: 7.6rem; }
.answer__q-rm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.answer__quote {
  margin: 0; font-family: var(--sc-font-display); font-size: clamp(1.25rem, 1rem + 0.7vw, 1.65rem);
  line-height: 1.32; letter-spacing: -0.008em; text-wrap: pretty;
}
.answer__quote--sm { font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.3rem); margin-top: 18px; }
.answer__body { margin: 0; font-size: 1.12rem; line-height: 1.6; max-width: 54ch; }
.answer__src { margin: 16px 0 0; font-size: 0.9rem; color: var(--sc-ink-soft); max-width: 54ch; }
.answer__src::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--sc-accent); }

/* ----------------------------------------------------------------- doctors */
.doctors { padding-block: clamp(4rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.doctors__head { max-width: 52rem; }
.doctors__head .body { margin-top: 18px; }
.doctors__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 5vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem); align-items: start;
}
.doc--lead { grid-row: span 2; }
.doc__photo { margin: 0; border-radius: var(--sc-r-md); overflow: hidden; box-shadow: var(--sc-e2); }
.doc__photo img { width: 100%; height: auto; }
.doc--lead .doc__photo { max-width: 440px; }
.doc--lead .doc__text { margin-top: 28px; max-width: 46ch; }
.doc--two, .doc--three { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 24px; align-items: start; }
.doc--three { margin-left: clamp(0rem, 4vw, 4rem); }
.doc__name { margin: 0 0 10px; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.012em; line-height: 1.15; }
.doc__name span { font-family: var(--sc-font-text); font-size: 0.85rem; font-weight: 400; color: var(--sc-ink-soft); letter-spacing: 0.02em; margin-left: 6px; }
.doc__quote { margin: 0 0 12px; font-family: var(--sc-font-display); font-style: italic; font-size: 1.5rem; color: var(--sc-accent); }

/* -------------------------------------------------------------------- path */
.path__stage { display: flex; align-items: center; }
.path__rail {
  align-items: flex-start; gap: clamp(2rem, 4vw, 4rem);
  padding-left: calc(var(--rest) + clamp(2rem, 4vw, 4.5rem)); padding-right: 8vw;
}
.path__rail > * { flex: none; }
.path__lead { width: min(34vw, 480px); }
.path__lead .body { margin-top: 18px; }
.step { position: relative; padding: 28px 30px 30px; border-radius: var(--sc-r-md); }
.step__n {
  margin: 0 0 6px; font-family: var(--sc-font-display); font-size: 3.4rem; line-height: 1;
  color: var(--sc-accent); letter-spacing: -0.03em;
}
.step__t { margin: 0 0 12px; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.012em; }
.step--a { width: min(30vw, 420px); background: var(--sc-surface); box-shadow: var(--sc-edge), var(--sc-e1); margin-top: 6vh; }
.step--b { width: min(33vw, 460px); margin-top: 0; border: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }
.step--c { width: min(27vw, 380px); background: var(--sc-surface); box-shadow: var(--sc-edge), var(--sc-e1); margin-top: 14vh; }
.step--d { width: min(22vw, 300px); margin-top: 4vh; }
.step--e { width: min(28vw, 400px); margin-top: 10vh; border: 1px solid color-mix(in oklab, var(--sc-ink) 16%, transparent); }

/* --------------------------------------------------------------- practical */
.practical { padding-block: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 3vw, 3rem); }
.practical__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 6vw, 7rem); }
.practical__money > * + * { margin-top: 16px; }
.practical__money .h2 + .body { margin-top: 22px; }
.practical__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; align-content: start; }
.practical__offices > .h2 { grid-column: 1 / -1; }
.office__name { margin: 0 0 6px; font-family: var(--sc-font-display); font-weight: 500; font-size: 1.35rem; }
.office .note { margin-top: 8px; }
.aside-quote { grid-column: 1 / -1; margin: 18px 0 0; padding-left: 22px; border-left: 2px solid var(--sc-accent); }
.aside-quote p { margin: 0; font-family: var(--sc-font-display); font-style: italic; font-size: 1.3rem; line-height: 1.35; max-width: 46ch; }
.aside-quote footer { margin-top: 10px; font-size: 0.9rem; color: var(--sc-ink-soft); }

/* -------------------------------------------------------------------- peak */

.peak__fear {
  position: absolute; left: 2.2vw; top: calc(var(--pv-h) + 24vh); width: min(40vw, 620px); margin: 0;
  font-family: var(--sc-font-display); font-style: italic;
  font-size: clamp(1.8rem, 1.1rem + 1.7vw, 2.9rem); line-height: 1.16; letter-spacing: -0.014em; text-wrap: balance;
}
.peak__relief { position: absolute; left: 54vw; top: calc(var(--pv-h) + 14vh); width: min(40vw, 640px); }
.peak__relief-line {
  margin: 0; font-family: var(--sc-font-display); font-weight: 400;
  font-size: clamp(2.6rem, 1.4rem + 3vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.peak__who { margin: 14px 0 0; color: var(--sc-ink-soft); font-size: 0.95rem; }
.peak__rest { position: absolute; margin: 0; left: 72vw; top: calc(var(--pv-h) + 48vh); width: min(15vw, 230px); }
.peak__rest img { width: 100%; height: auto; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); }
.peak__after { position: absolute; left: 54vw; width: min(40vw, 620px); top: calc(var(--pv-h) + 46vh); }
.peak__rating { margin: 0; font-family: var(--sc-font-display); font-size: 1.6rem; letter-spacing: -0.01em; }
.peak__q { margin: 18px 0 0; max-width: 62ch; }
.peak__q p { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.peak__q footer { margin-top: 6px; color: var(--sc-ink-soft); font-size: 0.9rem; }
.peak__voices { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.peak__voices li:nth-child(3) { display: none; }
.peak__voices p { margin: 0; font-family: var(--sc-font-display); font-style: italic; font-size: 1.08rem; line-height: 1.35; }
.peak__voices span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--sc-ink-soft); }
.peak__cta { margin-top: 26px; }

/* ------------------------------------------------------------------- close */
.close { padding-bottom: 3rem; }
.close__band { margin: 0; height: 44vh; min-height: 280px; overflow: hidden; }
.close__band img { width: 100%; height: 100%; object-fit: cover; }
.close__grid {
  display: grid; max-width: none;
  grid-template-columns: calc(50vw - var(--cpl) - 3.5rem) minmax(0, 1fr); column-gap: 3.5rem;
  margin-top: calc(-1 * clamp(4rem, 9vh, 7rem));
}
/* The card docks to the seam, which rests at 50vw for the close. */
.consult[data-dock] { justify-self: start; width: min(100%, 640px); border-left: 0; border-radius: 0 var(--sc-r-md) var(--sc-r-md) 0; }
.dock-ready .consult[data-dock] { opacity: 0; transform: translateX(64px); transition: transform 760ms var(--sc-ease-out), opacity 520ms var(--sc-ease-out); }
.dock-ready .consult[data-dock].is-docked { opacity: 1; transform: none; }
.reduced.dock-ready .consult[data-dock] { transform: none; }
.close__intro { padding-top: calc(clamp(4rem, 9vh, 7rem) + 3.5rem); }
.close__intro .body { margin-top: 18px; }
.close__intro a { color: var(--sc-ink); }
.consult {
  position: relative; z-index: 1; align-self: start;
  background: var(--sc-canvas); border-radius: var(--sc-r-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--sc-edge), var(--sc-e3);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent);
}
.field + .field { margin-top: 6px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.95rem; font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px;
  background: var(--sc-surface); color: var(--sc-ink);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent);
  font-size: 1rem;
  transition: border-color var(--sc-d-fast) var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out);
}
.field input:hover, .field select:hover { border-color: color-mix(in oklab, var(--sc-ink) 45%, transparent); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--sc-accent); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--sc-accent); }
.field__err { margin: 4px 0 0; min-height: 1.4em; font-size: 0.88rem; line-height: 1.4; color: var(--sc-accent); }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consult__submit { width: 100%; margin-top: 26px; min-height: 54px; font-size: 1.05rem; }
.consult__note { margin: 12px 0 0; font-size: 0.88rem; color: var(--sc-ink-soft); }
.consult__done {
  position: absolute; inset: 0; z-index: 2; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--sc-canvas); border-radius: var(--sc-r-md);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.consult__done[hidden] { display: none; }
.consult__done-title { margin: 0; font-family: var(--sc-font-display); font-size: 1.8rem; line-height: 1.15; letter-spacing: -0.015em; }
.consult__done .btn { align-self: flex-start; }
.foot { grid-column: 1 / -1; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent); display: grid; grid-template-columns: calc(50vw - var(--cpl) - 3.5rem) minmax(0, 1fr); column-gap: 3.5rem; row-gap: 24px; }
.foot__small { padding-left: 1.5rem; max-width: 62ch; }
.foot p { margin: 0; font-size: 0.92rem; color: var(--sc-ink-soft); line-height: 1.6; }
.foot__offices p + p { margin-top: 4px; }
.foot strong { color: var(--sc-ink); font-weight: 500; margin-right: 6px; }
.foot a { color: var(--sc-ink); }
.foot__small { font-size: 0.82rem !important; }

/* ------------------------------------------------------------------ phone */
@media (max-width: 860px) {
  :root { --rest: 0px; }
  .worry-ground { transform: translateY(calc(var(--sy) - 100%)); }
  .seam { top: 0; bottom: auto; right: 0; width: auto; height: 1px; transform: translateY(var(--sy)); }
  .chrome {
    width: auto; right: 0; height: var(--bar-h);
    flex-direction: row; align-items: center; gap: 8px; padding: 0 12px 0 16px;
  }
  .chrome::before, .chrome::after { border-radius: 0; }
  .chrome__phone { display: none; }
  .mark__word { font-size: 1.2rem; }
  .mark__glyph { width: 21px; height: 27px; }
  .theme-toggle { min-height: 40px; padding: 6px 10px; }
  .theme-toggle__label { display: none; }
  .handle {
    left: auto; right: 12px; bottom: auto; top: 0; min-height: 40px; padding: 0 16px; font-size: 0.92rem;
    transform: translateY(calc(var(--sy) - 100% - 8px));
  }

  .content { padding-left: clamp(1.25rem, 5vw, 2rem); padding-right: clamp(1.25rem, 5vw, 2rem); }

  .hero__strip { left: 5vw; right: 5vw; width: auto; bottom: auto; top: calc(var(--pv-h) + var(--bar-h) + 14px); }
  .hero__worry { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem); }
  .hero__strip .side-label { margin-bottom: 8px; }
  .hero__calm { left: 5vw; right: 5vw; width: auto; top: calc(34svh + 22px); }
  .hero__title { font-size: clamp(2rem, 1.3rem + 3.4vw, 2.7rem); }
  .hero__lede { font-size: 1rem; margin-top: 14px; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { min-height: 48px; padding: 0 20px; }
  .hero__portrait { top: auto; bottom: 3svh; right: 5vw; width: 32vw; }

  .worries__stack { left: 5vw; right: 5vw; width: auto; top: calc(var(--pv-h) + var(--bar-h) + 18px); }
  .worry { font-size: 1.28rem; margin-bottom: 0.9rem; }
  .answers { left: 5vw; right: 5vw; width: auto; top: 52svh; }
  .answer__slot { height: 4.4rem; }
  .answers__intro { font-size: 1.7rem; }
  .answer { top: 4.4rem; }
  .answer__body { font-size: 1rem; }
  .answer__src { font-size: 0.85rem; margin-top: 12px; }

  .doctors__grid { grid-template-columns: 1fr; }
  .doc--lead { grid-row: auto; }
  .doc--lead .doc__photo { max-width: 78vw; }
  .doc--two, .doc--three { grid-template-columns: 104px 1fr; gap: 18px; margin-left: 0; }

  .path__rail { padding-left: 5vw; padding-right: 6vw; gap: 18px; }
  .path__lead { width: 76vw; }
  .step { width: 74vw !important; margin-top: 0 !important; padding: 22px 22px 24px; }
  .step--d { background: var(--sc-surface); }

  .practical__grid, .practical__offices { grid-template-columns: 1fr; }

  .peak__fear { left: 5vw; right: 5vw; width: auto; top: calc(var(--pv-h) + var(--bar-h) + 22px); font-size: clamp(1.35rem, 1rem + 1.8vw, 1.7rem); }
  .peak__relief { left: 5vw; right: 5vw; width: auto; top: 53svh; }
  .peak__relief-line { font-size: clamp(2.1rem, 1.4rem + 3vw, 2.8rem); }
  .peak__rest { display: none; }
  .peak__after { left: 5vw; right: 5vw; top: calc(var(--pv-h) + var(--bar-h) + 16px); }
  .peak__rating { font-size: 1.3rem; }
  .peak__q { margin-top: 10px; }
  .peak__q p { font-size: 0.98rem; }
  .peak__voices { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .peak__voices li:nth-child(n+2) { display: none; }
  .peak__after { width: auto; }
  .peak__voices p { font-size: 1rem; }
  .peak__cta { margin-top: 16px; }

  .close__band { height: 30vh; min-height: 200px; }
  .close__grid { grid-template-columns: 1fr; margin-top: 0; gap: 2rem; }
  .consult[data-dock] { width: auto; justify-self: stretch; border-left: 1px solid color-mix(in oklab, var(--sc-ink) 10%, transparent); border-radius: var(--sc-r-md); }
  .dock-ready .consult[data-dock] { transform: translateY(24px); }
  .foot__small { padding-left: 0; }
  .close__intro { padding-top: 2.5rem; }
  .field--pair { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- reduced motion */
.reduced .answer__q-rm { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin: 0 0 12px; font-family: var(--sc-font-display); font-style: italic; font-size: 1.4rem; }
.reduced .answers .answer__slot { display: none; }
.reduced .answer { top: 0; }
@media (prefers-reduced-motion: reduce) {
  .handle, .seam, .worry-ground { will-change: auto; }
}
.reduced .worries__stage::before { background: var(--sc-surface); }
.reduced .worries__stage::before { content: ""; position: absolute; inset: 0 50% 0 0; z-index: -1; }
@media (max-width: 860px) { .reduced .worries__stage::before { inset: 0 0 50% 0; } }
.reduced .seam { display: none; }
@media (max-width: 860px) {
  .mark { min-height: 44px; }
  .theme-toggle { min-height: 44px; min-width: 44px; justify-content: center; }
  .handle { min-height: 44px; }
  .foot a, .close__intro a { display: inline-block; padding-block: 11px; }
}
[data-sc-in]:focus-within, [data-sc-stagger] > :focus-within { opacity: 1; transform: none; }
