/* Shared styles for all pages. Zmedspa logo palette: chocolate brown, copper and warm pastels, with a serif display face. */
:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --ink: #3b2013;
  --muted: #6f5a4c;
  --line: #f0dccb;
  --accent: #b4470e;
  --accent-ink: #ffffff;
  --copper: #f2a35f;
  --bright: #f97316;
  --tint: #ffe8d6;
  --primary: #3b2013;
  --primary-ink: #ffffff;
  --butter: #fff1bf;
  --blush: #ffd9d6;
  --hero-grad: linear-gradient(120deg, #2f1a0e 0%, #4a2615 55%, #6b3a1c 100%);
  --band-grad: linear-gradient(135deg, #ffd7a8 0%, #ffbe7a 100%);
  --hero-ink: #ffffff;
  --on-hero-soft: #ecd9c8;
  --band-ink: #3b2013;
  --band-soft: #5a3f2f;
  --flag-bg: #fff4d6;
  --flag-ink: #6b4e00;
  --radius: 26px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c120d; --surface: #2a1a12; --ink: #f6ece2; --muted: #cdb4a0; --line: #4a3427;
    --accent: #f0a46a; --accent-ink: #1c120d; --tint: #38251a; --primary: #f0a46a; --primary-ink: #1c120d;
    --butter: #3a2819; --blush: #4a2a24;
    --flag-bg: #3a2f10; --flag-ink: #f3d98a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c120d; --surface: #2a1a12; --ink: #f6ece2; --muted: #cdb4a0; --line: #4a3427;
  --accent: #f0a46a; --accent-ink: #1c120d; --tint: #38251a; --primary: #f0a46a; --primary-ink: #1c120d;
  --butter: #3a2819; --blush: #4a2a24;
  --flag-bg: #3a2f10; --flag-ink: #f3d98a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  padding-inline: 16px; padding-block: 0 40px; overflow-x: clip;
}
img, iframe, svg { max-width: 100%; }
h1, h2, h3, p, li, dd { overflow-wrap: break-word; }
.wrap { max-width: 1180px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h3 { font-weight: 600; }
h1 b, h2 b { font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }


/* Hero */
.hero {
  position: relative; overflow: hidden; margin-top: 20px; border-radius: 32px; color: var(--hero-ink);
  background: var(--hero-grad);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: 640px;
}
header.top {
  position: sticky; top: 0; z-index: 20; margin-inline: -16px; padding: 10px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.brand img { border-radius: 50%; display: block; }
.brand span { display: grid; line-height: 1.2; }
.brand small { font: 400 11px var(--font-body); letter-spacing: .06em; text-transform: none; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 9px; font-weight: 600; }
nav a:hover { color: var(--accent); }
nav a.cta { color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: 8px 16px; margin-left: 6px; }
nav a.cta:hover { background: var(--accent); color: var(--accent-ink); }

.hero-copy { position: relative; z-index: 2; padding: 72px 24px 72px 56px; align-self: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  background: rgba(242, 163, 95, 0.16); border: 1px solid rgba(242, 163, 95, 0.5); color: var(--copper);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 4.3rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--copper); margin-bottom: 14px; font-weight: 300; }
.hero .tagline { font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--font-display); margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--on-hero-soft); max-width: 32em; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font: 600 16px var(--font-body);
  text-decoration: none; border: 1.5px solid var(--primary); cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.hero .btn.primary, .page-head .btn.primary { background: var(--copper); color: #2a1409; border-color: var(--copper); }
.hero .btn.ghost, .page-head .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.ghost:hover { background: var(--tint); }

.hero-photo { position: relative; z-index: 1; min-height: 360px; }
.portrait {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
  mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
.name-tag {
  position: absolute; z-index: 2; right: 22px; bottom: 22px; max-width: calc(100% - 44px);
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px; color: var(--ink);
}
.name-tag strong { display: block; font-size: 1.02rem; }
.name-tag span { font-size: 13px; color: var(--muted); }

/* Sections */
section { padding-block: 72px 8px; scroll-margin-top: 56px; }
.head { text-align: center; margin-bottom: 36px; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--tint); border: 1.5px solid var(--accent); border-radius: 999px; padding: 4px 16px; margin-bottom: 16px;
}
.section-intro { color: var(--muted); max-width: 40em; margin: 14px auto 0; }
.ph {
  display: inline-block; background: var(--flag-bg); color: var(--flag-ink);
  border-radius: 6px; padding: 1px 8px; font-size: .92em;
}

.about-text { max-width: 46em; margin: 0 auto 36px; text-align: center; color: var(--muted); font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.fact small { font-size: 15px; font-weight: 500; opacity: .9; }
.fact .big { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.fact .desc { font-size: 15px; opacity: .92; margin-top: 8px; }
.fact.brown { background: var(--blush); color: var(--ink); }
.fact.cream { background: var(--butter); color: var(--ink); }
.fact.cream { gap: 14px; justify-content: flex-start; }
.fact.cream img {
  width: 50%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; align-self: flex-end;
  border-radius: 12px; transform: rotate(4deg); box-shadow: 0 12px 28px rgba(60, 25, 8, 0.25);
}
.fact.cream .text:last-child { margin-top: auto; }
.fact.photo { background: var(--tint); color: #fff; }
.fact.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.fact.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(50, 20, 5, 0.85), rgba(50, 20, 5, 0) 60%), linear-gradient(to bottom, rgba(50, 20, 5, 0.6), rgba(50, 20, 5, 0) 30%); }
.fact.photo > * { position: relative; z-index: 1; }
.fact.photo small, .fact.photo .big, .fact.photo .desc { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.fact.photo .top-label { color: #fff; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0;
}
.service .num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }
.service ul { margin: 14px 0 0; padding-left: 18px; font-size: 15px; }
.service li + li { margin-top: 4px; }
.service li::marker { color: var(--accent); }

.statement { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 300; line-height: 1.35; max-width: 24em; margin: 0 auto; color: var(--ink); text-wrap: balance; }
.statement b { font-weight: 600; }
.statement span { color: var(--muted); opacity: .75; }
.circles { display: flex; justify-content: center; margin-top: 12px; }
.circles img {
  flex: none; width: clamp(130px, 28vw, 320px); height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--bg); background: var(--tint); margin-inline: calc(clamp(130px, 28vw, 320px) * -0.07);
}
.circles img:nth-child(2) { object-position: 50% 40%; }
.circles img:nth-child(3) { object-position: 50% 15%; }
.circles-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Booking */
.book-panel {
  border-radius: 32px; padding: 48px 32px; color: #fff;
  background: linear-gradient(135deg, #8f3c10 0%, #c2561a 55%, #e48a3e 100%);
}
.book-panel .head { margin-bottom: 32px; }
.book-panel .pill { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.book-panel .section-intro { color: rgba(255, 255, 255, 0.95); }
.visit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 28px; min-width: 0; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: 400 16px var(--font-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
textarea { min-height: 88px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); }
dl { margin: 0; display: grid; gap: 16px; }
dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
dd { margin: 2px 0 0; }
.map { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; }
.map iframe { width: 100%; height: 240px; border: 1px solid var(--line); border-radius: 14px; }
footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: grid; gap: 6px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 24px 12px; }
  nav { font-size: 11.5px; }
  nav a { padding: 6px 8px; }
  .hero-photo { min-height: 420px; }
  .portrait { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%); mask-image: linear-gradient(to bottom, transparent 0, #000 25%); }
  .facts, .services, .visit { grid-template-columns: 1fr; }
  .fact { min-height: 280px; }
  .book-panel { padding: 36px 16px; }
}
/* Motion: elements are only hidden when JS has added .js, so the page still works without it. */
header.top { transition: box-shadow .3s; }
header.top.scrolled { box-shadow: 0 6px 24px rgba(60, 25, 8, 0.12); }
.fact, .service, .card { transition: transform .3s ease, box-shadow .3s ease; }
.fact:hover, .service:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(60, 25, 8, 0.18); }
.circles img { transition: transform .4s ease; }
.circles img:hover { transform: scale(1.05); position: relative; z-index: 1; }
.portrait { animation: portrait-in 1.1s ease both .15s; }
.hero-copy > * { animation: rise .8s ease both; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .25s; }
.hero-copy > :nth-child(3) { animation-delay: .4s; }
.hero-copy > :nth-child(4) { animation-delay: .55s; }
.name-tag { animation: rise .8s ease both 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .circles img.reveal { transform: translateY(48px) scale(.9); }
.js .circles img.reveal.in { transform: none; }
.js .circles img.reveal.in:hover { transform: scale(1.05); }
.js .fact.reveal.in:hover, .js .service.reveal.in:hover { transform: translateY(-6px); }
.js .statement span { opacity: .25; transition: opacity 1.4s ease .5s; }
.js .statement.in span { opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait, .hero-copy > *, .name-tag { animation: none; }
  .js .reveal, .js .reveal.in, .js .statement span { opacity: 1; transform: none; transition: none; }
  .fact, .service, .card, .circles img { transition: none; }
}

/* ---- Multi-page additions ---- */
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1240px) {
  .tools { order: 2; margin-left: auto; }
  nav { order: 3; }
  .js .menu-btn { display: inline-block; }
  .js nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js nav.open { display: flex; }
  .js nav a { padding: 12px 8px; border-top: 1px solid var(--line); }
  .js nav a.cta { text-align: center; margin-top: 8px; margin-left: 0; border-top: 1.5px solid var(--accent); }
}
.page-head {
  position: relative; overflow: hidden; margin-top: 20px; border-radius: 32px; color: var(--hero-ink); padding: 64px 40px; text-align: center;
  background: var(--hero-grad);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; color: var(--copper); margin-bottom: 14px; }
.page-head p { max-width: 38em; margin-inline: auto; color: var(--on-hero-soft); position: relative; }
.page-head > * { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); }
.prose { max-width: 46em; margin-inline: auto; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 36px 0 12px; font-weight: 600; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; } .prose li + li { margin-top: 6px; } .prose li::marker { color: var(--accent); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.detail { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.detail:first-of-type { border-top: 0; }
.detail .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.detail p { color: var(--muted); } .detail p + p, .detail ul + p { margin-top: 12px; }
.detail ul { margin: 12px 0 0; padding-left: 20px; } .detail li + li { margin-top: 4px; } .detail li::marker { color: var(--accent); }
.detail h4 { margin: 18px 0 4px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .3s ease, box-shadow .3s ease; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(60,25,8,.18); }
.tile p { color: var(--muted); font-size: 15px; } .tile .more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.tile .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.gallery figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); }
.faq { max-width: 46em; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.cta-band { margin-top: 72px; border-radius: 32px; padding: 48px 32px; color: var(--band-ink); text-align: center; background: var(--band-grad); }
.cta-band p { max-width: 36em; margin: 12px auto 24px; color: var(--band-soft); }
.cta-band .btn.primary { background: #3b2013; border-color: #3b2013; color: #fff; }
.cta-band .btn.ghost { color: var(--band-ink); border-color: var(--band-ink); }
.cta-band .actions { justify-content: center; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; background: var(--bg); }
.choice input { width: auto; accent-color: var(--accent); }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: #1f9d55; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float:hover { filter: brightness(1.08); }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 14px; }
footer h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
footer a { color: var(--muted); display: block; padding: 2px 0; }
@media (max-width: 900px) {
  .detail, .grid2, .grid3, .gallery, footer .cols, .choice { grid-template-columns: 1fr; }
  .page-head { padding: 44px 20px; }
  .detail { gap: 8px; }
  .wa-float span { display: none; } .wa-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* Bright theme additions */
.burst { position: absolute; z-index: 0; width: 150px; aspect-ratio: 1; background: var(--bright); opacity: .9; pointer-events: none; clip-path: polygon(50.0% 0.0%, 55.9% 20.6%, 69.1% 3.8%, 66.7% 25.1%, 85.4% 14.6%, 74.9% 33.3%, 96.2% 30.9%, 79.4% 44.1%, 100.0% 50.0%, 79.4% 55.9%, 96.2% 69.1%, 74.9% 66.7%, 85.4% 85.4%, 66.7% 74.9%, 69.1% 96.2%, 55.9% 79.4%, 50.0% 100.0%, 44.1% 79.4%, 30.9% 96.2%, 33.3% 74.9%, 14.6% 85.4%, 25.1% 66.7%, 3.8% 69.1%, 20.6% 55.9%, 0.0% 50.0%, 20.6% 44.1%, 3.8% 30.9%, 25.1% 33.3%, 14.6% 14.6%, 33.3% 25.1%, 30.9% 3.8%, 44.1% 20.6%); animation: spin 40s linear infinite; }
.hero .burst { z-index: 2; left: 43%; bottom: 10%; width: 120px; }
.hero .burst.b2 { left: auto; bottom: auto; right: 5%; top: 7%; width: 84px; background: #ffb703; }
@media (max-width: 900px) { .hero .burst { display: none; } }
.page-head .burst { left: -40px; top: -40px; width: 140px; opacity: .55; }
.page-head .burst.b2 { left: auto; right: -30px; top: auto; bottom: -50px; width: 120px; background: #ffb703; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .burst { animation: none; } }

/* Stats strip and photo collage */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; background: var(--butter); border-radius: var(--radius); padding: 28px 12px; text-align: center; }
.stat { padding: 4px 16px; }
.stat + .stat { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.stat b { display: block; font: 400 clamp(2.6rem, 5.6vw, 4.2rem)/1 var(--font-display); color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.collage { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 16px; margin-bottom: 28px; }
.collage figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.collage figure:hover img { transform: scale(1.05); }
.collage .c1 { grid-row: 1 / 3; } .collage .c1 img { object-position: 50% 40%; }
.collage .c3 { grid-column: 2 / 4; } .collage .c3 img { object-position: 50% 46%; }
.collage .c4 { border-radius: var(--radius); background: var(--copper); color: #2a1409; padding: 22px; display: flex; align-items: flex-end; font: 400 1.35rem/1.2 var(--font-display); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat + .stat { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-top: 18px; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 190px auto 200px; }
  .collage .c1 { grid-row: auto; }
  .collage .c4 { grid-column: 1 / 3; min-height: 110px; font-size: 1.2rem; align-items: center; }
  .collage .c3 { grid-column: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { .collage img { transition: none; } }


/* Theme toggle, back to top, tools */
.tools { display: flex; align-items: center; gap: 8px; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--copper); color: #2a1409; font: 700 13px var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: filter .15s, transform .15s; }
.theme-btn:hover { filter: brightness(.95); }
.theme-btn:active { transform: translateY(1px); }
.theme-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: inline; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { min-height: 42px; }
.totop { position: fixed; right: 18px; bottom: 78px; z-index: 30; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: var(--primary-ink); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 22px; height: 22px; }
.totop:hover { filter: brightness(1.15); }
@media (min-width: 601px) and (max-width: 900px) {
  .services, .grid3, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-inline: 12px; }
  header.top { margin-inline: -12px; padding: 8px 14px; }
    section { padding-block: 52px 4px; }
  .head { margin-bottom: 26px; }
  .hero-copy { padding: 40px 18px 8px; }
  .page-head { padding: 40px 16px; border-radius: 24px; }
  .hero { border-radius: 24px; }
  .cta-band { padding: 36px 18px; border-radius: 24px; margin-top: 52px; }
  .card { padding: 20px; }
  .btn { padding: 14px 22px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .theme-label { display: none; }
  .theme-btn { padding: 8px 12px; }
  .brand { font-size: .95rem; letter-spacing: .1em; }
  .brand small { display: none; }
  .name-tag { right: 12px; bottom: 12px; padding: 10px 14px; }
  .circles img { width: clamp(110px, 30vw, 200px); }
  footer { font-size: 13px; }
}
@media (max-width: 360px) {
  .brand img { width: 36px; height: 36px; }
  .brand { gap: 8px; letter-spacing: .08em; }
  .tools { gap: 6px; }
  .menu-btn { padding: 8px 12px; font-size: 12px; }
  .theme-btn { padding: 8px 11px; }
  nav a { font-size: 11px; }
  .collage { grid-template-rows: 150px auto 170px; }
  .stat b { font-size: 2.4rem; }
}
@media (hover: none) { .tile:hover, .fact:hover, .service:hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .totop, .theme-btn { transition: none; } }

/* Phones: keep entrance animations subtle so the page does not feel like it is sliding */
@media (max-width: 600px) {
  .js .reveal { transform: translateY(12px); transition-duration: .45s; transition-delay: 0s; }
  .js .circles img.reveal { transform: translateY(16px); }
  .hero-copy > *, .name-tag, .portrait { animation-duration: .5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

.card-img { margin: 0 0 20px; border-radius: 18px; overflow: hidden; background: var(--tint); }
.card-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 82%; display: block; }
.card-img figcaption { padding: 8px 14px; font-size: 12px; color: var(--muted); }

/* Treatment line icons */
.ico-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--accent); margin-bottom: 6px; transition: background-color .25s, color .25s; flex: none; }
.ico-badge .ico { width: 30px; height: 30px; }
.ico-badge.big { width: 64px; height: 64px; margin-bottom: 14px; }
.ico-badge.big .ico { width: 38px; height: 38px; }
.tile:hover .ico-badge { background: var(--accent); color: var(--accent-ink); }

/* Clinic videos */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.videos.two { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin-inline: auto; }
.vid { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.vid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #1c120d; }
.vid figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .videos, .videos.two { gap: 12px; } .vid figcaption { padding: 10px 12px; font-size: 13px; } }

/* Background videos: decorative, dimmed, only played while visible */
.bgvid { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; filter: saturate(.85); }
.bgvid.on { opacity: .3; }
.page-head .bgvid { z-index: 0; }
.page-head .bgvid.on { opacity: .26; }

/* 3D scene: DNA helix and a cube of treatment icons, built from CSS 3D transforms */
.funwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.scene { position: relative; display: flex; justify-content: center; align-items: center; gap: 56px; min-height: 340px; perspective: 900px; border-radius: var(--radius); background: var(--tint); overflow: hidden; }
.helix { position: relative; width: 110px; height: 310px; transform-style: preserve-3d; animation: spinY 14s linear infinite; }
.rung { position: absolute; left: 50%; top: calc(var(--i) * 17px); width: 0; height: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--i) * 24deg)); }
.rung::before { content: ""; position: absolute; left: -42px; top: 5px; width: 84px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--bright), var(--accent)); opacity: .55; }
.rung i { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--bright) 45%, var(--accent)); box-shadow: 0 3px 8px rgba(60, 25, 8, .25); }
.rung i:first-child { left: -49px; }
.rung i:last-child { left: 35px; background: radial-gradient(circle at 35% 30%, #fff, var(--copper) 45%, #8a3a10); }
@keyframes spinY { to { transform: rotateY(360deg); } }
.cube-wrap { width: 120px; height: 120px; perspective: 600px; }
.cube { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; animation: spinCube 18s linear infinite; }
.cube > div { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); backface-visibility: hidden; box-shadow: inset 0 0 24px rgba(180, 71, 14, .08); }
.cube svg { width: 54px; height: 54px; }
.cube .f1 { transform: translateZ(60px); } .cube .f2 { transform: rotateY(90deg) translateZ(60px); }
.cube .f3 { transform: rotateY(180deg) translateZ(60px); } .cube .f4 { transform: rotateY(-90deg) translateZ(60px); }
.cube .f5 { transform: rotateX(90deg) translateZ(60px); } .cube .f6 { transform: rotateX(-90deg) translateZ(60px); }
@keyframes spinCube { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.funcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.fun-stage { perspective: 800px; min-height: 170px; }
.fun-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--tint); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.fun-text { font: 400 clamp(1.25rem, 2.4vw, 1.7rem)/1.3 var(--font-display); transform-origin: 50% 0; }
.fun-stage.flip .fun-text, .fun-stage.flip .fun-label { animation: flipIn .6s ease both; }
@keyframes flipIn { from { opacity: 0; transform: rotateX(-75deg); } to { opacity: 1; transform: none; } }
.fun-actions { display: none; margin-top: 18px; }
.js .fun-actions { display: flex; }

/* Counters, drawing icons and tilting cards */
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal .ico * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .ico * { animation: draw 1.4s ease forwards .25s; }
.js .tile.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .tile.reveal.in:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (max-width: 900px) {
  .funwrap { grid-template-columns: 1fr; }
  .scene { min-height: 320px; gap: 36px; }
}
@media (max-width: 420px) { .scene { gap: 22px; } .helix { transform: scale(.9); } .funcard { padding: 22px; } }
@media (prefers-reduced-motion: reduce) {
  .bgvid { display: none; }
  .helix, .cube { animation: none; }
  .helix { transform: rotateY(25deg); }
  .cube { transform: rotateX(-22deg) rotateY(35deg); }
  .reveal .ico * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .fun-stage.flip .fun-text, .fun-stage.flip .fun-label { animation: none; }
}

/* Home hero: the video is the whole background, with a gradient so the text stays readable */
.hero .bgvid.on { opacity: .7; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(30, 14, 6, .86) 0%, rgba(30, 14, 6, .6) 48%, rgba(30, 14, 6, .12) 100%); }
.hero-photo { z-index: 2; }
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(30, 14, 6, .8) 0%, rgba(30, 14, 6, .55) 100%); }
  .hero-photo { min-height: 96px; }
}

/* About page: fun sticker cut-out of the doctor */
.about-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.about-split .prose { margin: 0; max-width: none; order: 1; }
.sticker-stage { order: 2; position: sticky; top: 96px; min-height: 470px; display: grid; place-items: center; isolation: isolate; }
.blob { position: absolute; z-index: -1; border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; animation: morph 9s ease-in-out infinite alternate; }
.blob-a { width: 86%; aspect-ratio: 1; background: radial-gradient(circle at 30% 28%, #ffe0b8, #ffb36b); }
.blob-b { width: 46%; aspect-ratio: 1; right: -2%; bottom: 4%; background: #ffe45c; animation-delay: -3s; }
@keyframes morph { 0% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transform: rotate(0deg); } 100% { border-radius: 42% 58% 46% 54% / 56% 42% 58% 44%; transform: rotate(8deg); } }
.sticker-stage .burst { z-index: -1; left: 8%; top: 12%; width: 120px; opacity: .85; }
.cutout { position: relative; width: 94%; height: auto; transform: rotate(-3deg); transform-origin: 50% 90%; animation: wiggle 5s ease-in-out infinite alternate;
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 16px 14px rgba(60, 25, 8, .3)); }
@keyframes wiggle { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(2.5deg) translateY(-8px); } }
.bubble { position: absolute; z-index: 3; left: -2%; top: 2%; max-width: 210px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 22px; background: #fff; color: #3b2013; font: 600 1.05rem/1.25 var(--font-display); text-align: left; cursor: pointer; transform: rotate(-4deg); box-shadow: 4px 4px 0 var(--ink); }
.bubble::after { content: ""; position: absolute; left: 62%; bottom: -17px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(48deg) skew(8deg, 8deg); }
.bubble:hover { transform: rotate(-2deg) scale(1.04); }
.bubble.pop { animation: pop .45s ease; }
@keyframes pop { 0% { transform: rotate(-4deg) scale(.8); } 60% { transform: rotate(-4deg) scale(1.1); } 100% { transform: rotate(-4deg) scale(1); } }
.tag-sticker { position: absolute; z-index: 3; right: 0; bottom: 7%; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 8px; background: #ffe45c; color: #3b2013; font: 800 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; transform: rotate(5deg); box-shadow: 3px 3px 0 var(--ink); }
.doodle-wrap { position: absolute; z-index: 3; width: 30px; height: 30px; animation: twinkle 2.6s ease-in-out infinite; }
.doodle { width: 100%; height: 100%; fill: #f97316; stroke: var(--ink); stroke-width: 1.2; }
.doodle-wrap.s1 { right: 8%; top: 8%; } .doodle-wrap.s2 { left: 2%; bottom: 26%; width: 22px; height: 22px; animation-delay: -1s; } .doodle-wrap.s3 { right: 2%; top: 46%; width: 18px; height: 18px; animation-delay: -1.8s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.35) rotate(25deg); } }
.float { position: absolute; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); animation: bob 4s ease-in-out infinite alternate; }
.float .ico { width: 24px; height: 24px; }
.fl-1 { left: 0; top: 40%; } .fl-2 { right: 2%; top: 22%; animation-delay: -1.3s; } .fl-3 { left: 10%; bottom: 6%; animation-delay: -2.4s; }
@keyframes bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .sticker-stage { order: -1; position: relative; top: 0; min-height: 400px; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 420px) { .sticker-stage { min-height: 340px; } .bubble { max-width: 170px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .blob, .cutout, .doodle-wrap, .float, .bubble.pop { animation: none; } .cutout { transform: rotate(-3deg); } }

/* Fail-safe: if the scroll-in effect never fires (slow or unsupported browser), reveal everything after 5 seconds */
@keyframes revealSafe { to { opacity: 1; transform: none; } }
.js .reveal:not(.in) { animation: revealSafe .5s ease 5s forwards; }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { animation: none; } }
