:root {
  --ink: #1b2130;
  --dusk: #2b3347;
  --paper: #f4eee4;
  --sand: #e7dccb;
  --ember: #e8a461;
  --ember-soft: rgba(232, 164, 97, 0.18);
  --tide: #3f64a0;
  --text: #262b38;
  --muted: #5d6170;
  --line: rgba(27, 33, 48, 0.14);
  --display: "Newsreader", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --section: clamp(88px, 12vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:root { --focus: var(--ink); }
.hero, .doctor, .book, .sticky { --focus: var(--ember); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
a, button, summary, .chip, input, select, textarea { touch-action: manipulation; }
h1, h2, h3, blockquote, .band h2 { text-wrap: balance; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; transition: top 0.3s var(--ease); --focus: var(--ember); }
.skip:focus { top: 12px; }

/* fixed environment layer: grain + warm vignette */
.env {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(232, 164, 97, 0.06), transparent 60%);
}
.env::after {
  content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; position: relative; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tide); margin: 0; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.04; margin: 0; }
.display em { font-style: italic; color: var(--tide); }
h2.display { font-size: clamp(40px, 6vw, 72px); margin-top: 16px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), box-shadow 0.5s var(--ease), color 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-ember { background: var(--ember); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(232, 164, 97, 0.7); }
.btn-ember:hover { box-shadow: 0 16px 40px -12px rgba(232, 164, 97, 0.85); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav.solid { background: rgba(244, 238, 228, 0.92); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .word { font: 400 22px/1 var(--display); letter-spacing: -0.01em; }
.brand .word small { display: block; font: 500 10px/1.6 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.brand img { height: 40px; width: auto; display: none; }
.nav.solid .brand img { display: block; }
.nav.solid .brand .word { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="true"]:not(.btn) { opacity: 1; box-shadow: inset 0 -2px 0 var(--ember); padding-bottom: 4px; }
.nav-links .btn { min-height: 44px; padding: 0 20px; opacity: 1; }
.nav-phone { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }

/* hero */
.hero { position: relative; height: 380vh; background: var(--ink); color: var(--paper); z-index: 1; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 calc(78% - 1px), rgba(232, 164, 97, 0.18) 78%, transparent calc(78% + 1px)),
    radial-gradient(90% 60% at 66% 100%, #4a3a42 0%, transparent 70%),
    linear-gradient(180deg, #1b2130 0%, #262c3f 62%, #3a3446 100%);
}
/* no-JS / failed-canvas settled frame: one calm line */
.hero-stage::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 68%; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--ember) 18%, var(--ember) 82%, transparent);
  box-shadow: 0 0 24px 4px rgba(232, 164, 97, 0.35);
}
.js .hero-stage::before { display: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 33, 48, 0.82) 0%, rgba(27, 33, 48, 0.55) 38%, transparent 58%);
}
.bands { position: absolute; inset: 0; }
.band {
  position: absolute; left: max(24px, calc((100vw - var(--wrap)) / 2)); top: 50%;
  width: min(520px, 42vw); transform: translateY(-50%);
  will-change: opacity, transform;
}
.js .band { opacity: 0; visibility: hidden; }
.js .band.on { visibility: visible; }
.band .eyebrow { color: var(--ember); }
.band h1, .band h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 18px; font-size: clamp(44px, 6.2vw, 88px); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.band p { font-size: 19px; line-height: 1.55; color: rgba(244, 238, 228, 0.86); margin: 0; max-width: 26em; }
.band em { font-style: italic; color: var(--ember); }
.band-settle .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.band-settle .btn-ghost { color: var(--paper); }
.band:not(.band-settle) { pointer-events: none; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font: 500 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 238, 228, 0.6);
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity 0.6s var(--ease);
}
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ember), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the thread that runs down the page */
main { position: relative; z-index: 1; }
.thread { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.thread path { fill: none; stroke: var(--ember); stroke-width: 1.5; stroke-linecap: round; }
.thread .glow { stroke-width: 6; opacity: 0.16; filter: blur(3px); }

section { position: relative; z-index: 1; }
.pad { padding-block: var(--section); }

/* trust bar */
.trust { padding-block: 38px; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust li { display: flex; flex-direction: column; gap: 4px; }
.trust strong { font: 400 26px/1.1 var(--display); color: var(--ink); }
.trust span { font-size: 14px; color: var(--muted); }
.trust li { position: relative; }
.trust li::before { content: ""; width: 24px; height: 1px; background: var(--ember); margin-bottom: 10px; transition: width 1.2s var(--ease); }
.trust li.in::before { width: 48px; }

/* where does it hurt */
.hurt-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 56px; }
.figure { position: relative; aspect-ratio: 320 / 560; max-height: 640px; margin-inline: auto; width: 100%; }
.figure svg { width: 100%; height: 100%; overflow: visible; }
.anatomy .body path, .anatomy .body ellipse { fill: url(#bb-skin); stroke: rgba(27, 33, 48, 0.14); stroke-width: 1.2; }
.anatomy .region { cursor: pointer; }
.anatomy .hit { fill: transparent; }
.anatomy .part { transition: stroke 0.5s var(--ease), fill 0.5s var(--ease), opacity 0.5s var(--ease); }
.anatomy .bone { fill: #f3ebdf; stroke: rgba(27, 33, 48, 0.38); stroke-width: 1.1; }
.anatomy .bone-line { fill: none; stroke: rgba(27, 33, 48, 0.34); stroke-width: 1.4; stroke-linecap: round; }
.anatomy .rib { fill: none; stroke: rgba(27, 33, 48, 0.17); stroke-width: 1.1; stroke-linecap: round; }
.anatomy .nerve { fill: none; stroke: rgba(27, 33, 48, 0.3); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; }
.anatomy .nerve-flow { fill: none; stroke: var(--ember); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 18 220; opacity: 0; }
.anatomy .region:hover .bone, .anatomy .region:hover .bone-line { stroke: rgba(27, 33, 48, 0.75); }
.anatomy .region:hover .nerve { stroke: rgba(27, 33, 48, 0.6); }
.anatomy .bone.on { fill: #f6d9b8; stroke: #c77d3a; }
.anatomy .bone-line.on { stroke: #c77d3a; }
.anatomy .rib.on { stroke: rgba(199, 125, 58, 0.55); }
.anatomy .nerve.on { stroke: rgba(199, 125, 58, 0.7); stroke-dasharray: none; }
.anatomy .nerve-flow.on { opacity: 1; animation: signal 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; filter: drop-shadow(0 0 4px rgba(232, 164, 97, 0.9)); }
@keyframes signal { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -238; } }
.anatomy .halo { opacity: 0; transition: opacity 0.7s var(--ease); transform-box: fill-box; transform-origin: center; }
.anatomy .halo.on { opacity: 1; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.anatomy .marker { transition: transform 0.8s var(--ease), opacity 0.4s var(--ease); pointer-events: none; }
.anatomy .marker .dot { fill: var(--ember); stroke: #faf6ef; stroke-width: 2; }
.anatomy .marker .ring { fill: none; stroke: var(--ember); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping-ring 2.2s var(--ease) infinite; }
@keyframes ping-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid rgba(27, 33, 48, 0.42); background: rgba(255, 255, 255, 0.4); border-radius: 999px;
  min-height: 44px; padding: 0 18px; cursor: pointer; font-size: 15px;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.detail { margin-top: 32px; min-height: 210px; padding: 28px 30px; border-radius: 18px; background: #fbf7f0; border: 1px solid var(--line); }
.detail h3 { font: 400 34px/1.1 var(--display); margin: 8px 0 10px; }
.detail p { margin: 0 0 22px; color: var(--muted); }
.detail .swap { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* first visit steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; counter-reset: s; }
.step figure.on-white img { mix-blend-mode: multiply; object-fit: contain; padding: 6%; }
.step figure { margin: 0 0 22px; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--sand); }
.step img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) sepia(0.12) contrast(1.02); transform: scale(1.08); transition: transform 2.4s var(--ease), filter 1.2s var(--ease); }
.step.in img { transform: scale(1); }
.step:hover img { filter: saturate(0.95) sepia(0.06); }
.step .num { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; color: var(--ember); }
.step h3 { font: 400 30px/1.1 var(--display); margin: 10px 0 10px; }
.step p { margin: 0; color: var(--muted); }

/* doctor */
.doctor { background: var(--ink); color: var(--paper); overflow: hidden; }
.doctor .eyebrow { color: var(--ember); }
.doctor blockquote { margin: 18px 0 0; font: 400 clamp(36px, 5.4vw, 68px)/1.08 var(--display); letter-spacing: -0.02em; max-width: 15em; }
.doctor blockquote em { color: var(--ember); }
.doc-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 64px; align-items: start; }
.doctor-photo {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 52% 48% 49% 51% / 55% 45% 55% 45%;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.08), 0 18px 50px rgba(11,17,29,0.22);
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(1.04);
}
.doc-row p {
  margin: 0;
  color: rgba(244, 238, 228, 0.8);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}
.doctor .dust { position: absolute; inset: 0; pointer-events: none; }

/* reviews */
.lead-quote { margin: 48px 0 0; max-width: 22em; }
.lead-quote p { font: 400 clamp(30px, 4vw, 46px)/1.15 var(--display); margin: 0; }
.lead-quote footer { margin-top: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-bar { display: flex; justify-content: flex-end; margin-top: 40px; }
.pause { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(27, 33, 48, 0.42); background: transparent; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.pause svg { width: 14px; height: 14px; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee { margin-top: 20px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.review { width: 340px; flex: none; padding: 26px; border-radius: 16px; background: #fbf7f0; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.review p { margin: 0; font: 400 20px/1.35 var(--display); }
.review span { font-size: 14px; color: var(--muted); }
.review .stars { color: var(--ember); letter-spacing: 2px; }

/* answers */
.answers-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 26px/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 14px; height: 14px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { overflow: hidden; transition: height 0.5s var(--ease); }
.faq .ans p { margin: 0; padding: 0 0 24px; color: var(--muted); max-width: 34em; }

/* visit */
.visit { background: var(--sand); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit figure { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 520px; }
.visit figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) sepia(0.1); }
.visit address { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--display); font-style: normal; margin: 14px 0 26px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 32px; margin: 0 0 28px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-family: var(--mono); font-size: 14px; }
.hours .today dt, .hours .today dd { color: var(--ink); font-weight: 600; }
.open-now { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.open-now b { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-now.open b { background: #4f8a5b; box-shadow: 0 0 0 0 rgba(79, 138, 91, 0.5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(79, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 138, 91, 0); } }
.visit .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* foundation */
.foundation .lede { margin: 24px 0 0; }
.foundation .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.foundation .text-link { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* book */
.book { background: var(--ink); color: var(--paper); }
.book .eyebrow { color: var(--ember); }
.book h2 em { color: var(--ember); }
.book-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.book .side p { color: rgba(244, 238, 228, 0.75); }
.book .side a.tel { font: 400 34px/1 var(--display); text-decoration: none; color: var(--ember); display: inline-block; margin-top: 8px; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 238, 228, 0.7); }
.field input, .field select, .field textarea {
  min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(244, 238, 228, 0.45);
  background: rgba(244, 238, 228, 0.06); color: var(--paper); transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.field select option { color: var(--ink); }
.field input::placeholder { color: rgba(244, 238, 228, 0.55); }
.field label .req { color: var(--ember); margin-left: 4px; }
.field [aria-invalid="true"] { border-color: #f2b88a; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgba(244, 238, 228, 0.1); }
.field .err { font-size: 13px; color: #f2b88a; min-height: 1em; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form-foot small { color: rgba(244, 238, 228, 0.6); font-size: 14px; }
.form-msg { grid-column: 1 / -1; padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(232, 164, 97, 0.5); background: rgba(232, 164, 97, 0.08); }
.form-msg h3 { margin: 0 0 6px; font: 400 28px/1.2 var(--display); }
.form-msg p { margin: 0; color: rgba(244, 238, 228, 0.8); }
.form-msg a { color: var(--ember); }

/* footer */
footer.site { padding: 56px 0 120px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer.site img { height: 48px; width: auto; }
footer.site a { text-decoration: none; }

/* mobile sticky actions */
.sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 10px;
  padding: 10px; border-radius: 999px; background: rgba(27, 33, 48, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.sticky.show { transform: none; }
.sticky .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 15px; }
.sticky .btn-ghost { color: var(--paper); }

/* reveals: each moment gets its own entrance */
.js .rise { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rise.in { opacity: 1; transform: none; }
.mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js .mask { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease); }
.js .mask.in { clip-path: inset(0 0 0 0); transform: none; }
.js .glowin { opacity: 0; filter: blur(8px); transition: opacity 1.6s var(--ease), filter 1.6s var(--ease); }
.js .glowin.in { opacity: 1; filter: none; }
.js .fromleft { opacity: 0; transform: translateX(-24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .fromleft.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hurt-grid, .answers-grid, .visit-grid, .book-grid { grid-template-columns: 1fr; }
  .figure { max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 1fr; gap: 28px; }
  .nav-links a:not(.btn):not(.nav-phone) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav .wrap { height: 64px; }
  .nav-links .btn { display: none; }
  .hero-stage::before { left: 50%; }
  .scrim { background: linear-gradient(0deg, rgba(27, 33, 48, 0.92) 0%, rgba(27, 33, 48, 0.6) 42%, transparent 66%); }
  .band { left: 24px; right: 24px; width: auto; top: auto; bottom: 64px; transform: none; }
  .band h1, .band h2 { font-size: clamp(40px, 11vw, 56px); margin: 10px 0 12px; }
  .band p { font-size: 17px; }
  .thread { display: none; }
  .scroll-hint { display: none; }
  .figure { max-width: 240px; }
  .hurt-grid { margin-top: 32px; }
  .sticky { display: flex; }
  html { scroll-padding-top: 80px; scroll-padding-bottom: 96px; }
  main { padding-bottom: 0; }
  footer.site { padding-bottom: 110px; }
  .review { width: 280px; }
  form { grid-template-columns: 1fr; }
  .detail { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; height: 100svh; }
  .js .band { visibility: hidden; }
  .js .band.band-settle { opacity: 1; visibility: visible; }
  .scroll-hint { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .reviews-bar { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .js .rise, .js .mask, .js .glowin, .js .fromleft { opacity: 1; transform: none; clip-path: none; filter: none; transition: none; }
  .anatomy .halo.on, .anatomy .marker .ring, .anatomy .nerve-flow.on, .open-now.open b, .scroll-hint i { animation: none; }
  .anatomy .nerve-flow.on { stroke-dasharray: none; opacity: 0.6; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
html:not(.js) .band:not(.band-settle), html:not(.js) .scroll-hint { display: none; }
