/* Poliklinika ELVI
   Dark, image-led clinic site with a WebGL glass medical cross.
   Radius system: panels and media 22-28px, nested cores 16-22px, interactive controls full pill.
   Z-index scale: canvas 0, content 1, callbar 40, menu 45, nav 50, grain 60, toast 70, preloader 80. */

@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-latin-ext-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-latin-normal.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; }
@font-face { font-family: "Hanken"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-latin-ext-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-latin-italic.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; }

/* Dark tokens. Also applied to image-backed surfaces (.panel, .cta-card) so they stay legible in light mode. */
:root, .panel, .cta-card {
  --bg: #0a0c0b;
  --bg-2: #0f1211;
  --bg-3: #141817;
  --ink: #eef1ef;
  --ink-2: #c3cac6;
  --muted: #8e9893;
  --dim: #6c7671;
  --tint: 255 255 255;
  --bgc: 10 12 11;
  --ink-rgb: 238 241 239;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .14);
  --accent: #6fd8ad;
  --accent-rgb: 111 216 173;
  --accent-soft: rgb(111 216 173 / .12);
  --danger: #ff9b8a;
  --light: #f4f6f5;
  --on-light: #0b0e0d;
  --light-hover: #ffffff;
  --ic-bg: rgb(0 0 0 / .08);
  --img-filter: grayscale(.35) saturate(.8) brightness(.62) contrast(1.12);
  --map-filter: grayscale(1) invert(.92) contrast(.9) brightness(.9);
  --grain: .045;
}
:root {
  --r: 24px;
  --wrap: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
}
/* Light tokens */
:root[data-theme="light"] {
  --bg: #f2f5f3;
  --bg-2: #e8eeeb;
  --bg-3: #fbfcfb;
  --ink: #0f1a16;
  --ink-2: #33443e;
  --muted: #56665f;
  --dim: #66756f;
  --tint: 15 26 22;
  --bgc: 242 245 243;
  --ink-rgb: 15 26 22;
  --line: rgb(15 26 22 / .1);
  --line-2: rgb(15 26 22 / .18);
  --accent: #13785a;
  --accent-rgb: 19 120 90;
  --accent-soft: rgb(19 120 90 / .1);
  --danger: #b42318;
  --light: #0f1a16;
  --on-light: #f2f5f3;
  --light-hover: #1d2b26;
  --ic-bg: rgb(255 255 255 / .14);
  --img-filter: grayscale(.2) saturate(.85) brightness(.88) contrast(1.05);
  --map-filter: grayscale(.35) contrast(.95);
  --grain: .03;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f2f5f3; --bg-2: #e8eeeb; --bg-3: #fbfcfb; --ink: #0f1a16; --ink-2: #33443e; --muted: #56665f; --dim: #66756f;
    --tint: 15 26 22; --bgc: 242 245 243; --ink-rgb: 15 26 22; --line: rgb(15 26 22 / .1); --line-2: rgb(15 26 22 / .18);
    --accent: #13785a; --accent-rgb: 19 120 90; --accent-soft: rgb(19 120 90 / .1); --danger: #b42318;
    --light: #0f1a16; --on-light: #f2f5f3; --light-hover: #1d2b26; --ic-bg: rgb(255 255 255 / .14);
    --img-filter: grayscale(.2) saturate(.85) brightness(.88) contrast(1.05); --map-filter: grayscale(.35) contrast(.95); --grain: .03;
    color-scheme: light;
  }
}
.panel, .cta-card { color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 96px; }
html { scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body.orb-hot { cursor: pointer; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.ph { line-height: 1; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }
main, .footer { position: relative; z-index: 1; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 90; background: var(--light); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* ---------- Type ---------- */
.display { font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; letter-spacing: -.055em; line-height: .92; }
.display .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.display .line > span { display: block; will-change: transform; }
.display em { font-style: italic; font-weight: 300; color: var(--ink-2); letter-spacing: -.045em; }
.h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.h2-xl { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.lead { margin-top: 1.1rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.italic-title { font-style: italic; font-weight: 300; letter-spacing: -.035em; font-size: clamp(2.6rem, 5.6vw, 4.4rem); padding-bottom: .1em; line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; white-space: nowrap;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent; background: none;
  font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:active { scale: .97; }
.btn .ph { font-size: 1.15rem; }
.btn-ic {
  width: 30px; height: 30px; margin-right: -.85rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--ic-bg); transition: transform .5s var(--ease-2);
}
.btn-ic .ph { font-size: 1rem; }
.btn:hover .btn-ic { transform: translate(2px, -2px) scale(1.06); }
.btn-light { background: var(--light); color: var(--on-light); box-shadow: 0 10px 30px -12px rgb(var(--accent-rgb) / .35); }
.btn-light:hover { background: var(--light-hover); box-shadow: 0 14px 40px -12px rgb(var(--accent-rgb) / .55); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgb(var(--tint) / .03); }
.btn-ghost .btn-ic { background: rgb(var(--tint) / .08); }
.btn-ghost:hover { border-color: rgb(var(--tint) / .3); background: rgb(var(--tint) / .07); }
.btn-glass { color: var(--ink); background: rgb(var(--bgc) / .5); border-color: rgb(var(--tint) / .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgb(var(--bgc) / .72); border-color: rgb(var(--tint) / .3); }
.btn-text { color: var(--ink-2); padding-inline: 1rem; }
.btn-text:hover { color: var(--ink); }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-sm .btn-ic { width: 26px; height: 26px; margin-right: -.6rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.linkish:hover { color: var(--ink); }

.link-caps { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.link-caps .ph { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); transition: transform .5s var(--ease-2), background-color .3s, color .3s; }
.link-caps:hover .ph { transform: rotate(-45deg); background: var(--light); color: var(--bg); }

.chip { display: inline-flex; align-items: center; gap: .5rem; margin-top: 18px; padding: .5rem .95rem; border-radius: 999px; border: 1px solid rgb(var(--tint) / .22); background: rgb(10 12 11 / .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .8125rem; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--light); color: var(--bg); border-color: var(--light); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; }
.preloader-inner { display: flex; align-items: baseline; gap: 1.5rem; }
.preloader-word { font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; letter-spacing: -.06em; }
.preloader-count { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3ch; }
.preloader-bar { position: absolute; left: 50%; bottom: 14vh; width: min(320px, 60vw); height: 1px; translate: -50% 0; background: var(--line-2); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html:not(.anim) .preloader { display: none; }

/* ---------- WebGL stage ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; display: block; }
.gl-fallback { display: none; }
.no-gl #gl { display: none; }
.no-gl .gl-fallback {
  display: block; position: absolute; z-index: 0; pointer-events: none; top: 8vh; right: -8vw; width: min(62vw, 760px); aspect-ratio: 1;
  border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle at 38% 32%, rgb(220 255 240 / .55), transparent 18%), radial-gradient(circle at 50% 50%, #1d6b57 0%, #0f2b23 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
.nav-pill {
  pointer-events: auto; width: min(100%, 1180px); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease), width .6s var(--ease);
}
.nav.is-stuck .nav-pill, .nav.menu-open .nav-pill {
  background: rgb(var(--bgc) / .7); border-color: var(--line); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(var(--tint) / .06), 0 20px 50px -24px rgb(0 0 0 / .8);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
.brand .ph { font-size: 1.45rem; color: var(--accent); }
.nav-links { display: none; gap: .25rem; }
.nav-links a { position: relative; text-decoration: none; color: var(--ink-2); font-size: .875rem; padding: .5rem .9rem; border-radius: 999px; transition: color .3s, background-color .3s; }
.nav-links a:hover { color: var(--ink); background: rgb(var(--tint) / .05); }
.nav-links a[aria-current="true"] { color: var(--ink); background: rgb(var(--tint) / .08); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang button { font-size: .72rem; font-weight: 700; letter-spacing: .04em; border: 0; background: none; color: var(--ink-2); padding: .38rem .62rem; border-radius: 999px; cursor: pointer; transition: background-color .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--light); color: var(--bg); }
.nav-cta { display: none; }
.burger { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .6s var(--ease-2), top .6s var(--ease-2); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

.menu { position: fixed; inset: 0; z-index: 45; background: rgb(var(--bgc) / .88); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); display: flex; flex-direction: column; justify-content: center; padding: 100px 20px 40px; opacity: 0; transition: opacity .45s var(--ease); }
.menu.is-open { opacity: 1; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; letter-spacing: -.045em; }
.menu-links a .ph { font-size: 1.5rem; color: var(--muted); }
.menu-links a, .menu-foot { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d) * 60ms + 80ms); }
.menu.is-open .menu-links a, .menu.is-open .menu-foot { opacity: 1; transform: none; }
.menu-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: min(100dvh, 980px); display: flex; align-items: center; padding-block: 120px 80px; }
.hero-inner { position: relative; }
.badge { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem .35rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.6rem; background: rgb(var(--bgc) / .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.badge-dot.open { background: var(--accent); box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .55); } 80%, 100% { box-shadow: 0 0 0 9px rgb(var(--accent-rgb) / 0); } }
.hero .display { max-width: none; font-size: clamp(3rem, 6vw, 5.6rem); }
@media (min-width: 768px) { .hero .display .line { white-space: nowrap; } }
.hero-sub { margin-top: 1.8rem; max-width: 40ch; color: var(--ink-2); font-size: 1.0625rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.4rem; }
@media (max-width: 767px) {
  .hero { align-items: flex-end; padding-top: 52vh; padding-bottom: 120px; min-height: 100svh; }
  .no-gl .gl-fallback { top: 8vh; right: 50%; translate: 50% 0; width: 92vw; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; }
.mq-group { display: flex; align-items: center; flex-shrink: 0; }
.mq-item { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; padding-inline: 1.4rem; color: transparent; -webkit-text-stroke: 1px rgb(var(--ink-rgb) / .35); white-space: nowrap; transition: color .4s var(--ease); }
.mq-item:nth-child(4n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.mq-sep { font-size: 1.1rem; color: var(--accent); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 104px; }
@media (min-width: 900px) { .section { padding-block: 160px; } }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Featured specialty cards (double bezel + tilt + spotlight) */
.feature-cards { display: grid; gap: 36px; margin-top: 64px; }
.fcard { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; perspective: 900px; }
.shell { display: block; padding: 6px; border-radius: 30px; background: rgb(var(--tint) / .035); border: 1px solid var(--line); transition: border-color .5s var(--ease), background-color .5s var(--ease); }
.core { position: relative; display: block; overflow: hidden; border-radius: 24px; background: var(--bg-2); box-shadow: inset 0 1px 1px rgb(var(--tint) / .12); transform-style: preserve-3d; will-change: transform; }
.core img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transform: scale(1.06); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
.core::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 35%, rgb(8 10 9 / .6)); pointer-events: none; }
.spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--accent-rgb) / .2), transparent 45%); }
.fcard:hover .shell, .fcard:focus-visible .shell { border-color: rgb(var(--accent-rgb) / .35); background: rgb(var(--accent-rgb) / .05); }
.fcard:hover .core img { filter: grayscale(.05) saturate(.95) brightness(.8) contrast(1.1); transform: scale(1.1); }
.fcard:hover .spot { opacity: 1; }
.fcap { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-inline: 6px; font-weight: 600; font-size: .9375rem; }
.fcap span + span { color: var(--muted); font-weight: 400; }
.fcard-a .core, .fcard-c .core { aspect-ratio: 4 / 5; }
.fcard-b .core { aspect-ratio: 1 / 1; }
@media (max-width: 767px) { .fcard .core { aspect-ratio: 4 / 3; } }
@media (min-width: 768px) {
  .feature-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .fcard-b { margin-top: 80px; }
  .fcard-c { margin-top: 40px; }
}

/* Tabs and specialty list */
.all-spec { margin-top: 120px; padding-top: 56px; border-top: 1px solid var(--line); }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--tint) / .03); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { position: relative; z-index: 1; border: 0; background: none; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .4s var(--ease); }
.tabs [role="tab"] sup { font-size: .65rem; margin-left: .3rem; color: inherit; opacity: .7; }
.tabs [role="tab"][aria-selected="true"] { color: var(--bg); }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--light); }
.tab-panels { margin-top: 36px; }
.spec-list { display: grid; gap: 10px; }
.spec-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: .9rem; padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--line); background: rgb(var(--tint) / .02); text-align: left; cursor: pointer; overflow: hidden;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .5s var(--ease);
}
.spec-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .4s var(--ease); }
.spec-item:hover { border-color: rgb(var(--accent-rgb) / .3); transform: translateY(-2px); }
.spec-item:hover::before { opacity: 1; }
.spec-name { position: relative; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.spec-detail { position: relative; font-size: .8125rem; color: var(--muted); }
.spec-go { position: relative; margin-left: auto; width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .5s var(--ease-2), background-color .3s, color .3s; }
.spec-item:hover .spec-go { transform: rotate(45deg); background: var(--light); color: var(--bg); border-color: var(--light); }
.spec-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 28px; color: var(--muted); font-size: .9375rem; max-width: 60ch; }
.spec-note .ph { color: var(--accent); font-size: 1.15rem; margin-top: 3px; }
@media (min-width: 640px) { .spec-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .spec-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Path ---------- */
.path { position: relative; overflow: hidden; isolation: isolate; padding-block: 104px; }
.path-media { position: absolute; z-index: -1; left: 0; top: 0; width: min(64vw, 960px); height: 100%; }
.path-media img { width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: grayscale(1) contrast(1.1); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 25% 45%, #000 20%, transparent 75%); }
.path-grid { display: grid; gap: 56px; align-items: center; }
.steps { position: relative; display: grid; gap: 44px; padding-left: 0; }
.steps-rail { position: absolute; left: 22px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(var(--accent), rgb(var(--accent-rgb) / .2)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 22px; max-width: 460px; opacity: .38; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step-icon { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); font-size: 1.2rem; background: var(--bg); transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease); }
.step.is-on .step-icon { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.step h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .9375rem; }
.step a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.step a:hover { text-decoration-color: var(--accent); }
@media (min-width: 1024px) {
  .path { min-height: 100vh; display: flex; align-items: center; padding-block: 0; }
  .path-grid { grid-template-columns: 1fr 1fr; gap: 64px; width: 100%; }
  .steps { gap: 80px; }
  .step:nth-child(2) { margin-left: 56px; }
  .step:nth-child(2) .step-icon { margin-left: 0; }
}

/* ---------- Services horizontal pan ---------- */
.hpan { position: relative; padding-block: 104px 72px; overflow: hidden; }
.hpan-viewport { margin-top: 48px; }
.hpan-track { display: flex; gap: 16px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hpan-track::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: 0 0 82vw; height: 440px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.panel img { position: absolute; inset: 0 -10%; width: 120%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.3) saturate(.75) brightness(.55) contrast(1.12); transition: filter .8s var(--ease); }
.panel:hover img { filter: grayscale(.05) saturate(.9) brightness(.7) contrast(1.1); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(8 10 9 / .88)); }
.panel-body { padding: 28px; }
.panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.panel p { margin-top: 8px; color: var(--ink-2); max-width: 38ch; font-size: .9375rem; }
.panel-plain { background: radial-gradient(120% 90% at 100% 0%, rgb(var(--accent-rgb) / .18), transparent 60%), var(--bg-3); }
.panel-ic { position: absolute; top: 28px; left: 28px; font-size: 3rem; color: var(--accent); }
.hpan-progress { margin-top: 32px; }
.hpan-progress span { display: block; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 0 0; }
.hpan-progress { position: relative; }
.hpan-progress::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); }
@media (max-width: 1023px) { .hpan-progress { display: none; } }
@media (min-width: 1024px) {
  .hpan { height: 100vh; padding-block: 0; display: flex; flex-direction: column; justify-content: center; }
  .hpan-viewport { margin-top: 40px; }
  .hpan-track { overflow: visible; padding-left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); padding-right: 40px; width: max-content; scroll-snap-type: none; gap: 20px; }
  .panel { flex: 0 0 auto; width: 30vw; height: min(58vh, 560px); }
  .panel-wide { width: 46vw; }
  .hpan-progress::before { left: 40px; right: 40px; }
  .hpan-progress span { margin-inline: 0; }
}

/* ---------- Notes (Z-axis cascade, double bezel, spotlight border) ---------- */
.notes { display: grid; gap: 16px; margin-top: 72px; }
.note { position: relative; padding: 6px; border-radius: 28px; background: rgb(var(--tint) / .03); border: 1px solid var(--line); }
.note::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--accent-rgb) / .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.note:hover::before { opacity: 1; }
.note-core { height: 100%; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); box-shadow: inset 0 1px 1px rgb(var(--tint) / .07), 0 30px 60px -30px rgb(0 0 0 / .7); display: flex; flex-direction: column; gap: 18px; }
.note-ic { font-size: 1.45rem; color: var(--accent); }
.note-text { font-size: 1.0625rem; line-height: 1.55; }
.note-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.note footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.note-av { min-width: 38px; height: 38px; padding-inline: 6px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--tint) / .06); border: 1px solid var(--line); font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.note footer strong { display: block; font-size: .875rem; }
.note footer small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
#openStatus.open { color: var(--accent); }
.note-act { margin-left: auto; width: 38px; height: 38px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); background: none; cursor: pointer; text-decoration: none; transition: background-color .3s, color .3s, transform .5s var(--ease-2); }
.note-act:hover { background: var(--light); color: var(--bg); transform: rotate(-8deg) scale(1.05); }
@media (min-width: 768px) {
  .notes { grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 1080px; margin-inline: auto; }
  .note-1 { grid-column: 1 / span 2; margin-top: 56px; }
  .note-2 { grid-column: 3 / span 2; }
  .note-3 { grid-column: 5 / span 2; margin-top: 96px; }
  .note-4 { grid-column: 1 / span 3; margin-left: 10%; margin-top: 8px; }
  .note-5 { grid-column: 4 / span 3; margin-top: 64px; margin-right: 6%; }
  .note-6 { grid-column: 2 / span 4; margin-inline: 12%; margin-top: -8px; }
  .note-6 .note-core { text-align: center; align-items: center; }
}

/* ---------- Statement ---------- */
.statement { position: relative; padding-block: 160px; text-align: center; }
.statement-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.statement-inner::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 120vw); height: 140%; translate: -50% -50%; background: radial-gradient(closest-side, rgb(var(--bgc) / .72), rgb(var(--bgc) / .35) 60%, transparent); pointer-events: none; }
.statement { isolation: isolate; }
.statement .h2 { max-width: 15ch; }
.statement-text { max-width: 30ch; font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.4; font-weight: 500; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.statement-text .w { display: inline-block; }
@media (min-width: 1024px) { .statement { padding-block: 220px; } }

/* ---------- CTA card ---------- */
.cta-wrap { padding-block: 24px 40px; }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; border: 1px solid var(--line); min-height: 460px; display: grid; place-items: center; text-align: center; padding: 72px 20px; }
.cta-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(8 10 9 / .4), rgb(8 10 9 / .88)); }
.cta-body { display: grid; justify-items: center; gap: 1rem; }
.cta-body .h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.cta-body p { color: var(--ink-2); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
.hours { margin-top: 40px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.hours .today dt, .hours .today dd { color: var(--accent); }
.contact-lines { display: grid; gap: 6px; margin: 28px 0 32px; }
.contact-lines li { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.contact-lines li > .ph { font-size: 1.2rem; color: var(--ink-2); }
.contact-lines a { text-decoration: none; transition: color .3s; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines small { display: block; color: var(--dim); font-size: .875rem; }
.copy { margin-left: auto; width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; }
.copy:hover { color: var(--ink); border-color: var(--line-2); background: rgb(var(--tint) / .05); }
.copy.is-done { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.map { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--bg-2); }
.map iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: var(--map-filter); opacity: 0; transition: opacity .8s var(--ease); }
.map.is-loaded iframe { opacity: 1; }
.map-skeleton { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 2.4rem;
  background: linear-gradient(110deg, var(--bg-2) 30%, var(--bg-3) 50%, var(--bg-2) 70%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: stretch; } .map, .map iframe { min-height: 100%; } }

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding-block: 140px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-ghost { position: absolute; left: 50%; top: 20px; translate: -50% 0; font-size: clamp(10rem, 30vw, 28rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: rgb(var(--tint) / .025); pointer-events: none; user-select: none; white-space: nowrap; }
.footer-grid { position: relative; display: grid; gap: 40px; }
.footer-word { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.footer-tag { font-style: italic; font-weight: 300; color: var(--accent); font-size: 1.25rem; margin-top: .5rem; }
.footer-about { color: var(--muted); margin-top: 1.5rem; max-width: 36ch; font-size: .9375rem; }
.footer h3 { font-size: .875rem; font-weight: 600; margin-bottom: 16px; }
.footer li { color: var(--muted); font-size: .875rem; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--ink); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--dim); }
.footer-links { display: inline-flex; align-items: center; gap: 1.2rem; }
.footer-links .linkish { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.to-top { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s, transform .5s var(--ease-2); }
.to-top:hover { background: var(--light); color: var(--bg); transform: translateY(-3px); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.callbar .btn { box-shadow: 0 20px 40px -12px rgb(0 0 0 / .7); }
.anim .callbar { transform: translateY(160%); transition: transform .7s var(--ease), opacity .4s; }
.anim body.show-callbar .callbar, body.show-callbar .callbar { transform: none; }
body { padding-bottom: 84px; }
@media (min-width: 1024px) { .callbar { display: none; } body { padding-bottom: 0; } }
body.is-locked .callbar { opacity: 0; pointer-events: none; }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(4 6 5 / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: none; overflow: visible; }
.modal[open] { animation: pop .6s var(--ease) both; }
.modal[open]::backdrop, .drawer[open]::backdrop { animation: fade .5s var(--ease) both; }
.modal.is-closing { animation: popOut .32s var(--ease) both; }
.modal.is-closing::backdrop, .drawer.is-closing::backdrop { animation: fadeOut .32s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal-shell { padding: 6px; border-radius: 34px; background: rgb(var(--tint) / .05); border: 1px solid var(--line-2); }
.modal-core { position: relative; max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 28px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); box-shadow: inset 0 1px 1px rgb(var(--tint) / .08); padding: 28px 22px; }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .04); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; transition: background-color .3s, color .3s, transform .5s var(--ease-2); }
.modal-x:hover { background: var(--light); color: var(--bg); transform: rotate(90deg); }
.modal-grid { display: grid; gap: 28px; }
.modal-side { padding-right: 40px; }
.modal-lead { margin-top: .9rem; color: var(--muted); max-width: 40ch; }
.modal-calls { display: grid; gap: 10px; margin-top: 24px; }
.call-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgb(var(--tint) / .03); text-decoration: none; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; transition: border-color .3s, background-color .3s; }
.call-card .ph { font-size: 1.4rem; color: var(--accent); }
.call-card small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.call-card:hover { border-color: rgb(var(--accent-rgb) / .35); background: var(--accent-soft); }
.modal-hours { margin-top: 18px; font-size: .875rem; color: var(--muted); }
.modal-hours.open { color: var(--accent); }
@media (min-width: 860px) { .modal-core { padding: 44px; } .modal-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } }

.form { display: grid; }
.form-fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgb(var(--tint) / .04); border: 1px solid var(--line-2); border-radius: 14px; padding: .85rem 1rem;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgb(var(--tint) / .06); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select select option, .select select optgroup { background: var(--bg-3); color: var(--ink); }
.select .ph { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.field-help { font-size: .8125rem; color: var(--muted); }
.field-err { display: none; font-size: .8125rem; color: var(--danger); }
.field.has-err .field-err { display: block; }
.field.has-err input, .field.has-err select { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .65rem .4rem; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--light); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .8125rem; color: var(--dim); text-align: center; }
.form-success { display: grid; gap: 14px; align-content: center; justify-items: start; min-height: 360px; }
.form-success > .ph { font-size: 3rem; color: var(--accent); }
.form-success h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.form-success p { color: var(--ink-2); }
.form-success .form-fallback { color: var(--muted); font-size: .9375rem; }
.form-success a { color: var(--accent); }

.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(520px, 100vw); padding: 10px; border: 0; background: none; }
.drawer[open] { animation: slideIn .7s var(--ease) both; }
.drawer.is-closing { animation: slideOut .32s var(--ease) both; }
@keyframes slideIn { from { transform: translateX(105%); } to { transform: none; } }
@keyframes slideOut { to { transform: translateX(105%); } }
.drawer-core { position: relative; height: 100%; overflow-y: auto; border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); box-shadow: inset 0 1px 1px rgb(var(--tint) / .08); padding: 72px 28px 28px; display: flex; flex-direction: column; }
.drawer-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.drawer-core .h3 { font-size: clamp(2rem, 5vw, 2.8rem); }
.drawer-sub { margin-top: 10px; color: var(--ink-2); font-style: italic; font-weight: 300; font-size: 1.25rem; }
.drawer-body { margin-top: 28px; display: grid; gap: 14px; color: var(--ink-2); font-size: 1.0625rem; }
.drawer-note { display: flex; gap: .6rem; padding: 16px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: .9375rem; }
.drawer-note .ph { color: var(--accent); font-size: 1.15rem; margin-top: 2px; }
.drawer-actions { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 70; translate: -50% 20px; opacity: 0; pointer-events: none; padding: .8rem 1.2rem; border-radius: 999px; background: var(--light); color: var(--bg); font-weight: 600; font-size: .875rem; box-shadow: 0 20px 40px -16px rgb(0 0 0 / .7); transition: opacity .4s var(--ease), translate .5s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; translate: -50% 0; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* ---------- Entry states (only when the motion layer booted) ---------- */
.anim .reveal { opacity: 0; transform: translateY(44px); filter: blur(8px); }
.anim .hero-el:not(h1) { opacity: 0; }
.anim .nav-pill { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .anim .reveal, .anim .hero-el:not(h1), .anim .nav-pill { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Light theme refinements ---------- */
[data-theme="light"] .path-media img { opacity: .2; mix-blend-mode: multiply; }
[data-theme="light"] .core::after { background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgb(15 26 22 / .28)); }
[data-theme="light"] .no-gl .gl-fallback, [data-theme="light"].no-gl .gl-fallback { background: radial-gradient(circle at 38% 32%, rgb(255 255 255 / .9), transparent 22%), radial-gradient(circle at 50% 50%, #9fdcc4 0%, #d6eee4 45%, transparent 70%); }
[data-theme="light"] .note-core { box-shadow: inset 0 1px 1px rgb(255 255 255 / .8), 0 30px 60px -34px rgb(15 40 32 / .35); }
[data-theme="light"] .btn-light { box-shadow: 0 12px 30px -14px rgb(15 40 32 / .5); }
[data-theme="light"] .nav.is-stuck .nav-pill, [data-theme="light"] .nav.menu-open .nav-pill { box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 20px 50px -28px rgb(15 40 32 / .45); }
[data-theme="light"] .mq-item:nth-child(4n+1) { color: var(--ink); }

/* ---------- Theme toggle ---------- */
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; transition: background-color .3s, transform .6s var(--ease-2); }
.theme-btn:hover { background: rgb(var(--tint) / .08); transform: rotate(-20deg); }
.theme-btn .ph-sun { display: none; }
[data-theme="dark"] .theme-btn .ph-sun { display: block; }
[data-theme="dark"] .theme-btn .ph-moon { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.vt-theme::view-transition-old(root), .vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt-theme::view-transition-old(root) { z-index: 1; }
.vt-theme::view-transition-new(root) { z-index: 2; }

/* ---------- Motion helpers ---------- */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 55; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), rgb(var(--accent-rgb) / .4)); transform-origin: left; transform: scaleX(0); }
.nav { transition: transform .7s var(--ease); }
.nav.is-hidden { transform: translateY(-140%); }
@media (max-width: 420px) { .lang button { padding: .38rem .5rem; } .nav-tools { gap: .35rem; } .theme-btn { width: 38px; height: 38px; } }

/* ---------- Booking flow ---------- */
.bk-flow { display: grid; gap: 26px; }
.bk-step { display: grid; gap: 14px; min-width: 0; }
.bk-step[hidden] { display: none; }
.bk-title { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.bk-num { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.bk-sub { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.bk-hint { font-size: .9375rem; color: var(--muted); }
.bk-group { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.bk-result { display: grid; gap: 12px; min-width: 0; }
.bk-result:empty { display: none; }

.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .03); font-size: .875rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .3s var(--ease), color .3s, border-color .3s; }
.bk-chip:hover { border-color: rgb(var(--accent-rgb) / .45); color: var(--ink); }
.bk-chip[aria-pressed="true"] { background: var(--light); color: var(--on-light); border-color: var(--light); }

.doc-list { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--tint) / .02); text-align: left; cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.doc:hover { border-color: rgb(var(--accent-rgb) / .4); }
.doc[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.doc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.doc-text { display: grid; gap: 2px; min-width: 0; }
.doc-text strong { font-weight: 600; }
.doc-text small { font-size: .8125rem; color: var(--muted); }
.doc-check { margin-left: auto; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .4s var(--ease-2); }
.doc[aria-pressed="true"] .doc-check { opacity: 1; transform: none; }

.bk-card { position: relative; padding: 20px; border-radius: 20px; border: 1px solid rgb(var(--accent-rgb) / .35); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), rgb(var(--tint) / .02); display: grid; gap: 6px; animation: bkIn .6s var(--ease) both; }
.bk-card.is-loading { border-color: var(--line); background: rgb(var(--tint) / .02); }
.bk-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.bk-doc { font-weight: 600; }
.bk-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.bk-when span { color: var(--ink-2); }
.bk-when strong { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bk-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk-card-actions .btn { flex: 1 1 auto; }

.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 auto; min-width: 72px; display: grid; gap: 2px; justify-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .02); cursor: pointer; scroll-snap-align: start; transition: border-color .3s, background-color .3s, color .3s; }
.day span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.day strong { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.day:hover:not([disabled]) { border-color: rgb(var(--accent-rgb) / .45); }
.day[aria-pressed="true"] { background: var(--light); border-color: var(--light); color: var(--on-light); }
.day[aria-pressed="true"] span { color: var(--on-light); opacity: .75; }
.day[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.bk-day { display: grid; gap: 10px; animation: bkIn .5s var(--ease) both; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time { padding: .6rem .4rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(var(--tint) / .02); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease-2); }
.time:hover { border-color: rgb(var(--accent-rgb) / .5); }
.time:active { transform: scale(.96); }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.bk-bar { display: flex; justify-content: flex-end; margin-top: 4px; }
.bk-bar .btn { min-width: 160px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

.bk-msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--tint) / .03); font-size: .9375rem; animation: bkIn .5s var(--ease) both; }
.bk-msg > .ph { font-size: 1.3rem; color: var(--accent); margin-top: 1px; flex-shrink: 0; }
.bk-msg-warn { border-color: rgb(var(--accent-rgb) / .4); background: var(--accent-soft); }
.bk-msg-error > .ph { color: var(--danger); }
.bk-msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk-submit-err { display: flex; gap: .5rem; align-items: flex-start; margin-top: 8px; font-size: .875rem; color: var(--danger); }
.bk-submit-err .ph { margin-top: 2px; }

.bk-skel { display: grid; gap: 8px; }
.bk-skel span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(110deg, rgb(var(--tint) / .05) 30%, rgb(var(--tint) / .12) 50%, rgb(var(--tint) / .05) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.bk-skel span:nth-child(2) { width: 70%; }
.bk-skel span:nth-child(3) { width: 45%; }
.bk-skel-chips { grid-template-columns: repeat(3, 1fr); }
.bk-skel-chips span { height: 38px; width: auto !important; border-radius: 999px; }
.bk-skel-times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.bk-skel-times span { height: 40px; width: auto !important; border-radius: 12px; }

.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bk-summary { display: grid; gap: 8px; width: 100%; margin: 4px 0 8px; }
.bk-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-summary dt { color: var(--muted); }
.bk-summary dd { margin: 0; font-weight: 600; text-align: right; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Booking flow v2: specialty list first, optional doctor */
.bk-title label { cursor: pointer; }
.doc-info { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: .9375rem; }
.doc-info .ph { color: var(--accent); font-size: 1.15rem; }
.doc-info span { color: var(--muted); }
.times-named { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.times-named .time { text-align: left; padding-inline: .8rem; }
.time-who { font-weight: 500; opacity: .75; }

/* Booking v3: specialty booking, server picks the doctor */
.bk-doc { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.bk-doc span { font-weight: 400; color: var(--muted); font-size: .9375rem; }
.bk-when em { font-style: normal; font-size: .875rem; color: var(--muted); }
.bk-len { font-size: .8125rem; color: var(--muted); }
