/* ==========================================================================
   Curavia | Medical Clinic and Doctor HTML Template
   Table of contents
   1. Base             2. Layout & type      3. Buttons & links
   4. Header & nav     5. Heroes             6. Sections & page heads
   7. Body map         8. Cards, people, posts
   9. Visit path       10. Teaser, reviews, CTA, numbers
   11. Booking         12. Forms             13. Pages (services, doctor, article, FAQ, contact, map)
   14. Footer          15. Motion            16. Breakpoints     17. Print
   All colors, fonts, spacing and timings come from tokens.css.
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.6 var(--font-body); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-md); z-index: var(--z-modal); }
.skip:focus { left: var(--space-md); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 5.5rem; }

/* 2. Layout & type ------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 var(--space-md); text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--brand); }
h2 { font-size: var(--text-display-s); }
h3 { font-size: var(--text-md); letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 var(--space-md); }
.eyebrow { display: flex; align-items: center; gap: .6rem; font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: .02em; color: var(--brand); margin-bottom: var(--space-sm); }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; flex: none; }
.eyebrow--light, .section--dark .eyebrow { color: var(--tint); }
/* The signature: one rounded corner per photo, on the side that faces the text. */
.c-tl { border-radius: var(--corner) 0 0 0; } .c-tr { border-radius: 0 var(--corner) 0 0; }
.c-br { border-radius: 0 0 var(--corner) 0; } .c-bl { border-radius: 0 0 0 var(--corner); }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-lg); display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .85rem; height: .45rem; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.crumbs { font-size: var(--text-sm); color: var(--muted); }
.crumbs a { color: var(--brand-deep); }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg); }

/* 3. Buttons & links ----------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; flex-shrink: 0; min-height: 2.9rem; padding: .85em 1.45em; border-radius: var(--radius-pill); font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
/* Solid: a soft ring breathes out once on hover, and the drawn arrow steps forward. */
.btn--solid { background: var(--brand-deep); color: #fff; box-shadow: inset 0 1px 0 oklch(100% 0 0 / .18), 0 10px 24px -14px color-mix(in oklch, var(--brand-deep) 80%, transparent); }
.btn--solid::after { content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5'/%3E%3C/svg%3E"); -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5'/%3E%3C/svg%3E"); mask-position: center; mask-size: contain; mask-repeat: no-repeat;
  transition: transform var(--dur-short) var(--ease-out); }
.btn--solid:hover { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 oklch(100% 0 0 / .2), 0 0 0 6px color-mix(in oklch, var(--brand) 18%, transparent), 0 14px 28px -14px color-mix(in oklch, var(--brand-deep) 85%, transparent); }
.btn--solid:hover::after { transform: translateX(3px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--brand-deep); box-shadow: 0 0 0 6px oklch(100% 0 0 / .14); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn:disabled { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform var(--dur-short) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* 4. Header & nav -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background-color: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--dur-short), box-shadow var(--dur-short); }
.site-header.is-scrolled { border-color: var(--rule); box-shadow: 0 8px 24px -18px oklch(20% 0.03 150 / .55); }
.site-header__row { display: flex; align-items: center; gap: var(--space-lg); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 2rem; height: 2rem; fill: none; stroke-linecap: round; }
.brand__arc { stroke: var(--brand-deep); stroke-width: 4; }
.brand__plus { stroke: var(--sage); stroke-width: 3; transform-origin: 23.5px 16px; transition: transform var(--dur-long) var(--ease-spring); }
.brand:hover .brand__plus { transform: rotate(90deg); }
.brand__name { font: 500 1.5rem/1 var(--font-display); letter-spacing: -0.015em; }
.brand--light { color: var(--on-dark); }
.brand--light .brand__arc { stroke: var(--on-dark); }
.brand--light .brand__plus { stroke: var(--tint); }
.nav__toggle { display: none; }
.nav__list { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav__list a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .4rem 0; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header__phone-icon { flex: none; width: 1.1rem; height: 1.1rem; fill: var(--brand-deep); }

/* 5. Heroes -------------------------------------------------------------- */
/* Home: copy on the left, the room on the right with a sage block and a floating card at their own scroll speeds. */
.hero { position: relative; padding: var(--space-2xl) 0 var(--space-3xl); overflow: hidden; background: var(--grad-tint); }
.hero__grid { display: grid; grid-template-columns: minmax(22rem, 44%) 1fr; gap: var(--space-2xl); align-items: center; }
.hero__title { font-size: var(--text-display); letter-spacing: -0.025em; line-height: 1.02; }
.hero__lead { color: var(--ink-2); font-size: var(--text-md); line-height: 1.5; max-width: 34rem; }
.hero__actions { display: flex; align-items: center; gap: var(--space-lg); margin-top: var(--space-lg); }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-xl); margin: var(--space-2xl) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.hero__facts dt { color: var(--muted); font-size: var(--text-sm); }
.hero__facts dd { margin: 0; font: 500 var(--text-xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero__media { position: relative; padding: 0 0 var(--space-xl) var(--space-xl); }
.hero__photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; box-shadow: 0 40px 70px -40px oklch(20% 0.03 150 / .55); }
.hero__block { position: absolute; z-index: 0; left: 0; bottom: 0; width: 62%; height: 70%; background: var(--tint); border-radius: 0 0 0 var(--corner); }
.hero__card { position: absolute; z-index: 2; right: -1rem; bottom: var(--space-md); background: #fff; border-radius: var(--radius); padding: var(--space-md) var(--space-lg); box-shadow: 0 24px 50px -24px oklch(20% 0.03 150 / .5); min-width: 13rem; }
.hero__card p { margin: 0; }
.hero__card-k { font-size: var(--text-sm); color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.hero__card-k::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok) 60%, transparent); animation: live 2.4s var(--ease-out) infinite; }
.hero__card-v { font: 500 var(--text-lg)/1.2 var(--font-display); }
.hero__card-s { font-size: var(--text-sm); color: var(--ink-2); }
@keyframes live { 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Today bar under the home hero: hours with an open/closed label, same-day line, find a doctor. */
.hero__bar { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr 1.25fr; margin-top: var(--space-2xl); background: #fff; border: 1px solid var(--rule); border-radius: 0 var(--corner) 0 var(--corner); box-shadow: 0 30px 60px -40px oklch(20% 0.03 150 / .5); }
.hero__cell { padding: var(--space-lg) var(--space-xl); margin: 0; }
.hero__cell + .hero__cell { border-left: 1px solid var(--rule); }
.hero__cell p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.hero__cell .hero__cell-k { display: block; font: 500 var(--text-md)/1.3 var(--font-display); color: var(--ink); margin-bottom: .35rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; }
.is-open .status::before, .is-closed .status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.is-open .status::before { background: var(--ok); animation: live 2.4s var(--ease-out) infinite; }
.hero__find-row { display: flex; gap: var(--space-xs); }
.hero__find-row select { flex: 1; min-width: 0; font: 500 1rem var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 0 1rem; min-height: 2.9rem; }
/* Home 2: full-bleed reception photo under a sage veil, with the quick booking bar. */
.fhero { position: relative; isolation: isolate; min-height: min(86vh, 46rem); display: grid; align-items: end; overflow: hidden; color: var(--on-dark); }
.fhero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.fhero__veil { position: absolute; inset: 0; z-index: -1; background: var(--grad-veil); }
.fhero__copy { padding: var(--space-3xl) 0; }
.fhero__title { font-size: var(--text-display); max-width: 15ch; letter-spacing: -0.025em; }
.fhero__lead { font-size: var(--text-md); max-width: 34rem; color: var(--on-dark-2); }
.quickbook { display: flex; gap: var(--space-xs); max-width: 34rem; margin-top: var(--space-xl); padding: .4rem; background: #fff; border-radius: var(--radius-pill); box-shadow: 0 24px 50px -24px oklch(5% 0 0 / .7); }
.quickbook select { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1rem var(--font-body); color: var(--ink); padding: 0 1rem; border-radius: var(--radius-pill); }
.strip { background: var(--dark); color: var(--on-dark-2); padding: var(--space-lg) 0; font-size: var(--text-sm); }
.strip__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.strip p { margin: 0; }
.strip strong { display: block; color: var(--on-dark); font: 500 var(--text-md)/1.3 var(--font-display); }

/* 6. Sections & page heads ----------------------------------------------- */
.section { padding: var(--space-3xl) 0; }
.section--tight { padding: var(--space-2xl) 0 var(--space-3xl); }
.section--wash { background: var(--wash); }
.section--dark { background: var(--grad-dark); color: var(--on-dark); }
.section__head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: var(--text-md); line-height: 1.5; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); }
.section__head--row > p { max-width: 26rem; margin: 0; }
.section__head--row h2 { margin: 0; }
.page-head { background: var(--grad-tint); padding: var(--space-3xl) 0 var(--space-2xl); border-bottom: 1px solid var(--rule); }
.page-head--short { padding: var(--space-2xl) 0 var(--space-xl); }
.page-head h1 { font-size: var(--text-display-s); max-width: 42rem; letter-spacing: -0.02em; }
.page-head p:not(.eyebrow):not(.crumbs):not(.actions-row) { color: var(--ink-2); font-size: var(--text-md); max-width: 42rem; line-height: 1.5; }
.page-head__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.page-head__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-head--404 { min-height: 60vh; display: grid; align-items: center; }

/* 7. Body map: the drawn figure is the fallback; the 3D canvas fades in over it (.is-3d) ---------------- */
.bodymap { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-2xl); align-items: center; }
.bodymap__stage { position: relative; aspect-ratio: 4 / 5; max-height: 40rem; width: 100%; background: radial-gradient(60% 55% at 50% 45%, #fff 0%, var(--wash) 70%, transparent 100%); border-radius: 0 var(--corner) 0 0; }
.bodymap__figure { position: absolute; inset: 6% 18%; width: 64%; height: 88%; transition: opacity var(--dur-long) var(--ease-out); }
.bm-body { transform-origin: 100px 430px; transition: transform var(--dur-long) var(--ease-spring); }
.bm-part { fill: oklch(92% 0.012 120); stroke: oklch(80% 0.02 130); stroke-width: 1; transition: fill var(--dur-short) var(--ease-out), stroke var(--dur-short); }
.bm-heart { fill: oklch(85% 0.02 130); transition: fill var(--dur-short); }
.bodymap[data-active="head"] .bm-head, .bodymap[data-active="skin"] .bm-skin, .bodymap[data-active="pelvis"] .bm-pelvis,
.bodymap[data-active="knee"] .bm-knee, .bodymap[data-active="child"] .bm-part { fill: var(--glow); stroke: var(--brand); }
.bodymap[data-active="heart"] .bm-heart { fill: var(--brand-deep); animation: beat 1.1s var(--ease-out) infinite; transform-origin: 112px 125px; }
.bodymap[data-active="child"] .bm-body { transform: scale(.78); }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.bodymap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); cursor: grab; touch-action: pan-y; }
.bodymap__canvas:active { cursor: grabbing; }
.bodymap__hint { position: absolute; left: 50%; bottom: var(--space-md); translate: -50% 0; margin: 0; font-size: var(--text-sm); color: var(--muted); background: #fff; padding: .3rem .8rem; border-radius: var(--radius-pill); opacity: 0; transition: opacity var(--dur-long); pointer-events: none; }
.bodymap.is-3d .bodymap__canvas { opacity: 1; }
.bodymap.is-3d .bodymap__figure { opacity: 0; }
.bodymap.is-3d .bodymap__hint { opacity: 1; }
.bodymap.is-3d.is-turned .bodymap__hint { opacity: 0; }
.bodymap__regions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.region { font: 500 .95rem/1 var(--font-body); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: .75rem 1.05rem; min-height: 2.75rem; cursor: pointer; transition: background var(--dur-short) var(--ease-out), border-color var(--dur-short), color var(--dur-short), transform var(--dur-micro); }
.region:hover { border-color: var(--brand); }
.region:active { transform: scale(.97); }
.region[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.bodymap__info h3 { font-size: var(--text-xl); }
.bodymap__info p:not(.eyebrow) { color: var(--ink-2); max-width: 34rem; }
.bodymap__next strong { color: var(--ink); }
.js .bodymap__info.is-in { animation: rise var(--dur-long) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* 8. Cards, people, posts ------------------------------------------------ */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.card a { display: block; height: 100%; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; border-radius: 0 0 var(--corner) 0; box-shadow: 0 1px 0 var(--rule); transition: box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.card a:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px oklch(20% 0.03 150 / .5); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.card a:hover .card__img { transform: scale(1.04); }
.card__body { display: block; padding: var(--space-lg); }
.card__title { display: block; font: 500 var(--text-lg)/1.15 var(--font-display); margin-bottom: .3rem; }
.card__text { display: block; color: var(--muted); }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.people--grid { grid-template-columns: repeat(3, 1fr); }
.person a { display: block; color: var(--ink); text-decoration: none; }
.person__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 0 var(--corner) 0 0; margin-bottom: var(--space-md); filter: saturate(.92); transition: filter var(--dur-long), border-radius var(--dur-long) var(--ease-out); }
.person a:hover .person__img { filter: saturate(1.05); border-radius: 0 var(--corner) 0 var(--corner); }
.person__name { display: block; font: 500 var(--text-md)/1.2 var(--font-display); }
.person__role, .person__more { display: block; color: var(--muted); font-size: var(--text-sm); }
.person__more { color: var(--brand); margin-top: .2rem; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.filter { font: 500 .95rem/1 var(--font-body); background: #fff; border: 1px solid var(--rule); color: var(--ink); border-radius: var(--radius-pill); padding: .7rem 1rem; min-height: 2.75rem; cursor: pointer; transition: background var(--dur-short), color var(--dur-short), border-color var(--dur-short); }
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__count { color: var(--muted); font-size: var(--text-sm); margin: var(--space-md) 0 var(--space-xl); }
.js .person.is-in { animation: rise var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl) var(--space-lg); }
.post__media { display: block; overflow: hidden; border-radius: 0 0 var(--corner) 0; margin-bottom: var(--space-md); }
.post__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.post__media:hover .post__img { transform: scale(1.04); }
.post__meta { color: var(--muted); font-size: var(--text-sm); margin-bottom: .4rem; }
.post__cat { color: var(--brand); font-weight: 600; margin-right: .6rem; }
.post h3 { font-size: var(--text-md); }
.post h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-long) var(--ease-out); }
.post h3 a:hover { background-size: 100% 1px; }
.post > p:last-child { color: var(--ink-2); }

/* 9. Visit path: a line that draws as the section scrolls, each step lights up when the line reaches it -- */
.visit__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-2xl); align-items: start; }
.visit__head { position: sticky; top: 7rem; }
.visit__path { position: relative; padding-left: 4rem; }
.visit__line { position: absolute; left: 0; top: 0; width: 2.5rem; height: 100%; overflow: visible; }
.visit__line path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.visit__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xl); counter-reset: v; }
.visit__steps li { position: relative; counter-increment: v; padding: var(--space-lg); background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); border: 1px solid var(--rule); transition: border-color var(--dur-long), box-shadow var(--dur-long), transform var(--dur-long) var(--ease-out); }
.visit__steps li::before { content: counter(v); position: absolute; left: -3.35rem; top: var(--space-lg); width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); font: 600 var(--text-sm)/1 var(--font-body); color: var(--muted); transition: background var(--dur-short), border-color var(--dur-short), color var(--dur-short); }
.visit__steps li p { color: var(--ink-2); margin: 0; }
.js .visit__steps li { transform: translateX(10px); }
.visit__steps li.is-reached, html:not(.js) .visit__steps li { border-color: color-mix(in oklch, var(--brand) 40%, var(--rule)); box-shadow: 0 20px 40px -30px oklch(20% 0.03 150 / .45); transform: none; }
.visit__steps li.is-reached::before, html:not(.js) .visit__steps li::before { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
html:not(.js) .visit__line path { stroke-dashoffset: 0; } /* no script (and the Theme Preview shots): the whole path is drawn */

/* 10. Teaser, reviews, CTA, numbers --------------------------------------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.teaser__card { margin: 0; background: #fff; border-radius: 0 var(--corner) 0 0; padding: var(--space-xl); box-shadow: 0 40px 70px -40px oklch(20% 0.03 150 / .5); border: 1px solid var(--rule); }
.teaser__k { font-weight: 600; color: var(--brand); }
.teaser__days, .teaser__times { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.teaser__days span, .teaser__times span { padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: var(--radius-s); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.teaser .is-on { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.teaser__total { margin: var(--space-md) 0 0; padding-top: var(--space-md); border-top: 1px solid var(--rule); font: 500 var(--text-md)/1.3 var(--font-display); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review { margin: 0; background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); padding: var(--space-xl) var(--space-lg) var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--rule); }
.review blockquote { margin: 0 0 var(--space-lg); font: 400 1.15rem/1.5 var(--font-display); }
.review figcaption { display: flex; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.review figcaption strong { display: block; font-size: .95rem; }
.review__avatar { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand-deep); font-weight: 600; }
.review__src { display: inline-flex; gap: .35rem; align-items: center; color: var(--muted); }
.review__src svg { width: 14px; height: 14px; }
.cta { background: var(--grad-dark); color: var(--on-dark); padding: var(--space-2xl) 0; }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.cta h2 { font-size: var(--text-xl); margin: 0; max-width: 40rem; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin: 0; }
.numbers div { border-top: 1px solid var(--dark-3); padding-top: var(--space-md); }
.numbers dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.numbers dd { margin: 0; font: 500 var(--text-2xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

/* 11. Booking ------------------------------------------------------------ */
.booking { display: grid; grid-template-columns: 1fr 20rem; gap: var(--space-2xl); align-items: start; }
.book { --progress: 0; min-width: 0; }
.book__progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xs); }
.book__progress button { width: 100%; display: flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .4rem 0; font: 500 var(--text-sm)/1.2 var(--font-body); color: var(--muted); cursor: default; text-align: left; }
.book__progress span { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: #fff; transition: background var(--dur-short), color var(--dur-short), border-color var(--dur-short); }
.book__progress [aria-current] button { color: var(--ink); font-weight: 600; }
.book__progress [aria-current] span { border-color: var(--brand-deep); color: var(--brand-deep); }
.book__progress .is-done button { color: var(--brand-deep); cursor: pointer; }
.book__progress .is-done span { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.book__bar { height: 3px; background: var(--rule); border-radius: 3px; overflow: hidden; margin: var(--space-sm) 0 var(--space-xl); }
.book__bar span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(calc(.08 + var(--progress) * .92)); transition: transform var(--dur-long) var(--ease-out); }
html:not(.has-booking) .book__progress, html:not(.has-booking) .book__bar, html:not(.has-booking) [data-book-next], html:not(.has-booking) [data-book-back] { display: none; }
.has-booking .book__fallback { display: none; }
.book__step.is-on { animation: rise var(--dur-long) var(--ease-out) both; }
.book .book__step { display: block; }
.book legend { font: 500 var(--text-xl)/1.15 var(--font-display); margin-bottom: var(--space-lg); padding: 0; }
.book legend:focus { outline: none; }
.picks { display: grid; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.picks--specialty { grid-template-columns: repeat(3, 1fr); }
.picks--doctor { grid-template-columns: repeat(2, 1fr); }
.picks--day { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.picks--time { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__body { display: grid; gap: .2rem; height: 100%; padding: var(--space-md); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color var(--dur-short), box-shadow var(--dur-short), background var(--dur-short), transform var(--dur-micro); }
.pick__body strong { font-weight: 600; }
.pick__body small { color: var(--muted); font-size: var(--text-sm); }
.pick:hover .pick__body { border-color: var(--brand); }
.pick input:focus-visible + .pick__body { outline: 3px solid var(--focus); outline-offset: 2px; }
.pick input:checked + .pick__body { border-color: var(--brand-deep); background: color-mix(in oklch, var(--tint) 45%, #fff); box-shadow: inset 0 0 0 1px var(--brand-deep); }
.pick:active .pick__body { transform: scale(.98); }
.pick--doctor .pick__body { grid-template-columns: 3rem 1fr; column-gap: var(--space-md); align-items: center; }
.pick--doctor .pick__body img { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.pick--any .pick__body { grid-template-columns: 1fr; } /* First available has no photo */
.pick--day .pick__body, .pick--time .pick__body { text-align: center; padding: var(--space-sm); font-variant-numeric: tabular-nums; }
.pick--time .pick__body { font-weight: 600; }
.book__err { color: var(--error); font-weight: 600; min-height: 1.5em; margin: 0; }
.book__empty { color: var(--ink-2); }
.book__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.book__nav [data-book-next], .book__nav [data-book-send] { margin-left: auto; }
.book__details { grid-template-columns: 1fr 1fr; }
.book__summary { position: sticky; top: 6.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 0 var(--corner) 0 0; padding: var(--space-xl) var(--space-lg); }
.book__summary-h { font-size: var(--text-lg); }
.book__summary dl { margin: 0 0 var(--space-lg); display: grid; gap: var(--space-md); }
.book__summary dt { font-size: var(--text-sm); color: var(--muted); }
.book__summary dd { margin: 0; font-weight: 600; }
.book__summary dd.is-empty { color: var(--muted); font-weight: 400; }
.book__summary-note { font-size: var(--text-sm); color: var(--ink-2); margin-bottom: var(--space-xs); }
.book__done { grid-column: 1 / -1; max-width: 40rem; padding: var(--space-2xl) 0; }
.book__done h2:focus { outline: none; }
.book__tick { width: 4rem; height: 4rem; margin-bottom: var(--space-lg); fill: none; stroke: var(--brand-deep); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.book__tick path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 900ms var(--ease-out) both; }
.book__tick path + path { animation-delay: 400ms; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.book__done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.segmented { display: inline-flex; padding: .25rem; background: var(--wash); border-radius: var(--radius-pill); gap: .25rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background var(--dur-short), color var(--dur-short), box-shadow var(--dur-short); }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px oklch(20% 0.03 150 / .5); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 12. Forms -------------------------------------------------------------- */
.field { display: grid; gap: .35rem; align-content: start; }
.field label, .field__label { font-weight: 600; font-size: var(--text-sm); margin: 0; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-s); padding: .7rem .8rem; min-height: 2.9rem; transition: border-color var(--dur-short); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in oklch, var(--brand) 30%, transparent); outline-offset: 0; }
.field textarea { min-height: 7rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--text-sm); min-height: 1.2em; }
.check { grid-template-columns: auto 1fr; column-gap: var(--space-sm); align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--brand-deep); }
.check label { font-weight: 400; font-size: .95rem; color: var(--ink-2); }
.check .field__err { grid-column: 2; }
.form { display: grid; gap: var(--space-lg); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); min-width: 0; }
.form legend { font: 500 var(--text-lg)/1.2 var(--font-display); margin-bottom: var(--space-md); }
.form .span-2 { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; } /* honeypot for php/send.php: bots fill it, people never see it */
.form__send { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.form__status { padding: var(--space-md); border-radius: var(--radius-s); background: color-mix(in oklch, var(--ok) 12%, #fff); color: var(--ok); font-weight: 600; margin: 0; }
.form__status.is-error { background: color-mix(in oklch, var(--error) 12%, #fff); color: var(--error); }

/* 13. Pages -------------------------------------------------------------- */
.services { display: grid; gap: var(--space-3xl); }
.service { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-2xl); align-items: center; }
.service--flip .service__img { order: 2; }
.service__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service__copy p:not(.eyebrow) { color: var(--ink-2); }
.service h3 { font-size: var(--text-xl); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.4fr 1fr; }
.split--narrow { grid-template-columns: .8fr 1.2fr; align-items: start; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__copy p:not(.eyebrow) { color: var(--ink-2); }
.prose { max-width: 42rem; }
.prose--narrow { margin-inline: auto; }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-xl); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose address { font-style: normal; color: var(--ink-2); }
.facts-card { position: sticky; top: 6.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 0 var(--corner) 0 0; padding: var(--space-xl) var(--space-lg); }
.facts-card__h { font-size: var(--text-lg); }
.specs { margin: 0 0 var(--space-lg); }
.specs div { display: flex; justify-content: space-between; gap: var(--space-md); padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.tile { background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); padding: var(--space-lg); border: 1px solid var(--rule); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px oklch(20% 0.03 150 / .5); }
.tile p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.tile__icon { width: 2.6rem; height: 2.6rem; margin-bottom: var(--space-md); fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon { transition: transform var(--dur-long) var(--ease-spring); }
.tile:hover .tile__icon { transform: scale(1.08) rotate(-4deg); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.table caption { text-align: left; color: var(--muted); font-size: var(--text-sm); padding-bottom: var(--space-sm); caption-side: top; }
.table th, .table td { text-align: left; padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--rule); vertical-align: top; }
.table thead th { border-top: 0; font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.table tbody th { font-weight: 600; }
.table td { color: var(--ink-2); }
.table tbody tr { transition: background var(--dur-micro); }
.table tbody tr:hover { background: color-mix(in oklch, var(--tint) 30%, #fff); }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.values li { border-top: 2px solid var(--brand); padding-top: var(--space-lg); }
.values p { color: var(--ink-2); }
.layers { position: relative; height: clamp(26rem, 48vw, 40rem); }
.layers img { position: absolute; object-fit: cover; box-shadow: 0 40px 70px -40px oklch(20% 0.03 150 / .55); }
.layers__a { left: 0; top: 0; width: 56%; height: 70%; }
.layers__b { right: 0; top: 18%; width: 46%; height: 56%; }
.layers__c { left: 30%; bottom: 0; width: 30%; height: 42%; z-index: 2; }
.timeline { list-style: none; padding: 0; margin: 0 0 var(--space-lg); display: grid; gap: var(--space-sm); }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-md); color: var(--ink-2); }
.timeline span { font: 500 var(--text-md)/1.3 var(--font-display); color: var(--brand-deep); }
.timeline--big li { padding: var(--space-md) 0; border-bottom: 1px solid var(--rule); font-size: var(--text-md); line-height: 1.4; }
.doctor { display: grid; grid-template-columns: minmax(16rem, 28rem) 1fr; gap: var(--space-2xl); align-items: center; }
.doctor__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.doctor__copy h1 { font-size: var(--text-display); }
.doctor__role { color: var(--brand); font-weight: 600; }
.doctor__copy p:not(.crumbs):not(.doctor__role):not(.actions-row) { color: var(--ink-2); font-size: var(--text-md); line-height: 1.55; max-width: 38rem; }
.week { width: 100%; border-collapse: collapse; margin-bottom: var(--space-lg); }
.week th, .week td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.week th { font-weight: 600; }
.week td { text-align: right; font-variant-numeric: tabular-nums; }
.week .is-off { color: var(--muted); }
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: 16rem 1fr 2.5rem; gap: var(--space-lg); align-items: center; padding: var(--space-lg) 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: padding var(--dur-short) var(--ease-out), background var(--dur-short); }
.rows a:hover { padding-inline: var(--space-md); background: #fff; }
.rows__name { font: 500 var(--text-lg)/1.2 var(--font-display); }
.rows__text { color: var(--muted); }
.rows__go { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--rule); position: relative; transition: background var(--dur-short), border-color var(--dur-short); }
.rows__go::after { content: ""; position: absolute; inset: 0; margin: auto; width: .55rem; height: .55rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.rows a:hover .rows__go { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.faq { display: grid; gap: var(--space-sm); }
.faq__item { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 var(--space-lg); transition: border-color var(--dur-short); }
.faq__item[open] { border-color: color-mix(in oklch, var(--brand) 40%, var(--rule)); }
.faq__item summary { list-style: none; cursor: pointer; padding: var(--space-md) 0; font: 500 var(--text-md)/1.35 var(--font-display); display: flex; justify-content: space-between; gap: var(--space-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: .6rem; height: .6rem; margin: .45rem .2rem 0 0; border-right: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.faq__item[open] summary::after { transform: translateY(.3rem) rotate(-135deg); }
.faq__item p { color: var(--ink-2); padding-bottom: var(--space-md); margin: 0; }
.faq__item[open] p { animation: rise var(--dur-long) var(--ease-out) both; }
.faq-page { display: grid; grid-template-columns: 1fr 20rem; gap: var(--space-2xl); align-items: start; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-2xl); align-items: center; }
.feature__media { display: block; overflow: hidden; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.feature__media:hover img { transform: scale(1.03); }
.feature h2 { font-size: var(--text-xl); }
.feature h2 a { color: var(--ink); text-decoration: none; }
.feature__copy p:not(.post__meta) { color: var(--ink-2); }
.article { max-width: 46rem; }
.article__head h1 { font-size: var(--text-display-s); }
.article__fig { margin: var(--space-xl) 0; }
.article__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article__fig figcaption { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-sm); }
.article__body { max-width: none; }
.article__body .table-wrap { margin: var(--space-lg) 0; }
.article__pull { margin: var(--space-xl) 0; padding-left: var(--space-lg); border-left: 3px solid var(--brand); }
.article__pull p { font: italic 400 var(--text-lg)/1.4 var(--font-display); color: var(--ink); }
.article__author { display: flex; gap: var(--space-md); align-items: center; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.article__author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.article__author p { margin: 0; }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: start; }
.contact__aside { background: var(--wash); border-radius: 0 var(--corner) 0 0; padding: var(--space-xl); }
.contact__aside h2 { font-size: var(--text-lg); }
.contact__aside address { font-style: normal; margin-bottom: var(--space-md); }
.contact__urgent { font-weight: 600; color: var(--error); }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: 0 0 0 var(--corner); }
.map figcaption { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-sm); }
.map__ground { fill: oklch(95% 0.008 110); }
.map__park { fill: var(--tint); }
.map__road { fill: none; stroke: #fff; stroke-width: 16; }
.map__road--main { stroke-width: 26; }
.map__block { fill: oklch(90% 0.01 110); }
.map__parking { fill: oklch(84% 0.012 120); }
.map__pin { fill: var(--brand-deep); }
.map__pin-ring { fill: color-mix(in oklch, var(--brand) 25%, transparent); transform-origin: 250px 170px; animation: ping 2.4s var(--ease-out) infinite; }
.map__label { fill: var(--muted); font: 600 13px var(--font-body); }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* 14. Footer ------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: var(--space-2xl) 0 var(--space-lg); }
.site-footer a { color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); }
.site-footer__h { font: 600 var(--text-sm)/1.2 var(--font-body); letter-spacing: .02em; color: var(--tint); }
.site-footer address { font-style: normal; margin-bottom: var(--space-md); }
.site-footer__about { max-width: 24rem; margin-top: var(--space-md); }
.site-footer__urgent { font-size: var(--text-sm); color: var(--on-dark); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer__base { display: flex; justify-content: space-between; gap: var(--space-md); border-top: 1px solid var(--dark-3); margin-top: var(--space-xl); padding-top: var(--space-lg); font-size: var(--text-sm); }
.site-footer__base p { margin: 0; }

/* 15. Motion ------------------------------------------------------------- */
/* JS adds .js to <html>; without JS everything is visible. */
.js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal-group] > .is-in { opacity: 1; transform: none; }
.js [data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
/* Hero entrance: copy rises line by line, the photo settles from a slight zoom, the block slides in under it. */
.js .hero__copy > * { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .hero__copy > :nth-child(2) { transition-delay: 90ms; } .js .hero__copy > :nth-child(3) { transition-delay: 180ms; }
.js .hero__copy > :nth-child(4) { transition-delay: 270ms; } .js .hero__copy > :nth-child(5) { transition-delay: 360ms; }
.is-ready .hero__copy > * { opacity: 1; transform: none; }
.js .hero__photo { clip-path: inset(0 0 0 100%); transition: clip-path 1100ms var(--ease-out) 150ms; }
.is-ready .hero__photo { clip-path: inset(0 0 0 0); }
.js .hero__block { scale: .85; opacity: 0; transition: scale 1200ms var(--ease-spring) 300ms, opacity 600ms 300ms; transform-origin: left bottom; }
.is-ready .hero__block { scale: 1; opacity: 1; }
.js .hero__card { opacity: 0; transition: opacity 700ms var(--ease-out) 900ms; }
.is-ready .hero__card { opacity: 1; }
.js .fhero__photo { scale: 1.08; transition: scale 1800ms var(--ease-out); }
.is-ready .fhero__photo { scale: 1; }
.js .fhero__copy > * { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .fhero__copy > :nth-child(2) { transition-delay: 100ms; } .js .fhero__copy > :nth-child(3) { transition-delay: 200ms; } .js .fhero__copy > :nth-child(4) { transition-delay: 300ms; }
.is-ready .fhero__copy > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal-group] > *, .js .hero__copy > *, .js .fhero__copy > *, .js .hero__card, .js .hero__block { opacity: 1; transform: none; scale: 1; transition: none; }
  .js .hero__photo { clip-path: none; transition: none; }
  .js .fhero__photo { scale: 1; transition: none; }
  .js [data-parallax] { translate: none; }
  .visit__line path { stroke-dashoffset: 0; }
  .js .visit__steps li { transform: none; }
  .hero__card-k::before, .is-open .status::before, .map__pin-ring, .bodymap[data-active="heart"] .bm-heart { animation: none; }
  .book__step.is-on, .js .bodymap__info.is-in, .js .person.is-in, .faq__item[open] p, .book__tick path { animation: none; }
}

/* 16. Breakpoints: 1100 (notebook / tablet landscape), 820 (tablet portrait), 560 (phone), 400 (small phone) */
@media (max-width: 1179px) { /* the number folds into a round call button: same link, one tap on every screen */
  .site-header__phone { width: 2.75rem; height: 2.75rem; justify-content: center; background: #fff; border: 1px solid var(--rule); border-radius: 50%; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
  .site-header__phone:hover { border-color: var(--brand); transform: translateY(-1px); }
  .site-header__phone-icon { width: 1.25rem; height: 1.25rem; }
  .site-header__phone-num { display: none; }
  .nav__list { gap: var(--space-md); }
}
@media (max-width: 1100px) {
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .picks--specialty { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr 17rem; gap: var(--space-xl); }
  .strip__row { grid-template-columns: repeat(2, 1fr); }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .hero__cell.hero__find { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 2.75rem; height: 2.75rem; padding: 0 .9rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-pill); font: 600 .95rem/1 var(--font-body); color: var(--ink); cursor: pointer; transition: border-color var(--dur-short), background var(--dur-short), color var(--dur-short); }
  .nav__toggle:hover { border-color: var(--brand); }
  .nav__toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
  .nav__bars { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background var(--dur-micro); }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-short) var(--ease-out), width var(--dur-short) var(--ease-out), top var(--dur-short) var(--ease-out); }
  .nav__bars::before { top: -6px; width: 18px; }
  .nav__bars::after { top: 6px; width: 11px; background: var(--brand); }
  .nav__toggle:hover .nav__bars::after { width: 18px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; width: 18px; background: currentColor; transform: rotate(-45deg); }
  .nav { order: 3; }
  .nav__list { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--space-sm) 1.25rem var(--space-lg); box-shadow: 0 24px 40px -24px oklch(20% 0.03 150 / .45);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--dur-long) var(--ease-out), visibility 0s linear var(--dur-long); }
  .nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--rule); font: 500 1.3rem/1.2 var(--font-display); color: var(--ink); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--brand-deep); }
  .nav.is-open .nav__list { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path var(--dur-long) var(--ease-out), visibility 0s; }
  .site-header__row { position: relative; gap: var(--space-sm); }
}
@media (max-width: 820px) {
  .hero__grid, .teaser, .contact, .bodymap, .visit__grid, .page-head__grid, .split, .split--top, .split--narrow, .service, .feature, .faq-page, .doctor, .booking { grid-template-columns: 1fr; }
  .hero__media { max-width: 36rem; }
  .fhero__veil { background: linear-gradient(180deg, color-mix(in oklch, var(--dark) 30%, transparent) 0%, color-mix(in oklch, var(--dark) 88%, transparent) 70%); } /* text sits low on narrow screens: the veil runs top to bottom */
  .visit__head, .facts-card, .book__summary { position: static; }
  .bodymap__stage { max-width: 26rem; margin-inline: auto; }
  .service--flip .service__img { order: 0; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; gap: var(--space-lg); }
  .cta__row, .section__head--row { flex-direction: column; align-items: flex-start; }
  .rows a { grid-template-columns: 1fr 2.5rem; }
  .rows__text { grid-column: 1; grid-row: 2; }
  .rows__go { grid-column: 2; grid-row: 1 / 3; }
  .doctor__photo { max-width: 22rem; }
  .book__summary-note { display: none; } /* phones and tablets: the summary follows the form, short */
}
@media (max-width: 560px) {
  .section { padding: var(--space-2xl) 0; }
  .hero { padding-top: var(--space-xl); }
  .hero__media { padding: 0 0 var(--space-lg) var(--space-md); }
  .hero__card { right: 0; min-width: 0; padding: var(--space-sm) var(--space-md); }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .hero__facts dd { font-size: var(--text-lg); }
  .hero__bar { grid-template-columns: 1fr; margin-top: var(--space-xl); }
  .hero__cell { padding: var(--space-md) var(--space-lg); }
  .hero__cell + .hero__cell { border-left: 0; border-top: 1px solid var(--rule); }
  .cards, .posts, .reviews, .site-footer__grid, .people--grid, .tiles, .strip__row { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .picks--specialty, .picks--doctor, .form fieldset, .book__details { grid-template-columns: 1fr; }
  .book__progress button { flex-direction: column; align-items: flex-start; font-size: .78rem; }
  .layers { height: 24rem; }
  .site-footer__base { flex-direction: column; }
  .site-header__cta { display: none; } /* phones: brand + call button + menu is all that fits at 360; every page body links the booking */
  .quickbook { flex-direction: row; }
  .quickbook .btn { padding-inline: 1em; }
  .timeline--big li { font-size: var(--text-base); }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1.3rem; }
  .nav__label { display: none; }
  .btn { padding: .8em 1.05em; }
  .hero__actions { gap: var(--space-md); }
  .quickbook select { padding: 0 .6rem; font-size: .95rem; }
  .quickbook .btn::after { display: none; }
  .book__nav .btn { padding-inline: .95em; }
  .actions-row { gap: var(--space-sm) var(--space-md); }
}
.hero__grid > *, .teaser > *, .contact > *, .bodymap > *, .booking > *, .split > *, .visit__grid > * { min-width: 0; }

/* 17. Print: light, no navigation or buttons; what the reveal hides is shown -------------------------------- */
@media print {
  :root { --grad-dark: none; --grad-tint: none; --dark: #fff; --dark-3: #ccc; --on-dark: #000; --on-dark-2: #444; --tint: var(--brand-deep); --paper: #fff; --wash: #fff; }
  @page { margin: 14mm; }
  html, body { background: #fff; color: #000; }
  .skip, .nav, .site-header__phone, .site-header__cta, .btn, .bodymap__canvas, .bodymap__hint, .bodymap__regions, .quickbook, .filters, .site-footer__links, .site-footer__base p + p, .book__progress, .book__bar, .book__nav, .hero__card, .hero__block { display: none !important; }
  .site-header, .visit__head, .facts-card, .book__summary { position: static; }
  .site-header { border-bottom: 1px solid #ccc; }
  .fhero { min-height: 0; color: #000; }
  .fhero__photo, .fhero__veil { display: none; }
  .section, .page-head, .site-footer, .cta { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .js [data-reveal-group] > *, .js .hero__copy > *, .js .fhero__copy > *, .js .hero__card, .js .hero__block { opacity: 1; transform: none; scale: 1; transition: none; }
  .js .hero__photo { clip-path: none; }
  .js [data-parallax] { translate: none; }
  .visit__line path { stroke-dashoffset: 0; }
  .book__step { display: block !important; }
  .card, .person, .review, .faq__item, figure, article, .tile, .visit__steps li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a { color: inherit; }
}
