/* ============================================================
   AURADKAR HEART CARE — Design System
   ============================================================ */

:root {
  /* Palette */
  --ink: #14243d;
  --ink-soft: #3d4f6b;
  --ink-mute: #6b7a93;
  --cream: #fdf9f4;
  --cream-2: #f7efe6;
  --white: #ffffff;
  --coral: #e85d75;
  --coral-deep: #d43d58;
  --coral-soft: #fdeef1;
  --teal: #0e9594;
  --teal-soft: #e3f4f4;
  --gold: #e9b44c;
  --gold-soft: #fbf3e0;
  --navy: #1b3a5c;
  --lav: #8f7fd4;
  --lav-soft: #efecfa;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 12px rgba(20, 36, 61, 0.06);
  --shadow-md: 0 10px 40px rgba(20, 36, 61, 0.1);
  --shadow-lg: 0 24px 70px rgba(20, 36, 61, 0.16);

  /* Motion: one calm, consistent curve is more premium than many effects. */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, sans-serif;

  --nav-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--coral); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.h-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-sm { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--teal::before { background: var(--teal); }
.eyebrow--gold { color: #c9922e; }
.eyebrow--gold::before { background: var(--gold); }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.accent-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--coral-deep);
}

/* ---------- Layout ---------- */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
}
#preloader .pre-heart { width: 64px; height: 64px; color: var(--coral); }
#preloader .pre-word {
  font-family: "Dancing Script", var(--font-display), cursive;
  color: var(--cream);
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.92;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.5s var(--ease-standard), background 0.4s var(--ease-standard), box-shadow 0.4s var(--ease-standard), border-color 0.4s var(--ease-standard);
  background: rgba(253, 249, 244, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.nav.is-scrolled {
  background: rgba(253, 249, 244, 0.82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(20, 36, 61, 0.06);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  width: min(1280px, 94%);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { line-height: 1; }
.brand-text strong {
  display: block;
  font-family: "Dancing Script", var(--font-display), cursive;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.brand-text span {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.32rem; }
  .brand-text span { font-size: 0.5rem; letter-spacing: 0.09em; margin-top: 3px; }
}
@media (max-width: 380px) {
  .brand-text strong { font-size: 1.18rem; }
  .brand-text span { font-size: 0.46rem; letter-spacing: 0.06em; }
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 100px;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--coral-deep); background: var(--coral-soft); }
.nav-links a.is-active { color: var(--coral-deep); }
.nav-links a.is-active::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--coral);
  transform: translateX(-50%);
}
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  z-index: 110;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none;
}
.mobile-menu.is-open { pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  padding: 8px 20px;
  color: var(--ink);
}
.mobile-menu a.is-active { color: var(--coral-deep); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.92rem; font-weight: 600;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.45s var(--ease-standard), box-shadow 0.45s var(--ease-standard), background 0.35s var(--ease-standard), color 0.35s var(--ease-standard);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -46%;
  z-index: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 0.7s var(--ease-emphasized);
  pointer-events: none;
}
.btn:hover::before { transform: skewX(-18deg) translateX(620%); }
.btn svg { width: 17px; height: 17px; transition: transform 0.45s var(--ease-standard); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 93, 117, 0.36);
}
.btn--primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(232, 93, 117, 0.44);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(20, 36, 61, 0.22);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% 15%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(700px 500px at 8% 85%, var(--teal-soft) 0%, transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero h1 { margin: 0 0 24px; }
.hero .lede { margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-badge { display: flex; align-items: center; gap: 12px; }
.hero-badge .dot {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--coral-deep);
}
.hero-badge .dot svg { width: 20px; height: 20px; }
.hero-badge p { font-size: 0.82rem; color: var(--ink-mute); line-height: 1.35; }
.hero-badge p strong { display: block; color: var(--ink); font-size: 0.9rem; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-art {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(20, 36, 61, 0.14));
}
.float-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
}
.float-chip svg { width: 20px; height: 20px; color: var(--coral-deep); flex-shrink: 0; }
.float-chip small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 0.72rem; }
.float-chip--1 { top: 6%; left: -6%; }
.float-chip--2 { bottom: 20%; right: -4%; }
.float-chip--3 { bottom: -2%; left: 10%; }

/* ECG strip */
.ecg-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 90px;
  pointer-events: none;
  opacity: 0.5;
}
.ecg-strip svg { width: 100%; height: 100%; }
.ecg-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Cinematic scroll-scrub hero (home) ---------- */
.hero-cinema {
  position: relative;
  height: 260vh;           /* scroll length that drives the video */
  background: var(--cream);
}
.hero-cinema-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* the backdrop IS the video (a heavily blurred frame), so tones always match */
  background: #f4f4f5 url("../assets/hero-backdrop.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero-cinema-stage::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 30%, rgba(232, 93, 117, 0.1), transparent 30%),
    radial-gradient(circle at 30% 82%, rgba(14, 149, 148, 0.08), transparent 28%);
  filter: blur(24px);
}
.hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 82%;              /* breathing room above and below the heart */
  width: auto;
  max-width: 94%;
  object-fit: contain;
  z-index: 1;
  will-change: transform, opacity;
  /* feather all four edges to full transparency so the footage dissolves into the backdrop */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(253,249,244,0.97) 0%, rgba(253,249,244,0.86) 34%, rgba(253,249,244,0.4) 52%, rgba(253,249,244,0) 66%),
    linear-gradient(to bottom, rgba(253,249,244,0) 62%, rgba(253,249,244,0.65) 86%, var(--cream) 100%);
}
.hero-cinema-inner {
  position: relative;
  z-index: 3;
  margin-top: clamp(28px, 4vh, 44px);
  /* width comes from .container so the copy stays centred with the page grid */
}
.hero-cinema-copy { max-width: 620px; will-change: transform, opacity; }
.hero-cinema-copy h1 { margin: 0 0 24px; }
.hero-cinema-copy h1, .hero-cinema-copy .lede { text-wrap: balance; }
.hero-cinema-copy .lede { margin-bottom: 34px; }
.hero-cinema .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 15%;
  z-index: 3;
  text-align: center;
  pointer-events: none;
}
.hero-caption p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  color: var(--ink);
  max-width: 20ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(253,249,244,0.9);
}

.hero-scroll-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-scroll-hint svg { width: 20px; height: 20px; }
.hero-scroll-hint .mouse {
  width: 24px; height: 38px; border-radius: 14px;
  border: 2px solid var(--ink-mute);
  position: relative;
}
.hero-scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 7px; border-radius: 3px;
  background: var(--coral);
  transform: translateX(-50%);
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* Narrow screens (phones + portrait tablets): stack the hero —
   headline block on top, heart below it, no overlap. */
@media (max-width: 1020px) {
  .hero-cinema { height: 240vh; }
  .hero-cinema-stage {
    display: flex;
    align-items: flex-end;
    padding: 0 0 44px;
    background: #f4f4f5; /* fallback behind the cover video's feathered edges */
  }
  .hero-cinema-inner { margin-top: 0; }
  /* Heart FILLS the screen so there is never a blank band — the opening
     animation is what the visitor sees moving as they scroll. */
  .hero-video {
    position: absolute;
    inset: 0;
    top: 0; left: 0; bottom: auto;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-cinema-copy { max-width: 640px; }
  .hero-cinema-copy h1 { font-size: clamp(2.05rem, 6.6vw, 3rem); margin-bottom: 14px; }
  .hero-cinema-copy .eyebrow { font-size: 0.7rem; margin-bottom: 12px; }
  .hero-cinema-copy .lede { font-size: clamp(0.92rem, 3.7vw, 1.05rem); margin-bottom: 20px; }
  .hero-cinema .hero-ctas .btn { padding: 13px 22px; font-size: 0.85rem; }
  /* Heart stays vivid up top; a soft cream wash keeps the copy legible below */
  .hero-veil {
    background: linear-gradient(to bottom,
      rgba(253, 249, 244, 0) 20%,
      rgba(253, 249, 244, 0.34) 40%,
      rgba(253, 249, 244, 0.78) 62%,
      rgba(253, 249, 244, 0.95) 82%,
      var(--cream) 100%);
  }
  .hero-cinema-copy h1, .hero-cinema-copy .eyebrow { text-shadow: 0 1px 16px rgba(253, 249, 244, 0.9); }
  .hero-caption { top: 12%; bottom: auto; }
  .hero-caption p { font-size: clamp(1.15rem, 4vw, 1.6rem); text-shadow: 0 2px 18px rgba(253, 249, 244, 1); }
  .hero-scroll-hint { bottom: 10px; font-size: 0.62rem; }
  .hero-scroll-hint .mouse { display: none; }
}

/* A short laptop viewport cannot accommodate the hero eyebrow without
   placing it behind the persistent navigation, so keep the hierarchy clean. */
@media (min-width: 1021px) and (max-height: 800px) {
  .hero-cinema-copy > .eyebrow { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-style: italic;
}
.marquee-item svg { width: 15px; height: 15px; color: var(--coral); flex-shrink: 0; }

/* ---------- Two-doctor intro cards ---------- */
.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.doctor-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.45s var(--ease-standard), box-shadow 0.45s var(--ease-standard);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}
.doctor-card--teal::before { background: linear-gradient(90deg, var(--teal), var(--lav)); }
.doctor-avatar {
  width: 86px; height: 86px;
  border-radius: 28px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.doctor-card--teal .doctor-avatar { background: var(--teal-soft); color: var(--teal); }
.doctor-avatar svg { width: 44px; height: 44px; }
.doctor-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: inherit;
}
.doctor-card .role-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.doctor-card--teal .role-tag { color: var(--teal); background: var(--teal-soft); }
.doctor-card h3 { margin-bottom: 6px; }
.doctor-card .quals { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 18px; }
.doctor-card p.bio { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 26px; }
.doctor-card .card-link {
  font-weight: 600; font-size: 0.9rem;
  color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.doctor-card--teal .card-link { color: var(--teal); }
.doctor-card .card-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.doctor-card .card-link:hover svg { transform: translateX(5px); }

.placeholder-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem;
  color: #a08326;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  padding: 6px 12px;
  border-radius: 10px;
  margin-top: 14px;
}

/* ---------- Stats ---------- */
.stats-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 70px) clamp(28px, 5vw, 70px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  position: relative;
  overflow: hidden;
}
.stats-band::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,117,0.28), transparent 70%);
}
.stat h3 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--coral);
  font-weight: 500;
  display: flex; align-items: baseline; gap: 2px;
}
.stat h3 .suffix { font-size: 0.55em; color: var(--gold); }
.stat p { font-size: 0.86rem; color: rgba(253, 249, 244, 0.72); margin-top: 6px; }

/* ---------- Feature / pillar cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 30px);
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-standard), box-shadow 0.45s var(--ease-standard);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar:nth-child(3n+2) .pillar-icon { background: var(--teal-soft); color: var(--teal); }
.pillar:nth-child(3n) .pillar-icon { background: var(--lav-soft); color: var(--lav); }
.pillar h3 { font-size: 1.18rem; margin-bottom: 10px; }
.pillar p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.split-art svg { width: 100%; height: auto; }

/* Split art holding the doctor duo photo */
.split-art--photo {
  position: relative;
  background: radial-gradient(circle at 50% 32%, var(--coral-soft) 0%, var(--teal-soft) 62%, #ffffff 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 26px 0;
  min-height: 380px;
}
.split-art--photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(20, 36, 61, 0.16));
}
.split-art--photo .sa-ecg {
  position: absolute;
  z-index: 1;
  left: 8%; right: 8%;
  top: 42%;
  height: 60px;
  opacity: 0.55;
}
.split-art--photo .sa-ecg svg { height: 100%; }
.sa-badge {
  position: absolute;
  z-index: 3;
  top: 26px; right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 600;
}
.sa-badge small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 0.68rem; }
.sa-badge .ci {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--coral-soft); color: var(--coral-deep);
  display: grid; place-items: center;
}
.sa-badge .ci svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .split-art--photo { min-height: 0; padding: 22px 18px 0; }
  .sa-badge { top: 14px; right: 12px; font-size: 0.72rem; }
}
.checklist li {
  display: flex; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(20, 36, 61, 0.08);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist li strong { color: var(--ink); }
.checklist .tick {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
  margin-top: 2px;
}
.checklist .tick svg { width: 13px; height: 13px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-deep) 55%, #b32c46 100%);
  border-radius: var(--radius-lg);
  padding: clamp(46px, 6vw, 90px) clamp(28px, 5vw, 80px);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta-band p { max-width: 52ch; margin: 0 auto 34px; opacity: 0.92; }
.cta-band .heart-bg {
  position: absolute;
  width: 380px;
  opacity: 0.1;
  right: -70px; bottom: -110px;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(253, 249, 244, 0.78);
  padding: clamp(56px, 7vw, 90px) 0 34px;
  margin-top: clamp(60px, 8vw, 110px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253, 249, 244, 0.12);
}
.footer .brand-text strong { color: var(--cream); }
.footer .brand-text span { color: rgba(253, 249, 244, 0.5); }
.footer p.footer-about { font-size: 0.88rem; margin-top: 18px; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 0.9rem; transition: color 0.25s; }
.footer li a:hover { color: var(--coral); }
.footer address { font-style: normal; font-size: 0.9rem; line-height: 1.9; }
.footer-bottom {
  padding-top: 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(253, 249, 244, 0.5);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(48px, 6vw, 90px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 90% 0%, var(--coral-soft) 0%, transparent 55%),
    radial-gradient(600px 400px at 0% 100%, var(--teal-soft) 0%, transparent 55%),
    var(--cream);
}
.page-hero--teal {
  background:
    radial-gradient(800px 500px at 90% 0%, var(--teal-soft) 0%, transparent 55%),
    radial-gradient(600px 400px at 0% 100%, var(--lav-soft) 0%, transparent 55%),
    var(--cream);
}
.page-hero h1 { max-width: 18ch; margin-bottom: 20px; }
.page-hero .lede { max-width: 58ch; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--coral-deep); }
.breadcrumb .sep { opacity: 0.4; }

/* ---------- Services page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(20px, 3vw, 38px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(18px, 2.5vw, 28px);
  transition: transform 0.45s var(--ease-standard), box-shadow 0.45s var(--ease-standard);
}
.service-block:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--coral);
  line-height: 1;
  padding-top: 6px;
}
.service-block h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 12px; }
.service-block > div > p { color: var(--ink-soft); font-size: 0.96rem; max-width: 70ch; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service-tags span {
  font-size: 0.76rem; font-weight: 500;
  background: var(--cream-2);
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 100px;
}

/* ---------- Conditions database ---------- */
.filter-bar {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 50;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px;
  margin-bottom: clamp(30px, 4vw, 48px);
  background: rgba(253, 249, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.filter-chip {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  background: var(--white);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px rgba(20, 36, 61, 0.1);
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex; align-items: center; gap: 8px;
}
.filter-chip .count {
  font-size: 0.68rem;
  background: var(--cream-2);
  color: var(--ink-mute);
  border-radius: 100px;
  padding: 2px 8px;
  transition: inherit;
}
.filter-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--coral), 0 6px 16px rgba(232,93,117,0.18); }
.filter-chip.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(20, 36, 61, 0.25);
}
.filter-chip.is-active .count { background: rgba(255,255,255,0.16); color: var(--cream); }

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.condition-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
  display: flex; flex-direction: column;
  border: none;
  text-align: left;
  width: 100%;
}
.condition-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.condition-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.condition-card::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--accent, var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.condition-card:hover::after { transform: scaleX(1); }
.cc-icon {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent, var(--coral)) 12%, white);
  color: var(--accent, var(--coral));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.condition-card:hover .cc-icon { transform: scale(1.1) rotate(-4deg); }
.cc-icon svg { width: 42px; height: 42px; }
.cc-cat {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent, var(--coral));
  margin-bottom: 8px;
}
.condition-card h3 { font-size: 1.16rem; margin-bottom: 8px; line-height: 1.3; }
.condition-card p {
  font-size: 0.86rem;
  color: var(--ink-mute);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-more {
  margin-top: 18px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.cc-more svg { width: 15px; height: 15px; transition: transform 0.3s; }
.condition-card:hover .cc-more svg { transform: translateX(5px); }

.no-results {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-mute);
  display: none;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 26, 44, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 720px) {
  .modal-overlay { align-items: center; padding: 40px 20px; }
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--cream);
  width: min(860px, 100%);
  max-height: 88vh;
  border-radius: 28px 28px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}
@media (min-width: 720px) { .modal { border-radius: 28px; } }
.modal-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 20px;
  padding: 30px clamp(24px, 4vw, 44px) 24px;
  background: linear-gradient(to bottom, var(--cream) 78%, transparent);
}
.modal-icon {
  width: 74px; height: 74px;
  flex-shrink: 0;
  border-radius: 22px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--coral)) 13%, white);
  color: var(--accent, var(--coral));
}
.modal-icon svg { width: 44px; height: 44px; }
.modal-head .cc-cat { margin-bottom: 4px; }
.modal-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  z-index: 6;
}
.modal-close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: 4px clamp(24px, 4vw, 44px) 44px; }
.modal-about {
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 20px 24px;
  background: var(--white);
  border-left: 4px solid var(--accent, var(--coral));
  border-radius: 0 16px 16px 0;
  margin-bottom: 30px;
}
.modal-section { margin-bottom: 28px; }
.modal-section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 16px;
}
.modal-section-title .ms-ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.modal-section-title .ms-ico svg { width: 18px; height: 18px; }
.ms-symptoms .ms-ico { background: var(--coral-soft); color: var(--coral-deep); }
.ms-symptoms { color: var(--coral-deep); }
.ms-diagnosis .ms-ico { background: var(--teal-soft); color: var(--teal); }
.ms-diagnosis { color: var(--teal); }
.ms-treatment .ms-ico { background: var(--gold-soft); color: #b98a25; }
.ms-treatment { color: #b98a25; }
.modal-list { display: grid; gap: 9px; }
@media (min-width: 640px) { .modal-list { grid-template-columns: 1fr 1fr; } }
.modal-list li {
  display: flex; gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
}
.modal-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--coral));
  margin-top: 8px;
}
.modal-note {
  font-size: 0.78rem;
  color: var(--ink-mute);
  background: var(--cream-2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 8px;
}

/* ---------- About page ---------- */
.profile-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.profile-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.profile-photo {
  width: 150px; height: 150px;
  margin: 0 auto 22px;
  border-radius: 44px;
  display: grid; place-items: center;
  overflow: hidden;               /* clip the photo to the frame — never overflow onto the name */
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.profile-photo--teal { background: var(--teal-soft); color: var(--teal); }
.profile-photo svg { width: 76px; height: 76px; }
.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: inherit;
}
.profile-side h2 { font-size: 1.5rem; margin-bottom: 4px; }
.profile-side .quals { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 20px; }
.profile-facts { text-align: left; margin-top: 22px; }
.profile-facts li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(20, 36, 61, 0.12);
  font-size: 0.84rem;
}
.profile-facts li:last-child { border-bottom: none; }
.profile-facts .k { color: var(--ink-mute); }
.profile-facts .v { font-weight: 600; text-align: right; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--coral), var(--teal));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -33px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--coral);
}
.timeline-item .t-tag {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral-deep);
}
.timeline-item h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 6px 0 6px; }
.timeline-item p { font-size: 0.9rem; color: var(--ink-soft); }

.expertise-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.expertise-chips span {
  font-size: 0.82rem; font-weight: 500;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 10px 18px;
  border-radius: 100px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.expertise-chips span:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.quote-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -30px; left: 18px;
  font-family: var(--font-display);
  font-size: 11rem;
  color: var(--coral-soft);
  line-height: 1;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-style: italic;
  line-height: 1.5;
  position: relative;
  max-width: 34ch;
}
.quote-block cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.quote-block cite strong { color: var(--coral-deep); }

/* ---------- Reveal helper (JS sets initial state) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s, background 0.3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--coral-deep); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  /* Bigger, cleanly-framed portrait on mobile, with a clear gap before the name */
  .profile-photo {
    width: min(58%, 220px);
    height: 270px;
    border-radius: 32px;
    margin: 0 auto 28px;
  }
  .profile-photo img { object-position: 50% 16%; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .duo-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-num { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .float-chip--1 { left: 0; }
  .float-chip--2 { right: 0; }
  .filter-bar { top: 8px; }
}

/* ---------- Story hero (About) with the doctor duo ---------- */
.story-hero { overflow: hidden; }
.story-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.story-hero-copy h1 { margin-bottom: 20px; }
.story-hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.story-glow {
  position: absolute;
  inset: 4% 2% 0 2%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 42%, rgba(232, 93, 117, 0.18), rgba(14, 149, 148, 0.12) 52%, transparent 72%);
  z-index: 0;
}
.story-ring {
  position: absolute;
  width: 78%; aspect-ratio: 1;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(20, 36, 61, 0.14);
  border-radius: 50%;
  z-index: 0;
}
.story-ring--2 { width: 94%; border-color: rgba(14, 149, 148, 0.14); }
.story-duo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(20, 36, 61, 0.2));
}
.story-deco { position: absolute; z-index: 1; pointer-events: none; }
.story-deco svg { width: 100%; height: 100%; }
.story-deco--heart { width: 46px; height: 46px; top: 8%; right: 6%; color: var(--teal); }
.story-deco--heart2 { width: 30px; height: 30px; bottom: 20%; left: 2%; color: var(--coral); }
.story-deco--plus { width: 26px; height: 26px; top: 26%; left: 6%; color: var(--gold); }
.story-deco--dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); top: 16%; left: 22%; }
.story-deco--dot2 { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); bottom: 12%; right: 14%; }
.story-deco--ecg { width: 130px; height: 46px; top: 40%; right: -2%; color: var(--coral); z-index: 3; }
.story-chip {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 11px 15px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
}
.story-chip small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 0.7rem; }
.story-chip .ci {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
}
.story-chip .ci svg { width: 19px; height: 19px; }
.story-chip--tl { top: 52%; left: -4%; }
.story-chip--tl .ci { background: var(--coral-soft); color: var(--coral-deep); }

/* Wide name bar across the bottom — carries both doctors + quals, hides the cut edge */
.story-namebar {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  width: 112%;
  max-width: 640px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 15px 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.nb-doc { display: flex; align-items: flex-start; gap: 11px; flex: 1; min-width: 0; }
.nb-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.nb-dot--coral { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.nb-dot--teal { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.nb-doc strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.nb-doc small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--coral-deep);
  margin-top: 2px;
}
.nb-doc:last-child small { color: var(--teal); }
.nb-quals {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-mute);
  margin-top: 3px;
}
.nb-divider { width: 1px; background: rgba(20, 36, 61, 0.1); flex-shrink: 0; }
@media (max-width: 1120px) and (min-width: 901px) {
  .story-namebar { width: 118%; }
  .nb-quals { display: none; }
}
@media (max-width: 560px) {
  .story-namebar {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
  }
  .nb-divider { width: auto; height: 1px; }
}
.story-chip--br { bottom: 8%; right: -4%; }
.story-chip--br .ci { background: var(--teal-soft); color: var(--teal); }
@media (max-width: 900px) {
  .story-hero-grid { grid-template-columns: 1fr; }
  .story-hero-visual {
    min-height: 0; margin-top: 20px; max-width: 460px; margin-inline: auto;
    display: block;              /* stack image, then name bar below it */
  }
  .story-duo { display: block; margin: 0 auto; }
  /* Name bar drops out of the overlap and sits just under the photo, so the full
     figures of both doctors stay visible on phones. */
  .story-namebar {
    position: static;
    transform: none;
    width: 100%;
    max-width: 440px;
    margin: -12px auto 0;
    box-shadow: var(--shadow-md);
  }
  .story-chip--tl { left: 0; }
  .story-chip--br { right: 0; }
}
@media (max-width: 520px) {
  .story-chip { font-size: 0.72rem; padding: 9px 12px; }
  .story-deco--ecg { display: none; }
}

/* ---------- Card heart watermark ---------- */
.condition-card > * { position: relative; z-index: 1; }
.cc-heart {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 132px;
  height: 132px;
  z-index: 0;
  color: var(--accent, var(--coral));
  opacity: 0.055;
  transform: rotate(-8deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.cc-heart svg { width: 100%; height: 100%; }
.condition-card:hover .cc-heart,
.condition-card:focus-visible .cc-heart {
  opacity: 0.14;
  transform: rotate(0deg) scale(1.08);
}
/* Keep card interactions brief and tactile rather than continuously floating. */
.condition-card:hover { box-shadow: var(--shadow-lg); }

/* ---------- Mobile-first tuning for the condition databases ---------- */
@media (max-width: 760px) {
  /* Filters become a single swipeable row instead of a tall wrapped block */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 12px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; scroll-snap-align: start; }

  .conditions-grid { grid-template-columns: 1fr; gap: 14px; }
  .condition-card { padding: 24px; }
  .cc-icon { width: 62px; height: 62px; margin-bottom: 16px; }
  .cc-icon svg { width: 36px; height: 36px; }
  .condition-card h3 { font-size: 1.1rem; }
  .cc-heart { width: 108px; height: 108px; opacity: 0.07; }

  /* Bottom-sheet detail panel with a grab handle */
  .modal { border-radius: 26px 26px 0 0; max-height: 90vh; }
  .modal-head { padding-top: 30px; }
  .modal-head::before {
    content: "";
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 42px; height: 5px;
    border-radius: 3px;
    background: rgba(20, 36, 61, 0.16);
  }
}

/* ---------- Clickable service cards ---------- */
.service-block { cursor: pointer; }
.service-block:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sv-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--coral-deep);
}
.sv-more svg { width: 16px; height: 16px; transition: transform 0.3s; }
.service-block:hover .sv-more svg { transform: translateX(5px); }

/* ---------- Booking wizard ---------- */
.modal--booking {
  width: min(600px, 100%);
  padding: 0;
}
.bk-head {
  padding: 30px clamp(24px, 4vw, 40px) 0;
}
.bk-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--cream-2);
  overflow: hidden;
  margin-bottom: 8px;
}
.bk-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bk-stepcount {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bk-body {
  padding: 18px clamp(24px, 4vw, 40px) 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.bk-step { flex: 1; display: flex; flex-direction: column; }
.bk-q {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 6px;
}
.bk-hint { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 22px; }
.bk-input {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  padding: 14px 4px;
  border: none;
  border-bottom: 2px solid rgba(20, 36, 61, 0.18);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.bk-input:focus { border-color: var(--coral); }
.bk-input::placeholder { color: rgba(20, 36, 61, 0.3); }
textarea.bk-input { resize: none; min-height: 90px; border: 2px solid rgba(20,36,61,0.14); border-radius: 14px; padding: 14px; font-size: 1rem; }
textarea.bk-input:focus { border-color: var(--coral); }
.bk-options { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-opt {
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.92rem; font-weight: 500;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(20, 36, 61, 0.14);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.bk-opt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--coral), 0 6px 16px rgba(232,93,117,0.18); }
.bk-opt.is-selected {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(20, 36, 61, 0.28);
}
.bk-error {
  color: var(--coral-deep);
  font-size: 0.82rem;
  margin-top: 10px;
  min-height: 1.2em;
}
.bk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.bk-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--ink-mute);
  padding: 10px 14px;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.bk-back:hover { color: var(--ink); background: var(--cream-2); }
.bk-back svg { width: 15px; height: 15px; }
.bk-back[hidden] { visibility: hidden; }
.bk-summary { display: grid; gap: 9px; margin-top: 4px; }
.bk-summary li {
  display: flex; justify-content: space-between; gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.bk-summary .k { color: var(--ink-mute); flex-shrink: 0; }
.bk-summary .v { font-weight: 600; text-align: right; }
.bk-success { text-align: center; padding: 26px 0 10px; }
.bk-success .bk-tick {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: grid; place-items: center;
}
.bk-success .bk-tick svg { width: 42px; height: 42px; }
.bk-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.bk-success p { color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; margin: 0 auto 24px; }

/* ---------- Home "book a visit" nudge ---------- */
.book-nudge {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 96;
  width: min(340px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(20, 36, 61, 0.25);
  padding: 22px;
  display: none;
}
.book-nudge.is-visible { display: block; }
.book-nudge .bn-row { display: flex; gap: 14px; align-items: flex-start; }
.book-nudge .bn-heart {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  display: grid; place-items: center;
}
.book-nudge .bn-heart svg { width: 26px; height: 26px; }
.book-nudge h4 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; margin-bottom: 4px; }
.book-nudge p { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 14px; }
.book-nudge .btn { width: 100%; justify-content: center; }
.bn-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-mute);
  transition: background 0.25s, color 0.25s;
}
.bn-close:hover { background: var(--cream-2); color: var(--ink); }
.bn-close svg { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .book-nudge { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ---------- Library page ---------- */
.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.lib-filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lfg-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 2px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.lib-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  text-align: left;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lib-card:hover { box-shadow: var(--shadow-lg); }
.lib-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.lib-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.lib-cover .cover-art, .lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20, 36, 61, 0.18), transparent 46%);
}
.lib-card:hover .cover-art { transform: scale(1.05); }
.lib-cover .cover-art { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.lib-type {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  padding: 6px 11px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}
.lib-type svg { width: 13px; height: 13px; }
.lib-type--video { color: var(--coral-deep); }
.lib-duration {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 9px; border-radius: 100px;
  background: rgba(20, 36, 61, 0.72); color: #fff;
}
.lib-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.lib-play span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lib-play span svg { width: 22px; height: 22px; color: var(--coral-deep); margin-left: 3px; }
.lib-card:hover .lib-play span { transform: scale(1.14); }
.lib-inner { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.lib-spec {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.lib-spec--paed { color: var(--coral-deep); }
.lib-spec--adult { color: var(--teal); }
.lib-card h3 { font-size: 1.12rem; line-height: 1.32; margin-bottom: 8px; }
.lib-card .lib-excerpt {
  font-size: 0.86rem; color: var(--ink-mute); flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lib-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.76rem; color: var(--ink-soft); }
.lib-meta .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex-shrink: 0; }
.lib-meta .sep { opacity: 0.4; }

/* Library modal (article + video) */
.lib-modal-cover {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  position: relative; margin-bottom: 26px;
  background: #0d1a2c;
}
.lib-modal-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-modal-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-modal-poster { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.lib-modal-poster .cover-art, .lib-modal-poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-modal-poster .lib-play span { width: 76px; height: 76px; }
.lib-modal-poster .lib-play span svg { width: 30px; height: 30px; }
.lib-modal-metabar { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 0.82rem; color: var(--ink-mute); }
.lib-modal-metabar .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.lib-modal-metabar strong { color: var(--ink); }
.lib-article-body h4 { font-family: var(--font-display); font-size: 1.2rem; margin: 24px 0 8px; }
.lib-article-body p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 14px; }
.lib-article-body ul { margin: 4px 0 16px; padding-left: 4px; }
.lib-article-body li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 8px; }
.lib-article-body li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--coral)); margin-top: 8px; }

@media (max-width: 760px) {
  .lib-filters { gap: 12px 18px; }
  .lib-filter-group {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .lib-filter-group::-webkit-scrollbar { display: none; }
  .lfg-label { flex-shrink: 0; }
  .filter-chip { flex: 0 0 auto; }
  .library-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Services: mobile swipe deck ---------- */
.svc-deck-section { display: none; }   /* hidden on desktop; shown on mobile below */

@media (max-width: 760px) {
  .svc-desktop { display: none; }
  .svc-deck-section {
    display: block;
    padding-top: clamp(28px, 8vw, 48px);
    overflow: hidden;
  }
  .svc-deck-head { text-align: center; padding: 0 20px; margin-bottom: 22px; }
  .svc-deck-head .eyebrow { justify-content: center; }
  .svc-deck-head h2 { font-size: 1.5rem; }
  .svc-deck-hint { font-size: 0.8rem; color: var(--ink-mute); margin-top: 6px; }

  .svc-deck {
    position: relative;
    width: min(88vw, 400px);
    height: 460px;
    margin: 0 auto;
    touch-action: pan-y;
  }
  .svc-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 26px 24px;
    border-top: 5px solid var(--accent, var(--coral));
    will-change: transform;
    cursor: grab;
    -webkit-user-select: none; user-select: none;
  }
  .svc-card:active { cursor: grabbing; }
  .svc-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .svc-card-num {
    font-family: var(--font-display); font-style: italic;
    font-size: 1.9rem; line-height: 1; color: var(--accent, var(--coral));
  }
  .svc-card-spec {
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-mute);
  }
  .svc-card h3 { font-size: 1.35rem; line-height: 1.24; margin-bottom: 12px; }
  .svc-card-desc {
    font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
  }
  .svc-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20,36,61,0.08);
  }
  .svc-card-tagcount { font-size: 0.76rem; color: var(--ink-mute); }
  .svc-card-more {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.82rem; font-weight: 600; color: var(--accent, var(--coral));
  }
  .svc-card-more svg { width: 15px; height: 15px; }

  .svc-deck-controls {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    margin-top: 26px;
  }
  .svc-nav {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--white); box-shadow: var(--shadow-md);
    display: grid; place-items: center; color: var(--ink);
    transition: transform 0.25s, background 0.25s, color 0.25s, opacity 0.25s;
  }
  .svc-nav svg { width: 22px; height: 22px; }
  .svc-nav:active { transform: scale(0.9); }
  .svc-nav:disabled { opacity: 0.35; pointer-events: none; }
  .svc-nav.svc-next { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(232,93,117,0.4); }
  .svc-counter { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); min-width: 54px; text-align: center; }
  .svc-counter b { color: var(--coral-deep); }

  /* deck detail modal */
  .svc-modal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .svc-modal-title { font-size: 1.5rem; line-height: 1.24; margin-bottom: 16px; }
  .svc-modal-desc { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
  .svc-modal-label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent, var(--coral)); margin-bottom: 12px;
  }
  .svc-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
  .svc-modal-tags span {
    font-size: 0.8rem; background: var(--cream-2); color: var(--ink-soft);
    padding: 8px 15px; border-radius: 100px;
  }
  .svc-modal-cta { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
