/* The typeface travels with the site (assets/fonts), so a visitor's browser
   asks no third party for it: no Google request, nothing for a cookie banner. */
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/figtree-normal-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/figtree-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   SERENE DENTAL — a calm dental clinic. A WireSwan template.
   One family, Figtree, weights 300–600. A clear-sky palette: misty blue paper,
   deep ink, a calm blue. Headings are small and in sentence case; the reading
   text is large. The arch (logo, first screen, window, first visit) is the motif.
   The editable colours (--bg, --ink, --accent, with their night pairs) live in
   <style data-edit-colors> in index.html; everything else is derived here with color-mix.
   Every component's base state is static (all visible): main.js adds the classes
   for the tabs, cases, filters, review deck and pinned steps. In the WireSwan
   editor (html.ws-on) everything stays static.
   ========================================================================== */

:root {
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ink-soft: color-mix(in srgb, var(--ink) 74%, var(--bg));
  --ink-mute: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
  --tint: color-mix(in srgb, var(--ink) 4.5%, var(--bg));
  --surface: color-mix(in srgb, #fff 70%, var(--bg));
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-deep: color-mix(in srgb, var(--accent) 80%, #000);
  --on-accent: #fff;
  --night: color-mix(in srgb, var(--ink) 88%, var(--accent));
  --on-night: color-mix(in srgb, var(--bg) 96%, var(--accent));
  --accent-night: color-mix(in srgb, var(--accent) 42%, #fff);
  --photo: #121816;

  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: clamp(18px, 1.25vw, 21px);
  --fs-h3: clamp(22px, 1.6vw, 28px);
  --fs-h2: clamp(38px, 4.6vw, 78px);
  --fs-display: clamp(46px, 6.6vw, 116px);

  --maxw: 1520px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --section-y: clamp(104px, 11vw, 184px);
  --header-h: 88px; /* the room the floating pill takes */
  --pill: color-mix(in srgb, #fff 78%, var(--bg));
  --sky: color-mix(in srgb, var(--accent) 12%, var(--bg));
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  color-scheme: dark;
  --tint: color-mix(in srgb, var(--ink) 4%, var(--bg));
  --surface: color-mix(in srgb, var(--ink) 7%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --on-accent: var(--bg);
  --accent-deep: color-mix(in srgb, var(--accent) 80%, #fff);
  --night: color-mix(in srgb, #000 42%, var(--bg));
  --on-night: var(--ink);
  --accent-night: var(--accent);
  --pill: color-mix(in srgb, var(--ink) 8%, var(--bg));
  --sky: color-mix(in srgb, var(--accent) 9%, var(--bg));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
figure, blockquote, dl, dd, ol, ul, fieldset { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 450; letter-spacing: -.025em; text-wrap: balance; }
/* no thin-word accent: an <em> in a heading reads like the rest of it */
h1 em, h2 em { font-style: normal; font-weight: inherit; color: inherit; }
h3 { font-size: var(--fs-h3); font-weight: 450; line-height: 1.2; letter-spacing: -.02em; }
em { font-style: normal; }
strong, b { font-weight: 550; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .75rem 1rem; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); transition: top .3s var(--ease); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* heading words rise out of a mask; the mask leaves room for accents above and descenders below */
.line-mask { display: inline-block; vertical-align: top; clip-path: inset(-.3em -.5em -.28em -.5em); }
.line-mask > span { display: inline-block; will-change: transform; }

/* ---------- shared pieces ---------- */
/* labels: small, sentence case, in the accent */
.eyebrow, .label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.label { font-size: 14px; color: var(--ink-mute); }
.eyebrow svg { width: 16px; height: 16px; color: var(--accent); }
.eyebrow__n { display: none; }

/* section heads: a small calm title on the left, the large reading text beside it */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px clamp(16px, 2vw, 32px); align-items: start; margin-bottom: clamp(56px, 6.5vw, 104px); }
.sec-head .eyebrow { grid-column: 1 / span 4; grid-row: 1; }
.sec-head .sec-title { grid-column: 1 / span 4; grid-row: 2; }
.sec-head .sec-lead { grid-column: 6 / -1; grid-row: 1 / span 3; max-width: 40rem; }
.sec-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head--center .sec-lead { max-width: 44rem; margin-top: 22px; }
.sec-title { font-size: clamp(26px, 2.3vw, 38px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.sec-lead { max-width: 40rem; color: var(--ink); font-size: clamp(22px, 2vw, 32px); font-weight: 350; line-height: 1.4; letter-spacing: -.012em; text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 500; line-height: 1.2; letter-spacing: -.005em; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover > svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, currentColor 9%, transparent); transition: background-color .3s, color .3s; }
.round-btn:hover { background: color-mix(in srgb, currentColor 17%, transparent); }
.round-btn svg { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding-block: 4px; font-weight: 500; background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat; }
.link-arrow > span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; padding-bottom: 4px; margin-bottom: -4px; transition: background-size .6s var(--ease); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link-arrow:hover > span { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }
.u-link { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.u-link:hover { background-size: 100% 1px; }

.open-now { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.open-now::before { content: ''; width: 16px; height: 1.5px; background: currentColor; }
.open-now[data-open="true"] { color: var(--accent); }
[data-open-now]:empty { display: none; }

/* ==========================================================================
   HEADER — the logo on its own at the left, a light pill on the right; the same all the way down
   ========================================================================== */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; pointer-events: none; color: var(--ink); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__inner > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.header .brand { height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--pill); }
.brand__mark { width: 28px; height: 28px; color: var(--accent); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__name { font-size: 21px; font-weight: 550; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.header__pill { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px 0 26px; border-radius: 999px; background: var(--pill); }
.nav { display: flex; gap: clamp(16px, 1.8vw, 28px); margin-right: 10px; font-size: 15px; }
.nav a { position: relative; opacity: .8; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.nav a:hover, .nav a.is-current { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta { min-height: 44px; }
/* the switch is the clinic's arch window with the sky in it: the sun and the moon sit on one
   wheel turning about the horizon, so the sun sets to the right as the moon rises from the left;
   at night the glass fills with a little dusk */
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; }
.theme-toggle svg { width: 30px; height: 30px; }
.sky__wheel { transform-box: view-box; transform-origin: 16px 22px; transition: transform 1.1s var(--ease-io); }
.sky__night { fill: currentColor; opacity: 0; transition: opacity 1.1s var(--ease-io); }
.theme-toggle:hover .sky__wheel { transform: rotate(14deg); }
[data-theme="dark"] .sky__wheel { transform: rotate(180deg); }
[data-theme="dark"] .theme-toggle:hover .sky__wheel { transform: rotate(194deg); }
[data-theme="dark"] .sky__night { opacity: .16; }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span { top: 21.5px; }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-size: clamp(30px, 8vw, 46px); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.menu nav a span { font-size: 12px; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.menu:not([hidden]) { animation: fade-in .45s var(--ease); }
.menu:not([hidden]) nav a, .menu:not([hidden]) .menu__foot { animation: menu-rise .7s var(--ease) both; }
.menu:not([hidden]) nav a:nth-child(2) { animation-delay: .04s; }
.menu:not([hidden]) nav a:nth-child(3) { animation-delay: .08s; }
.menu:not([hidden]) nav a:nth-child(4) { animation-delay: .12s; }
.menu:not([hidden]) nav a:nth-child(5) { animation-delay: .16s; }
.menu:not([hidden]) nav a:nth-child(6) { animation-delay: .2s; }
.menu:not([hidden]) .menu__foot { animation-delay: .26s; }
@keyframes menu-rise { from { opacity: 0; transform: translateY(18px); } }
.menu__foot { display: grid; gap: 14px; }
.menu__phone { justify-self: center; font-size: 20px; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   HERO — light: the words on the left, the clinic in a tall arch on the right
   ========================================================================== */
.hero { position: relative; padding-top: var(--header-h); background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 78%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(40px, 6vw, 120px); min-height: calc(100svh - var(--header-h)); padding-top: clamp(24px, 4vh, 48px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero__copy { padding-bottom: clamp(4px, 2vh, 24px); }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--accent); }
.hero__eyebrow svg { width: 17px; height: 17px; }
.hero__eyebrow .sep { opacity: .5; }
.hero__title { max-width: 15ch; margin-top: clamp(18px, 2.6vh, 30px); font-size: clamp(44px, 5.4vw, 92px); font-weight: 450; line-height: 1.02; letter-spacing: -.035em; }
.hero__text { max-width: 36ch; text-wrap: pretty; margin-top: clamp(20px, 3vh, 32px); font-size: clamp(19px, 1.45vw, 23px); line-height: 1.5; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3.6vh, 38px); }
.hero__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; font-size: 15px; color: var(--ink-mute); }
.hero__note .open-now { color: var(--ink); }
/* the figures, quietly under the text */
.facts { display: flex; gap: clamp(24px, 3vw, 52px); margin-top: clamp(28px, 5vh, 56px); padding-top: 20px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.fact { display: flex; align-items: baseline; gap: 10px; }
.fact__num { font-size: clamp(24px, 1.9vw, 30px); font-weight: 450; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact__label { max-width: 15ch; font-size: 14px; line-height: 1.35; color: var(--ink-mute); }
.hero__arch { position: relative; justify-self: end; width: min(100%, calc((100svh - var(--header-h) - 70px) * .74)); aspect-ratio: .74; max-height: calc(100svh - var(--header-h) - 70px); overflow: hidden; border-radius: 9999px 9999px var(--r-lg) var(--r-lg); background: var(--sky); }
.hero__arch img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: 38% 50%; transform-origin: 50% 80%; }

/* ==========================================================================
   WINDOW — the arch that opens to the full screen
   ========================================================================== */
.calm { position: relative; padding-bottom: var(--section-y); }
.calm__stage { position: relative; height: 92vh; height: 92svh; min-height: 560px; overflow: hidden; }
.calm__window { position: absolute; inset: 0; overflow: hidden; background: var(--photo); }
.calm__window img { width: 100%; height: 100%; object-fit: cover; }
.calm__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(7 12 10 / .78) 0%, rgb(7 12 10 / .3) 46%, rgb(7 12 10 / 0) 72%); }
.calm__caption { position: absolute; left: 0; right: 0; bottom: clamp(36px, 6vw, 88px); color: #fff; }
.calm__title { max-width: 18ch; font-size: clamp(34px, 4vw, 64px); line-height: 1.08; }
.calm__text { max-width: 36rem; margin-top: 24px; font-size: var(--fs-lead); line-height: 1.55; color: rgb(255 255 255 / .86); }
.calm__word { display: none; }
/* with JS: the small arch in the middle, the large words above and below */
.calm__stage.is-anim { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); background: var(--bg); }
.calm__stage.is-anim .calm__word { display: block; position: absolute; left: 0; right: 0; z-index: 1; padding-inline: var(--gutter); text-align: center; font-size: clamp(40px, 6vw, 108px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; will-change: transform, opacity; }
.calm__stage.is-anim .calm__word--top { bottom: calc(50% + var(--wh, 300px) / 2 + clamp(10px, 1.6vw, 24px)); }
.calm__stage.is-anim .calm__word--bottom { top: calc(50% + var(--wh, 300px) / 2 + clamp(6px, 1.2vw, 18px)); color: var(--accent); }

/* the promises: one arch each, the same arch as the first screen and the window */
.promises { margin-top: var(--section-y); }
.promises__lead { max-width: 16ch; margin: 0 auto clamp(40px, 5vw, 72px); text-align: center; font-size: clamp(34px, 3.6vw, 60px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.promises__lead em { color: var(--accent); }
.principles { counter-reset: promise; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(14px, 1.6vw, 26px); align-items: stretch; }
.principle { counter-increment: promise; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: clamp(380px, 29vw, 450px); padding: clamp(118px, 9.4vw, 150px) clamp(26px, 2.6vw, 44px) clamp(26px, 2.4vw, 38px); border-radius: 9999px 9999px var(--r-lg) var(--r-lg); background: var(--sky); }
/* the number at the top of the arch, where a window's keystone would be */
.principle::before { content: counter(promise, decimal-leading-zero); position: absolute; top: clamp(44px, 3.6vw, 60px); left: 50%; transform: translateX(-50%); font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.principle h3 { max-width: 15ch; font-size: clamp(25px, 2vw, 34px); font-weight: 450; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.principle p { max-width: 32ch; margin-top: 16px; color: var(--ink-soft); font-size: var(--fs-body); line-height: 1.6; }
.principle .principle__proof { max-width: none; margin-top: auto; padding: 11px 18px; border-radius: 999px; background: var(--bg); font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--accent); }
.principle .principle__proof:empty { display: none; }
.principle p:not(.principle__proof) { margin-bottom: 28px; }
/* the middle arch stands a little higher, like the main window of a facade */
@media (min-width: 961px) { .principle:nth-child(3n + 2) { margin-top: -36px; } }

/* ==========================================================================
   TREATMENTS — static: the panels stacked; with JS (.is-tabs): tabs
   ========================================================================== */
.tx__tabs { display: none; }
.tx__panels { display: grid; gap: clamp(64px, 7vw, 112px); }
.tx__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tx__panel + .tx__panel { padding-top: clamp(64px, 7vw, 112px); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; margin-top: calc(-1 * clamp(0px, 0vw, 0px)); }
.tx__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--line); }
.tx__media img { width: 100%; height: 100%; object-fit: cover; }
.tx__body { padding-top: 6px; }
.tx__name { font-size: clamp(30px, 2.6vw, 44px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.tx__text { margin-top: 20px; max-width: 34rem; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; }
.checks { display: grid; margin: 28px 0; }
.checks li { display: flex; gap: 14px; padding: 13px 0; line-height: 1.45; background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.checks li:first-child { background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.checks span:empty { display: none; }
.checks li:has(span:empty) { display: none; }
.tx__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 32px; }
.tx__meta dt { font-size: 13px; color: var(--ink-mute); }
.tx__meta dd { margin-top: 4px; font-size: 20px; font-weight: 450; letter-spacing: -.015em; }

.tx.is-tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.tx.is-tabs .tx__tabs { display: flex; flex-direction: column; position: sticky; top: calc(var(--header-h) + 32px); }
.tx.is-tabs .tx__panel + .tx__panel { padding-top: 0; background: none; }
.tx__tab { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 20px 4px; color: var(--ink-mute); font-size: clamp(18px, 1.45vw, 23px); font-weight: 400; letter-spacing: -.02em; line-height: 1.25; text-align: left; background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; transition: color .35s, padding .55s var(--ease); }
.tx__tab:first-child { background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.tx__tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tx__tab-n { font-size: 12px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.tx__tab svg { width: 18px; height: 18px; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .5s var(--ease); }
.tx__tab:hover { color: var(--ink); padding-left: 14px; }
.tx__tab[aria-selected="true"] { color: var(--ink); }
.tx__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tx__tab:hover svg, .tx__tab[aria-selected="true"] svg { opacity: 1; transform: none; }

/* ==========================================================================
   BEFORE / AFTER
   ========================================================================== */
.ba { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.ba__text .sec-title { margin: 28px 0; }
.ba__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.ba__chips:empty { display: none; }
.ba__note { max-width: 40ch; margin-top: 28px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-mute); }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px clamp(20px, 2.5vw, 36px); }
.cases.is-js { grid-template-columns: 1fr; width: 100%; max-width: min(600px, calc((100svh - var(--header-h) - 170px) * .8)); justify-self: end; }
.ba { justify-items: stretch; }
.cases.is-js .case { grid-area: 1 / 1; transition: opacity .5s var(--ease), visibility 0s .5s; }
.cases.is-js .case:not(.is-on) { opacity: 0; visibility: hidden; }
.cases.is-js .case.is-on { transition: opacity .6s var(--ease) .05s, visibility 0s; }
.cases.is-js .case__label { display: none; }
.case__caption { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.case__label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case__title { font-size: clamp(20px, 1.5vw, 24px); font-weight: 450; }
.case__text { color: var(--ink-soft); }

.compare { --pos: 50%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--line); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; }
.compare__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -.75px; width: 1.5px; background: #fff; }
.compare__knob { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #17211f; transform: translate(-50%, -50%); transition: transform .45s var(--ease); }
.compare__knob svg { width: 22px; height: 22px; }
.compare:hover .compare__knob { transform: translate(-50%, -50%) scale(1.06); }
.compare.is-dragging .compare__knob { transform: translate(-50%, -50%) scale(.92); }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgb(10 14 12 / .5); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .06em; pointer-events: none; transition: opacity .35s; }
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare__range { position: absolute; left: 0; bottom: 0; width: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ==========================================================================
   PRICES
   ========================================================================== */
.prices__tools { display: none; }
.prices.is-js .prices__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(40px, 4vw, 64px); padding-bottom: 32px; background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.search { display: flex; align-items: center; gap: 12px; width: min(100%, 26rem); height: 56px; padding: 0 20px; border-radius: 999px; background: var(--bg); color: var(--ink-mute); transition: box-shadow .3s; }
.search svg { width: 20px; height: 20px; }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: var(--ink-mute); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.prices__filters { display: flex; flex-wrap: wrap; gap: 8px; }
/* each group is a receipt: paper with a torn bottom edge, dotted leaders from the name to the price.
   When a filter changes, the receipts print out again from the top. */
.prices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(32px, 4vw, 72px); align-items: start; }
.price-group { padding: clamp(24px, 2.4vw, 36px) clamp(22px, 2.4vw, 36px) clamp(34px, 3vw, 46px); background: var(--bg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom left / 14px 7px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom left / 14px 7px repeat-x; }
.price-group__title { margin-bottom: 14px; padding-bottom: 16px; font-size: clamp(22px, 1.7vw, 28px); font-weight: 450; background: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px) 0 100% / 7px 3px repeat-x; }
.price { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; transition: color .3s; }
.price::after { content: ''; order: 1; flex: 1 1 24px; min-width: 24px; height: 3px; background: radial-gradient(circle, var(--ink-mute) .9px, transparent 1.3px) 0 50% / 7px 3px repeat-x; opacity: .7; }
.price:hover { color: var(--accent); }
.price__name { order: 0; min-width: 0; max-width: 72%; }
.price__val { order: 2; flex: none; font-size: 19px; font-weight: 450; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.prices__aside { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg); background: var(--night); color: var(--on-night); }
.prices__aside h3 { font-size: clamp(24px, 1.9vw, 30px); font-weight: 400; letter-spacing: -.03em; }
.prices__aside p { color: color-mix(in srgb, var(--on-night) 72%, transparent); }
.prices__aside .link-arrow { margin-top: auto; --line-strong: color-mix(in srgb, var(--on-night) 30%, transparent); --accent: var(--accent-night); }
.prices__empty { padding: 48px 0 8px; text-align: center; font-size: var(--fs-lead); color: var(--ink-soft); }
.prices__empty a { color: var(--accent); }

/* ==========================================================================
   FIRST VISIT — static: four steps with photos; pinned (large screens, JS): the arch
   ========================================================================== */
.visit__inner { display: grid; gap: 32px; }
.visit__visual { display: none; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 48px clamp(20px, 2.5vw, 36px); margin-top: clamp(48px, 5vw, 80px); counter-reset: step; }
.step { position: relative; counter-increment: step; padding-top: 22px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.step::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.step__n::before { content: counter(step, decimal-leading-zero); font-size: 12px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step__title { font-size: clamp(21px, 1.6vw, 26px); font-weight: 400; letter-spacing: -.025em; transition: color .4s; }
.step__time { margin-left: auto; font-size: 13px; color: var(--ink-mute); white-space: nowrap; }
.step__body p { margin-top: 14px; color: var(--ink-soft); }
.step__img { width: 100%; aspect-ratio: 4 / 3; margin-top: 22px; object-fit: cover; border-radius: var(--r-md); background: var(--line); }

.visit.is-pinned { padding-block: 0; }
.visit.is-pinned .visit__pin { height: 100vh; height: 100svh; }
.visit.is-pinned .visit__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 128px); align-items: center; height: 100%; padding-top: calc(var(--header-h) + 16px); padding-bottom: 32px; }
.visit.is-pinned .steps { display: block; margin-top: clamp(28px, 4.5vh, 52px); }
.visit.is-pinned .step { padding-block: 18px; }
.visit.is-pinned .step__head { cursor: pointer; flex-wrap: nowrap; }
.visit.is-pinned .step__title { color: var(--ink-mute); }
.visit.is-pinned .step__head:hover .step__title, .visit.is-pinned .step.is-active .step__title { color: var(--ink); }
.visit.is-pinned .step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.visit.is-pinned .step__body > div { overflow: hidden; min-height: 0; }
.visit.is-pinned .step.is-active .step__body { grid-template-rows: 1fr; }
.visit.is-pinned .step__body p { max-width: 30rem; padding-left: 34px; }
.visit.is-pinned .step__n { min-width: 20px; }
.visit.is-pinned .step__img { display: none; }
.visit.is-pinned .visit__visual { display: block; }
.visit__frame { position: relative; height: min(calc(100svh - var(--header-h) - 120px), 46vw); overflow: hidden; border-radius: 50% 50% var(--r-lg) var(--r-lg) / 32% 32% var(--r-lg) var(--r-lg); background: var(--line); }
.visit__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__progress { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: 14px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.visit__bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.visit__bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   TEAM — the quote appears over the photo on hover (mouse); otherwise under the role
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); }
.doc { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
.doc:nth-child(even) { margin-top: clamp(32px, 5vw, 96px); }
.doc__media { grid-area: 1 / 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); background: var(--line); }
.doc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.doc__name { margin-top: 20px; font-size: clamp(20px, 1.5vw, 24px); font-weight: 450; }
.doc__role { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.doc__quote { margin-top: 14px; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-soft); }
.doc__quote::before { content: '“'; }
.doc__quote::after { content: '”'; }
.doc__quote:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.ws-on) .doc__quote { grid-area: 1 / 1; align-self: end; z-index: 1; margin: 0; padding: 72px 22px 22px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: linear-gradient(180deg, rgb(7 12 10 / 0), rgb(7 12 10 / .78)); color: #fff; font-size: 16.5px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
  html:not(.ws-on) .doc:hover .doc__quote { opacity: 1; transform: none; }
  html:not(.ws-on) .doc:hover .doc__media img { transform: scale(1.04); }
}

/* ==========================================================================
   TECHNOLOGY
   ========================================================================== */
.tech { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.tech__media { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--r-lg); background: var(--photo); }
.tech__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tech__text .sec-title { margin-top: 28px; }
.tech__list { margin-top: clamp(36px, 4vw, 56px); }
.tech__item { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 26px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.tech__item:last-child { background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.tech__item h3 { margin-bottom: 6px; font-size: clamp(20px, 1.45vw, 24px); }
.tech__item p { color: var(--ink-soft); }

/* ==========================================================================
   REVIEWS — static: the cards stacked; with JS (.is-ready): a deck
   ========================================================================== */
.reviews { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 112px); align-items: center; }
.reviews__summary .sec-title { margin-top: 28px; }
.rating { display: flex; align-items: center; gap: 24px; margin-top: 44px; }
.rating__score { display: flex; align-items: baseline; font-size: clamp(72px, 7vw, 112px); font-weight: 300; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rating__score small { margin-left: 8px; font-size: .26em; font-weight: 400; letter-spacing: 0; color: var(--ink-mute); }
.rating__count { font-size: 15px; color: var(--ink-soft); }
.bars { display: grid; gap: 10px; max-width: 26rem; margin-top: 36px; }
.bars li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bars li > span:last-child { text-align: right; }
.bars__track { position: relative; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.bars__track span { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(var(--v)); transform-origin: left; }

.deck { position: relative; min-width: 0; }
.deck__stack { display: grid; gap: 16px; }
.review { display: flex; flex-direction: column; gap: 32px; padding: clamp(28px, 3.4vw, 52px); border-radius: var(--r-lg); background: var(--bg); }
.review__text { font-size: clamp(21px, 1.7vw, 30px); font-weight: 300; line-height: 1.38; letter-spacing: -.02em; text-wrap: pretty; }
.review__text::before { content: '“'; }
.review__text::after { content: '”'; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; font-size: 15px; }
.review figcaption span { color: var(--ink-mute); }
.deck__controls { display: none; align-items: center; gap: 16px; margin-top: 28px; }
.deck__count { min-width: 64px; text-align: center; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.deck.is-ready .deck__stack { gap: 0; padding-bottom: 40px; touch-action: pan-y; }
.deck.is-ready .review { grid-area: 1 / 1; transform-origin: 50% 100%; transform: translateY(calc(var(--k, 0) * 18px)) scale(calc(1 - var(--k, 0) * .05)); opacity: var(--o, 1); transition: transform .8s var(--ease), opacity .6s var(--ease), background-color .6s; }
.deck.is-ready .review[aria-hidden="true"] { background: color-mix(in srgb, var(--bg) 70%, var(--tint)); }
.deck.is-ready .review.is-leaving { transform: translate(-8%, -3%) rotate(-4deg) !important; opacity: 0 !important; transition-duration: .45s, .35s; }
.deck.is-ready .review.no-trans { transition: none !important; }
.deck.is-ready .deck__controls { display: flex; }
.deck__controls .round-btn { color: var(--ink); }

/* ==========================================================================
   QUESTIONS
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .sec-title { margin: 28px 0; }
.faq__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.qa { background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.qa:first-child { background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; font-size: clamp(19px, 1.55vw, 25px); font-weight: 400; letter-spacing: -.02em; line-height: 1.3; cursor: pointer; list-style: none; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa__icon { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tint); color: var(--ink); transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open]:not(.is-closing) .qa__icon { background: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.qa[open]:not(.is-closing) .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { max-width: 46rem; padding: 0 64px 32px 0; color: var(--ink-soft); font-size: 17px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); align-items: stretch; }
.contact__info .sec-title { margin-top: 28px; }
.contact__rows { margin-top: clamp(40px, 4vw, 56px); }
.contact__row { padding-block: 24px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.contact__row .label { margin-bottom: 10px; }
.contact__row--two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.contact__big { font-size: clamp(22px, 1.8vw, 30px); font-weight: 400; letter-spacing: -.025em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.contact__mail { font-size: 18px; overflow-wrap: anywhere; }
.contact__small { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 4px; }
.hours__head .label { margin: 0; }
.hours__head .open-now { font-size: 14.5px; }
.hours { max-width: 30rem; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.hours__row:last-child { background: none; }
.hours__row.is-today { color: var(--ink); font-weight: 500; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.map { --map-ground: color-mix(in srgb, var(--ink) 7%, var(--bg)); --map-park: color-mix(in srgb, var(--accent) 16%, var(--map-ground)); --map-water: color-mix(in srgb, #5b8fa0 22%, var(--map-ground)); --map-road: color-mix(in srgb, #fff 55%, var(--bg)); --map-block: color-mix(in srgb, var(--ink) 11%, var(--bg)); position: relative; min-height: 580px; overflow: hidden; border-radius: var(--r-lg); background: var(--map-ground); }
[data-theme="dark"] .map { --map-road: color-mix(in srgb, var(--ink) 14%, var(--bg)); --map-water: color-mix(in srgb, #5b8fa0 18%, var(--map-ground)); }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__ground { fill: var(--map-ground); }
.map__park { fill: var(--map-park); }
.map__river { fill: none; stroke: var(--map-water); stroke-width: 26; stroke-linecap: round; }
.map__road path { fill: none; stroke: var(--map-road); stroke-width: 7; stroke-linecap: round; }
.map__road--main path { stroke-width: 14; }
.map__blocks rect { fill: var(--map-block); }
.map__pin { position: absolute; left: 50%; top: 46%; width: 46px; transform: translate(-50%, -100%); }
.map__pin svg { width: 46px; height: 60px; overflow: visible; }
.map__pin svg > path:first-child { fill: var(--accent); }
.map__pin-mark { stroke: var(--on-accent); }
.map__card { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 25rem; padding: 24px 26px; border-radius: var(--r-md); background: var(--bg); }
.map__name { font-size: 22px; font-weight: 450; letter-spacing: -.025em; }
.map__addr { margin: 4px 0 14px; font-size: 15px; color: var(--ink-soft); }

/* ==========================================================================
   BOOKING — the two-step dialog
   ========================================================================== */
.booking { width: min(calc(100% - 32px), 46rem); max-width: none; max-height: min(92vh, 56rem); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); }
.booking[open] { display: flex; animation: dlg-in .55s var(--ease); }
.booking.is-closing { animation: dlg-out .28s var(--ease-io) forwards; }
.booking::backdrop { background: rgb(7 12 10 / .6); animation: fade-in .4s ease; }
.booking.is-closing::backdrop { animation: fade-out .28s ease forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.booking__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px) 18px; }
.booking__head .round-btn { color: var(--ink); }
.booking__steps { display: flex; gap: 8px; padding: 0 clamp(20px, 3vw, 36px) 20px; }
.booking__steps li { flex: 1; padding-top: 10px; font-size: 13px; color: var(--ink-mute); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat; transition: color .4s; }
.booking__steps li.is-active, .booking__steps li.is-done { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.booking__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px clamp(20px, 3vw, 36px) 24px; }
.booking__step-title { margin-bottom: 24px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 400; letter-spacing: -.035em; }
.field { display: block; min-width: 0; margin: 0 0 26px; }
.field legend, .field > span:first-child { display: block; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 500; }
.field input:not([type="radio"]), .field textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--tint); color: var(--ink); font-size: 16px; outline: 0; transition: box-shadow .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.field [aria-invalid="true"] { box-shadow: 0 0 0 2px #b4462f !important; }
.field__error { display: block; margin-top: 8px; font-size: 14px; color: #b4462f; }
[data-theme="dark"] .field__error { color: #e39482; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; display: block; }
.chip-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-radio > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-size: 15px; line-height: 1.2; text-align: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.chip-radio:hover > span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip-radio input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.days .chip-radio > span { flex-direction: column; gap: 2px; padding: 10px 4px; border-radius: var(--r-md); }
.days small { font-size: 11.5px; letter-spacing: .03em; opacity: .75; }
.days b { font-size: 24px; font-weight: 300; line-height: 1.1; letter-spacing: -.03em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots .chip-radio > span { border-radius: 12px; font-variant-numeric: tabular-nums; }
/* the appointment card, like the small card a clinic hands you at the desk: the day, time and reason are written in on the lines */
.appt { max-width: 26rem; margin-bottom: 28px; padding: 18px 22px 20px; border-radius: 14px; background: var(--accent-soft); }
.appt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.appt__head svg { width: 22px; height: 22px; }
.appt__rows > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-top: 10px; }
.appt dt { font-size: 13px; color: var(--ink-mute); }
.appt dd { padding-bottom: 5px; font-size: 18px; font-weight: 450; letter-spacing: -.01em; font-variant-numeric: tabular-nums; background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat; }
.booking[data-step="2"] .appt dd { animation: write-in .8s var(--ease) both; }
.booking[data-step="2"] .appt__rows > div:nth-child(2) dd { animation-delay: .14s; }
.booking[data-step="2"] .appt__rows > div:nth-child(3) dd { animation-delay: .28s; }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.booking[data-step="3"] .appt { margin: 8px auto 28px; text-align: left; }
.booking__note { font-size: 14px; color: var(--ink-mute); }
.booking__done { padding: 0 0 8px; text-align: center; }
.booking__done h3 { margin-bottom: 10px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; }
.booking__done p { max-width: 28rem; margin-inline: auto; color: var(--ink-soft); }
.booking__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px clamp(20px, 3vw, 36px); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.booking__foot .btn { min-height: 48px; }
/* the dialog steps: with JS one shows at a time */
.booking[data-step="1"] [data-bstep="2"], .booking[data-step="1"] [data-bdone], .booking[data-step="1"] [data-bprev], .booking[data-step="1"] [data-bsend], .booking[data-step="1"] [data-bclose] { display: none; }
.booking[data-step="2"] [data-bstep="1"], .booking[data-step="2"] [data-bdone], .booking[data-step="2"] [data-bnext], .booking[data-step="2"] [data-bclose] { display: none; }
.booking[data-step="3"] [data-bstep="2"] > :not(.appt) { display: none; }
.booking[data-step="3"] [data-bstep="1"], .booking[data-step="3"] [data-bnext], .booking[data-step="3"] [data-bprev], .booking[data-step="3"] [data-bsend] { display: none; }
.booking[data-step="3"] .booking__steps { visibility: hidden; }

/* ==========================================================================
   FOOTER — quiet, two columns
   ========================================================================== */
.footer { padding-block: clamp(96px, 10vw, 160px) 28px; background: var(--sky); color: var(--ink); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 140px); padding-bottom: clamp(64px, 7vw, 112px); }
.footer__title { max-width: 20ch; margin-top: clamp(32px, 4vw, 56px); font-size: clamp(28px, 2.6vw, 42px); font-weight: 450; line-height: 1.18; letter-spacing: -.025em; }
.footer__text { max-width: 30rem; margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-soft); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.footer__right { align-self: end; }
.footer__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 24px; padding-block: 24px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.footer__row .label { padding-top: 2px; }
.footer__val { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 17px; overflow-wrap: anywhere; }
.footer__val a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.footer__val a:hover { background-size: 100% 1px; }
.footer__soft { font-size: 15px; color: var(--ink-mute); }
.footer__links { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; }
.footer__val .open-now { font-size: 15px; }
.footer__hours { display: grid; grid-template-columns: auto auto; gap: 4px 22px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 26px; font-size: 14px; color: var(--ink-mute); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a, .to-top { transition: color .3s; }
.footer__legal a:hover, .to-top:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 10px; }
.to-top svg { width: 16px; height: 16px; }

/* floating WhatsApp button */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; height: 56px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: background-color .3s, transform .5s var(--ease), opacity .4s; }
.wa-float svg { width: 24px; height: 24px; }
.wa-float__label { max-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; transition: max-width .6s var(--ease), margin .6s var(--ease); }
.wa-float:hover { background: var(--accent-deep); }
@media (hover: hover) { .wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 14rem; margin-left: 10px; margin-right: 4px; } }
.menu-open .wa-float, .wa-float.is-away { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ==========================================================================
   SMALL SCREENS
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header__pill { padding-left: 6px; }
  .burger { display: grid; }
  .facts { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .hero__arch { grid-row: 1; justify-self: center; width: min(100%, 440px); max-height: none; }
}
@media (max-width: 1240px) {
  .tx__panel { grid-template-columns: 1fr; }
  .tx__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 960px) {
  .sec-head { display: flex; flex-direction: column; align-items: flex-start; }
  .sec-head--center { align-items: center; }
  .sec-head .sec-lead { margin-top: 10px; }
  .tx.is-tabs { grid-template-columns: 1fr; }
  .tx.is-tabs .tx__tabs { position: static; display: flex; flex-direction: row; gap: 8px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .tx.is-tabs .tx__tabs::-webkit-scrollbar { display: none; }
  .tx__tab, .tx__tab:first-child { flex: none; display: inline-flex; gap: 10px; padding: 12px 18px; border-radius: 999px; font-size: 15.5px; background: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
  .tx__tab::after, .tx__tab svg { display: none; }
  .tx__tab:hover { padding-left: 18px; }
  .tx__tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  .tx__tab[aria-selected="true"] .tx__tab-n { color: inherit; opacity: .7; }
  .ba, .tech, .reviews, .faq, .contact { grid-template-columns: 1fr; }
  .cases.is-js { max-width: 560px; }
  .principle { min-height: 0; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc:nth-child(even) { margin-top: 48px; }
  .faq__intro { position: static; }
  .tech__media { aspect-ratio: 4 / 3; }
  .map { min-height: 460px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .prices__grid { grid-template-columns: 1fr; }
  .search { width: 100%; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; --fs-body: 16.5px; }
  .header { top: 12px; }
  .header .brand, .header__pill { height: 52px; }
  .header .brand { padding: 0 16px 0 12px; }
  .header__cta { display: none; }
  .brand__name { font-size: 19px; }
  .hero__inner { padding-top: 12px; gap: 28px; }
  .hero__arch { width: 100%; aspect-ratio: .92; }
  .hero__title { font-size: clamp(38px, 10.6vw, 54px); }
  .hero__text { font-size: 18px; }
  .hero__cta .btn { width: 100%; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .fact { flex-direction: column; gap: 4px; min-width: 0; }
  .fact__label { font-size: 12.5px; }
  .sec-lead { font-size: 21px; }
  .footer__row { grid-template-columns: 1fr; gap: 8px; }
  .calm__stage.is-anim .calm__word { font-size: clamp(34px, 10vw, 48px); }
  .team { gap: 40px 14px; }
  .doc__media { border-radius: var(--r-md); }
  .doc__role, .doc__quote { font-size: 14px; }
  .price { gap: 16px; }
  .price__val { font-size: 17px; }
  .qa__body p { padding-right: 0; }
  .contact__row--two { grid-template-columns: 1fr; }
  .footer__actions .btn { width: 100%; }
  .footer { padding-bottom: 96px; }
  .booking { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .booking[open] { animation-name: sheet-in; }
  .booking.is-closing { animation-name: sheet-out; }
  .booking__foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .booking__foot .btn { flex: 1; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* ==========================================================================
   THE WIRESWAN EDITOR (html.ws-on) and /try: everything visible, static, clickable
   ========================================================================== */
html.ws-on .header { position: absolute; }
html.ws-on .line-mask > span { transform: none !important; }
html.ws-on [data-reveal], html.ws-on [data-hero-fade] { opacity: 1 !important; transform: none !important; }
html.ws-on .calm__stage { height: 92svh; }
html.ws-on .calm__word { display: none !important; }
html.ws-on .calm__window { clip-path: none !important; }
html.ws-on .calm__window img { transform: none !important; }
html.ws-on .calm__shade, html.ws-on .calm__caption > * { opacity: 1 !important; transform: none !important; }
html.ws-on .tx { display: block !important; }
html.ws-on .tx__tabs { display: none !important; }
html.ws-on .tx__panel { display: grid !important; }
html.ws-on .tx__panel + .tx__panel { padding-top: clamp(64px, 7vw, 112px) !important; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat !important; }
html.ws-on .ba { grid-template-columns: 1fr; }
html.ws-on .ba__chips { display: none; }
html.ws-on .cases { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
html.ws-on .case { grid-area: auto !important; opacity: 1 !important; visibility: visible !important; }
html.ws-on .case__label { display: block !important; }
html.ws-on .compare { cursor: default; }
html.ws-on .compare__range { pointer-events: none; }
html.ws-on .prices__tools { display: none !important; }
html.ws-on .price-group, html.ws-on .price, html.ws-on .prices__aside { display: revert !important; }
html.ws-on .price { display: flex !important; }
html.ws-on .prices__aside { display: flex !important; }
html.ws-on .prices__empty { display: block !important; padding-top: 32px; font-size: 15px; color: var(--ink-mute); }
html.ws-on .visit__visual { display: none !important; }
html.ws-on .step__img { display: block !important; }
html.ws-on .deck__stack { gap: 16px !important; padding: 0 !important; }
html.ws-on .review { grid-area: auto !important; transform: none !important; opacity: 1 !important; }
html.ws-on .deck__controls { display: none !important; }
html.ws-on .qa__body { display: block !important; height: auto !important; }
html.ws-on .qa::details-content { content-visibility: visible; display: block; }
html.ws-on .booking-host { padding: var(--section-y) var(--gutter); background: var(--tint); }
html.ws-on .booking { position: static; display: block; width: 100%; max-width: 46rem; max-height: none; margin: 0 auto; overflow: visible; animation: none; }
html.ws-on .booking__body { overflow: visible; }
html.ws-on .booking [data-bstep], html.ws-on .booking [data-bdone] { display: block !important; }
html.ws-on .booking [data-bstep="2"], html.ws-on .booking [data-bdone] { margin-top: 40px; padding-top: 32px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
html.ws-on .booking__foot .btn, html.ws-on .booking__foot a { display: inline-flex !important; }
html.ws-on .booking__head .round-btn { display: none; }
html.ws-on .field__error { display: block !important; }
html.ws-on .wa-float__label { max-width: 14rem; margin-left: 10px; margin-right: 4px; }
html.ws-on .wa-float { position: static; width: max-content; margin: 24px auto; }
html.ws-on .doc__quote { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
