/* =====================================================================
   Public website - neurology practice
   Self-hosted type (Hanken Grotesk), no CDN. Visual language: EEG chart
   paper, signal traces and neuron networks.
   ===================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff") format("woff");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13202e;
  --ink-2: #33475a;
  --muted: #5d6f80;
  --navy: #0f3550;
  --navy-2: #0b2a40;
  --navy-3: #164766;
  --signal: #0e9f9f;
  --signal-2: #0b8484;
  --signal-soft: #e2f3f2;
  --mist: #f2f6f8;
  --paper: #ffffff;
  --line: #dbe4ea;
  --line-2: #e9eff3;
  --live: #1f9d6b;
  --warn: #c2410c;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 53, 80, .06), 0 8px 28px rgba(15, 53, 80, .07);
  --shadow-lg: 0 24px 60px rgba(15, 53, 80, .14);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ------------------------------ base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--signal-2); }
h1, h2, h3, h4 { margin: 0; color: var(--navy-2); line-height: 1.2; font-weight: 700; letter-spacing: -.012em; }
h1 { font-size: clamp(2rem, 1.45rem + 2vw, 2.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--signal-soft); color: var(--navy-2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { left: 12px; color: #fff; }
.muted { color: var(--muted); }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--font); padding: 14px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(15, 53, 80, .22); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy-2); }
.btn-light:hover { background: var(--signal-soft); color: var(--navy-2); }
.btn-line-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-line-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-3); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------ topbar ---------------------------- */
.topbar { background: var(--navy-2); color: #cfe0ea; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e6f0f5; }
.topbar a:hover { color: #fff; }
.tb-group { display: flex; align-items: center; gap: 22px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; }
.tb-item .icon { width: 15px; height: 15px; color: #7fd3cf; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade9b; box-shadow: 0 0 0 0 rgba(74, 222, 155, .6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 155, .55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, 0); } }

/* ------------------------------ header ---------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line-2); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 53, 80, .08); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-2); min-width: 0; }
.brand:hover { color: var(--navy-2); }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 13px; color: var(--muted); font-weight: 500; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a { display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15px; position: relative; }
.main-nav a:hover { color: var(--navy); background: var(--mist); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--signal); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; margin: 2px auto; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-overlay { display: none; }

/* -------------------------- EEG chart paper ----------------------- */
.ecg-paper {
  background-color: #f6fafb;
  background-image:
    linear-gradient(rgba(14, 159, 159, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 159, 159, .07) 1px, transparent 1px),
    linear-gradient(rgba(14, 159, 159, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 159, 159, .035) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* ------------------------------- hero ----------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 196px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--signal-2); margin-bottom: 18px; }
.hero-kicker .icon { width: 18px; height: 18px; }
.hero h1 { color: var(--navy-2); margin-bottom: 18px; max-width: 15ch; }
.hero-role { display: flex; align-items: center; gap: 9px; margin: -6px 0 14px; font-size: 1rem; font-weight: 600; color: var(--navy-3); }
.hero-role .icon { width: 18px; height: 18px; color: var(--signal-2); flex: none; }
.hero-lead { font-size: 1.125rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.next-session { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 14.5px; color: var(--ink-2); max-width: 100%; }
.next-session .ns-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; }
.next-session .ns-ico .icon { width: 18px; height: 18px; }
.next-session b { color: var(--navy-2); font-weight: 600; }
.next-session .live { color: var(--live); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.next-session .live .live-dot { background: var(--live); }

/* hero visual: neuron network around the portrait */
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 500px; width: 100%; justify-self: end; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.neural .axon { fill: none; stroke: rgba(15, 53, 80, .16); stroke-width: 1.4; }
.neural .axon-live { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 240; animation: synapse 3.6s linear infinite; }
.neural .axon-live:nth-of-type(2n) { animation-duration: 4.4s; animation-delay: -1.2s; }
.neural .axon-live:nth-of-type(3n) { animation-duration: 5.2s; animation-delay: -2.6s; }
.neural .node { fill: #fff; stroke: var(--navy-3); stroke-width: 1.6; }
.neural .node-core { fill: var(--signal); transform-box: fill-box; transform-origin: center; animation: nodeFire 3.2s ease-in-out infinite; }
.neural .node-core:nth-of-type(2n) { animation-delay: -1.1s; }
.neural .node-core:nth-of-type(3n) { animation-delay: -2.2s; }
@keyframes synapse { from { stroke-dashoffset: 250; } to { stroke-dashoffset: 0; } }
@keyframes nodeFire { 0%, 100% { opacity: .35; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.25); } }

.portrait { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; padding: 10px; box-shadow: var(--shadow-lg); }
.portrait-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; background: linear-gradient(160deg, var(--navy-3), var(--navy-2)); display: grid; place-items: center; }
.portrait-inner img { width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { color: #fff; text-align: center; }
.portrait-mono svg { width: 54%; margin: 0 auto 6px; opacity: .95; }
.portrait-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(14, 159, 159, .45); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-tag { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--navy-2); white-space: nowrap; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px; }
.portrait-tag .icon { width: 16px; height: 16px; color: var(--signal); }

/* anatomical brain with live signals */
.brain-stage { position: absolute; left: 50%; top: 50%; width: 96%; transform: translate(-50%, -47%); }
.brain { width: 100%; height: auto; overflow: visible; display: block; filter: drop-shadow(0 24px 40px rgba(11, 42, 64, .28)); }
.brain .brain-halo { transform-box: fill-box; transform-origin: center; animation: brainHalo 5s ease-in-out infinite; }
.brain .signals path { fill: none; stroke-linecap: round; stroke-dasharray: 12 88; animation-name: brainSignal; animation-timing-function: linear; animation-iteration-count: infinite; filter: drop-shadow(0 0 4px #5fe0d8) drop-shadow(0 0 8px rgba(95, 224, 216, .6)); }
.brain .syn-core { fill: #e6fffc; transform-box: fill-box; transform-origin: center; animation: synFire 2.8s ease-in-out infinite; }
.brain .syn-ring { fill: none; stroke: #5fe0d8; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: synRing 2.8s ease-out infinite; }
@keyframes brainSignal { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes synFire { 0%, 100% { opacity: .35; transform: scale(.7); } 40% { opacity: 1; transform: scale(1.25); } }
@keyframes synRing { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes brainHalo { 50% { opacity: .65; transform: scale(1.04); } }
.hero-visual.has-brain .neural { opacity: .85; }
.portrait-brain { width: 88%; margin: 0 auto; }
.profile-photo .portrait-brain { width: 92%; }

/* the signature EEG trace across the bottom of the hero */
.hero-trace { position: absolute; left: 0; right: 0; bottom: 74px; height: 96px; z-index: 1; pointer-events: none; }
.hero-trace svg { width: 100%; height: 100%; }
.hero-trace .trace-base { fill: none; stroke: rgba(15, 53, 80, .07); stroke-width: 1; }
.hero-trace .trace-draw.ch-2 { stroke: #3d7fd9; }
.hero-trace .trace-draw { stroke-width: 1.7 !important; }
.hero-trace .trace-draw { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: traceDraw 3.2s var(--ease) .35s forwards; }
.hero-trace .trace-spark { fill: none; stroke: #5fe0d8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 3940; stroke-dashoffset: 4000; opacity: 0; animation: traceSpark 5s linear 3.4s infinite; filter: drop-shadow(0 0 6px rgba(14, 159, 159, .7)); }
@keyframes traceDraw { to { stroke-dashoffset: 0; } }
@keyframes traceSpark { 0% { stroke-dashoffset: 4000; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

/* hero load sequence */
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: heroIn .7s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .25s; }
.hero-copy > *:nth-child(4) { animation-delay: .35s; }
.hero-copy > *:nth-child(5) { animation-delay: .45s; }
.hero-visual { opacity: 0; animation: heroFade 1.1s var(--ease) .2s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ------------------------------ sections -------------------------- */
.section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-tight { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }

/* schedule strip directly under the hero */
.schedule-strip { position: relative; z-index: 3; margin-top: -64px; }
.schedule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); overflow: hidden; }
.sched { padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line-2); }
.sched:last-child { border-right: 0; }
.sched-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; }
.sched-ico .icon { width: 20px; height: 20px; }
.sched h3 { font-size: 15.5px; margin-bottom: 4px; }
.sched p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sched p b { color: var(--ink); font-weight: 600; }

/* doctor intro (home) */
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.intro-aside { position: sticky; top: 110px; }
.intro-aside h2 { margin-bottom: 14px; }
.intro-aside .role { font-size: 1.0625rem; color: var(--signal-2); font-weight: 600; margin-bottom: 18px; }
.intro-body p { color: var(--ink-2); font-size: 1.0625rem; }
.interest-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 30px; }
.interest { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.interest-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.interest-ico .icon { width: 20px; height: 20px; }
.interest b { display: block; font-weight: 600; color: var(--navy-2); font-size: 15.5px; line-height: 1.35; }
.interest small { color: var(--muted); font-size: 13px; }

/* doctor portrait panel (about section) */
.doc-portrait { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--navy-2); }
.doc-portrait-bg { display: none; }
.doc-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(6, 22, 33, .35)); pointer-events: none; }
.doc-portrait figcaption { z-index: 2; }
.doc-portrait figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px rgba(3, 14, 24, .25); display: flex; flex-direction: column; gap: 2px; }
.doc-portrait figcaption b { color: var(--navy-2); font-size: 16.5px; line-height: 1.3; }
.doc-portrait figcaption span { color: var(--signal-2); font-size: 14px; font-weight: 600; }
.doc-portrait figcaption small { color: var(--muted); font-size: 13px; font-weight: 500; }
.intro-title { margin-bottom: 18px; }

/* special interests: picture cards */
.interest-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.interest-cards.two { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 8px; }
.icard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.icard:hover { color: inherit; transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icard-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.icard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.icard:hover .icard-media img { transform: scale(1.06); }
.icard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 64, 0) 55%, rgba(11, 42, 64, .35)); pointer-events: none; }
.icard-ico { position: absolute; left: 16px; top: -22px; z-index: 2; width: 44px; height: 44px; border-radius: 13px; background: var(--navy); color: #7fe0da; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(11, 42, 64, .3); border: 3px solid #fff; }
.icard-ico .icon { width: 20px; height: 20px; }
.icard-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 18px 18px; flex: 1; }
.icard-body b { font-size: 16.5px; color: var(--navy-2); line-height: 1.3; }
.icard-body small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.icard-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--signal-2); }
.icard-more .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.icard:hover .icard-more .icon { transform: translateX(4px); }
.js .interest-cards[data-reveal] .icard { opacity: 0; transform: translateY(18px); }
.js .interest-cards[data-reveal].in .icard { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * .09s), transform .6s var(--ease) calc(var(--i, 0) * .09s), box-shadow .35s var(--ease), border-color .35s; }
.js .interest-cards[data-reveal].in .icard:hover { transform: translateY(-5px); transition-delay: 0s; }
.cond-panel-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; margin-bottom: 20px; }

/* conditions explorer (tabs) */
.conditions { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.cond-tabs { list-style: none; border-right: 1px solid var(--line-2); background: #fbfcfd; padding: 10px; }
.cond-tab { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: 500 15px/1.35 var(--font); color: var(--ink-2); transition: background .2s, color .2s; }
.cond-tab .icon { width: 18px; height: 18px; color: var(--muted); transition: color .2s; }
.cond-tab:hover { background: var(--mist); color: var(--navy-2); }
.cond-tab[aria-selected="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.cond-tab[aria-selected="true"] .icon { color: #7fe0da; }
.cond-panel { padding: 36px 40px; }
.cond-panel[hidden] { display: none; }
.cond-panel h3 { font-size: 1.375rem; margin-bottom: 6px; }
.cond-panel > p { color: var(--muted); margin-bottom: 22px; }
.cond-items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.cond-items li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 15.5px; }
.cond-items li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--signal); background: radial-gradient(circle, var(--signal) 0 3px, transparent 3.5px); }
.cond-panel.enter { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.cond-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* facilities with live waveforms */
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.facility { position: relative; border-radius: var(--r-lg); padding: 28px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.facility.dark { background: var(--navy-2); border-color: var(--navy-2); color: #cfe0ea; }
.facility.dark h3 { color: #fff; }
.facility.dark p { color: #b9cfdc; }
.facility-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.facility-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal-2); flex: none; }
.facility.dark .facility-ico { background: rgba(127, 224, 218, .12); color: #7fe0da; }
.facility-ico .icon { width: 22px; height: 22px; }
.facility p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.facility .when { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy-3); }
.facility.dark .when { color: #7fe0da; }
.facility .when .icon { width: 16px; height: 16px; }
.wave { height: 64px; margin: 4px -28px 16px; position: relative; overflow: hidden; }
.wave svg { position: absolute; left: 0; top: 0; height: 100%; width: 200%; max-width: none; animation: waveScroll 6s linear infinite; }
.wave path { fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linejoin: round; }
.facility.dark .wave path { stroke: #5fe0d8; }
.wave.slow svg { animation-duration: 9s; }
@keyframes waveScroll { to { transform: translateX(-50%); } }

/* tests: monitor cards */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.test-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.test-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.monitor { background: #071c2b; padding: 0 0 14px; position: relative; }
.monitor-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12px; font-weight: 600; color: #8fb6c9; border-bottom: 1px solid rgba(127, 224, 218, .12); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade9b; box-shadow: 0 0 0 0 rgba(74, 222, 155, .6); animation: livePulse 2s infinite; }
.monitor-screen { display: grid; grid-template-columns: 54px 1fr; height: 132px; margin: 12px 14px 0; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(rgba(127, 224, 218, .08) 1px, transparent 1px) 0 0 / 100% 17px,
    linear-gradient(90deg, rgba(127, 224, 218, .08) 1px, transparent 1px) 0 0 / 20px 100%,
    #0a2638; }
.monitor-labels { list-style: none; display: grid; margin: 0; padding: 0; border-right: 1px solid rgba(127, 224, 218, .14); }
.monitor-labels li { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #7fe0da; letter-spacing: .02em; }
.monitor-track { position: relative; overflow: hidden; }
.monitor-waves { display: block; width: 200%; height: 100%; max-width: none; animation: waveScroll 7s linear infinite; }
.monitor-emg .monitor-waves { animation-duration: 5s; }
.monitor-waves path { fill: none; stroke: #5fe0d8; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.monitor-waves path:nth-child(2) { stroke: #8fd3ff; }
.monitor-waves path:nth-child(3) { stroke: #a7f3d0; }
.monitor-waves path:nth-child(4) { stroke: #7fb8ff; }
.test-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.test-title { display: flex; gap: 14px; align-items: center; }
.test-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; }
.test-ico .icon { width: 22px; height: 22px; }
.test-title h3 { font-size: 1.25rem; margin-bottom: 2px; }
.test-title small { color: var(--muted); font-size: 13.5px; }
.test-body > p { margin: 0; color: var(--ink-2); font-size: 15px; }
.test-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.test-uses ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.test-uses li { padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--navy-2); font-weight: 500; }
.test-when { padding: 14px 16px; border-radius: 14px; background: #f4fbfb; border: 1px solid rgba(14, 159, 159, .18); }
.when-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; padding: 5px 0; }
.when-row + .when-row { border-top: 1px dashed rgba(14, 159, 159, .22); }
.when-row .icon { width: 16px; height: 16px; color: var(--signal-2); }
.when-row b { color: var(--navy-2); font-weight: 600; min-width: 64px; }
.when-row span { color: var(--ink-2); }
.when-row em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--signal-2); background: #fff; border: 1px solid rgba(14, 159, 159, .3); padding: 2px 9px; border-radius: 999px; }
.test-book { align-self: flex-start; margin-top: auto; }
.js .test-grid[data-reveal] .test-card { opacity: 0; transform: translateY(18px); }
.js .test-grid[data-reveal].in .test-card { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * .12s), transform .6s var(--ease) calc(var(--i, 0) * .12s), box-shadow .35s var(--ease), border-color .35s; }
.js .test-grid[data-reveal].in .test-card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* test photos with the recording strip over the bottom */
.monitor.has-photo { position: relative; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #071c2b; }
.monitor.has-photo .test-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.test-card:hover .monitor.has-photo .test-photo { transform: scale(1.04); }
.monitor.has-photo .monitor-bar { position: absolute; left: 12px; top: 12px; z-index: 2; border: 0; padding: 6px 12px; border-radius: 999px; background: rgba(7, 28, 43, .78); backdrop-filter: blur(6px); color: #cfe9f1; }
.monitor.has-photo .monitor-screen { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 78px; margin: 0; background-color: rgba(7, 28, 43, .82); backdrop-filter: blur(4px); border: 1px solid rgba(127, 224, 218, .2); }
.monitor.has-photo .monitor-labels li { font-size: 10px; }

/* hospital care: compact cards */
.care-head { margin: 34px 0 14px; }
.care-head h3 { font-size: 1.125rem; }
.care-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.care-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: var(--navy-2); color: #cfe0ea; overflow: hidden; isolation: isolate; }
.care-ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(127, 224, 218, .12); color: #7fe0da; display: grid; place-items: center; flex: none; }
.care-ico .icon { width: 23px; height: 23px; }
.care-text { flex: 1; min-width: 0; position: relative; z-index: 1; padding-right: 8%; }
.care-card h4 { color: #fff; font-size: 16.5px; margin-bottom: 4px; }
.care-card p { margin: 0; font-size: 14px; color: #b9cfdc; }
.care-pulse { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; z-index: -1; opacity: .22; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.care-pulse svg { position: absolute; left: 0; top: calc(50% - 32px); height: 64px; width: 200%; max-width: none; animation: waveScroll 6s linear infinite; }
.care-pulse path { fill: none; stroke: #5fe0d8; stroke-width: 1.8; }
.care-card.has-photo { padding: 0; align-items: stretch; gap: 0; }
.care-photo { flex: 0 0 42%; position: relative; overflow: hidden; }
.care-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.care-card:hover .care-photo img { transform: scale(1.05); }
.care-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 42, 64, 0) 55%, var(--navy-2)); }
.care-card.has-photo .care-ico { align-self: center; margin: 0 0 0 4px; position: relative; z-index: 1; }
.care-card.has-photo .care-text { align-self: center; padding: 26px 22px 26px 14px; }
.care-card.has-photo { min-height: 170px; }


/* fees */
.fee-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.fee { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.fee:last-child { border-bottom: 0; }
.fee-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--mist); color: var(--navy-3); display: grid; place-items: center; }
.fee-ico .icon { width: 20px; height: 20px; }
.fee h3 { font-size: 16px; margin-bottom: 2px; }
.fee p { margin: 0; color: var(--muted); font-size: 14px; }
.fee .price { font-size: 1.25rem; font-weight: 700; color: var(--navy-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee .price small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; }
.fees-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
.note-card { border-radius: var(--r-lg); padding: 26px; background: var(--navy); color: #d5e5ee; }
.note-card h3 { color: #fff; margin-bottom: 10px; }
.note-card p { font-size: 15px; }
.note-card .btn { margin-top: 6px; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; cursor: pointer; transition: box-shadow .25s, border-color .25s; }
.video-card:hover { color: inherit; box-shadow: var(--shadow-lg); border-color: transparent; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-2); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb .fb-art { position: absolute; inset: 0; }
.video-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.video-card:hover .play span { transform: scale(1.08); }
.video-thumb .play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.video-thumb .vsrc { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(6, 22, 33, .72); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.video-thumb .vsrc .icon { width: 13px; height: 13px; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 33, .45)); pointer-events: none; }
.vc-body { padding: 16px 18px 18px; }
.vc-body h3 { font-size: 16px; margin-bottom: 4px; }
.vc-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--mist); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-meta span:first-child { color: var(--signal-2); font-weight: 600; }
.post-body h3 { font-size: 17px; margin-bottom: 8px; }
.post-body h3 a { color: var(--navy-2); }
.post-body p { color: var(--muted); font-size: 14.5px; }
.post-body .link-arrow { margin-top: auto; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.quote .stars { display: flex; gap: 2px; color: #e3a008; margin-bottom: 12px; }
.quote .stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote p { color: var(--ink-2); flex: 1; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.quote-by b { display: block; font-size: 15px; color: var(--navy-2); }
.quote-by small { color: var(--muted); font-size: 13px; }

/* ----------------------------- page head -------------------------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.page-head .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs .icon { width: 14px; height: 14px; }
.page-head h1 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem); margin-bottom: 10px; }
.page-head p { color: var(--ink-2); max-width: 62ch; margin: 0; font-size: 1.0625rem; }
.page-head .head-trace { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 1; }
.page-head .head-trace svg { width: 100%; height: 100%; }
.page-head .head-trace path { fill: none; stroke: rgba(14, 159, 159, .42); stroke-width: 1.3; }
.page-head .head-trace path.ch-2 { stroke: rgba(61, 127, 217, .32); }

/* --------------------------- doctor profile ----------------------- */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.profile-card { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.profile-photo { aspect-ratio: 4 / 5; background: var(--navy-2); position: relative; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.profile-photo .portrait-mono svg { width: 46%; }
.profile-meta { padding: 22px 24px 24px; }
.profile-meta h2 { font-size: 1.25rem; margin-bottom: 2px; }
.profile-meta .role { color: var(--signal-2); font-weight: 600; margin-bottom: 14px; }
.facts { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.facts li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.facts li .icon { width: 18px; height: 18px; color: var(--signal-2); margin-top: 3px; }
.facts li b { display: block; color: var(--navy-2); font-weight: 600; font-size: 13px; }
.prose p { color: var(--ink-2); font-size: 1.0625rem; max-width: 70ch; }
.prose h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.chip .icon { width: 15px; height: 15px; color: var(--signal-2); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cred { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.cred h3 { font-size: 16px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.cred h3 .icon { width: 18px; height: 18px; color: var(--signal-2); }
.cred ul { list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------ services page --------------------- */
.svc-block + .svc-block { margin-top: 72px; }
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.acc-item { position: relative; }
.acc-item + .acc-item { border-top: 1px solid var(--line-2); }
/* teal accent bar that grows down the open row */
.acc-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--signal), #5fe0d8); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); z-index: 2; }
.acc-item.open::before { transform: scaleY(1); }
.acc-item.open { background: linear-gradient(90deg, #f6fbfb, #fff 55%); }

.acc-btn { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 26px; background: none; border: 0; cursor: pointer; text-align: left; font: 600 16.5px/1.35 var(--font); color: var(--navy-2); overflow: hidden; isolation: isolate; }
/* soft wash that sweeps in from the left on hover */
.acc-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--signal-soft), rgba(226, 243, 242, 0) 70%); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.acc-btn:hover::after, .acc-btn:focus-visible::after { transform: scaleX(1); }
.acc-ico { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.acc-ico .icon { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.acc-btn:hover .acc-ico { transform: translateY(-1px); }
.acc-btn:hover .acc-ico, .acc-item.open .acc-ico { background: var(--navy); color: #7fe0da; }
.acc-btn:hover .acc-ico .icon { transform: scale(1.08); }
/* one nerve-signal ring when a row opens */
.acc-ico::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; border: 2px solid var(--signal); opacity: 0; pointer-events: none; }
.acc-item.open .acc-ico::after { animation: synapseRing .9s var(--ease) .05s 1; }
@keyframes synapseRing { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.45); } }
.acc-title { flex: 1; min-width: 0; transition: transform .35s var(--ease), color .25s; }
.acc-btn:hover .acc-title { transform: translateX(4px); }
.acc-btn .count { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--mist); border: 1px solid var(--line-2); padding: 4px 11px; border-radius: 999px; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.acc-item.open .count { background: #fff; color: var(--signal-2); border-color: rgba(14, 159, 159, .3); }
.acc-chev { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--muted); transition: background .35s var(--ease), color .35s, border-color .35s, transform .45s var(--ease); }
.acc-chev .chev { width: 17px; height: 17px; }
.acc-btn:hover .acc-chev { border-color: var(--signal); color: var(--signal-2); }
.acc-item.open .acc-chev { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(180deg); }

.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-trace { display: block; width: calc(100% - 102px); height: 22px; margin: -4px 26px 6px 84px; }
.acc-trace path { fill: none; stroke: rgba(14, 159, 159, .55); stroke-width: 1.4; stroke-dasharray: 1000; stroke-dashoffset: 1000; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 0s; }
.acc-item.open .acc-trace path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) .15s; }
.acc-panel .cond-items { padding: 0 26px 26px 84px; }
/* conditions arrive one by one, each dot "fires" */
.acc-panel .cond-items li { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.acc-item.open .acc-panel .cond-items li { opacity: 1; transform: none; transition: opacity .45s var(--ease) calc(.18s + var(--i, 0) * .06s), transform .45s var(--ease) calc(.18s + var(--i, 0) * .06s); }
.acc-item.open .cond-items li::before { animation: dotFire .6s var(--ease) calc(.24s + var(--i, 0) * .06s) both; }
@keyframes dotFire { 0% { transform: scale(.3); box-shadow: 0 0 0 0 rgba(14, 159, 159, .5); } 60% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(14, 159, 159, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14, 159, 159, 0); } }

/* rows glide in the first time the list scrolls into view */
.js .accordion[data-reveal] .acc-item { opacity: 0; transform: translateY(16px); }
.js .accordion[data-reveal].in .acc-item { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * .07s), transform .6s var(--ease) calc(var(--i, 0) * .07s); }

/* home tabs: items stagger in on each switch */
.cond-panel.enter .cond-items li { animation: itemIn .45s var(--ease) calc(.08s + var(--i, 0) * .05s) both; }
.cond-panel.enter .cond-items li::before { animation: dotFire .6s var(--ease) calc(.14s + var(--i, 0) * .05s) both; }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* conditions as a grid of cards (services page) */
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cond-card { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.cond-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--signal)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cond-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cond-card:hover::before { transform: scaleX(1); }
.cond-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cond-card-media { margin: -22px -20px 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.cond-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cond-card:hover .cond-card-media img { transform: scale(1.06); }
.cond-card.has-img .cond-card-head { position: relative; margin-top: -23px; margin-bottom: 12px; }
.cond-card.has-img .cond-card-ico { background: var(--navy); color: #7fe0da; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(11, 42, 64, .25); }
.cond-card.has-img .cond-card-count { margin-top: 26px; }
.cond-card-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; transition: background .35s var(--ease), color .35s; }
.cond-card-ico .icon { width: 22px; height: 22px; }
.cond-card:hover .cond-card-ico { background: var(--navy); color: #7fe0da; }
.cond-card-count { min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--navy-3); }
.cond-card h3 { font-size: 16.5px; line-height: 1.3; margin-bottom: 4px; }
.cond-card-trace { display: block; width: 100%; height: 18px; margin: 4px 0 10px; }
.cond-card-trace path { fill: none; stroke: rgba(14, 159, 159, .5); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; }
.cond-grid.in .cond-card-trace path, html:not(.js) .cond-card-trace path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) calc(.25s + var(--i, 0) * .07s); }
.cond-card ul { list-style: none; display: grid; gap: 8px; margin: 0; }
.cond-card li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cond-card li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--signal); background: #fff; transition: background .3s; }
.cond-card:hover li::before { background: var(--signal); }
.cond-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.js .cond-grid[data-reveal] .cond-card { opacity: 0; transform: translateY(18px); }
.js .cond-grid[data-reveal].in .cond-card { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * .07s), transform .6s var(--ease) calc(var(--i, 0) * .07s), box-shadow .35s var(--ease), border-color .35s; }
.js .cond-grid[data-reveal].in .cond-card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ------------------------------ timings ---------------------------- */
.week { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.week-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; border-bottom: 1px solid var(--line-2); }
.week-row:last-child { border-bottom: 0; }
.week-day { padding: 18px 22px; font-weight: 600; color: var(--navy-2); display: flex; align-items: center; gap: 10px; }
.week-day .today { font-size: 12px; font-weight: 600; color: #fff; background: var(--signal); padding: 2px 9px; border-radius: 999px; }
.week-row.is-today { background: #f4fbfb; }
.week-sessions { padding: 12px 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.session { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--mist); border: 1px solid var(--line-2); font-size: 14.5px; }
.session .icon { width: 16px; height: 16px; color: var(--signal-2); }
.session b { font-weight: 600; color: var(--navy-2); }
.session span { color: var(--muted); }
.no-session { color: var(--muted); font-size: 14.5px; }

/* timings page: simple place cards + week list */
.tm-block + .tm-block { margin-top: 48px; }
.tm-head { margin-bottom: 18px; }
.tm-head h2 { font-size: 1.5rem; margin-bottom: 4px; }
.tm-head p { margin: 0; color: var(--muted); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 16px; padding: 20px 22px; }
.tm-card.is-test { border-top-color: var(--signal); }
.tm-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tm-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; }
.tm-ico .icon { width: 20px; height: 20px; }
.tm-card h3 { font-size: 17px; line-height: 1.3; }
.tm-line { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); align-items: start; }
.tm-days { font-weight: 700; color: var(--navy-2); font-size: 15px; }
.tm-times { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.wk-row { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line-2); }
.wk-row:first-child { border-top: 0; }
.wk-row.is-today { background: #f4fbfb; }
.wk-day { padding: 14px 20px; font-weight: 600; color: var(--navy-2); display: flex; align-items: center; gap: 8px; }
.wk-day .today { font-size: 12px; color: #fff; background: var(--signal); padding: 2px 9px; border-radius: 999px; }
.wk-items { padding: 10px 20px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.wk-item { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 15px; padding: 3px 0; }
.wk-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-2); min-width: 260px; }
.wk-name .icon { width: 16px; height: 16px; color: var(--navy-3); }
.wk-item.is-test .wk-name { color: var(--signal-2); font-weight: 500; }
.wk-item.is-test .wk-name .icon { color: var(--signal-2); }
.wk-time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wk-off { color: var(--muted); font-size: 15px; }
.wk-row.is-off .wk-day { color: var(--muted); }

/* ------------------------------ forms ------------------------------ */
.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.375rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15.5px/1.4 var(--font); color: var(--ink); background: #fbfcfd;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: #fff; box-shadow: 0 0 0 4px rgba(14, 159, 159, .14); }
.form-msg { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; margin-bottom: 14px; }
.form-msg.ok { display: block; background: #e8f7f0; color: #11663f; border: 1px solid #bfe8d4; }
.form-msg.err { display: block; background: #fdeeee; color: #9b1c1c; border: 1px solid #f6c9c9; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.side-stack { display: grid; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: #fff; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.side-card .mini { list-style: none; display: grid; gap: 12px; }
.side-card .mini li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.side-card .mini li .icon { width: 18px; height: 18px; color: var(--signal-2); margin-top: 2px; }
.side-card .mini b { display: block; color: var(--navy-2); font-weight: 600; }
.side-card.dark { background: var(--navy); border-color: var(--navy); color: #cfe0ea; }
.side-card.dark h3, .side-card.dark .mini b { color: #fff; }
.side-card.dark .mini li { color: #cfe0ea; }
.side-card.dark .mini li .icon { color: #7fe0da; }

/* ---------------------------- booking flow ---------------------------- */
.booking { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.booking-form { display: grid; gap: 18px; }
.bstep { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 26px 28px 28px; transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.bstep.is-current { border-color: rgba(14, 159, 159, .45); box-shadow: 0 0 0 4px rgba(14, 159, 159, .08), var(--shadow); }
/* wizard: only the current step is on screen (when JavaScript runs) */
.js .bstep:not(.is-current) { display: none; }
.js .bstep .bstep-num { display: none; }
.bstep.enter-fwd { animation: stepFwd .45s var(--ease); }
.bstep.enter-back { animation: stepBack .45s var(--ease); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.bstep-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.bstep-nav .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.bstep .form-note { text-align: right; }
.bstep #apMsg { margin-top: 6px; }
.recap { display: flex; align-items: center; gap: 12px; margin: -6px 0 18px; padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--mist); font-size: 14px; color: var(--navy-2); font-weight: 600; }
.recap[hidden] { display: none; }
.recap-text { flex: 1; min-width: 0; }
.recap-edit { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 600 13px var(--font); color: var(--navy-3); cursor: pointer; }
.recap-edit:hover { border-color: var(--signal); color: var(--signal-2); }
.recap-edit .icon { width: 14px; height: 14px; }

/* progress bar */
.stepper { list-style: none; display: flex; margin: 0 0 4px; padding: 0; counter-reset: none; }
html:not(.js) .stepper, html:not(.js) .bstep-nav [data-next], html:not(.js) .bstep-nav [data-back] { display: none; }
.stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); border-radius: 3px; z-index: 0; }
.stepper li::after { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--signal); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 0; }
.stepper li:first-child::before, .stepper li:first-child::after { display: none; }
.stepper li.is-current::after, .stepper li.is-done::after { transform: scaleX(1); }
.stepper-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease); }
.stepper li.is-current { color: var(--navy-2); font-weight: 600; }
.stepper li.is-current .stepper-dot { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 5px rgba(15, 53, 80, .1); }
.stepper li.is-done { cursor: pointer; color: var(--signal-2); }
.stepper li.is-done .stepper-dot { background: var(--signal); border-color: var(--signal); color: #fff; }
.stepper li.is-done:hover .stepper-dot { transform: scale(1.08); }
.bstep legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; display: flex; gap: 14px; align-items: flex-start; }
.bstep legend + * { clear: both; }
.bstep legend b { display: block; font-size: 1.125rem; color: var(--navy-2); line-height: 1.3; }
.bstep legend small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.bstep-num { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--navy); background: var(--mist); border: 1px solid var(--line); transition: background .35s var(--ease), color .35s, border-color .35s; position: relative; }
.bstep.is-current .bstep-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.bstep.is-done .bstep-num { background: var(--signal); border-color: var(--signal); color: #fff; font-size: 0; }
.bstep.is-done .bstep-num::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translateY(-2px) rotate(-45deg); animation: tickIn .35s var(--ease); }
@keyframes tickIn { from { transform: translateY(-2px) rotate(-45deg) scale(.2); opacity: 0; } to { transform: translateY(-2px) rotate(-45deg) scale(1); opacity: 1; } }

/* area cards */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-card { position: relative; display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px 44px 16px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, background .25s, box-shadow .3s var(--ease), transform .25s var(--ease); }
.choice:hover .choice-card { border-color: rgba(14, 159, 159, .5); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice input:focus-visible + .choice-card { outline: 3px solid var(--signal); outline-offset: 2px; }
.choice input:checked + .choice-card { border-color: var(--signal); background: linear-gradient(135deg, #f1faf9, #fff 70%); box-shadow: 0 0 0 3px rgba(14, 159, 159, .12); transform: none; }
.choice-ico { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; transition: background .3s, color .3s; }
.choice-ico .icon { width: 20px; height: 20px; }
.choice input:checked + .choice-card .choice-ico { background: var(--navy); color: #7fe0da; }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-text b { font-size: 16px; color: var(--navy-2); line-height: 1.3; }
.choice-text small { font-size: 13.5px; color: var(--muted); }
.choice-text em { font-style: normal; font-size: 13px; color: var(--signal-2); display: flex; gap: 6px; align-items: center; margin-top: 4px; font-weight: 500; }
.choice-text em .icon { width: 14px; height: 14px; }
.choice-tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s; }
.choice-tick .icon { width: 13px; height: 13px; stroke-width: 3; transform: scale(0); transition: transform .3s var(--ease); }
.choice input:checked + .choice-card .choice-tick { background: var(--signal); border-color: var(--signal); }
.choice input:checked + .choice-card .choice-tick .icon { transform: scale(1); }

.fee-reveal { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: var(--navy); color: #cfe0ea; font-size: 15px; }
.fee-reveal .icon { width: 20px; height: 20px; color: #7fe0da; }
.fee-reveal strong { margin-left: auto; font-size: 1.25rem; color: #fff; font-variant-numeric: tabular-nums; }
.fee-reveal.show { animation: feeIn .5s var(--ease); }
.fee-reveal[hidden] { display: none; }
@keyframes feeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* problem chips */
.chip-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip { position: relative; cursor: pointer; }
.pchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pchip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.pchip span .icon { width: 16px; height: 16px; color: var(--signal-2); transition: color .2s; }
.pchip:hover span { border-color: rgba(14, 159, 159, .55); transform: translateY(-1px); }
.pchip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.pchip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; animation: chipPop .35s var(--ease); }
.pchip input:checked + span .icon { color: #7fe0da; }
@keyframes chipPop { 50% { transform: scale(1.05); } }

.field-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--signal-2); font-weight: 500; min-height: 1em; }

/* sticky summary */
.booking-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.summary { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 24px; overflow: hidden; position: relative; }
.summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--signal)); }
.summary h3 { font-size: 1.0625rem; margin-bottom: 16px; }
.summary dl { margin: 0 0 18px; display: grid; gap: 12px; }
.summary dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.summary dt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.summary dt .icon { width: 15px; height: 15px; color: var(--signal-2); }
.summary dd { margin: 0; font-size: 14.5px; color: var(--muted); font-style: italic; }
.summary dd.filled { color: var(--navy-2); font-weight: 600; font-style: normal; }
.summary .flash { animation: sumFlash .7s var(--ease); }
@keyframes sumFlash { 0% { color: var(--signal); transform: translateX(4px); } 100% { transform: none; } }
.summary-fee { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--mist); margin-bottom: 16px; }
.summary-fee span { font-size: 14px; color: var(--muted); font-weight: 600; }
.summary-fee strong { font-size: 1.5rem; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.summary-fee strong.flash { animation: feePulse .6s var(--ease); }
@keyframes feePulse { 0% { transform: scale(.9); color: var(--signal); } 100% { transform: none; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; }
a.contact-item:hover { border-color: var(--signal); color: inherit; }
.contact-item .ci-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--signal-soft); color: var(--signal-2); display: grid; place-items: center; flex: none; }
.contact-item .ci-ico .icon { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-item span { color: var(--navy-2); font-weight: 600; }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 18px; }
.map-wrap iframe { width: 100% !important; height: 320px; border: 0; display: block; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article-hero { width: 100%; border-radius: var(--r-lg); margin: 0 0 28px; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.8; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* gallery */
.gallery-grid { columns: 3 280px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; cursor: zoom-in; position: relative; background: var(--mist); }
.gallery-item img { width: 100%; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(11, 42, 64, .8)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover figcaption { opacity: 1; }

/* pills / filters / pager / empty */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; background: #fff; }
.filters a:hover { border-color: var(--navy); color: var(--navy); }
.filters a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty-state .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--signal-2); }
.notice { padding: 14px 18px; border-radius: var(--r); background: #fff8e6; border: 1px solid #f3dfa6; color: #6b4e00; font-size: 14.5px; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------------------------- CTA band ----------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-2); color: #cfe0ea; }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; color: #b9cfdc; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-trace { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; z-index: 1; opacity: .35; }
.cta-trace svg { width: 100%; height: 100%; }
.cta-trace path { fill: none; stroke: rgba(127, 224, 218, .38); stroke-width: 1.4; }
.cta-trace path.ch-2 { stroke: rgba(138, 180, 255, .32); }

/* ----------------------------- footer ------------------------------ */
.site-footer { background: #0a2233; color: #a9c0cf; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: #cfe0ea; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand-text small { color: #8fb0c3; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .08); }
.footer-about { max-width: 38ch; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-hours { list-style: none; display: grid; gap: 10px; }
.footer-hours li { line-height: 1.45; }
.footer-hours b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.socials a:hover { background: var(--signal); }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: #7f9cae; flex-wrap: wrap; }
.footer-bottom a { color: #9fb9c9; }

/* -------------------------- mobile bar etc -------------------------- */
.mobile-bar { display: none; }
.back-top { position: fixed; right: 20px; bottom: 22px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); z-index: 40; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 22, 33, .9); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: heroFade .25s ease; }
.lb-body { width: min(1000px, 100%); }
.lb-body img { max-height: 84vh; margin: 0 auto; border-radius: var(--r); }
.lb-frame { width: 100%; aspect-ratio: 16 / 9; max-height: 84vh; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-frame.tall { aspect-ratio: 9 / 16; width: auto; height: 84vh; max-width: 100%; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-note { text-align: center; color: #b9cfdc; font-size: 14px; margin: 14px 0 0; }
.lb-note a { color: #7fe0da; text-decoration: underline; }
.lb-close { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.lb-close:hover { background: rgba(255, 255, 255, .22); }

/* 404 */
.error-page { padding: 100px 0; text-align: center; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; }
.error-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------------------------- responsive --------------------------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 9px 9px; font-size: 14.5px; }
  .main-nav a.active::after { left: 9px; right: 9px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  body.nav-open .site-header { z-index: 75; }
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-actions .btn { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 70; padding: 88px 18px 24px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; box-shadow: var(--shadow-lg); overflow-y: auto; margin: 0; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 14px; font-size: 16px; }
  .main-nav a.active { background: var(--mist); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { position: relative; z-index: 80; margin-left: auto; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(6, 22, 33, .45); border: 0; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 180px; }
  .hero-visual { justify-self: center; max-width: 400px; }
  .hero h1 { max-width: none; }
  .intro-grid, .profile, .form-layout, .contact-grid, .fees-grid, .booking { grid-template-columns: 1fr; gap: 32px; }
  .booking-side { position: static; }
  .intro-aside, .profile-card { position: static; }
  .doc-portrait { max-width: 440px; }
  .profile-card { max-width: 420px; }
  .conditions { grid-template-columns: 1fr; }
  .cond-tabs { display: flex; overflow-x: auto; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line-2); scrollbar-width: thin; }
  .cond-tabs li { flex: none; }
  .cond-tab { white-space: nowrap; }
  .video-grid, .post-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .interest-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; padding-bottom: 66px; }
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 12.5px; }
  .section { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .hero-grid { padding-top: 36px; padding-bottom: 150px; }
  .hero-visual { max-width: 300px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trace { height: 72px; bottom: 58px; }
  .schedule-strip { margin-top: -48px; }
  .sched { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .sched:last-child { border-bottom: 0; }
  .interest-list, .cond-items, .facility-grid, .cred-grid, .field-row { grid-template-columns: 1fr; }
  .cond-panel { padding: 26px 20px; }
  .video-grid, .post-grid, .quote-grid { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: 1fr; gap: 14px; }
  .tm-grid { grid-template-columns: 1fr; }
  .wk-row { grid-template-columns: 1fr; }
  .wk-day { padding: 12px 16px 2px; }
  .wk-items { padding: 4px 16px 12px; }
  .wk-name { min-width: 0; }
  .care-grid { grid-template-columns: 1fr; }
  .care-card.has-photo { flex-direction: column; }
  .care-photo { flex: none; aspect-ratio: 16 / 9; }
  .care-photo::after { background: linear-gradient(180deg, rgba(11, 42, 64, 0) 55%, var(--navy-2)); }
  .care-card.has-photo .care-ico { display: none; }
  .care-card.has-photo .care-text { padding: 20px 18px 22px; }
  .test-body { padding: 20px 18px 22px; }
  .interest-cards, .interest-cards.two { grid-template-columns: 1fr; gap: 16px; }
  .fee { grid-template-columns: 1fr auto; padding: 18px; }
  .fee-ico { display: none; }
  .week-row { grid-template-columns: 1fr; }
  .week-day { padding: 14px 16px 4px; }
  .week-sessions { padding: 6px 16px 14px; }
  .form-card { padding: 22px 18px; }
  .bstep { padding: 20px 16px 22px; }
  .choice-grid { grid-template-columns: 1fr; }
  .pchip span { padding: 9px 13px; font-size: 14px; }
  .summary dl > div { grid-template-columns: 84px 1fr; }
  .acc-btn { padding: 16px 18px; gap: 12px; font-size: 15.5px; }
  .acc-panel .cond-items { padding: 0 18px 20px 18px; }
  .acc-trace { width: calc(100% - 36px); margin: -2px 18px 6px; }
  .acc-btn .count { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .page-head .wrap { padding-top: 40px; padding-bottom: 52px; }
  .back-top { bottom: 80px; right: 14px; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 53, 80, .08); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted); -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .mobile-bar a .icon { width: 21px; height: 21px; color: var(--muted); transition: color .2s, transform .25s var(--ease); }
  /* the page you are on: navy label, teal icon in a soft pill, bar on top */
  .mobile-bar a::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--signal); transform: scaleX(0); transition: transform .3s var(--ease); }
  .mobile-bar a::after { content: ""; position: absolute; top: 5px; left: 50%; width: 46px; height: 28px; margin-left: -23px; border-radius: 999px; background: var(--signal-soft); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--ease); z-index: -1; }
  .mobile-bar a { isolation: isolate; }
  .mobile-bar a.is-active { color: var(--navy-2); }
  .mobile-bar a.is-active .icon { color: var(--signal-2); }
  .mobile-bar a.is-active::before { transform: scaleX(1); }
  .mobile-bar a.is-active::after { opacity: 1; transform: none; }
  /* instant feedback the moment a button is tapped */
  .mobile-bar a:active .icon, .mobile-bar a.tapped .icon { transform: scale(.86); }
  .mobile-bar a.tapped { color: var(--navy-2); }
  .mobile-bar a.tapped .icon { color: var(--signal-2); }
  .mobile-bar a.tapped::after { opacity: 1; transform: none; }
}

/* --------------------------- reduced motion ------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-copy > *, .hero-visual { opacity: 1; transform: none; }
  .hero-trace .trace-draw { stroke-dashoffset: 0; }
  .hero-trace .trace-spark, .neural .axon-live, .brain .signals { display: none; }
}

/* ------------------------------ print ------------------------------ */
@media print {
  .topbar, .site-header, .mobile-bar, .back-top, .cta-band, .hero-trace, .neural { display: none !important; }
  body { padding: 0; }
}
.lb-frame.fb { aspect-ratio: auto; max-width: 100%; max-height: none; }
.lb-frame.post { background: transparent; box-shadow: none; border-radius: 12px; }
.lb-wait { color: #d7e6ef; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; padding: 40px; }
.lb-wait span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #7fe0da; animation: lbSpin .8s linear infinite; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lb-msg strong { font-size: 18px; color: #fff; }
.fh-line { display: block; }
.sched p + p { margin-top: 6px; }
.contact-item > span > span { display: block; }
.dpart { font-style: normal; font-weight: 600; color: #7fe0da; }
.tm-times .dpart { color: var(--teal-600, #0b8484); display: inline-block; min-width: 76px; font-size: .92em; }
/* clinic photo on timing cards */
.tm-card.has-photo { padding-top: 0; overflow: hidden; }
.tm-photo { margin: 0 -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--signal-soft); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tm-card.has-photo:hover .tm-photo img { transform: scale(1.04); }
/* Hospital care: one line, auto-scrolling */
.care-marquee { overflow: hidden; margin: 0 -4px; padding: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.care-track { display: flex; gap: 18px; width: max-content; animation: careScroll calc(var(--n, 4) * 7s) linear infinite; }
.care-marquee:hover .care-track, .care-marquee:focus-within .care-track { animation-play-state: paused; }
.care-track .care-card { flex: 0 0 540px; }
@keyframes careScroll { to { transform: translateX(calc(-50% - 9px)); } }
@media (max-width: 760px) {
  .care-track .care-card { flex-basis: 82vw; }
}
@media (prefers-reduced-motion: reduce) {
  .care-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .care-track { animation: none; }
  .care-track .care-card[aria-hidden="true"] { display: none; }
}
/* care row cards: picture on top, text below (keeps full clinic banners visible) */
.care-track .care-card.has-photo { flex: 0 0 440px; flex-direction: column; align-items: stretch; min-height: 0; }
.care-track .care-photo { flex: none; aspect-ratio: 16 / 9; }
.care-track .care-photo::after { display: none; }
.care-track .care-card.has-photo .care-ico { display: none; }
.care-track .care-card.has-photo .care-text { align-self: stretch; padding: 16px 20px 20px; }
.care-track .care-card .care-pulse { top: auto; height: 90px; }
@media (max-width: 760px) { .care-track .care-card.has-photo { flex-basis: 82vw; } }
/* ---- Also on Marham & oladoc ---- */
.pf-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; background: linear-gradient(135deg, #f3f8fb, #eef6f6); border: 1px solid var(--line); border-radius: 22px; padding: 30px 34px; }
.pf-eye { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--signal-2, #0b8484); text-transform: uppercase; letter-spacing: .06em; }
.pf-eye .icon { width: 16px; height: 16px; }
.pf-copy h2 { margin: 8px 0 8px; font-size: clamp(22px, 2.4vw, 28px); }
.pf-copy p { margin: 0; color: var(--muted); }
.pf-cards { display: grid; gap: 12px; }
.pf-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pc); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.pf-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 53, 80, .10); }
.pf-logo { flex: none; min-width: 96px; text-align: center; font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--pc); padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 9%, #fff); }
.pf-txt { display: flex; flex-direction: column; min-width: 0; }
.pf-txt b { font-size: 15.5px; color: var(--navy); }
.pf-txt small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pf-go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: #fff; flex: none; }
.pf-go .icon { width: 18px; height: 18px; }
@media (max-width: 860px) { .pf-band { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; } .pf-logo { min-width: 78px; font-size: 16px; } }

/* Talk to Doctor / Video Call in the header */
.main-nav a { white-space: nowrap; }
.main-nav li.m-only { display: none; }
@media (min-width: 1025px) {
  .main-nav a { padding-left: 8px; padding-right: 8px; font-size: 14.5px; }
  .header-inner { gap: 14px; }
  .header-actions .btn-sm { padding: 10px 12px; font-size: 13.5px; }
}
@media (max-width: 1240px) and (min-width: 1025px) { .header-actions .btn-ghost { display: none; } .main-nav li.m-only { display: block; } }
@media (max-width: 1024px) { .main-nav li.m-only { display: block; } }
