/* Dr. Meera's Skin & Hair Clinic: sample site by Final Draft.
   Palette: porcelain, plum ink, night plum, lilac and peach light. One family: Hanken Grotesk. */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Roboto');
  size-adjust: 97%; ascent-override: 100%; descent-override: 29%; line-gap-override: 0%;
}

:root {
  --porcelain: #F5F1F2;
  --frost: #EAE3E8;
  --line: #DCCFD8;
  --ink: #2B1328;
  --ink-2: #5E4A5A;
  --orchid: #7A3E6E;
  --night: #22101E;
  --night-2: #3A1834;
  --lilac: #CDB8E8;
  --peach: #F5C09E;
  --on-dark: #F6EEF2;
  --on-dark-2: #C6B2C3;
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .16);
  --badge-h: 40px;
  --header-h: 64px;
  --gutter: 16px;
  --font: 'Hanken Grotesk', 'Hanken Fallback', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--badge-h) + var(--header-h) + 12px); }
body {
  margin: 0; padding-top: var(--badge-h);
  font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--porcelain);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--peach); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { top: calc(var(--badge-h) + 8px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 20px; height: 20px; flex: none; }
.btn-small { min-height: 42px; padding: .5rem 1.15rem; font-size: .95rem; }
.btn-peach { background: var(--peach); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(245, 192, 158, .65), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-peach:hover { box-shadow: 0 14px 36px -10px rgba(245, 192, 158, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ink { background: var(--ink); color: var(--porcelain); }
.btn-ink:hover { background: var(--orchid); }
.btn-glass { background: var(--glass); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); }

/* ---------- sample badge and header ---------- */
.sample-badge {
  position: fixed; z-index: 60; inset: 0 0 auto; height: var(--badge-h);
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: #120710; color: #EBDDE6; font-size: .875rem; padding-inline: 12px;
}
.sample-badge a { color: var(--ink); background: var(--peach); font-weight: 600; text-decoration: none; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }

.site-header {
  position: fixed; z-index: 50; left: 0; right: 0; top: var(--badge-h); height: var(--header-h);
  color: var(--on-dark); transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-solid { background: rgba(34, 16, 30, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.header-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.wordmark-mark { width: 34px; height: 34px; color: var(--on-dark); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.wordmark-sub { font-size: .8rem; color: var(--on-dark-2); }
.site-nav { display: none; gap: 1.6rem; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--on-dark-2); transition: color .2s; }
.site-nav a:hover { color: var(--on-dark); }
@media (min-width: 1040px) { .site-nav { display: flex; } }

/* ---------- hero: the face map ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--on-dark); background: var(--night);
  padding-top: calc(var(--header-h) + 12px); padding-bottom: 28px; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 38% at 58% 44%, rgba(245, 192, 158, .20), transparent 70%),
    radial-gradient(38% 46% at 18% 12%, rgba(205, 184, 232, .16), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgba(122, 62, 110, .45), transparent 70%),
    linear-gradient(180deg, #2A1226 0%, var(--night) 60%, #1A0B17 100%);
}
.hero-grid { display: grid; gap: 4px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-weight: 300; }
.kicker { display: block; font-size: .95rem; font-weight: 500; color: var(--lilac); letter-spacing: 0; margin-bottom: .75rem; }
.display { display: block; font-size: clamp(2.45rem, 1.5rem + 3.4vw, 4.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 300; text-wrap: balance; }
.hero-sub { margin-top: 1rem; color: var(--on-dark-2); max-width: 34ch; font-size: 1rem; }

.zones { display: flex; gap: 8px; margin-top: 1.25rem; }
.zone {
  flex: none; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--on-dark);
  font-size: .95rem; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  transition: background-color .25s, box-shadow .25s, color .25s;
}
.zone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 10px rgba(245, 192, 158, .8); flex: none; }
.zone-off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--lilac); }
.zone:hover { background: rgba(255, 255, 255, .12); }
.zone[aria-pressed="true"] { background: var(--peach); color: var(--ink); box-shadow: none; }
.zone[aria-pressed="true"]::before { background: var(--ink); box-shadow: none; }

/* stage: the photo face map */
.stage { position: relative; margin-inline: calc(var(--gutter) * -1); padding: 2px 12px 0; display: flex; flex-direction: column; align-items: center; }
.frame {
  position: relative; width: min(100%, calc(62svh * .8)); aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; isolation: isolate;
  background: #EFE6EA; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 120px -40px rgba(245, 192, 158, .45), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.scene.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.layer { position: absolute; inset: -4%; }
.layer-bg {
  background:
    radial-gradient(34% 30% at 45% 36%, rgba(248, 218, 198, .95), rgba(248, 218, 198, 0) 100%),
    radial-gradient(38% 34% at 96% 8%, rgba(217, 200, 240, .8), rgba(217, 200, 240, 0) 100%),
    linear-gradient(180deg, #F1E9EC 0%, #DDCCD8 100%);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0);
}
.orb { position: absolute; border-radius: 50%; filter: blur(24px); }
.orb-1 { width: 34%; aspect-ratio: 1; left: 66%; top: 12%; background: rgba(205, 184, 232, .55); transform: translate3d(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -16px), 0); }
.orb-2 { width: 26%; aspect-ratio: 1; left: 4%; top: 60%; background: rgba(245, 192, 158, .45); transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -18px), 0); }
.layer-subject { transform: translate3d(calc(var(--mx, 0) * 9px), calc(var(--my, 0) * 7px), 0); }
.subject-inner { position: absolute; inset: 0; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) scale(var(--zoom, 1)); transition: transform 1s var(--ease); }
.subject-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer-light {
  inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 45% at calc(30% + var(--mx, 0) * 8%) calc(18% + var(--my, 0) * 6%), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(34, 16, 30, 0) 70%, rgba(34, 16, 30, .35));
}
.scene-body .subject-img { filter: saturate(.92); }

.glows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(43, 19, 40, .45)); }
.glow { opacity: 0; transition: opacity .5s var(--ease); }
.glow.is-on { opacity: 1; }
.glow.is-hover { opacity: .45; }
.g-fill { fill: url(#gGlow); opacity: .85; }
.g-dots { fill: url(#gDots); opacity: .4; }
.g-ring { fill: none; stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-opacity: .9; }
.glow.is-on .g-ring { animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 50% { stroke-opacity: .45; } }

.beads { position: absolute; inset: 0; pointer-events: none; }
.bead { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; transition: opacity .35s; }
.bead i {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #FBD8C2 45%, #F5C09E 70%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 18px 4px rgba(245, 192, 158, .75), 0 2px 6px rgba(43, 19, 40, .35);
  transition: transform .35s var(--ease);
}
.bead i::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); opacity: 0; animation: ping 3.2s var(--ease) infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.bead b {
  position: absolute; left: 16px; top: -15px; white-space: nowrap; font-weight: 500; font-size: .85rem;
  padding: .3rem .7rem; border-radius: 999px; color: var(--on-dark);
  background: rgba(34, 16, 30, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease);
}
.bead.is-left b { left: auto; right: 16px; transform: translateX(6px); }
.bead.is-on b, .bead.is-hover b { opacity: 1; transform: none; }
.bead.is-twin b { display: none; }
.bead.is-on i { transform: scale(1.35); background: radial-gradient(circle at 35% 30%, #fff 0 25%, #FFE4D3 60%, #F5C09E); }
.bead.is-on i::after { animation: none; }
.stage.has-pick .bead:not(.is-on) i { transform: scale(.8); }
.stage.has-pick .bead:not(.is-on) i::after { animation: none; }

.back-face, .example-tag { position: absolute; z-index: 3; border-radius: 999px; }
.back-face {
  left: 12px; top: 12px; min-height: 40px; padding: .4rem .95rem; border: 0; cursor: pointer; font-size: .85rem; font-weight: 500;
  color: var(--on-dark); background: rgba(34, 16, 30, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s;
}
.stage:not([data-scene="face"]) .back-face { opacity: 1; visibility: visible; transition: opacity .4s; }
.example-tag { right: 12px; bottom: 12px; padding: .2rem .6rem; font-size: .72rem; color: var(--ink); background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }

.stage-hint { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 44px; font-size: .85rem; color: var(--on-dark-2); }
.tilt-btn {
  min-height: 36px; padding: .3rem .85rem; border-radius: 999px; border: 0;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--on-dark); font-size: .82rem; cursor: pointer;
}
.tilt-btn[hidden] { display: none; }

/* result: intro facts + details */
.result { position: relative; z-index: 3; }
.intro-lead { display: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.25rem; margin: .5rem 0 1rem; }
.facts li:first-child { grid-column: 1 / -1; }
.facts li { display: flex; flex-direction: column; font-size: .8rem; color: var(--on-dark-2); }
.facts strong { font-weight: 500; font-size: .98rem; color: var(--on-dark); display: flex; align-items: baseline; gap: .45rem; }
.facts strong .dot { transform: translateY(-1px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #8FE3B4; box-shadow: 0 0 10px rgba(143, 227, 180, .9); flex: none; }
.is-closed .dot { background: var(--on-dark-2); box-shadow: none; }
.result-intro .btn { width: 100%; }

.result-detail {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: min(60svh, 540px); overflow: auto; overscroll-behavior: contain;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; color: var(--on-dark);
  background: rgba(44, 20, 40, .95); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 -20px 60px -20px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.result[data-state="detail"] .result-detail { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: -14px; padding-top: 4px; }
.result-zone { font-size: .95rem; color: var(--lilac); font-weight: 500; }
.sheet-close { width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sheet-close svg { width: 22px; height: 22px; }
.sheet-close:hover { background: var(--glass); }
.concern-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 1rem; }
.ctab {
  min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 0; cursor: pointer; font-size: .9rem;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--on-dark);
}
.ctab[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); box-shadow: none; }
.concern h3 { font-weight: 400; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.concern .what { color: var(--on-dark-2); margin-top: .5rem; font-size: .98rem; }
.concern .how { margin-top: .9rem; font-size: .98rem; }
.concern .how span { display: block; color: var(--lilac); font-size: .85rem; font-weight: 500; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.1rem 0; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.nums div { background: rgba(34, 16, 30, .55); padding: .75rem .9rem; }
.nums dt { font-size: .8rem; color: var(--on-dark-2); }
.nums dd { font-size: 1rem; font-weight: 500; line-height: 1.35; margin-top: .15rem; }
.nums .price { font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; }
.concern .btn { width: 100%; }
.concern .btn-peach { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -14px 24px 6px rgba(44, 20, 40, .95), 0 10px 30px -10px rgba(245, 192, 158, .65); }
.fine { font-size: .8rem; color: var(--on-dark-2); margin-top: .8rem; }
.concern.is-new { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* phone: zone chips scroll sideways */
@media (max-width: 719px) {
  .zones { overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .zones::-webkit-scrollbar { display: none; }
  .zone { scroll-snap-align: start; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero-sub { order: 2; display: none; }
  .stage { order: 3; margin-top: 4px; }
  .zones { order: 4; margin-top: 0; }
  .result { order: 5; margin-top: 14px; }
}

/* tablet and up */
@media (min-width: 720px) {
  .hero { padding-bottom: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 24px; }
  .hero-sub { display: block; }
  .zones { flex-wrap: wrap; }
  .stage { margin-inline: 0; padding: 0; }
  .frame { width: min(100%, calc(70svh * .8)); }
  .result { grid-column: 1 / -1; }
  .result-intro { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
  .result-intro .btn { width: auto; }
  .facts { margin: 0; grid-template-columns: repeat(3, auto); }
  .facts li:first-child { grid-column: auto; }
}

/* desktop: copy | head | card */
@media (min-width: 1040px) {
  .hero { min-height: calc(100svh - var(--badge-h)); display: flex; align-items: center; padding-bottom: 32px; }
  .hero-grid { grid-template-columns: minmax(300px, .95fr) minmax(0, 1.25fr) minmax(330px, .9fr); column-gap: 8px; }
  .frame { width: min(100%, calc(min(78svh, 740px) * .8)); }
  .zones { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 1.5rem; margin-top: 1.6rem; }
  .zone { background: transparent; box-shadow: none; padding: .45rem .9rem .45rem .2rem; align-self: flex-start; font-size: 1.02rem; color: var(--on-dark-2); }
  .zone:hover { background: transparent; color: var(--on-dark); }
  .zone[aria-pressed="true"] { background: transparent; color: var(--on-dark); font-weight: 600; }
  .zone[aria-pressed="true"]::before { background: var(--peach); box-shadow: 0 0 0 4px rgba(245, 192, 158, .25), 0 0 14px rgba(245, 192, 158, .9); }
  .zone-off { margin-top: 0; }
  .result { grid-column: auto; }
  .result-intro, .result-detail {
    border-radius: 28px; padding: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
    -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px -30px rgba(0, 0, 0, .55);
  }
  .result-intro { display: block; }
  .intro-lead { display: block; font-size: 1.35rem; font-weight: 300; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 1.5rem; }
  .facts { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.5rem; }
  .facts li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
  .facts li:first-child { grid-column: auto; }
  .facts strong { text-align: right; }
  .result-intro .btn { width: 100%; }
  .result-detail { position: relative; inset: auto; max-height: none; overflow: visible; transform: none; visibility: visible; transition: none; }
  .concern .btn-peach { position: static; box-shadow: 0 10px 30px -10px rgba(245, 192, 158, .65), inset 0 1px 0 rgba(255, 255, 255, .6); }
  .result[data-state="intro"] .result-detail { display: none; }
  .result[data-state="detail"] .result-intro { display: none; }
  .sheet-close { display: none; }
  .concern h3 { font-size: 1.75rem; }
}

/* ---------- treatments: layer by layer ---------- */
.layers { padding: 88px 0 40px; }
.layers-head h2, .doctor h2, .visit h2, .faq h2 {
  font-weight: 300; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance;
}
.layers-head p { margin-top: .9rem; color: var(--ink-2); max-width: 42ch; }
.layers-grid { margin-top: 24px; }
.layers-visual {
  position: sticky; top: calc(var(--badge-h) + var(--header-h)); z-index: 2; height: 50svh; min-height: 320px;
  background: linear-gradient(180deg, var(--porcelain) 90%, rgba(245, 241, 242, 0));
}
.layers-visual::before { content: ''; position: absolute; left: 50%; top: 55%; width: min(90vw, 560px); aspect-ratio: 1.6; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(205, 184, 232, .45), rgba(245, 192, 158, .18) 55%, transparent); pointer-events: none; }
.skin3d { position: relative; height: 100%; display: grid; place-items: center; perspective: 1400px; --W: 150px; }
.sk-rig {
  position: relative; width: var(--W); height: var(--W); transform-style: preserve-3d;
  transform: translateY(16%) rotateX(58deg) rotateZ(-38deg); transition: transform 1.2s var(--ease);
}
.slab {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--zA) + var(--g, 30px) * var(--i) + var(--lift, 0px)));
  transition: transform .9s var(--ease);
}
.slab i { position: absolute; display: block; transition: opacity .5s, box-shadow .5s; }
.f-top { inset: 0; background: var(--top); }
.f-front { left: 0; top: 100%; width: 100%; height: var(--t); transform-origin: top; transform: rotateX(-90deg); background: var(--front); }
.f-side { top: 0; left: calc(var(--t) * -1); width: var(--t); height: 100%; transform-origin: right; transform: rotateY(-90deg); background: var(--side); }
.s-base { --i: 0; --t: 34px; --zA: 34px;
  --top: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 0 7px, transparent 8px) 0 0 / 18px 18px, #EDCF97;
  --front: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5) 0 6px, transparent 7px) 0 0 / 16px 16px, linear-gradient(#EBCB8F, #D9B276);
  --side: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .35) 0 6px, transparent 7px) 0 0 / 16px 16px, linear-gradient(#D7B074, #C49A60); }
.s-root { --i: 1; --t: 34px; --zA: 68px;
  --top: radial-gradient(circle, #6E2F60 0 3px, rgba(110, 47, 96, .25) 4px 7px, transparent 8px) 0 0 / 42px 42px, #DD9AA0;
  --front: linear-gradient(90deg, transparent 18%, #6E2F60 18% 19.5%, transparent 19.5% 48%, #6E2F60 48% 49.5%, transparent 49.5% 78%, #6E2F60 78% 79.5%, transparent 79.5%) 0 0 / 100% 70% no-repeat,
    radial-gradient(ellipse 9px 7px at 19% 76%, #8E4F7E 98%, transparent) , radial-gradient(ellipse 9px 7px at 49% 76%, #8E4F7E 98%, transparent), radial-gradient(ellipse 9px 7px at 79% 76%, #8E4F7E 98%, transparent),
    linear-gradient(#DC9399, #C97B86);
  --side: linear-gradient(#C67985, #B4697A); }
.s-derm { --i: 2; --t: 36px; --zA: 104px;
  --top: repeating-linear-gradient(125deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 9px), #EEB4AE;
  --front: repeating-linear-gradient(170deg, rgba(255, 255, 255, .28) 0 1.5px, transparent 1.5px 7px), linear-gradient(90deg, transparent 18%, #6E2F60 18% 19.5%, transparent 19.5% 48%, #6E2F60 48% 49.5%, transparent 49.5% 78%, #6E2F60 78% 79.5%, transparent 79.5%), linear-gradient(#EDAEA9, #E1979A);
  --side: repeating-linear-gradient(170deg, rgba(255, 255, 255, .2) 0 1.5px, transparent 1.5px 7px), linear-gradient(#DA9297, #C98088); }
.s-surf { --i: 3; --t: 12px; --zA: 116px;
  --top: radial-gradient(circle, rgba(160, 96, 110, .35) 0 1.2px, transparent 1.6px) 0 0 / 13px 13px, radial-gradient(120% 90% at 30% 20%, #FFF4EF, #F4D6CD);
  --front: repeating-linear-gradient(90deg, transparent 0 6px, rgba(180, 110, 100, .2) 6px 7px), linear-gradient(#FAE8E2, #EFCBC0);
  --side: repeating-linear-gradient(90deg, transparent 0 6px, rgba(160, 90, 90, .2) 6px 7px), linear-gradient(#ECCBC1, #DDB1A6); }
.hair { position: absolute; width: 2.5px; height: 46px; border-radius: 2px; background: linear-gradient(#2B1328, #4A2042); transform-origin: top; transform: rotateX(90deg) rotateY(var(--ry, 0deg)); }
.h1 { left: 18%; top: 30%; --ry: 8deg; } .h2 { left: 48%; top: 22%; --ry: -6deg; } .h3 { left: 78%; top: 40%; --ry: 10deg; }
.h4 { left: 30%; top: 70%; --ry: -10deg; } .h5 { left: 64%; top: 78%; --ry: 5deg; }

.skin3d[data-layer="0"] .s-surf, .skin3d[data-layer="1"] .s-derm, .skin3d[data-layer="2"] .s-root { --lift: 26px; }
.skin3d[data-layer="0"] .slab:not(.s-surf) i, .skin3d[data-layer="1"] .slab:not(.s-derm) i, .skin3d[data-layer="2"] .slab:not(.s-root) i { opacity: .38; }
.skin3d[data-layer="0"] .s-surf .f-top, .skin3d[data-layer="1"] .s-derm .f-top, .skin3d[data-layer="2"] .s-root .f-top { box-shadow: 0 0 0 2px var(--peach), 0 0 50px 6px rgba(245, 192, 158, .7); }
.skin3d[data-layer="2"] .hair { background: linear-gradient(#7A3E6E, #B0548F); }
.skin3d[data-layer="3"] .slab { --g: 0px; }
.skin3d[data-layer="3"] .sk-rig { transform: translateY(14%) rotateX(56deg) rotateZ(-62deg) scale(1.08); }
.sk-label { position: absolute; left: 0; right: 0; bottom: 13%; text-align: center; font-size: .9rem; color: var(--orchid); font-weight: 500; }

.layer-steps { position: relative; z-index: 1; }
.layer-step { min-height: 46svh; padding: 18px 0 40px; display: flex; flex-direction: column; justify-content: flex-start; color: #77647A; transition: color .5s; }
.layer-step .tags li { transition: background-color .5s, box-shadow .5s; background: transparent; }
.layer-step.is-active { color: var(--ink); }
.layer-step.is-active .tags li { background: #fff; }
.layer-step h3 { font-weight: 300; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; max-width: 20ch; }
.ls-name { display: block; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--orchid); margin-bottom: .45rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; max-width: 34rem; }
.tags li { padding: .45rem .9rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .95rem; }

@media (min-width: 900px) {
  .layers { padding: 128px 0 40px; }
  .layers-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin-top: 8px; }
  .layers-visual { top: calc(var(--badge-h) + var(--header-h) + 4svh); height: 78svh; background: none; }
  .skin3d { --W: 250px; }
  .sk-label { bottom: 10%; }
  .sk-rig { transform: translateY(4%) rotateX(58deg) rotateZ(-38deg); }
  .skin3d[data-layer="3"] .sk-rig { transform: translateY(2%) rotateX(56deg) rotateZ(-62deg) scale(1.08); }
  .layer-step { min-height: 72svh; justify-content: center; padding: 0; }
  .layers-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
}

/* ---------- doctor and first visit ---------- */
.doctor { padding: 64px 0 96px; background: linear-gradient(180deg, var(--porcelain), var(--frost)); }
.doctor-grid { display: grid; gap: 32px; align-items: center; }
.doctor-photo { position: relative; max-width: 420px; }
.doctor-photo img { border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(43, 19, 40, .45); }
.doctor-ph .ph {
  aspect-ratio: 4 / 5; border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 24px; text-align: center;
  background: radial-gradient(60% 50% at 60% 30%, rgba(245, 192, 158, .45), transparent 70%), radial-gradient(60% 60% at 20% 90%, rgba(205, 184, 232, .55), transparent 70%), linear-gradient(160deg, #F7F1F3, #E6DCE5);
  box-shadow: inset 0 0 0 1.5px rgba(122, 62, 110, .18), 0 40px 80px -40px rgba(43, 19, 40, .35);
  position: relative;
}
.doctor-ph .ph::before { content: ''; position: absolute; inset: 14px; border-radius: 22px; border: 1.5px dashed rgba(122, 62, 110, .28); pointer-events: none; }
.ph-art { width: 46%; max-width: 180px; height: auto; color: var(--orchid); opacity: .7; margin-bottom: .6rem; }
.ph-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 300; letter-spacing: -.02em; color: var(--ink); }
.ph-sub { font-size: .95rem; color: var(--ink-2); }
.doctor-photo figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-2); }
.doctor-role { margin-top: .5rem; color: var(--orchid); font-weight: 500; }
.doctor blockquote { margin-top: 1.5rem; }
.doctor blockquote p { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); font-weight: 300; line-height: 1.35; letter-spacing: -.015em; max-width: 30ch; }
.doc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 1.75rem 0 2rem; max-width: 36rem; }
.doc-facts div { padding: .8rem 0; border-top: 1px solid var(--line); }
.doc-facts dt { font-size: .85rem; color: var(--ink-2); }
.doc-facts dd { font-weight: 500; line-height: 1.4; }
@media (min-width: 900px) {
  .doctor { padding: 96px 0 128px; }
  .doctor-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
}

.first-visit { margin-top: 88px; }
.fv-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem) !important; }
.fv-steps { display: grid; gap: 0; margin-top: 1.5rem; counter-reset: fv; }
.fv-steps li { position: relative; padding: 0 0 1.6rem 3.4rem; }
.fv-steps li::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--line); }
.fv-steps li:last-child::before { display: none; }
.fv-n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--orchid); }
.fv-steps h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; padding-top: .45rem; }
.fv-steps p { color: var(--ink-2); margin-top: .2rem; max-width: 30ch; }
@media (min-width: 900px) {
  .fv-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 2rem; }
  .fv-steps li { padding: 0; }
  .fv-steps li::before { left: 52px; right: -12px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .fv-steps li:last-child::before { display: none; }
  .fv-n { position: static; margin-bottom: 1rem; }
}

/* ---------- visit (dark) ---------- */
.visit { position: relative; isolation: isolate; color: var(--on-dark); background: var(--night); padding: 88px 0 72px; overflow: hidden; }
.visit::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 40% at 85% 10%, rgba(245, 192, 158, .16), transparent 70%), radial-gradient(50% 50% at 0% 70%, rgba(122, 62, 110, .5), transparent 70%);
}
.visit-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.visit-status { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 300; }
.visit-status .dot { width: 10px; height: 10px; }
.visit-grid { display: grid; gap: 14px; margin-top: 2rem; }
.v-block { padding: 22px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.v-block h3 { font-size: .9rem; font-weight: 600; color: var(--lilac); margin-bottom: .5rem; }
.v-block h3 ~ h3 { margin-top: 1.3rem; }
.v-block p, .v-block address { color: var(--on-dark); font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: .55rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-weight: 400; }
.hours th { color: var(--on-dark-2); padding-right: 1rem; }
.hours tr.is-today th { color: var(--peach); }
.mini-map { width: 100%; height: auto; margin: 1rem 0 .4rem; border-radius: 16px; background: rgba(0, 0, 0, .18); font-family: var(--font); }
.landmarks li { color: var(--on-dark-2); font-size: .95rem; padding-left: 1rem; position: relative; }
.landmarks li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); }
.know div { padding: .6rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.know div:first-child { border-top: 0; padding-top: 0; }
.know dt { font-size: .85rem; color: var(--on-dark-2); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.rooms { display: flex; gap: 12px; margin: 3rem calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.rooms li { position: relative; flex: 0 0 68%; scroll-snap-align: start; border-radius: 22px; overflow: hidden; }
.rooms img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.rooms span { position: absolute; left: 12px; bottom: 12px; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; background: rgba(34, 16, 30, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rooms-note { margin-top: .8rem; font-size: .85rem; color: var(--on-dark-2); }
@media (min-width: 900px) {
  .visit { padding: 128px 0 104px; }
  .visit-grid { grid-template-columns: 1fr 1.15fr 1fr; }
  .rooms { overflow: visible; margin-inline: 0; padding: 0; }
  .rooms li { flex: 1 1 0; }
  .rooms li:nth-child(2) { transform: translateY(32px); }
}

/* ---------- FAQ ---------- */
.faq { padding: 88px 0 96px; }
.faq-grid { display: grid; gap: 24px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.15rem 2.6rem 1.15rem 0; position: relative; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--orchid), var(--orchid)) center / 14px 1.6px no-repeat, linear-gradient(var(--orchid), var(--orchid)) center / 1.6px 14px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 58ch; }
@media (min-width: 900px) { .faq { padding: 128px 0; } .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }

/* ---------- footer and dock ---------- */
.site-footer { background: #170A14; color: var(--on-dark-2); padding: 56px 0 120px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p + p { margin-top: .6rem; }
.f-name { color: var(--on-dark); font-weight: 600; font-size: 1.1rem; }
.f-cta { color: var(--peach); font-weight: 600; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer { padding-bottom: 64px; } }

.dock {
  position: fixed; z-index: 55; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 8px;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.is-shown { transform: none; }
.dock a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.dock .i { width: 20px; height: 20px; }
.dock-call { flex: 0 0 auto; padding: 0 1.2rem; color: var(--on-dark); background: rgba(34, 16, 30, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.dock-book { flex: 1; color: var(--ink); background: var(--peach); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- no JavaScript / reduced motion ---------- */
html:not(.js) .result-detail, html:not(.js) .beads, html:not(.js) .stage-hint, html:not(.js) .back-face { display: none; }
html:not(.js) .layer-step { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bead i::after { display: none; }
}
.sheet-open .dock { transform: translateY(140%); }
@media (max-width: 379px) { .sample-badge { font-size: .8rem; gap: .5rem; } .sample-badge a { padding: .28rem .65rem; } }
