/* ───────── Tokens ───────── */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --y { syntax: "<percentage>"; inherits: true; initial-value: 45%; }
@property --r { syntax: "<percentage>"; inherits: true; initial-value: 140%; }

:root {
  --bg: #F6F3F7;
  --surface: #FDFBFD;
  --ink: #24091B;
  --ink-2: #5B4453;
  --line: rgba(36, 9, 27, .1);
  --plum: #5A1E44;
  --plum-deep: #2A0B1F;
  --plum-night: #1C0715;
  --on-dark: #F7EEF3;
  --on-dark-2: #E2C6D6;
  --gold: #E1BA51;
  --gold-brand: #AC863B;
  --gold-ink: #85631C;
  --mauve: #906F84;

  --t-piel: #8A4F5A;
  --t-iny: #5A1E44;
  --t-laser: #574873;
  --t-esp: #6B4660;

  --font: "Urbanist", "Avenir Next", "Futura", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --bar-h: 64px;
  --r-lg: 28px;
  --r-md: 20px;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); scrollbar-color: var(--mauve) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--plum); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--gold-brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

.h2 { font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 300; color: var(--ink); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: 0 1.5rem; border-radius: 999px; border: 0;
  font-family: var(--font); font-weight: 500; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--plum { background: var(--plum); color: var(--on-dark); }
.btn--plum svg { color: var(--gold); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(36, 9, 27, .22); }
.btn--ghost svg { transition: transform 240ms var(--ease-out); }
.btn--gold { background: var(--gold); color: var(--plum-night); }
.btn--lg { min-height: 62px; padding: 0 2rem; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .btn--plum:hover { background: #6C2753; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn--ghost:hover svg { transform: translateX(4px); }
  .btn--gold:hover { background: #EBC965; }
}

/* ───────── Bar ───────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink);
  transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}
.bar.is-solid { background: rgba(246, 243, 247, .96); box-shadow: 0 1px 0 var(--line); }
.bar.is-dark { background: rgba(28, 7, 21, .96); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); color: var(--on-dark); }
.bar__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.mark { width: 34px; height: 34px; color: var(--plum); flex: none; transition: color 300ms ease; }
.bar.is-dark .mark { color: var(--gold); }
.bar__name { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.bar__nav { display: none; }
.bar__cta {
  display: inline-flex; align-items: center; gap: .5rem; height: 44px; min-width: 44px; padding: 0 .75rem; justify-content: center;
  border-radius: 999px; background: var(--plum); color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.bar__cta svg { width: 19px; height: 19px; color: var(--gold); }
.bar__cta span { display: none; }
.bar__cta:active { transform: scale(0.95); }
.bar.is-dark .bar__cta { background: var(--gold); color: var(--plum-night); }
.bar.is-dark .bar__cta svg { color: var(--plum-night); }
@media (max-width: 359px) { .bar__name { font-size: .88rem; } }

/* ───────── Hero ───────── */
.hero { padding: calc(var(--bar-h) + env(safe-area-inset-top) + 2rem) var(--gutter) 3rem; display: grid; gap: 2.25rem; }
.hero__title { font-size: clamp(3.7rem, 18vw, 9rem); line-height: .9; letter-spacing: -0.04em; font-weight: 300; color: var(--ink); }
.hero__title .w { display: inline-block; }
.hero__title .w:last-child { font-weight: 500; color: var(--plum); }
.hero__lede { margin-top: 1.4rem; max-width: 36ch; font-size: 1.12rem; color: var(--ink-2); }
.hero__actions { margin-top: 1.9rem; display: grid; gap: .65rem; }
.hero__media { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #E7DDE5; }
.hero__media img { width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.tag {
  position: absolute; left: 14px; bottom: 14px;
  padding: .55rem .95rem; border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: .82rem; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(36, 9, 27, .4);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w { animation: rise 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 110ms); }
  .hero__lede { animation: rise 1000ms var(--ease-out) 260ms both; }
  .hero__actions { animation: rise 1000ms var(--ease-out) 360ms both; }
  .hero__media { animation: reveal 1300ms var(--ease-in-out) 150ms both; }
  .tag { animation: rise 800ms var(--ease-out) 1100ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
@keyframes reveal { from { clip-path: inset(16% 8% 0 8% round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }

/* ───────── Marquee ───────── */
.marquee { background: var(--plum); color: var(--on-dark); overflow: hidden; padding: 1.15rem 0; }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - .8rem)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ───────── Face map ───────── */
.map {
  background: radial-gradient(90% 60% at 80% 0%, rgba(90, 30, 68, .75), transparent 70%), var(--plum-night);
  color: var(--on-dark); padding: 5rem var(--gutter) 4.5rem;
}
.map__title { font-size: clamp(2.6rem, 11vw, 5rem); line-height: .98; letter-spacing: -0.04em; font-weight: 300; }
.map__hint { margin-top: 1rem; color: var(--on-dark-2); max-width: 34ch; }
.map__stage { margin-top: 2.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.zone, .all__head > * { min-width: 0; }

.face { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1122 / 1402; background: #2A0B1F; isolation: isolate; }
.face img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); transform-origin: var(--x) var(--y); }
.face.has-zone img { transform: scale(1.07); }
.face__spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--x) var(--y), transparent 0, transparent calc(var(--r) * .14), rgba(28, 7, 21, .66) var(--r));
  transition: --x 700ms var(--ease-in-out), --y 700ms var(--ease-in-out), --r 700ms var(--ease-in-out);
}
.face.has-zone .face__spot { --r: 44%; }
.face__dots { position: absolute; inset: 0; z-index: 2; }
.dot {
  position: absolute; left: var(--dx); top: var(--dy); transform: translate(-50%, -50%);
  width: 48px; height: 48px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; touch-action: manipulation;
}
.dot::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(28, 7, 21, .35), 0 4px 12px rgba(28, 7, 21, .5);
  transition: transform 260ms var(--ease-out), background-color 200ms ease, box-shadow 260ms ease;
}
.dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dot::after { animation: ping 2.8s var(--ease-out) infinite; animation-delay: calc(var(--i) * 350ms); }
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.dot:active::before { transform: scale(.85); }
.dot[aria-pressed="true"]::before { transform: scale(1.3); background: #fff; box-shadow: 0 0 0 5px var(--gold), 0 6px 16px rgba(28, 7, 21, .55); }
.dot[aria-pressed="true"]::after { animation: none; }
.face.has-zone .dot:not([aria-pressed="true"])::before { opacity: .55; }
.dot__label {
  position: absolute; left: 50%; bottom: calc(100% - 2px); transform: translate(-50%, 6px);
  white-space: nowrap; padding: .35rem .75rem; border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: .8rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.dot[aria-pressed="true"] .dot__label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
  .dot:hover::before { transform: scale(1.25); opacity: 1; }
  .dot:hover .dot__label { opacity: 1; transform: translate(-50%, 0); }
}

.zones { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem; scroll-snap-type: x proximity; }
.zones::-webkit-scrollbar { display: none; }
.zchip {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(247, 238, 243, .24); background: transparent; color: var(--on-dark); font-size: .92rem; font-weight: 500;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out);
}
.zchip:active { transform: scale(0.96); }
.zchip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--plum-night); }
@media (hover: hover) and (pointer: fine) { .zchip:not([aria-selected="true"]):hover { border-color: var(--gold); } }

.zone__body { margin-top: 1.5rem; min-height: 14rem; }
.zone__empty { color: var(--on-dark-2); padding: 1.25rem 0; border-top: 1px solid rgba(247, 238, 243, .14); }
.zone__title { font-size: clamp(1.9rem, 7vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 300; }
.zone__lede { margin-top: .5rem; color: var(--on-dark-2); max-width: 44ch; }
.zone__list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.ztreat {
  width: 100%; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 1rem; text-align: left;
  padding: 1.05rem 0; border: 0; border-top: 1px solid rgba(247, 238, 243, .14); background: none; cursor: pointer; color: var(--on-dark);
  transition: transform 160ms var(--ease-out);
}
.ztreat:active { transform: scale(0.985); }
.ztreat__name { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em; }
.ztreat__sum { display: block; margin-top: .15rem; font-size: .95rem; color: var(--on-dark-2); }
.ztreat__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(225, 186, 81, .55); color: var(--gold); transition: background-color 220ms ease, color 220ms ease, transform 240ms var(--ease-out); }
.ztreat__go svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .ztreat:hover .ztreat__go { background: var(--gold); color: var(--plum-night); transform: translateX(3px); } }
@media (prefers-reduced-motion: no-preference) {
  .zone__body.is-in > *, .zone__body.is-in li { animation: rise 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
}

/* ───────── All treatments ───────── */
.all { padding: 5rem var(--gutter) 4.5rem; }
.all__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.75rem; }
.tabs { position: relative; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color 260ms ease;
}
.tab[aria-selected="true"] { color: var(--on-dark); }
.tabs__ink {
  position: absolute; z-index: 0; top: 0; left: 0; height: 44px; border-radius: 999px; background: var(--plum);
  width: var(--iw, 0); transform: translateX(var(--ix, 0));
  transition: transform 420ms var(--ease-drawer), width 420ms var(--ease-drawer);
}

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  aspect-ratio: 3 / 4; padding: .85rem .85rem 1rem; border: 0; border-radius: var(--r-md); text-align: left; cursor: pointer;
  background: var(--tint); color: #fff; overflow: hidden;
  transition: transform 200ms var(--ease-out), box-shadow 300ms ease; touch-action: manipulation;
}
.card__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.02);
  transition: transform 900ms var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(28, 7, 21, .42) 0%, rgba(28, 7, 21, 0) 28%),
    linear-gradient(to top, var(--tint) 0%, color-mix(in srgb, var(--tint) 70%, transparent) 26%, transparent 62%);
}
.card:active { transform: scale(0.97); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card__cat {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: rgba(253, 251, 253, .92); padding: .28rem .6rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.card__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(253, 251, 253, .92); color: var(--ink); flex: none; }
.card__go svg { width: 15px; height: 15px; transform: rotate(-45deg); transition: transform 300ms var(--ease-out); }
.card__name { font-size: 1.15rem; line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; text-shadow: 0 1px 2px rgba(28, 7, 21, .25); }
[data-cat="piel"] { --tint: var(--t-piel); }
[data-cat="iny"] { --tint: var(--t-iny); }
[data-cat="laser"] { --tint: var(--t-laser); }
[data-cat="esp"] { --tint: var(--t-esp); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(36, 9, 27, .55); }
  .card:hover .card__img { transform: scale(1.06); }
  .card:hover .card__go svg { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .cards.is-in .card { animation: cardIn 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ───────── Doctor ───────── */
.doctor { padding: 1rem var(--gutter) 5rem; display: grid; gap: 2.5rem; }
.doctor__portrait {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: radial-gradient(70% 55% at 50% 40%, #7A3462, transparent 72%), var(--plum);
}
.doctor__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.doctor__portrait::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(28, 7, 21, .82), rgba(28, 7, 21, 0)); }
.doctor__portrait figcaption { z-index: 1; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; color: var(--on-dark); font-weight: 500; font-size: 1.1rem; }
.doctor__portrait figcaption span { display: block; font-weight: 400; font-size: .92rem; color: var(--on-dark); opacity: .9; }
.doctor__text p { margin-top: 1.1rem; color: var(--ink-2); max-width: 58ch; }
.doctor__text .h2 + p { margin-top: 1.6rem; }
.pillars { list-style: none; margin: 2rem 0 0; padding: 0; }
.pillars li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); display: grid; gap: .1rem; }
.pillars strong { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

/* ───────── Process ───────── */
.process { background: var(--surface); padding: 5rem var(--gutter); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.process__head p { margin-top: 1rem; color: var(--ink-2); max-width: 36ch; }
.steps-wrap { position: relative; margin-top: 2.75rem; padding-left: 1.75rem; }
.steps__rail { position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.steps__rail span { position: absolute; inset: 0; background: var(--plum); transform-origin: top; transform: scaleY(var(--p, 0)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.steps__n { display: block; font-size: .85rem; font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.steps h3 { margin-top: .25rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.steps p { margin-top: .35rem; color: var(--ink-2); max-width: 46ch; }

/* ───────── Vision ───────── */
.vision { background: var(--surface); padding: 2rem var(--gutter) 6rem; }
.vision__text { font-size: clamp(2.1rem, 9vw, 5.2rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 300; max-width: 18ch; color: var(--ink); }
.vision__text .vw { transition: opacity 300ms ease; opacity: var(--o, 1); }
.vision__text .vw.is-key { color: var(--plum); font-weight: 500; }

/* ───────── Close ───────── */
.close { position: relative; overflow: hidden; background: var(--plum-night); color: var(--on-dark); }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 7, 21, .95), rgba(90, 30, 68, .5)); }
.close__inner { position: relative; z-index: 1; padding: 6rem var(--gutter) 5.5rem; display: grid; gap: 1.25rem; justify-items: start; }
.close__title { font-size: clamp(2.8rem, 13vw, 6.5rem); line-height: .95; letter-spacing: -0.04em; font-weight: 300; }
.close__inner p { color: var(--on-dark-2); max-width: 36ch; font-size: 1.1rem; }
.close .btn { margin-top: .75rem; }

/* ───────── Footer ───────── */
.foot { background: var(--plum-night); color: var(--on-dark-2); padding: 2.5rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom)); display: grid; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .92rem; }
.foot__brand { display: flex; align-items: center; gap: .7rem; color: var(--on-dark); font-weight: 500; }
.foot__brand .mark { color: var(--gold); }
.foot__fine { margin-top: .75rem; font-size: .84rem; color: #D2B0C4; max-width: 60ch; }

/* ───────── Dock ───────── */
.dock {
  position: fixed; z-index: 25; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; border-radius: 999px;
  background: var(--plum); color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 1rem;
  box-shadow: 0 16px 32px -12px rgba(28, 7, 21, .6);
  transform: translateY(calc(100% + 30px)); opacity: 0; transition: transform 420ms var(--ease-drawer), opacity 300ms ease;
}
.dock svg { width: 20px; height: 20px; color: var(--gold); }
.dock.is-shown { transform: none; opacity: 1; }
.dock.is-shown:active { transform: scale(0.97); }

/* ───────── Sheet ───────── */
.sheet { position: fixed; inset: 0; z-index: 60; color: var(--ink); }
.sheet[hidden] { display: none; }
.sheet__scrim {
  position: absolute; inset: 0; background: rgba(28, 7, 21, 0); touch-action: none;
  transition: background-color 360ms ease;
}
.sheet.is-open .sheet__scrim { background: rgba(28, 7, 21, .55); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translate3d(0, 100%, 0); transition: transform 460ms var(--ease-drawer);
}
.sheet.is-open .sheet__panel { transform: translate3d(0, 0, 0); }
.sheet.is-closing .sheet__panel { transition-duration: 260ms; }
.sheet__grip { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__grip span { width: 40px; height: 4px; border-radius: 4px; background: rgba(36, 9, 27, .18); }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.sheet__close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.sheet__close:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .sheet__close:hover { background: #ECE5EC; } }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: .25rem var(--gutter) 0; }
.sh__hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); padding: 1.15rem 1.25rem 1.35rem; min-height: 15rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--tint, var(--plum)); color: #fff; margin-top: .25rem; }
.sh__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sh__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--tint) 0%, color-mix(in srgb, var(--tint) 55%, transparent) 40%, rgba(28, 7, 21, .15) 100%); }
.sh__cat { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); background: rgba(253, 251, 253, .92); padding: .28rem .65rem; border-radius: 999px; }
.sh__title { margin-top: 2rem; font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; }
.sh__desc { margin-top: 1.4rem; font-size: 1.06rem; color: var(--ink-2); }
.sh__grid { margin-top: 1.5rem; }
.sh__row { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: .4rem; }
.sh__label { font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.sh__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sh__tags span { font-size: .88rem; padding: .3rem .75rem; border-radius: 999px; background: var(--bg); color: var(--ink); }
.sh__opts { list-style: none; margin: 0; padding: 0; }
.sh__opts li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; color: var(--ink-2); font-size: .95rem; }
.sh__opts b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh__fine { font-size: .85rem; color: var(--ink-2); }
.sh__cta {
  position: sticky; bottom: 0; z-index: 2; margin: 1rem calc(var(--gutter) * -1) 0;
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(253, 251, 253, 0), var(--surface) 24%);
}
.sh__cta .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet__panel, .dock, .tabs__ink, .face__spot, .face img { transition-duration: 1ms !important; }
}

/* ───────── Tablet ───────── */
@media (min-width: 768px) {
  :root { --bar-h: 76px; }
  .bar__cta { padding: 0 1.1rem 0 .9rem; }
  .bar__cta span { display: inline; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .card { padding: 1.1rem 1.1rem 1.25rem; }
  .card__name { font-size: 1.4rem; }
  .doctor { grid-template-columns: minmax(280px, 400px) 1fr; align-items: center; gap: 4rem; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .sheet__panel { left: auto; top: 12px; bottom: 12px; right: 12px; width: min(520px, 92vw); max-height: none; border-radius: var(--r-lg); transform: translateX(calc(100% + 24px)); }
  .sheet.is-open .sheet__panel { transform: translateX(0); }
  .sheet__grip { visibility: hidden; height: 20px; }
  .sheet__close { top: 22px; right: 22px; }
  .sh__cta { padding-bottom: 1.5rem; }
  .dock { display: none; }
  .foot { padding-bottom: 3rem; grid-template-columns: 1fr auto; align-items: center; }
  .foot__fine { grid-column: 1 / -1; }
}

/* ───────── Desktop ───────── */
@media (min-width: 1024px) {
  .bar__nav { display: flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(36, 9, 27, .05); }
  .bar.is-dark .bar__nav { background: rgba(255, 255, 255, .07); }
  .bar__nav a { padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; transition: background-color 200ms ease; }
  .bar__nav a:hover { background: rgba(36, 9, 27, .07); }
  .bar.is-dark .bar__nav a:hover { background: rgba(255, 255, 255, .1); }

  .hero { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 4vw; min-height: 100vh; padding-bottom: 4rem; }
  .hero__title { font-size: clamp(6rem, 10vw, 10.5rem); }
  .hero__lede { font-size: 1.25rem; }
  .hero__media { max-height: 78vh; }

  .map { padding: 7rem var(--gutter); }
  .map__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .face { position: sticky; top: calc(var(--bar-h) + 1.5rem); height: min(calc(100vh - var(--bar-h) - 3rem), 780px); width: auto; justify-self: center; }
  .zones { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .zone__body { min-height: 26rem; }

  .all { padding: 7rem var(--gutter); }
  .all__head { grid-template-columns: 1fr auto; align-items: end; }
  .tabs { margin: 0; padding: .3rem; background: rgba(36, 9, 27, .05); border-radius: 999px; overflow: visible; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .card { padding: 1.25rem 1.25rem 1.4rem; }
  .card__name { font-size: 1.6rem; }

  .doctor { padding: 3rem var(--gutter) 7rem; grid-template-columns: 440px 1fr; gap: 6rem; }
  .process { padding: 7rem var(--gutter); display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; }
  .steps-wrap { margin-top: 0; }
  .vision { padding: 2rem var(--gutter) 9rem; }
  .close__inner { padding: 9rem var(--gutter) 8rem; }
}
