/* ─────────────────────────────────────────────────────────────────────
   Allexia · public marketing site
   Layered on top of /css/app.css (re-uses brand tokens, fonts).
   Three signature moves:
     · Heartbeat sync (70 BPM = 857ms) — hero dot + heart card pulse
     · ECG section dividers (draw-in on scroll via IntersectionObserver)
     · Cinematic hero load orchestration (sequenced reveals)
   ───────────────────────────────────────────────────────────────────── */

/* === HEARTBEAT (70 BPM, 857ms per cycle) ============================= */
/* Real-resting-heart-rate cadence. Used by hero status dot + heart card. */
@keyframes ekg-beat {
  0%   { transform: scale(1);    }
  10%  { transform: scale(1.18); } /* sharp upstroke */
  20%  { transform: scale(0.96); } /* dicrotic dip   */
  30%  { transform: scale(1.07); } /* secondary peak */
  100% { transform: scale(1);    }
}
@keyframes ekg-glow {
  0%   { filter: drop-shadow(0 0 0  rgba(165, 30, 44, 0.55)); }
  20%  { filter: drop-shadow(0 0 6px rgba(165, 30, 44, 0));   }
  100% { filter: drop-shadow(0 0 0  rgba(165, 30, 44, 0));    }
}
.hero-eyebrow .heart-pulse {
  display: inline-block;
  width: 20px; height: 20px;
  color: var(--rose);
  vertical-align: -4px;
  margin-right: 4px;
  overflow: visible;
  animation: ekg-beat 857ms cubic-bezier(0.4, 0, 0.2, 1) infinite,
             ekg-glow 857ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 50% 65%; /* pulse from apex, not center — anatomically right */
  flex-shrink: 0;
}
/* (Removed: portrait pulse — pulsing a real photograph reads as uncanny
   breathing, not "site is alive." Heart icon in eyebrow carries the
   heartbeat signal on its own.) */

/* === ECG SECTION DIVIDERS ============================================ */
.ekg-divider {
  display: block;
  width: 100%;
  height: 56px;
  position: relative;
  overflow: hidden;
}
.ekg-divider svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.ekg-divider path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  opacity: 0.6;
  transition: stroke-dashoffset 2200ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 800ms ease-out 400ms;
}
.ekg-divider.in-view path {
  stroke-dashoffset: 0;
  opacity: 0.85;
}
.ekg-divider::after {
  /* tiny brass marker at the right end — "end of trace" */
  content: '';
  position: absolute;
  right: 6%; top: 50%;
  width: 5px; height: 5px;
  background: var(--brass);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 500ms ease 2400ms;
}
.ekg-divider.in-view::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ekg-divider path { transition: none; stroke-dashoffset: 0; opacity: 0.5; }
}

/* === HERO LOAD ORCHESTRATION ========================================== */
/* Cinematic staggered reveal of hero parts. Total ~1.6s before all are in. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-rise-tight {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-curtain {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero-text > * { opacity: 0; }
.hero-text .hero-eyebrow  { animation: hero-rise-tight 600ms cubic-bezier(0.2, 0, 0, 1) 80ms forwards; }
.hero-text .hero-h        { animation: hero-rise 800ms cubic-bezier(0.2, 0, 0, 1) 220ms forwards; }
.hero-text .hero-tagline  { animation: hero-rise 700ms cubic-bezier(0.2, 0, 0, 1) 480ms forwards; }
.hero-text .hero-sub      { animation: hero-rise 700ms cubic-bezier(0.2, 0, 0, 1) 640ms forwards; }
.hero-text .trust-row     { animation: hero-rise 700ms cubic-bezier(0.2, 0, 0, 1) 800ms forwards; }
.hero-text .hero-cta      { animation: hero-rise 700ms cubic-bezier(0.2, 0, 0, 1) 960ms forwards; }
.hero-text .hero-strip    { animation: hero-rise 700ms cubic-bezier(0.2, 0, 0, 1) 1120ms forwards; }

/* Portrait reveals alongside the headline */
.hero-portrait { opacity: 0; animation: hero-rise 1000ms cubic-bezier(0.2, 0, 0, 1) 350ms forwards; }

/* Only the word "heart" gets the curtain reveal — single italic word */
.hero-h em {
  position: relative;
  font-style: italic;
  color: var(--brand);
}
.hero-h em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 4px;
  background: var(--brass);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: heart-underline 900ms cubic-bezier(0.65, 0, 0.35, 1) 800ms forwards;
}
@keyframes heart-underline {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-stack, .hero-portrait { opacity: 1; animation: none; }
  .hero-h em::after { transform: scaleX(1); animation: none; }
}

/* === MARGINALIA NUMBERING ON SECTIONS ================================ */
.section-head .eyebrow {
  position: relative;
}
.section-mark {
  position: absolute;
  left: -38px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 999px) {
  .section-mark { position: static; transform: none; margin-right: 10px; display: inline; }
}

body.site {
  background: var(--paper);
  color: var(--ink);
}
body.site::before { display: none; }   /* drop the app's blueprint wash */

/* ── Layout primitives ────────────────────────────────────────────── */
.site-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
@media (min-width: 900px) { .site-wrap { padding: 0 40px; } }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.section-head { max-width: 720px; margin: 0 0 38px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 12px; }
.section-head .lead { font-size: 17px; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .rule {
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--brass);
  border-radius: 1px;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }

/* ── Sticky emergency strip — calm, always reachable, no animation ── */
.emergency-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  border-top: 3px solid var(--rose);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 14px;
}
.emergency-bar .em-label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; gap: 6px;
}
.emergency-bar .em-label .dot {
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  display: inline-block;
}
.emergency-bar a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: opacity 160ms;
}
.emergency-bar a:hover { opacity: 0.85; }
.emergency-bar a svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}
.emergency-bar .em-call { color: #fff; }
.emergency-bar .em-wa   { color: #ffffff; }
.emergency-bar .em-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.16);
}

/* Desktop: tighter, only on the right; mobile: full-width */
@media (min-width: 900px) {
  .emergency-bar {
    left: auto; right: 22px; bottom: 22px;
    border-radius: 12px;
    border-top: none;
    border-left: 3px solid var(--rose);
    padding: 12px 18px;
    gap: 16px;
    box-shadow: 0 10px 30px -10px rgba(10,31,68,0.45), 0 4px 10px -4px rgba(10,31,68,0.25);
  }
}

/* Reserve space at the bottom of pages so content doesn't get covered */
@media (max-width: 899px) {
  body.site { padding-bottom: 64px; }
}

/* ── Top nav — tighter, larger logo, less vertical waste ─────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;             /* solid — no see-through */
  border-bottom: 1px solid var(--line);
  transition: border-color 240ms ease,
              box-shadow 240ms ease,
              height 240ms ease;
}
.site-nav.scrolled {
  box-shadow: 0 8px 28px -16px rgba(10, 31, 68, 0.18),
              0 2px 6px -3px rgba(10, 31, 68, 0.06);
}
.site-nav.scrolled .site-wrap { height: 54px; }
.site-nav.scrolled .site-brand { font-size: 19px; }
.site-nav.scrolled .site-brand .bm { height: 22px; }
.site-nav .site-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 21px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.site-brand .bm {
  width: 3px; height: 26px;
  background: var(--brass);
  border-radius: 2px;
}
.site-links {
  display: flex; align-items: center; gap: 2px;
}
.site-links a {
  padding: 7px 11px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r);
  transition: color 160ms, background 160ms;
  letter-spacing: -0.005em;
}
.site-links a:hover { color: var(--ink); background: var(--paper-tint); }
.site-links a.cta {
  background: var(--brand); color: #fff;
  padding: 9px 16px;
  margin-left: 10px;
  font-weight: 600;
  letter-spacing: 0;
}
.site-links a.cta:hover { background: var(--brand-deep); }

.site-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 8px 10px;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 899px) {
  .site-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }
  .site-links.open { display: flex; }
  .site-links a { padding: 12px 14px; border-radius: var(--r); }
  .site-links a.cta { margin: 6px 0 0; text-align: center; }
  .site-burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(900px 600px at 110% -20%, rgba(13, 41, 102, 0.08), transparent 60%),
    var(--paper);
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
/* Real hospital exterior, washed back as atmospheric texture.
   Positioned LOW (center 95%) so the painted banner-signage is cropped
   off the top — only the building body + entrance + greenery shows.
   Light blur so architecture is still readable as architecture, but no
   crisp text artefacts. */
/* Hospital exterior — sits behind the right-half (doctor portrait area)
   ONLY. Left half stays clean ivory so the headline + trust copy reads
   with maximum contrast. Fades horizontally across the middle so the
   transition is invisible, never a hard edge. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/site/hospital-banner.jpg') center 50% / cover no-repeat;
  opacity: 0.55;
  z-index: -1;
  /* Light blur fakes DSLR depth-of-field on a flat daylight capture —
     architectural-photography polish without re-shooting */
  filter: blur(1.5px) contrast(1.04) saturate(1.02) brightness(1.04);
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0) 62%
  );
          mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0) 62%
  );
}
/* Mobile: stack vertically — don't show the image bg at all, keep things tight */
@media (max-width: 899px) {
  .hero::before { display: none; }
}
@media (min-width: 900px) { .hero { padding: 44px 0 76px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
    padding: 0 40px;
  }
}
@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
/* Legacy .dot kept for back-compat — heart-pulse replaces it in the hero */
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.hero-h {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-h em {
  font-style: italic;
  color: var(--brand);
  font-weight: 600;
  position: relative;
}

/* Hindi tagline — heavier weight, brand color, underline accent */
.hero-tagline {
  font-family: 'Hind', var(--font-body);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: 0.005em;
  line-height: 1.35;
}
.tag-underline {
  background-image: linear-gradient(to right, var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  padding-bottom: 2px;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 520px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* Trust chip row — credentials at a glance */
.trust-row {
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none; padding: 0;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-mark {
  color: var(--brass);
  font-size: 14px;
  line-height: 1;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 0 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--r);
  transition: transform 80ms, background 200ms, border-color 200ms, box-shadow 200ms;
  cursor: pointer;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 6px 20px -8px rgba(13, 41, 102, 0.45),
              0 2px 4px -2px rgba(13, 41, 102, 0.18);
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); box-shadow: 0 10px 28px -8px rgba(13, 41, 102, 0.55), 0 3px 6px -3px rgba(13, 41, 102, 0.25); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* Bigger, more dominant primary CTA on hero */
.btn-primary-lg {
  height: 58px;
  padding: 0 30px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-primary-lg .cta-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.btn-primary-lg:hover .cta-arrow { transform: translateX(4px); }

/* Phone CTA — text link, deliberately quieter than the primary */
.cta-phone {
  display: inline-flex; align-items: center; gap: 8px;
  height: 58px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 200ms;
}
.cta-phone:hover { color: var(--brand); }
.cta-phone svg { color: var(--brand); flex-shrink: 0; }
.cta-phone-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-phone-num {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cta-phone:hover .cta-phone-num { color: var(--brand); }

.btn-on-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 32px;
  background: var(--brass); color: #fff;
  border-radius: var(--r);
  font-weight: 700; font-size: 16px;
  white-space: nowrap;
  transition: transform 80ms, background 200ms;
}
.btn-on-dark:hover { background: #8a6c2d; }
.btn-on-dark:active { transform: scale(0.98); }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}
@media (min-width: 720px) {
  .hero-strip { grid-template-columns: repeat(4, 1fr); gap: 16px 22px; }
}
.hero-strip > div {
  position: relative;
  padding-left: 14px;
}
.hero-strip > div::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 2px; height: calc(100% - 4px);
  background: var(--brass);
  opacity: 0.7;
  border-radius: 1px;
}
.hero-strip .num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-strip sup { font-size: 13px; vertical-align: super; color: var(--brass); }
.hero-strip .lbl {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin-top: 6px;
  line-height: 1.35;
}

/* ── Hero portrait — real doctor photo, trust-first ───────────────── */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.hero-portrait figure {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(10, 31, 68, 0.35),
              0 12px 30px -10px rgba(10, 31, 68, 0.18);
  border: 1px solid var(--line);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center 32%;
}
.hero-portrait figcaption {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.hp-line {
  font-family: 'Hind', var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0;
}
.hp-line.hp-en {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--brand);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.hp-role {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hp-degrees {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Decorative dashed frame behind portrait (subtle anchor) */
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 12px -16px -16px 12px;
  border: 1px dashed rgba(13, 41, 102, 0.18);
  border-radius: var(--r-xl);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 899px) { .hero-portrait::before { display: none; } }

/* Hero secondary visual — anatomical heart plate with stacked-card depth */
.hero-visual {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hero-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
@media (min-width: 1100px) { .hero-stack { max-width: 440px; } }

.hero-stack::before,
.hero-stack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
/* Furthest card: rotated more, lower */
.hero-stack::before {
  z-index: 1;
  transform: rotate(-6deg) translate(-14px, 18px);
  background:
    linear-gradient(135deg, var(--paper-tint) 0%, #fff 100%);
}
/* Middle card */
.hero-stack::after {
  z-index: 2;
  transform: rotate(3.5deg) translate(10px, -10px);
  background:
    linear-gradient(135deg, #fff 0%, var(--paper) 100%);
}

.hero-anatomy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 600ms cubic-bezier(0.2, 0, 0, 1);
}
.hero-anatomy:hover { transform: rotate(0deg) translateY(-2px); }
@media (max-width: 899px) {
  .hero-anatomy { transform: rotate(-0.8deg); }
  .hero-stack::before { transform: rotate(-5deg) translate(-10px, 14px); }
  .hero-stack::after  { transform: rotate(3deg)  translate(8px, -8px); }
}
.hero-anatomy img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-xl) - 14px);
}

/* Rotator: stacked images that crossfade between specialties */
.rot-plates {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 14px);
  background: var(--paper-tint);
}
.rot-plates img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 4000ms ease-out;
  pointer-events: none;
  border-radius: 0;
}
.rot-plates img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.rot-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 10px 0 2px;
}
.rot-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1), background 280ms;
}
.rot-dots .dot:hover { background: var(--muted-2); }
.rot-dots .dot.active {
  width: 22px;
  background: var(--brand);
  border-radius: 4px;
}
.hero-anatomy figcaption {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 12px 8px 2px;
  margin-top: 2px;
}
.hero-anatomy .cap-hi {
  font-family: 'Hind', var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
  letter-spacing: -0.005em;
}
.hero-anatomy .cap-en {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Doctor business-card-ish floating visual (kept for /doctors page) */
.hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  z-index: 2;
}
.hc-photo {
  aspect-ratio: 1 / 0.95;
  background: var(--paper-tint) url('/assets/site/banner-msm.jpg') no-repeat center / cover;
  border-bottom: 1px solid var(--line);
}
.hc-body {
  padding: 18px 22px 22px;
  text-align: center;
}
.hc-name {
  font-family: 'Hind', var(--font-body);
  font-weight: 600; font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hc-name-en {
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  margin-top: 2px;
  letter-spacing: -0.005em;
  color: var(--brand);
}
.hc-creds {
  font-size: 13px; font-weight: 500;
  margin-top: 4px;
  color: var(--ink-soft);
}
.hc-degrees {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-deco { display: none; }   /* superseded by .hero-stack::before/::after */

/* ── Anatomy / four-pillars section (landing page) ───────────────── */
.anatomy-section {
  background:
    radial-gradient(700px 500px at 110% 10%, rgba(13, 41, 102, 0.04), transparent 60%),
    radial-gradient(600px 400px at -10% 90%, rgba(160, 127, 58, 0.04), transparent 50%);
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px)  { .pillar-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1100px) { .pillar-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.pillar {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 26px 26px;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 280ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 280ms,
              border-color 280ms;
  overflow: hidden;
}
.pillar::after {
  /* large faint number watermark */
  content: '';
  position: absolute;
  inset: auto -10px -10px auto;
  width: 110px; height: 110px;
  background: var(--paper-tint);
  border-radius: 50%;
  z-index: 0;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.pillar:hover .pillar-ico { color: var(--brand); transform: scale(1.04); }
.pillar:hover .pillar-arrow { transform: translateX(4px); color: var(--brand); }

.pillar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--brass);
}
.pillar-ico {
  width: 38px; height: 38px;
  color: var(--ink);
  transition: color 280ms, transform 280ms cubic-bezier(0.2, 0, 0, 1);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
  position: relative; z-index: 1;
}
.pillar p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
  position: relative; z-index: 1;
}
.pillar-arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted-2);
  transition: transform 280ms, color 280ms;
  position: relative; z-index: 1;
  align-self: flex-start;
}

/* ── Plate-card grid — infographic plates as section cards ────────── */
.plate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px)  { .plate-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1100px) { .plate-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.plate-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 280ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 280ms, border-color 280ms;
}
.plate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.plate-img {
  aspect-ratio: 1 / 1;
  background: var(--paper-tint);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.plate-img img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0, 0, 1);
}
.plate-card:hover .plate-img img { transform: scale(1.03); }

.plate-meta {
  padding: 22px 24px 26px;
  position: relative;
  display: flex; flex-direction: column;
  flex: 1;
}
.plate-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass);
}
.plate-meta h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 60px 8px 0;
}
.plate-meta p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 14px;
}
.plate-arrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  align-self: flex-start;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.plate-card:hover .plate-arrow { transform: translateX(4px); }

/* ── Services grid ─────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.svc:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.svc-ico {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.svc p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Service card with anatomical plate header */
.svc.svc-with-plate { padding: 0; overflow: hidden; }
.svc.svc-with-plate > h3,
.svc.svc-with-plate > p {
  padding-left: 24px;
  padding-right: 24px;
}
.svc.svc-with-plate > h3 { padding-top: 22px; }
.svc.svc-with-plate > p:last-child { padding-bottom: 24px; }
.svc-plate {
  aspect-ratio: 1 / 1;
  background: var(--paper-tint);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc-plate img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0, 0, 1);
}
.svc.svc-with-plate:hover .svc-plate img { transform: scale(1.04); }

/* ── About section ─────────────────────────────────────────────────── */
.about-section {
  background: linear-gradient(180deg, transparent, var(--paper-tint) 90%);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }

.about-grid h2 { margin: 6px 0 16px; }
.about-grid p { font-size: 16px; line-height: 1.65; margin-bottom: 14px; color: var(--ink-soft); }
.about-grid strong { color: var(--ink); font-weight: 600; }
.about-grid em { font-style: italic; color: var(--brand); }

.about-points {
  list-style: none; padding: 0; margin: 18px 0;
  border-top: 1px solid var(--line);
}
.about-points li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 22px;
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px;
  font-weight: 600; color: var(--brand);
  font-size: 15px;
}

.about-quote {
  position: relative;
  padding: 44px 38px 38px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px -24px rgba(10, 31, 68, 0.35);
}
.about-quote .q-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.5;
  color: var(--brass);
  display: block;
  margin-bottom: 18px;
}
.about-quote p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.55;
  font-style: italic;
  color: #fff;
}
.about-quote .q-attr {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Editorial pull-quote — interrupts long body copy with a moment to breathe */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding: 6px 0 6px 24px;
  margin: 28px 0 28px 4px;
}
.pull-quote em {
  font-style: italic;
  color: var(--brand);
}

/* ── Appointment dark CTA ──────────────────────────────────────────── */
.appt-cta { padding-top: 0; padding-bottom: 0; }
.appt-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 48px 32px;
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .appt-card { grid-template-columns: 1.4fr auto; padding: 56px 48px; gap: 48px; }
}
.appt-card h2.on-dark {
  color: #fff;
  margin: 8px 0 12px;
  font-size: clamp(26px, 3vw, 34px);
}
.appt-card .on-dark-sub { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.6; }
.appt-bullets {
  list-style: none; padding: 0; margin: 22px 0 0;
}
.appt-bullets li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
}
.appt-bullets li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--brass);
  font-weight: bold;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-foot {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  margin-top: 64px;
}
.foot-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.foot-grid p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.6; }
.foot-grid a { color: var(--ink-soft); }
.foot-grid a:hover { color: var(--brand); }
.foot-sub { margin-top: 12px; max-width: 280px; }
.staff-link { color: var(--muted-2) !important; font-size: 13px; }

.foot-rule {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 22px;
  padding-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
}
.foot-tagline {
  font-family: 'Hind', var(--font-body);
  letter-spacing: normal;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

/* ── Generic content pages (about, services, doctors, contact) ────── */
.page-hero {
  background: linear-gradient(180deg, var(--paper-tint), transparent);
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 8px;
  letter-spacing: -0.022em;
}
.page-hero p { font-size: 17px; color: var(--ink-soft); max-width: 640px; }

/* ── Appointment form (dedicated page) ──────────────────────────────── */
.appt-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .appt-form { padding: 48px; } }
.appt-form .row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .appt-form .row-2 { grid-template-columns: 1fr 1fr; gap: 22px; } }

.appt-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.appt-form .field { margin-bottom: 20px; }

/* ─────────────────────────────────────────────────────────────────────
   MOBILE POLISH PASS  (≤ 720px)
   Tighter spacing, smaller display sizes, denser layouts so the site
   reads like a polished product not a stretched-down desktop page.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Section vertical rhythm — desktop has 64-96px, mobile gets 44-56 */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 26px; line-height: 1.18; }
  .section-head .lead { font-size: 15px; line-height: 1.55; }

  /* Hero — tighter top/bottom, smaller display sizes, less wasted air */
  .hero { padding: 24px 0 36px; }
  .hero-grid { gap: 32px; }
  .hero-h {
    font-size: clamp(32px, 8.5vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.022em;
    margin-bottom: 12px;
  }
  .hero-tagline { font-size: 18px; line-height: 1.4; margin-bottom: 16px; }
  .hero-sub { font-size: 15.5px; line-height: 1.55; margin-bottom: 18px; }

  /* Trust chips — denser, smaller, no cramped wrap */
  .trust-row {
    gap: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
    padding-top: 14px;
    margin-bottom: 22px;
  }
  .trust-mark { font-size: 12px; }

  /* CTA row — stack instead of fighting for width on phones */
  .hero-cta { gap: 10px; margin-bottom: 24px; flex-direction: column; align-items: stretch; }
  .btn-primary-lg { height: 54px; font-size: 15px; width: 100%; }
  .cta-phone {
    height: auto; padding: 6px 0;
    justify-content: center; align-self: center;
  }

  /* Stats — 2×2 on phone, tighter */
  .hero-strip { padding-top: 18px; gap: 14px 18px; }
  .hero-strip .num { font-size: 22px; }
  .hero-strip .lbl { font-size: 11.5px; margin-top: 4px; }

  /* Hero portrait — slightly less dramatic shadow on mobile,
     allow it to span full width comfortably */
  .hero-portrait figure {
    box-shadow: 0 18px 40px -18px rgba(10, 31, 68, 0.30),
                0 6px 16px -8px rgba(10, 31, 68, 0.14);
  }
  .hp-line { font-size: 16px; }
  .hp-line.hp-en { font-size: 15px; }
  .hp-role { font-size: 12.5px; }
  .hp-degrees { font-size: 10.5px; }

  /* Anatomy "What we know best" plates — 2 per row on phones >=440px
     so users see more content per scroll page */
  .plate-grid { gap: 14px; }
  .plate-meta { padding: 16px 16px 18px; }
  .plate-meta h3 { font-size: 18px; }
  .plate-meta p { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
  .plate-num { top: 16px; right: 16px; }
  .plate-arrow { font-size: 10.5px; }

  /* Services grid + appt-card */
  .services-grid { gap: 14px; }
  .svc { padding: 22px 20px; }
  .svc h3 { font-size: 17px; }
  .svc p { font-size: 13.5px; line-height: 1.5; }
  .appt-card { padding: 32px 22px; gap: 20px; }
  .appt-card h2.on-dark { font-size: 22px; line-height: 1.22; }
  .appt-card .on-dark-sub { font-size: 14px; line-height: 1.5; }
  .btn-on-dark { height: 50px; padding: 0 24px; font-size: 14.5px; width: 100%; }
  .appt-bullets li { font-size: 13.5px; }

  /* Quote card on /about — tighter, no crowding */
  .about-quote { padding: 30px 24px 26px; }
  .about-quote .q-mark { font-size: 52px; margin-bottom: 14px; }
  .about-quote p { font-size: 18px; line-height: 1.5; }
  .about-quote .q-attr { margin-top: 20px; padding-top: 14px; font-size: 10.5px; }

  /* About grid — single column, equal rhythm */
  .about-grid { gap: 28px; }

  /* Page hero on internal pages */
  .page-hero { padding: 36px 0 26px; }
  .page-hero h1 { font-size: clamp(28px, 7.5vw, 36px); }
  .page-hero p { font-size: 15.5px; }

  /* Pull-quote on /about — tighter padding */
  .pull-quote {
    font-size: 19px; line-height: 1.4;
    padding: 4px 0 4px 18px;
    margin: 22px 0;
  }

  /* Footer — denser, no per-column header bloat */
  .foot-grid { gap: 28px; }
  .foot-grid h4 { font-size: 10.5px; margin-bottom: 8px; }
  .foot-grid p { font-size: 13.5px; margin-bottom: 10px; }
  .foot-sub { font-size: 13px; }
  .foot-rule { font-size: 10.5px; padding-top: 18px; padding-bottom: 20px; flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Emergency bar — drop the verbose label on phone, two compact equal-width actions */
  .emergency-bar {
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    font-size: 13.5px;
    gap: 0;
  }
  .emergency-bar .em-label { display: none; }    /* red top-border already says "emergency" */
  .emergency-bar .em-divider {
    height: 22px;
    margin: 0 6px;
    background: rgba(255,255,255,0.18);
  }
  .emergency-bar a {
    flex: 1;
    justify-content: center;
    padding: 4px 6px;
    gap: 6px;
    white-space: nowrap;
    font-size: 13.5px;
    letter-spacing: 0;
  }
  .emergency-bar .em-call span { font-weight: 700; }
  .emergency-bar a svg { width: 14px; height: 14px; }
  body.site { padding-bottom: 56px; }

  /* Site nav (top bar) — tighter on phone */
  .site-nav .site-wrap { height: 54px; }
  .site-brand { font-size: 18px; gap: 9px; }
  .site-brand .bm { height: 20px; }

  /* Mobile-menu drawer — readable spacing */
  .site-links a { padding: 13px 14px; font-size: 14.5px; }
  .site-links a.cta { font-size: 14.5px; }
}

/* Extra-small phones (≤ 380px wide — iPhone SE, mini, older Androids) */
@media (max-width: 380px) {
  .hero-h { font-size: 30px; }
  .hero-strip { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .hero-strip .num { font-size: 20px; }
  .trust-row li { font-size: 10.5px; }
  .emergency-bar { font-size: 12.5px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .emergency-bar a { font-size: 12.5px; }
}
