/* ── Thirumalai Mission Hospital — premium motion & atmosphere layer ──────────
   Built on top of the Tailwind CDN. The brand (warm orange, Plus Jakarta Sans +
   Inter, clinical-but-warm) is preserved; this layer adds depth, buttery motion
   and tasteful micro-interactions. Tuned for Chrome but degrades gracefully:
   every entrance animation is gated behind `.js` (set by an inline <head>
   script) and every ambient animation behind prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --tmh-primary: #f47920;
  --tmh-primary-deep: #d96a12;
  /* Accessible companions: cta = solid bg under white text (4.5:1),
     ink = small orange text on white/cream (5.0:1) */
  --tmh-primary-cta: #c2570f;
  --tmh-primary-ink: #b4540a;
  --tmh-accent:  #d22027;
  --tmh-dark:    #1e1e1e;
  --tmh-cream:   #fffaf7;

  /* Signature easings */
  --ease-out-soft: cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Warm-tinted shadows give the whole site a richer, premium glow */
  --shadow-warm:   0 24px 60px -28px rgba(244, 121, 32, 0.45);
  --shadow-soft:   0 18px 48px -24px rgba(30, 30, 30, 0.28);
}

html {
  scroll-behavior: smooth;
  /* Anchor jumps clear the sticky header */
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* When Lenis momentum-scroll is active it drives scrolling itself */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Sharper, more refined text selection in brand colour */
::selection { background: rgba(244, 121, 32, 0.22); color: var(--tmh-dark); }

/* ─────────────────────────────────────────────────────────────────────────
   Accessibility — visible keyboard focus everywhere
   ───────────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--tmh-primary);
  outline-offset: 2px;
}
/* On dark surfaces the orange ring reads poorly — switch to white */
.bg-dark :focus-visible,
footer :focus-visible {
  outline-color: #fff;
}
/* Keyboard-opened nav dropdowns (hover handled by Tailwind group-hover) */
[data-dropdown].is-open [data-dropdown-panel] { display: block; }

/* Sticky mobile action bar gets out of the way while a dialog is open */
body.modal-open #mobile-cta, body.modal-open #scroll-progress { display: none; }

/* FAQ disclosures — native <details> with a rotating chevron */

/* ─────────────────────────────────────────────────────────────────────────
   Scroll progress bar (top of viewport)
   ───────────────────────────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
  background: linear-gradient(90deg, var(--tmh-primary), var(--tmh-accent) 60%, #ffb066);
  box-shadow: 0 0 12px rgba(244, 121, 32, 0.6);
  pointer-events: none;
}
/* Chrome scroll-driven animation drives it with zero JS where supported */
@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progressGrow { to { transform: scaleX(1); } }
}

/* ─────────────────────────────────────────────────────────────────────────
   Section label — orange bar + uppercase eyebrow
   ───────────────────────────────────────────────────────────────────────── */
.section-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--tmh-primary); }
.section-label span {
  color: var(--tmh-primary-ink); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
}

/* Gradient brand text — for headline accents */
.text-gradient-brand {
  background: linear-gradient(100deg, var(--tmh-primary) 10%, #ff9a4d 55%, var(--tmh-accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* With background-clip:text the paint box is the line box; a tight
     line-height clips glyph descenders ("p", rounded bottoms). Reserve a little
     room below and cancel it with a negative margin so layout is unaffected. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

/* Bento / mosaic grid */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 220px); gap: 12px; }
@media (max-width: 768px) { .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } }

body.modal-open { overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────
   Decorative ambient orbs — soft warm light blooms behind sections.
   Add `.has-orbs` to a `position: relative` section and drop `.orb` children.
   ───────────────────────────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.orb-primary { background: radial-gradient(circle at 30% 30%, rgba(244,121,32,0.55), transparent 70%); }
.orb-accent  { background: radial-gradient(circle at 30% 30%, rgba(210,32,39,0.40), transparent 70%); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  /* ── Scroll reveal — fade + rise + gentle un-blur + scale settle ──────────
     Hidden at first paint by structural selectors (gated by `.js`), JS adds
     `.is-visible` as each element enters the viewport. Without JS nothing hides. */
  .js [data-reveal],
  .js main > section h1:not(.hero-headline),
  .js main > section h2,
  .js main > section .grid > *,
  .js main > section img.rounded-2xl,
  .js main > section img.rounded-3xl {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ease-out-soft),
                transform 0.45s var(--ease-out-soft);
    transition-delay: var(--reveal-delay, 0ms);
  }
  /* Already on screen at load (set by tmh.js) — appear instantly */
  .js .reveal-now { transition: none !important; }
  .js [data-reveal].is-visible,
  .js main > section h1.is-visible,
  .js main > section h2.is-visible,
  .js main > section .grid > .is-visible,
  .js main > section img.rounded-2xl.is-visible,
  .js main > section img.rounded-3xl.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Directional reveal variants */
  .js [data-reveal="left"]  { transform: translateX(-20px); }
  .js [data-reveal="right"] { transform: translateX(20px); }
  .js [data-reveal="scale"] { transform: scale(0.96); }
  .js [data-reveal].is-visible { transform: none; }

  /* Nav dropdown menus */
  .nav-dropdown { animation: navDropIn 0.22s var(--ease-out-soft); transform-origin: top center; }
  @keyframes navDropIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

  /* Hero banner — slow ken-burns drift behind the headline */
  .hero-kenburns { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
  @keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); } }

  /* Warm aurora glow drifting inside the hero */
  .hero-aurora {
    background:
      radial-gradient(40% 50% at 15% 30%, rgba(244,121,32,0.40), transparent 70%),
      radial-gradient(45% 55% at 85% 70%, rgba(210,32,39,0.32), transparent 72%),
      radial-gradient(30% 40% at 60% 15%, rgba(255,170,90,0.30), transparent 70%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
    will-change: transform, opacity;
  }
  @keyframes auroraDrift {
    0%   { transform: translate3d(-3%, -2%, 0) scale(1.05); opacity: 0.85; }
    50%  { transform: translate3d(2%, 3%, 0)  scale(1.12); opacity: 1; }
    100% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 0.9; }
  }

  /* Staggered word-by-word entrance for the hero headline.
     Words are wrapped in <span class="reveal-word"> in the template. */
  .hero-headline .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em) rotate(2deg);
    filter: blur(12px);
    animation: wordIn 0.9s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--w, 0) * 90ms + 120ms);
  }
  @keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }

  /* Hero supporting content fades up after the headline */
  .hero-fade { opacity: 0; transform: translateY(18px); animation: heroFade 0.6s var(--ease-out-soft) forwards; animation-delay: var(--d, 300ms); }
  @keyframes heroFade { to { opacity: 1; transform: none; } }

  /* Floating accent cards */
  .animate-float       { animation: floaty 6s ease-in-out infinite; }
  .animate-float-slow  { animation: floaty 9s ease-in-out infinite; }
  .animate-float-slow2 { animation: floaty 7.5s ease-in-out infinite; animation-delay: -3s; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  /* Live pulse dot — soft expanding ring */
  .pulse-ring { position: relative; }
  .pulse-ring::after {
    content: ''; position: absolute; inset: 0; border-radius: 9999px;
    background: inherit; animation: pulseRing 2.4s var(--ease-out-soft) infinite;
  }
  @keyframes pulseRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

  /* Sheen sweep that runs across primary buttons + cards on hover */
  .sheen { position: relative; overflow: hidden; isolation: isolate; }
  .sheen::before {
    content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg); transition: left 0.7s var(--ease-out-soft); z-index: 1; pointer-events: none;
  }
  .sheen:hover::before { left: 130%; }

  /* Parallax helpers (Chrome scroll-driven; silently ignored elsewhere) */
  @supports (animation-timeline: view()) {
    .parallax-up {
      animation: parallaxUp linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes parallaxUp { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   3D card tilt — JS feeds --rx / --ry / --mx / --my; CSS does the transform so
   it stays on the compositor. Safe under reduced motion (only on hover/move).
   ───────────────────────────────────────────────────────────────────────── */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out-soft), box-shadow 0.4s var(--ease-out-soft);
  will-change: transform;
}
.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  box-shadow: var(--shadow-warm);
}
/* Glare that follows the cursor across a tilting card */
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 45%);
}
.tilt:hover .tilt-glare { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tilt:hover { transform: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Button micro-interactions
   ───────────────────────────────────────────────────────────────────────── */
button.bg-primary, a.bg-primary,
button.bg-white.text-primary, a.bg-white.text-primary {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s ease;
}
button.bg-primary:hover, a.bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
button.bg-primary:active, a.bg-primary:active { transform: translateY(0) scale(0.97); }

/* Magnetic pull — JS sets --mx-pull / --my-pull on pointer move */
.magnetic { transition: transform 0.3s var(--ease-spring); }
.magnetic.is-pulling { transform: translate(var(--mx-pull, 0), var(--my-pull, 0)); }

/* Smooth colour transitions on inline links / icons */
a, svg { transition: color 0.18s ease, fill 0.18s ease, stroke 0.18s ease; }

@media (prefers-reduced-motion: no-preference) {
  .img-hover { transition: transform 0.5s var(--ease-out-soft), box-shadow 0.5s ease; }
  .img-hover:hover { transform: translateY(-4px) scale(1.01); }
}

/* ─────────────────────────────────────────────────────────────────────────
   Navbar — animated underline indicator + glass backdrop when scrolled
   ───────────────────────────────────────────────────────────────────────── */
#navbar { --nav-h: 68px; --nav-move: 1s cubic-bezier(0.22, 0.61, 0.36, 1); display: flow-root; height: var(--nav-h); pointer-events: none; }
@media (min-width: 640px) { #navbar { --nav-h: 88px; } }
.nav-shell {
  pointer-events: auto; width: 100%; margin-inline: auto; background: #fff; border-bottom: 1px solid #f1f5f9;
  transition: width var(--nav-move), margin-top var(--nav-move), border-radius var(--nav-move),
    background-color 0.5s ease, box-shadow 0.7s ease, border-color 0.5s ease, translate 0.4s var(--ease-out-soft);
}
.nav-inner { height: var(--nav-h); transition: height var(--nav-move), padding var(--nav-move); }
.nav-logo { height: calc(var(--nav-h) - 12px); transition: height var(--nav-move); }
@media (min-width: 640px) { .nav-logo { height: 72px; } }
.nav-links { position: relative; }
.nav-hover { position: absolute; top: 50%; left: 0; width: 0; height: 2.25rem; margin-top: -1.125rem; border-radius: 999px; background: #fff0e4; opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease-out-expo), width 0.35s var(--ease-out-expo), opacity 0.2s ease; }

/* The floating pill. tmh.js measures its content into --pill-w, so it fits exactly
   in English and in the longer Tamil. .nav-measure is that measuring state. */
#navbar.is-scrolled .nav-shell, #navbar.nav-measure .nav-shell {
  width: var(--pill-w, calc(100% - 1.5rem)); margin-top: 0.5rem; border-radius: 1.5rem; border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 14px 34px -14px rgba(30, 30, 30, 0.35), 0 0 0 1px rgba(30, 30, 30, 0.06);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
#navbar.is-scrolled .nav-inner, #navbar.nav-measure .nav-inner { height: calc(var(--nav-h) - 1.25rem); padding-inline: 1rem; }
#navbar.is-scrolled .nav-logo, #navbar.nav-measure .nav-logo { height: calc(var(--nav-h) - 1.75rem); }
#navbar.is-scrolled .nav-links, #navbar.nav-measure .nav-links { flex: none; }
#navbar.is-scrolled .nav-search-label, #navbar.nav-measure .nav-search-label { display: none; }
#navbar.is-scrolled [data-quickfind], #navbar.nav-measure [data-quickfind] { padding-inline: 0.6rem; }
#navbar.nav-measure .nav-shell { width: max-content; }
#navbar.nav-measure, #navbar.nav-measure *, #navbar.nav-still, #navbar.nav-still * { transition: none !important; }
/* Tamil labels run longer: the search icon alone makes room on the full bar. */
@media (max-width: 1535.98px) {
  :lang(ta) .nav-search-label { display: none; }
  :lang(ta) #navbar [data-quickfind] { padding-inline: 0.6rem; }
}
/* The smallest phones: Emergency keeps its icon, which still calls. */
@media (max-width: 359.98px) {
  #navbar .nav-inner { gap: 0.25rem; padding-inline: 0.5rem; }
  #navbar .nav-inner > :last-child { gap: 0.125rem; }
  #navbar .nav-inner > :last-child > a[href^="tel:"] { font-size: 0; gap: 0; padding: 0.5rem; }
}
#mobile-drawer { pointer-events: auto; position: absolute; top: calc(100% + 0.25rem); left: 0.75rem; right: 0.75rem; border-radius: 1.25rem; border: 1px solid #f1f5f9; box-shadow: 0 24px 48px -20px rgba(30, 30, 30, 0.4); }
@media (prefers-reduced-motion: reduce) {
  .nav-shell, .nav-inner, .nav-logo, .nav-hover { transition: none; }
}

/* Animated underline on top-level nav links + dropdown triggers */
#navbar nav > a,
#navbar nav > .group > button { position: relative; }
#navbar nav > a::after,
#navbar nav > .group > button::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--tmh-primary), var(--tmh-accent));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease-out-expo);
}
#navbar nav > a.nav-active::after { transform: scaleX(1); }

/* Current-page nav link — AA-safe deep orange (set by tmh.js with aria-current) */
#navbar nav a.nav-active { color: var(--tmh-primary-ink); }
/* A dropdown owns the current page (tmh.js adds .has-current) */
#navbar nav > .group.has-current > button { color: var(--tmh-primary-ink); }
#navbar nav > .group.has-current > button::after { transform: scaleX(1); }
/* ...and the page itself is highlighted inside the open menu */
[data-subnav][aria-current="page"] { background: var(--tmh-cream); box-shadow: inset 0 0 0 1px rgba(244,121,32,0.18); }
[data-subnav][aria-current="page"] > span:last-child > span:first-child { color: var(--tmh-primary-ink); }

/* ─────────────────────────────────────────────────────────────────────────
   Dialog sheets (booking + leadership bio)
   Bottom sheets on phones, centred cards from sm up. The overlays carry
   data-lenis-prevent so the paused smooth-scroll leaves scrolling inside
   them to the browser — native finger and wheel scrolling both work.
   ───────────────────────────────────────────────────────────────────────── */
.sheet {
  overscroll-behavior: contain;          /* don't scroll-chain to the page behind */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                 /* no scrollbar rail; the fade below hints at more */
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}
.sheet::-webkit-scrollbar { display: none; }
/* Headings that only receive focus programmatically (tabindex="-1", e.g. the
   booking title on touch screens) aren't controls — no focus ring on them. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
/* "More below" hint: a fade that sits over the bottom edge and disappears
   once the reader reaches the end (pure CSS, background-attachment trick). */
.sheet-hint {
  background:
    linear-gradient(rgba(255,255,255,0), #fff 70%) center bottom / 100% 48px no-repeat local,
    radial-gradient(farthest-side at 50% 100%, rgba(30,30,30,0.14), transparent) center bottom / 100% 16px no-repeat scroll,
    #fff;
}
/* The pinned submit bar lifts off the fields scrolling underneath it */
@media (max-width: 639px) {
  .sheet-submit { box-shadow: 0 -10px 16px -14px rgba(30,30,30,0.35); }
}

.sheet-overlay { transition: opacity 0.3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .sheet-overlay:not(.hidden) { animation: modalFade 0.3s ease; }
  .sheet-overlay:not(.hidden) > .sheet { animation: sheetUp 0.42s var(--ease-out-expo); }
  @media (min-width: 640px) {
    .sheet-overlay:not(.hidden) > .sheet { animation: modalPop 0.4s var(--ease-spring); }
  }
  @keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sheetUp   { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes modalPop  { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
}

/* ─────────────────────────────────────────────────────────────────────────
   Cross-document View Transitions (Chrome) — smooth fade/slide between pages
   ───────────────────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut 0.28s var(--ease-out-soft) both; }
  ::view-transition-new(root) { animation: vtIn  0.42s var(--ease-out-soft) both; }
  @keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vtIn  { from { opacity: 0; transform: translateY(12px); } }
  /* Keep the header steady across navigations */
  #navbar { view-transition-name: site-header; }
  ::view-transition-old(site-header),
  ::view-transition-new(site-header) { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Liquid glass — Apple-style refractive glass for translucent elements that
   sit over imagery (hero glass cards / secondary CTA). Adapted from the
   shadcn `LiquidButton`: a bevelled glass rim (inset highlight/shadow stack)
   plus a backdrop that is displaced by an SVG turbulence filter (#liquid-glass,
   injected once in base.html) for the signature "wet" refraction.

   Apply: add `.liquid-glass` to any translucent element (and remove Tailwind
   `backdrop-blur-*`, which sets the same property). Pairs fine with `data-tilt`.
   Chrome renders the displacement; other engines fall back to a plain blur. */
.liquid-glass {
  position: relative;
  isolation: isolate;
  /* Fallback for engines that can't resolve an SVG backdrop filter */
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  /* Bevelled glass rim — white insets read as a lit edge on dark/translucent
     surfaces (the dark-theme variant of the source component). */
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
}
/* Where SVG-filter backdrops are supported, swap the plain blur for the
   refractive displacement (kept with a touch of blur + saturate). */
@supports (backdrop-filter: url("#liquid-glass")) or (-webkit-backdrop-filter: url("#liquid-glass")) {
  .liquid-glass {
    -webkit-backdrop-filter: url("#liquid-glass") blur(3px) saturate(1.5) brightness(1.05);
    backdrop-filter: url("#liquid-glass") blur(3px) saturate(1.5) brightness(1.05);
  }
}
/* Liquid glow lift on hover — subtle, premium */
@media (prefers-reduced-motion: no-preference) {
  .liquid-glass { transition: box-shadow 0.4s var(--ease-out-soft), background-color 0.3s ease; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Scroll-driven 3D reveal — a framed showcase that "stands up" as it enters
   the viewport, flattening from a back-tilt to face-on (adapted from the
   framer-motion `ContainerScroll`). JS feeds `--p` (0 → 1) on the [data-scroll-3d]
   stage as it scrolls through view; CSS does the 3D transform on the compositor.

   Structure:  <div data-scroll-3d class="scroll-3d">      ← perspective stage
                 <div class="scroll-3d-card"> … </div>      ← tilting frame
               </div>
   Defaults to flat (`--p:1`) so with no JS / reduced motion it just sits still. */
.scroll-3d { perspective: 1400px; perspective-origin: center 30%; }
.scroll-3d-card {
  --p: 1;
  transform:
    rotateX(calc((1 - var(--p)) * 16deg))
    scale(calc(0.94 + var(--p) * 0.06))
    translateY(calc((1 - var(--p)) * 24px));
  transform-origin: center top;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  /* Tiny smoothing so the rAF-driven value doesn't look stepped */
  .scroll-3d-card { transition: transform 0.12s linear; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-3d-card { transform: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Film-grain overlay — adds subtle premium texture site-wide
   ───────────────────────────────────────────────────────────────────────── */
#grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ─────────────────────────────────────────────────────────────────────────
   Photo lift — TMH found the photos dull; a gentle brightness/colour boost
   on every photograph (not PNG/SVG logos and icons). :where() keeps the
   specificity at a bare `img`, so Tailwind filter utilities (blur-2xl,
   saturate-150 …) on a specific image still win.
   ───────────────────────────────────────────────────────────────────────── */
:where(main) img:where(:not([src*=".png"]):not([src*=".svg"])) {
  filter: brightness(1.05) saturate(1.15) contrast(1.04);
}

/* ─────────────────────────────────────────────────────────────────────────
   Booking-form honeypot — a decoy input only bots fill in
   Kept in the layout (not display:none, which naive scrapers check for) but
   visually gone, unfocusable and hidden from assistive tech. Anything that
   arrives with a value here is discarded server-side.
   ───────────────────────────────────────────────────────────────────────── */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.hp-field { width: 1px; height: 1px; opacity: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   Card richness — shared by package, condition and story cards
   `.card-lift`: a warm lift on hover with a brand hairline that draws in
   along the top edge. Needs `relative overflow-hidden` on the element.
   ───────────────────────────────────────────────────────────────────────── */
.card-lift {
  transition: transform 0.45s var(--ease-out-soft), box-shadow 0.45s var(--ease-out-soft), border-color 0.3s ease;
}
.card-lift::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--tmh-primary), var(--tmh-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 1;
}
.card-lift:hover, .card-lift:focus-within {
  border-color: rgba(244, 121, 32, 0.25);
  box-shadow: var(--shadow-warm), 0 2px 6px -2px rgba(30, 30, 30, 0.06);
}
.card-lift:hover::before, .card-lift:focus-within::before { transform: scaleX(1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-lift:hover { transform: translateY(-4px); }
}

/* Package test chips (templates/core/_pkg_tests.html) */
.pkg-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; line-height: 1.3; color: #475569;
  background: #f8fafc; border: 1px solid #eef2f6;
  padding: 4px 9px; border-radius: 999px;
}
.pkg-chip-base {
  color: var(--tmh-primary-ink); font-weight: 600;
  background: rgba(244, 121, 32, 0.08); border-color: rgba(244, 121, 32, 0.22);
}
/* Programme phases (Day 1 → Day 90) read as a small vertical timeline */
.pkg-phase { position: relative; padding-left: 16px; }
.pkg-phase::before {
  content: ''; position: absolute; left: 3px; top: 6px; bottom: -14px;
  width: 1px; background: rgba(244, 121, 32, 0.3);
}
.pkg-phase:last-of-type::before { bottom: 0; }
.pkg-phase::after {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tmh-primary); box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.18);
}

/* Soft brand hairline under dark page banners */
.hero-hairline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,121,32,0.7) 30%, rgba(210,32,39,0.5) 70%, transparent);
}

/* "Latest from TMH" video fan. Without JS: a swipeable row of links. tmh.js adds
   .cf-on and places each card with an inline transform. */
.cf-stage { --cw: clamp(14rem, min(24vw, 52vh), 30rem); }
.cf-track { list-style: none; display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; padding: 0.5rem 0.25rem 1.5rem; }
.cf-track::-webkit-scrollbar { display: none; }
.cf-card { flex: none; width: var(--cw); height: calc(var(--cw) * 1.25); }
.cf-face { display: block; height: 100%; padding: 0.35rem; border-radius: 1.35rem; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 18px 34px -14px rgba(15, 23, 42, 0.38); user-select: none; -webkit-user-drag: none; }
.cf-face:focus-visible { outline: 3px solid #f47920; outline-offset: 3px; }
.cf-screen { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 1rem; background: #1e1e1e; }
.cf-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: blur(22px) saturate(1.4); opacity: 0.85; }
.cf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cf-watch {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 999px; white-space: nowrap; color: #1e1e1e; font-size: 0.875rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cf-caption { margin: 0.75rem auto 0; max-width: 46rem; padding-inline: 1rem; text-align: center; }
.cf-title { font-weight: 800; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.3; color: #1e1e1e; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cf-meta { margin-top: 0.35rem; display: flex; justify-content: center; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #64748b; }

.cf-on .cf-stage { position: relative; isolation: isolate; height: calc(var(--cw) * 1.25 + 2.5rem); padding-top: 0.75rem; touch-action: pan-y; cursor: grab; }
.cf-on .cf-stage.is-dragging { cursor: grabbing; }
.cf-on .cf-track { position: relative; display: block; overflow: visible; padding: 0; height: calc(var(--cw) * 1.25); }
.cf-on .cf-card { position: absolute; left: 50%; top: 0; will-change: transform; }
.cf-on .cf-card:not(.is-current) .cf-face { cursor: pointer; }
.cf-on .cf-card .cf-watch { opacity: 0; transition: opacity 0.25s ease; }
.cf-on .cf-card.is-current .cf-watch { opacity: 1; }
@media (max-width: 639.98px) {
  .cf-stage { --cw: min(64vw, 16rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .cf-caption-in { animation: cfCaptionIn 0.45s var(--ease-out-expo) both; }
  @keyframes cfCaptionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ── Tamil ─────────────────────────────────────────────────────────────────
   Tamil script has tall vowel signs above and below the line and runs longer
   than English, so give it more line-height, drop the tight/uppercase
   letter-spacing (it breaks conjuncts) and let long words wrap. */
:lang(ta) body { line-height: 1.7; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3 { line-height: 1.35; letter-spacing: 0; }
:lang(ta) .tracking-tight, :lang(ta) .tracking-wide, :lang(ta) .tracking-widest,
:lang(ta) [class*="tracking-["] { letter-spacing: 0; }
:lang(ta) .uppercase { text-transform: none; }
:lang(ta) main, :lang(ta) footer { overflow-wrap: anywhere; }

/* ─────────────────────────────────────────────────────────────────────────
   Photo viewer — any [data-zoom] photo opens full-size (tmh.js §2e). The
   photo grows out of its tile and shrinks back on close; arrows sit at the
   sides on desktop and in the bottom bar on phones.
   ───────────────────────────────────────────────────────────────────────── */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid #f47920; outline-offset: 3px; }

.zoom { position: fixed; inset: 0; z-index: 220; }
.zoom.hidden { display: none; }
.zoom-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 30, 30, 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.zoom-img {
  position: fixed; margin: 0; border-radius: 10px; object-fit: contain;
  user-select: none; -webkit-user-drag: none; touch-action: none;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  transform-origin: center center; will-change: transform;
}
.zoom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.875rem 1rem max(0.875rem, env(safe-area-inset-bottom));
  color: #fff;
}
.zoom-caption {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.4; max-width: 60ch;
}
.zoom-nav { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.zoom-nav[hidden] { display: none; }
.zoom-count {
  min-width: 4.5ch; text-align: center; font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums;
}
.zoom-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.zoom-btn:hover { background: rgba(255, 255, 255, 0.2); }
.zoom-btn:active { transform: scale(0.94); }
.zoom-btn:focus-visible { outline: 3px solid #f47920; outline-offset: 2px; }
.zoom-close { position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.zoom-chrome { transition: opacity 0.25s ease; }
.zoom.is-dragging .zoom-chrome, .zoom.is-entering .zoom-chrome { opacity: 0; }
@media (min-width: 768px) {
  .zoom-bar { justify-content: center; padding: 1.25rem 2rem 1.75rem; }
  .zoom-caption { text-align: center; font-size: 1rem; }
  .zoom-nav { gap: 0; }
  .zoom-nav .zoom-btn { position: fixed; top: 50%; margin-top: -1.625rem; width: 3.25rem; height: 3.25rem; }
  .zoom-nav [data-zoom-prev] { left: 1.5rem; }
  .zoom-nav [data-zoom-next] { right: 1.5rem; }
  .zoom-close { top: 1.5rem; right: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Interaction motion (Oct 2026) — motion that answers what the visitor does,
   plus one short entrance on inner-page banners. Nothing here hides content
   before JS runs, and all of it is off under prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────────────── */

/* Booking submit "sending" state — tmh.js sets aria-busy while the request is
   in flight. A status cue, so it stays (slower) under reduced motion. */
button[aria-busy="true"] { cursor: progress; pointer-events: none; }
button[aria-busy="true"]::after {
  content: ''; display: inline-block; width: 1em; height: 1em; margin-left: 0.6em;
  vertical-align: -0.15em; border-radius: 9999px;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::after { animation-duration: 1.6s; }
}

@media (prefers-reduced-motion: no-preference) {

  /* Inner-page banners — breadcrumb, title, subtitle rise in on a 70ms
     stagger while the brand hairline draws across. ~0.6s end to end. */
  .banner-in > * { animation: bannerIn 0.6s var(--ease-out-expo) both; }
  .banner-in > :nth-child(2) { animation-delay: 70ms; }
  .banner-in > :nth-child(3) { animation-delay: 140ms; }
  @keyframes bannerIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-hairline { transform-origin: left center; animation: hairlineDraw 1.1s var(--ease-out-expo) 0.12s both; }
  @keyframes hairlineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }


  /* Mobile drawer — drops in, links follow on a short stagger (tmh.js sets
     --i, capped so the last link lands within ~0.35s). */
  #mobile-drawer:not(.hidden) { animation: drawerIn 0.32s var(--ease-out-expo); transform-origin: top center; }
  #mobile-drawer:not(.hidden) nav > * { animation: drawerItem 0.36s var(--ease-out-soft) both; animation-delay: calc(var(--i, 0) * 16ms); }
  @keyframes drawerIn   { from { opacity: 0; transform: translateY(-6px) scaleY(0.98); } to { opacity: 1; transform: none; } }
  @keyframes drawerItem { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  main, footer, #mobile-cta { transition: filter 0.3s ease; }

  /* Quick-find opens like the booking dialog */
  #quickfind:not(.hidden) { animation: qfFade 0.25s ease; }
  #quickfind:not(.hidden) > div { animation: qfPop 0.38s var(--ease-spring); }
  @keyframes qfFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes qfPop  { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }

  /* Booking confirmed — badge pops, a halo rings out once, the tick draws
     itself, then the copy settles in underneath. */
  [data-booking-success]:not([hidden]) .success-badge { position: relative; animation: badgePop 0.5s var(--ease-spring) both; }
  [data-booking-success]:not([hidden]) .success-badge::after {
    content: ''; position: absolute; inset: 0; border-radius: 9999px;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
    animation: badgeHalo 0.9s var(--ease-out-soft) 0.25s both;
  }
  [data-booking-success]:not([hidden]) .success-badge polyline {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: tickDraw 0.42s var(--ease-out-soft) 0.22s forwards;
  }
  [data-booking-success]:not([hidden]) > :not(.success-badge) { animation: bannerIn 0.45s var(--ease-out-soft) both; }
  [data-booking-success]:not([hidden]) > :nth-child(2) { animation-delay: 0.3s; }
  [data-booking-success]:not([hidden]) > :nth-child(3) { animation-delay: 0.36s; }
  [data-booking-success]:not([hidden]) > :nth-child(4) { animation-delay: 0.42s; }
  [data-booking-success]:not([hidden]) > :nth-child(5) { animation-delay: 0.48s; }
  @keyframes badgePop  { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
  @keyframes badgeHalo { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
  @keyframes tickDraw  { to { stroke-dashoffset: 0; } }

  /* Section eyebrow bars draw in as they scroll into view (Chrome
     scroll-driven; already-visible bars are simply drawn). */
  @supports (animation-timeline: view()) {
    .w-5.h-0\.5.bg-primary {
      transform-origin: left center;
      animation: eyebrowDraw linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 90%;
    }
    @keyframes eyebrowDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Signature motion (Oct 2026, round 2) — noticeable, still quick. Each piece
   runs once as content arrives or answers the pointer; none of it loops
   except the CTA glint. Hooks: .hero-intro-zoom, .hero-cards, .split-words
   (tmh.js), large section photos, grid cascades, .card-lift spotlight,
   .cta-glint. All off under prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────────────── */
@property --so { syntax: '<number>'; inherits: true; initial-value: 0; }

@media (prefers-reduced-motion: no-preference) {

  /* Home hero opens like a film still: the photo settles from a push-in
     while the light comes up, then the glass cards spring in one by one. */
  .hero-intro-zoom { animation: heroIntro 1.8s var(--ease-out-expo) both; }
  @keyframes heroIntro {
    from { transform: scale(1.14); filter: brightness(0.35); }
    to   { transform: none; filter: none; }
  }
  .hero-cards > :nth-child(1) { animation: heroCardIn 0.9s var(--ease-spring) 0.55s both, floaty 6s ease-in-out 1.45s infinite; }
  .hero-cards > :nth-child(2) { animation: heroCardIn 0.9s var(--ease-spring) 0.68s both, floaty 7.5s ease-in-out 1.6s infinite; }
  .hero-cards > :nth-child(3) { animation: heroCardIn 0.9s var(--ease-spring) 0.81s both, floaty 9s ease-in-out 1.75s infinite; }
  /* translate/scale (not transform) so the float drift composes on top */
  @keyframes heroCardIn {
    from { opacity: 0; translate: 56px 0; scale: 0.9; filter: blur(6px); }
    to   { opacity: 1; translate: 0 0; scale: 1; filter: none; }
  }

  /* Section headings — tmh.js wraps each word in .sw; on reveal the words
     sharpen out of a blur and rise in a quick ripple (45ms apart). */
  .js main > section h2.split-words { opacity: 1; transform: none; transition: none; }
  .split-words .sw {
    display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(0.45em);
    transition: opacity 0.5s var(--ease-out-soft), filter 0.55s var(--ease-out-soft), transform 0.7s var(--ease-out-expo);
    transition-delay: calc(var(--w, 0) * 45ms);
  }
  .split-words.is-visible .sw { opacity: 1; filter: blur(0); transform: none; }

  /* Large section photos — a curtain wipe up from the bottom edge while the
     photo settles from a slight zoom. tmh.js tags photos ≥320px wide that
     start below the fold (.photo-wipe) and triggers them once ~12% in. */
  .js img.photo-wipe {
    clip-path: inset(100% 0 0 0);
    scale: 1.08;   /* the scale property, so hover zooms (transform) still work */
    transition: clip-path 0.95s var(--ease-out-expo), scale 1.3s var(--ease-out-expo), transform 0.7s ease-out;
  }
  .js img.photo-wipe.is-visible { clip-path: inset(0); scale: 1; }
  /* Photos that use the generic reveal wipe instead of fading */
  .js main > section img.photo-wipe { opacity: 1; }

  /* Card grids — a deeper rise with a scale settle, so the cascade reads */
  .js main > section .grid > * {
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.5s var(--ease-out-soft), transform 0.65s var(--ease-out-expo);
    transition-delay: var(--reveal-delay, 0ms);
  }

  /* Navbar "Book Appointment" — a light glint passes every few seconds */
  .cta-glint { position: relative; overflow: hidden; isolation: isolate; }
  .cta-glint::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: ctaGlint 6.5s ease-in-out 2.5s infinite;
  }
  @keyframes ctaGlint { 0%, 80% { transform: translateX(-120%); } 94%, 100% { transform: translateX(120%); } }
}

/* Cursor spotlight on cards (desktop) — a warm glow follows the pointer
   across the card and lights the border nearest it. tmh.js feeds --sx/--sy. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-lift {
    background-image: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(244, 121, 32, calc(var(--so) * 0.09)), transparent 65%);
    transition: transform 0.45s var(--ease-out-soft), box-shadow 0.45s var(--ease-out-soft), border-color 0.3s ease, --so 0.35s ease;
  }
  .card-lift::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(244, 121, 32, 0.85), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: var(--so);
  }
  .card-lift:hover { --so: 1; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Scroll chapters (Nov 2026). Hooks: .section-display, .page-heading, .cs-*
   (campus tour), .chapter (tmh.js adds .is-stuck and --stick-top). Everything
   that moves is gated on .js + large screen + motion allowed, so otherwise the
   page sits in a plain stacked layout.
   ───────────────────────────────────────────────────────────────────────── */
.section-display { font-size: clamp(1.875rem, 3.9vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.page-heading { font-size: clamp(1.625rem, 2.9vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
:lang(ta) .page-heading { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.35; letter-spacing: 0; }
:lang(ta) .section-display { font-size: clamp(1.625rem, 3.2vw, 2.75rem); line-height: 1.35; letter-spacing: 0; }

/* Campus tour: stacked by default */
.campus { position: relative; }
.cs-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cs-video { display: none; }
.cs-text { padding: 1.5rem 1rem 2.25rem; color: #fff; }
.cs-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-size: clamp(3.5rem, 11vw, 10rem); }
.cs-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: clamp(1.125rem, 2.2vw, 2rem); margin-top: 0.5rem; }
.cs-closing { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; font-size: clamp(2rem, 5vw, 4.5rem); max-width: 16ch; }
:lang(ta) .cs-closing, :lang(ta) .cs-label { letter-spacing: 0; line-height: 1.35; }
.cs-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.8rem 1.5rem;
  border-radius: 0.75rem; background: #c2570f; color: #fff; font-weight: 600;
  transition: background-color 0.2s ease;
}
.cs-btn:hover { background: #b4540a; }

@media (min-width: 1024px) {
  .cs-photo { aspect-ratio: auto; height: 70vh; }
  .cs-text { padding-inline: 4rem; }
}

/* Campus tour: pinned. The height is in CSS so page anchors land correctly on
   first load. tmh.js feeds --g and steps through [data-step]. */
@media (min-height: 420px) and (prefers-reduced-motion: no-preference) {
  .js .campus {
    --g: 0;
    height: 420vh; overflow: clip; border-radius: 2rem 2rem 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.18);
  }
  /* lvh: fills the screen with the phone's address bar collapsed too; with
     svh a band of the dark section showed under the photos once the bottom
     call/book pill stopped covering it. Same for the other full-screen pins. */
  .js .campus-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
  .js .cs-frame {
    position: absolute; inset: 0; overflow: hidden;
    clip-path: inset(calc((1 - var(--g)) * 12%) calc((1 - var(--g)) * 16%) round calc((1 - var(--g)) * 2rem));
  }
  .js .cs-step { position: absolute; inset: 0; }
  .js .cs-photo {
    position: absolute; inset: 0; height: 100%; object-position: 50% 100%; opacity: 0;
    transform: scale(calc(1.03 + var(--sp, 0) * 0.09)); transition: opacity 0.6s ease;
  }
  .js .cs-step.is-photo .cs-photo { opacity: 1; }
  .js .cs-video { display: block; }
  .js .cs-step.is-photo .cs-video:not(.is-playing) { opacity: 0; }
  .js .cs-photo--campus { transform: scale(calc(1 + (1 - var(--g)) * 0.1)); }
  .js .cs-step::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
    background: radial-gradient(75% 95% at 0% 100%, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 40%, transparent 72%);
  }
  .js .cs-step--right::after { background: radial-gradient(70% 95% at 100% 100%, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 40%, transparent 72%); }
  .js .cs-step--end::after { background: radial-gradient(80% 95% at 0% 100%, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 40%, transparent 75%); }
  .js .cs-step.is-current::after { opacity: 1; }
  .js .cs-text {
    position: absolute; z-index: 1; left: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem)); bottom: 12vh; padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(28px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .js .cs-step--right .cs-text { left: auto; right: max(1.5rem, calc((100vw - 80rem) / 2 + 1.5rem)); text-align: right; }
  .js .cs-step.is-current .cs-text {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.45s ease 0.15s, transform 0.6s var(--ease-out-soft) 0.15s, visibility 0s;
  }
}
/* Phones: the text clears the bottom action bar. */
@media (min-height: 420px) and (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  .js .cs-text { left: 1.25rem; right: 1.25rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .js .cs-step--right .cs-text { left: 1.25rem; right: 1.25rem; }
  .js .cs-step::after, .js .cs-step--right::after, .js .cs-step--end::after { background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.5) 38%, transparent 68%); }
}

/* Sections that hold still while the next one slides over them */
.chapter.is-stuck { position: sticky; top: var(--stick-top, 0); }
/* Later sections must paint over a held one. */
main > .chapter ~ section { position: relative; }
@media (min-width: 1024px) {
  .chapter-cover { border-radius: 2rem 2rem 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.18); }
}

/* FAQ cards (templates/_faq.html). Still and stacked by default; tmh.js builds
   the looping rows on wider screens. Rows stop on hover, focus or the Pause button. */
.faq-section { position: relative; background: radial-gradient(70% 75% at 50% 100%, rgba(244, 121, 32, 0.14), transparent 75%), #fff; }
.faq-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .faq-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .faq-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.faq-cards:has(> :only-child) { grid-template-columns: minmax(0, 28rem); justify-content: center; }
.faq-card { background: #fff; border: 1px solid #ffedd5; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 8px 24px -14px rgba(120, 53, 15, 0.28); }
.faq-q { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: #1e1e1e; margin-bottom: 0.6rem; }
.faq-a { font-size: 0.9375rem; line-height: 1.6; color: #475569; }
.faq-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid #fed7aa; background: #fff; color: #b4540a; font-size: 0.8125rem; font-weight: 600;
  transition: background-color 0.2s ease;
}
.faq-toggle.hidden { display: none; }
.faq-toggle:hover { background: #fff7ed; }
.faq-rows { display: flex; flex-direction: column; gap: 1.5rem; }
.faq-row {
  overflow: hidden; padding-block: 0.75rem 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.faq-track { display: flex; width: max-content; animation: faqLoop var(--faq-duration, 60s) linear infinite; }
.faq-row--reverse .faq-track { animation-direction: reverse; }
.faq-track .faq-card { width: 26rem; flex: none; margin-right: 1.5rem; }
.faq-row:hover .faq-track, .faq-section.is-paused .faq-track { animation-play-state: paused; }
@keyframes faqLoop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .faq-track { animation: none; } }


/* Department polaroids (home): photos pegged to a sagging string. tmh.js adds .pl-on,
   places each card on the curve and swings it with the slide speed. Without JS the
   cards are a plain swipeable row of polaroids, each a link. */
.pl { --pl-cw: 300px; --pl-string: #a8968a; padding-top: 0.5rem; }
.pl-stage { position: relative; outline: none; }
.pl-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--tmh-primary); border-radius: 1rem; }
.pl-string { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; stroke: var(--pl-string); }
.pl-track { list-style: none; margin: 0; padding: 0.5rem 1rem 1.5rem; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pl-track::-webkit-scrollbar { display: none; }
.pl-card { position: relative; flex: none; width: var(--pl-cw); scroll-snap-align: center; transform-origin: 50% 0; }
.pl-print { display: block; margin-top: 10px; padding: 10px 10px 0; background: #fbfaf7; color: #3b3833; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 18px 30px -16px rgba(30, 30, 30, 0.45); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease; }
.pl-print:focus-visible { outline: 2px solid var(--tmh-primary); outline-offset: 3px; }
.pl-shot { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e8e2da; }
.pl-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
.pl-note { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 6px; text-align: center; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(0.8125rem, calc(var(--pl-cw) * 0.05), 1rem); line-height: 1.2; letter-spacing: -0.01em; overflow: hidden; }
/* A wooden-toned peg in brand orange, clipped over the top edge of the print. */
.pl-peg { position: absolute; left: 50%; top: 0; z-index: 1; width: 10px; height: 26px; margin-left: -5px; border-radius: 2px; background: linear-gradient(90deg, #d9661a, #f7a35c 45%, #c2570f); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25); pointer-events: none; }
.pl-peg::after { content: ""; position: absolute; left: 4px; top: 8px; width: 2px; height: 7px; border-radius: 1px; background: rgba(90, 40, 10, 0.4); }

/* With JS: the cards hang from the string and the bar shows the one in front. */
.pl-on .pl-stage { height: var(--pl-h, 30rem); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.pl-on .pl-stage[data-drag] { cursor: grabbing; }
.pl-on .pl-string { display: block; }
.pl-on .pl-track { display: block; padding: 0; overflow: visible; height: 100%; }
.pl-on .pl-card { position: absolute; left: 0; top: 0; will-change: transform; visibility: hidden; }
.pl-on .pl-card:not(.is-on) .pl-print { transform: scale(0.9); filter: saturate(0.7) brightness(0.96); }
.pl-on .pl-print { cursor: inherit; }
.pl-bar { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); margin-top: 0.25rem; }
.pl-bar[hidden] { display: none; }
.pl-cap { flex: 1; min-width: 0; overflow: hidden; padding-bottom: 0.15em; }
.pl-cap > * { animation: pl-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pl-title { font-weight: 800; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.2; color: #1e1e1e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.45; color: #475569; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-more { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; padding: 0.6rem 1rem; border-radius: 999px; background: #c2570f; color: #fff; font-size: 0.875rem; font-weight: 600; transition: background-color 0.2s ease, gap 0.2s ease; }
.pl-more:hover { background: #b4540a; gap: 0.65rem; }
.pl-btns { display: flex; gap: 0.5rem; flex: none; }
.pl-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(30, 30, 30, 0.18); display: grid; place-items: center; color: #1e1e1e; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.pl-btn:hover { background: #1e1e1e; border-color: #1e1e1e; color: #fff; }
.pl-btn:focus-visible, .pl-more:focus-visible { outline: 2px solid var(--tmh-primary); outline-offset: 2px; }
@keyframes pl-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
/* Phones: the caption sits above the link and arrows. */
@media (max-width: 639px) {
  .pl-bar { flex-wrap: wrap; }
  .pl-cap { flex-basis: 100%; }
  .pl-btns { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .pl-cap > * { animation: none; } .pl-print { transition: none; } }

/* Halftone backdrop (Campus & Facilities). One screen-sized layer stays pinned
   behind the hero and the tour while they scroll past; the negative margin lets
   the content start at its top. The zone clips it: a sticky box may travel its
   own negative margin past the zone's end, which put it over the footer.
   The dot pattern is the still fallback; tmh.js draws the moving halftone into
   the canvas and fades it in. */
.ht-zone { position: relative; background: #1e1e1e; overflow: clip; }
.ht-bg {
  position: sticky; top: 0; z-index: 0; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle, rgba(244, 121, 32, 0.38) 0 2.5px, transparent 3px) 0 0 / 14px 14px,
    radial-gradient(ellipse 65% 55% at 75% 25%, rgba(244, 121, 32, 0.22), transparent 70%),
    #1e1e1e;
}
.ht-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ht-bg canvas.is-on { opacity: 1; }
.ht-zone > .sx, .ht-zone > .zp-tour { position: relative; z-index: 1; }

/* Campus & Facilities hero. By default a plain banner: title, the video's first
   aerial photo as a 16:9 card, then the lead. With JS and motion allowed, the section is
   pinned while tmh.js feeds --e (the card's growth, 0 small → 1 full screen) and
   --t (the lead arriving over the full-screen photo). */
.sx { position: relative; color: #fff; overflow: clip; }
.sx-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; padding: 1.75rem 1rem 3.5rem; text-align: center; }
.sx-bg { position: absolute; inset: 0; }
.sx-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0.3; }
.sx-crumbs { position: relative; z-index: 6; align-self: stretch; max-width: 88rem; width: 100%; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); text-align: left; }
.sx-crumbs a:hover { color: #f47920; text-decoration: underline; text-underline-offset: 4px; }
.sx-crumbs [aria-current] { color: rgba(255, 255, 255, 0.92); }
.sx-title { position: relative; z-index: 4; order: 1; margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.sx-word--b { color: #f47920; }
.sx-media { position: relative; z-index: 2; order: 2; width: min(100%, 60rem); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1rem; background: #0f0f0f; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.sx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.sx-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); }
.sx-tags { display: none; }
.sx-after { position: relative; z-index: 5; order: 3; }
.sx-scrim, .sx-eyebrow { display: none; }
.sx-lead { max-width: 42rem; margin-inline: auto; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
:lang(ta) .sx-title { font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.25; letter-spacing: 0; }

@media (prefers-reduced-motion: no-preference) and (min-height: 420px) {
  .js .sx { --e: 0; --t: 0; --w0: min(300px, 72vw); --h0: min(400px, 54svh); height: 260vh; }
  .js .sx-stage { position: sticky; top: 0; display: block; height: 100vh; height: 100lvh; padding: 0; overflow: hidden; }
  .js .sx-bg { opacity: calc(1 - var(--e)); }
  .js .sx-bg img { opacity: 0.55; }
  .js .sx-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(30, 30, 30, 0.15), rgba(30, 30, 30, 0.85) 75%); }
  .js .sx-crumbs { position: absolute; top: 1.25rem; left: 0; right: 0; padding-inline: 1.5rem; opacity: calc(1 - var(--e) * 2.5); }
  .js .sx-media {
    position: absolute; left: 50%; top: 50%; aspect-ratio: auto;
    width: calc(var(--w0) + (100vw - var(--w0)) * var(--e));
    height: calc(var(--h0) + (100lvh - var(--h0)) * var(--e));
    transform: translate(-50%, -50%);
    border-radius: calc((1 - var(--e)) * 1.25rem);
  }
  .js .sx-shade { background: rgba(0, 0, 0, 0.45); opacity: calc(1 - var(--e) * 0.7); }
  /* The title's halves sit over the card and slide out past the edges. */
  .js .sx-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; padding-inline: 1rem; pointer-events: none; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
  .js .sx-word { display: block; white-space: nowrap; will-change: transform; }
  .js .sx-word--a { transform: translateX(calc(var(--e) * -150vw)); }
  .js .sx-word--b { transform: translateX(calc(var(--e) * 150vw)); }
  /* The hospital name starts small just under the card, then rises, grows and
     turns white as the card grows, ending in the sky at the top of the
     full-screen photo, where it stays and leaves with the photo. */
  .js .sx-tags {
    --y0: calc(50% + var(--h0) / 2 + 1rem); --y1: 5.75rem;
    position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--y0) + (var(--y1) - var(--y0)) * var(--e));
    display: flex; justify-content: center; padding-inline: 4vw; pointer-events: none;
  }
  .js .sx-tag--a {
    max-width: 92vw; text-align: center; line-height: 1.15;
    font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800;
    font-size: calc(0.8125rem + (clamp(1.35rem, 4.2vw, 3.75rem) - 0.8125rem) * var(--e));
    letter-spacing: calc(0.04em - 0.06em * var(--e));
    color: #fdba74; color: color-mix(in srgb, #fff calc(var(--e) * 100%), #fdba74);
    text-shadow: 0 2px 22px rgba(0, 0, 0, calc(0.25 + 0.35 * var(--e)));
  }
  /* Once the photo fills the screen, the lead rises over it. */
  .js .sx-after { position: absolute; inset: 0; display: flex; align-items: flex-end; text-align: left; pointer-events: none; opacity: var(--t); }
  .js .sx-scrim { display: block; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35) 40%, transparent 70%); }
  .js .sx-text { position: relative; width: 100%; max-width: 88rem; margin-inline: auto; padding: 0 1.5rem 3.5rem; transform: translateY(calc((1 - var(--t)) * 1.75rem)); }
  .js .sx-eyebrow { display: block; color: #fdba74; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.75rem; }
  .js .sx-lead { margin-inline: 0; color: rgba(255, 255, 255, 0.92); }
  .js:lang(ta) .sx-eyebrow { letter-spacing: 0.04em; }
}
/* Upright screens: the lead clears the phone's call/book bar, as in the tour. */
@media (prefers-reduced-motion: no-preference) and (min-height: 420px) and (max-aspect-ratio: 1 / 1) {
  .js .sx-text { padding: 0 1rem 6.5rem; }
  .js .sx-tags { --y1: 4.5rem; }
}

/* Campus & Facilities tour. Plain heading-and-grid scenes by default; the zoom
   below turns on with JS and motion allowed. tmh.js feeds --z (the zoom so far),
   --t (the heading's arrival) and --c (captions fading as the zoom starts). */
.zp-tour { background: #fff; color: #1e1e1e; }
.zp-stage { max-width: 88rem; margin-inline: auto; padding: 3.5rem 1rem; }
.zp-copy { margin-bottom: 1.75rem; }
.zp-scrim { display: none; }
.zp-eyebrow { color: #b4540a; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.zp-title { margin-top: 0.75rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 5.2vw, 4.75rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.zp-lead { margin-top: 0.9rem; max-width: 40rem; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; color: #475569; }
.zp-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.zp-tile { position: relative; overflow: hidden; border-radius: 0.75rem; background: #f1f5f9; aspect-ratio: 4 / 3; box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.22); }
.zp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zp-cap { position: absolute; inset: auto 0 0; padding: 1.75rem 0.85rem 0.7rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); color: #fff; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.zp-hint { display: none; }
:lang(ta) .zp-eyebrow { letter-spacing: 0.04em; }
:lang(ta) .zp-title { font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.25; letter-spacing: 0; }

@media (prefers-reduced-motion: no-preference) and (min-height: 420px) {
  .js .zp { --z: 0; --t: 0; --c: 1; height: 260vh; }
  .js .zp-tour { background: transparent; }
  .js .zp-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; max-width: none; padding: 0; overflow: hidden; }
  .js .zp-tiles { position: absolute; inset: 0; display: block; }
  .js .zp-wrap { position: absolute; inset: 0; pointer-events: none; }
  .js .zp-tile {
    --x: 0; --y: 0; --w: 25; --h: 25;
    position: absolute; aspect-ratio: auto; pointer-events: auto;
    left: calc(50% + (var(--x) - var(--w) / 2) * 1%);
    top: calc(50% + (var(--y) - var(--h) / 2) * 1%);
    width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  }
  .js .zp-cap { opacity: var(--c); }
  .js .zp-copy { position: absolute; inset: 0; z-index: 5; margin: 0; display: flex; align-items: flex-end; pointer-events: none; opacity: var(--t); }
  .js .zp-scrim { display: block; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 72%); }
  /* The heading sits on the full-screen photo, so it turns light here. */
  .js .zp-eyebrow { color: #fdba74; }
  .js .zp-title { color: #fff; }
  .js .zp-lead { color: rgba(255, 255, 255, 0.9); }
  .js .zp-text { position: relative; width: 100%; max-width: 88rem; margin-inline: auto; padding: 0 1.5rem 3.5rem; transform: translateY(calc((1 - var(--t)) * 1.75rem)); }
  .js .zp-hint { position: absolute; z-index: 4; inset: auto 0 1.25rem; display: flex; justify-content: center; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: #fff; opacity: var(--c); pointer-events: none; }
  .js .zp-hint-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: rgba(0, 0, 0, 0.62); }

  /* Where each photo sits: offset from the centre and size, in % of the screen.
     Together with the scales in tmh.js, these put every photo off screen by the
     time the first one fills it. */
  .js .zp-wrap:nth-child(2) .zp-tile { --x: 5; --y: -26; --w: 35; --h: 24; }
  .js .zp-wrap:nth-child(3) .zp-tile { --x: -25; --y: -8; --w: 20; --h: 45; }
  .js .zp-wrap:nth-child(4) .zp-tile { --x: 27.5; --y: 0; --w: 25; --h: 25; }
  .js .zp-wrap:nth-child(5) .zp-tile { --x: 5; --y: 27.5; --w: 20; --h: 25; }
  .js .zp-wrap:nth-child(6) .zp-tile { --x: -22.5; --y: 27.5; --w: 30; --h: 25; }
  .js .zp-wrap:nth-child(7) .zp-tile { --x: 25; --y: 24; --w: 15; --h: 19; }
}
/* Upright screens: the photos stack in rows around a wider first photo. */
@media (prefers-reduced-motion: no-preference) and (min-height: 420px) and (max-aspect-ratio: 1 / 1) {
  .js .zp-text { padding: 0 1rem 6.5rem; }
  .js .zp-hint { bottom: 5.5rem; }
  .js .zp-cap { display: none; }
  .js .zp-tiles .zp-wrap:first-child .zp-tile { --w: 60; --h: 25; }
  .js .zp-tiles .zp-wrap:nth-child(2) .zp-tile { --x: -24; --y: -20.5; --w: 44; --h: 14; }
  .js .zp-tiles .zp-wrap:nth-child(3) .zp-tile { --x: 24; --y: -20.5; --w: 44; --h: 14; }
  .js .zp-tiles .zp-wrap:nth-child(4) .zp-tile { --x: -24; --y: 20.5; --w: 44; --h: 14; }
  .js .zp-tiles .zp-wrap:nth-child(5) .zp-tile { --x: 24; --y: 20.5; --w: 44; --h: 14; }
  .js .zp-tiles .zp-wrap:nth-child(6) .zp-tile { --x: 24; --y: 35; --w: 44; --h: 13; }
  .js .zp-tiles .zp-wrap:nth-child(7) .zp-tile { --x: -24; --y: 35; --w: 44; --h: 13; }
}

/* Annual Reports hero, after the 21st.dev "Gallery" hero: eyebrow, title with an
   orange last word, then the five newest report covers. They start stacked in
   the middle and spring out into a fan (pure CSS, so it runs before tmh.js),
   each settling at a slight tilt; hovering one lifts it. A faded grid sits
   behind the covers, edge to edge. --c is the card size, --step the gap
   between card centres (narrower on phones so all five fit). */
.hg { position: relative; overflow: hidden; background: #fffaf7; padding: 1.5rem 0 4rem; text-align: center; }
.hg-inner { position: relative; }
.hg-crumbs { max-width: 88rem; margin: 0 auto 2.5rem; padding-inline: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: #64748b; text-align: left; }
@media (min-width: 640px) { .hg-crumbs { padding-inline: 1.5rem; } }
.hg-crumbs a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.hg-crumbs [aria-current] { color: #334155; }
.hg-eyebrow { padding-inline: 1rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #64748b; }
.hg-title { max-width: 48rem; margin: 0.6rem auto 0; padding-inline: 1rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 1.05; letter-spacing: -0.03em; color: #1e1e1e; text-wrap: balance; }
.hg-accent { color: #d96a12; }
:lang(ta) .hg-eyebrow { letter-spacing: 0.06em; }
:lang(ta) .hg-title { font-size: clamp(1.9rem, 4.6vw, 3.5rem); line-height: 1.3; letter-spacing: 0; }

.hg-stage {
  --c: 220px; --step: min(calc(var(--c) * 0.727), calc((100vw - 2rem - var(--c)) / 4));
  position: relative; height: calc(var(--c) * 1.6); margin: 1.25rem 0 0.75rem; padding: 0; list-style: none;
}
@media (max-width: 639px) { .hg-stage { --c: 31vw; } }
@media (min-width: 1536px) { .hg-stage { --c: 240px; } }
.hg-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12%; height: 118%; pointer-events: none; opacity: 0.22;
  background: linear-gradient(to right, #57534e 1px, transparent 1px) 50% 50% / 3rem 3rem, linear-gradient(to bottom, #57534e 1px, transparent 1px) 50% 50% / 3rem 3rem;
  /* Fades out on every side, so the grid has no hard top line. */
  -webkit-mask-image: radial-gradient(ellipse 62% 50% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 62% 50% at 50% 45%, #000 30%, transparent 100%);
}
.hg-card {
  --x: calc((var(--o) - 2) * var(--step)); --y: 0px; --r: 0deg; --hr: 2deg;
  position: absolute; left: 50%; top: 50%; width: var(--c); height: var(--c); margin: calc(var(--c) / -2) 0 0 calc(var(--c) / -2);
  z-index: calc(50 - var(--o) * 10);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}
.hg-card:nth-child(1) { --y: calc(var(--c) * 0.068); --r: -2.6deg; --hr: -2deg; }
.hg-card:nth-child(2) { --y: calc(var(--c) * 0.145); --r: -1.4deg; --hr: -2deg; }
.hg-card:nth-child(3) { --y: calc(var(--c) * 0.036); --r: 2.2deg; }
.hg-card:nth-child(4) { --y: calc(var(--c) * 0.1); --r: 3deg; }
.hg-card:nth-child(5) { --y: calc(var(--c) * 0.2); --r: -1.8deg; --hr: -2deg; }
.hg-card:hover, .hg-card:focus-within { z-index: 99; }
.hg-card a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 1.5rem; background: #f1f5f9; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 30px -16px rgba(60, 30, 10, 0.35); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease; }
.hg-card a:hover, .hg-card a:focus-visible { transform: scale(1.1) rotate(var(--hr)); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 28px 44px -18px rgba(60, 30, 10, 0.45); }
.hg-card a:focus-visible { outline: 3px solid #c2570f; outline-offset: 4px; }
.hg-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .hg-stage > .hg-card { animation: hg-fade 0.4s ease-out 0.5s both, hg-out 1s cubic-bezier(0.34, 1.45, 0.64, 1) calc(0.9s + var(--o) * 0.15s) both; }
}
@keyframes hg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hg-out { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

.hg-lead { max-width: 40rem; margin: 0 auto; padding-inline: 1rem; font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; color: #475569; }
.hg-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.75rem 1.25rem; border-radius: 0.75rem; background: #1e1e1e; color: #fff; font-size: 0.9375rem; font-weight: 600; transition: background-color 0.2s ease; }
.hg-btn svg { width: 1rem; height: 1rem; }
.hg-btn:hover { background: #c2570f; }
.hg-btn:focus-visible { outline: 3px solid #c2570f; outline-offset: 3px; }
#reports { scroll-margin-top: 6rem; }

/* Annual Reports: frosted-glass folders on a dotted desk. Each folder is a back
   panel with a tab (with brand-colour art behind the glass), the documents
   tucked inside, and a glass front that is the open/close button. By default
   (no JS) every folder is drawn open with its documents fanned out; tmh.js
   closes them, assembles each as it scrolls in (.is-in), opens one on click
   (.is-open) and leans it toward the pointer (--rx, --ry). */
/* The desk blends into its neighbours: its colour runs from the hero's cream at
   the top to the footer scene's top colour at the bottom, and the dots fade in
   and out instead of starting and stopping at the section edges. */
.gf-desk { background: linear-gradient(#fffaf7, #fdf8f3 22%, #fdf8f3 72%, #fffdf9); }
.gf-desk::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(30, 30, 30, 0.12) 1.1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 70%, transparent);
}
.gf-grid { display: grid; gap: 2.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); justify-items: center; align-items: end; }
/* isolation + will-change: each folder paints on its own layer, so moving one
   never makes the browser redraw the glass of its neighbours (which showed as
   faint lines on some GPUs). */
.gf { --spread: 30%; position: relative; width: min(100%, 23rem); padding-top: 30%; perspective: 1200px; isolation: isolate; }
.gf-body { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 5 / 4; will-change: transform; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

.gf-back { --tab: #efe7de; position: absolute; inset: 9% 0 0 0; border-radius: 0 22px 22px 22px; background: #efe7de; box-shadow: 0 30px 50px -28px rgba(60, 30, 10, 0.35); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gf-back::before { content: ""; position: absolute; left: 0; bottom: calc(100% - 6px); width: 40%; height: calc(12% + 6px); border-radius: 16px 16px 0 0; background: var(--tab); }
.gf-back::after { content: ""; position: absolute; left: calc(40% - 2px); bottom: calc(100% - 4px); width: 20px; height: 22px; background: radial-gradient(circle at 100% 0, transparent 17.5px, var(--tab) 18.5px); }
.gf--milk .gf-back { background: radial-gradient(circle at 78% 30%, rgba(244, 121, 32, 0.9), transparent 42%), radial-gradient(circle at 32% 72%, rgba(253, 186, 116, 0.95), transparent 48%), radial-gradient(circle at 92% 88%, rgba(194, 87, 15, 0.75), transparent 38%), #efe7de; }
.gf--plain .gf-back { --tab: #ece7e1; background: linear-gradient(#ece7e1, #e3ddd6); }
.gf--dark .gf-back { --tab: #2a2421; background: radial-gradient(circle at 72% 26%, rgba(244, 121, 32, 0.95), transparent 40%), radial-gradient(circle at 34% 64%, rgba(194, 87, 15, 0.8), transparent 44%), radial-gradient(circle at 88% 84%, rgba(120, 40, 8, 0.95), transparent 40%), #2a2421; }

.gf-front {
  --fy: 0px; --fx: 0deg;
  position: absolute; left: 0; right: 0; bottom: 0; top: 30%; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.4rem; text-align: left; cursor: pointer;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 26px 40px -20px rgba(60, 30, 10, 0.4);
  transform-origin: 50% 100%; transform: perspective(900px) translateY(var(--fy)) rotateX(var(--fx)); backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}
.gf-front:focus-visible { outline: 3px solid #c2570f; outline-offset: 4px; }
.gf-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: #1e1e1e; }
.gf-count { margin-top: 0.3rem; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.75rem; letter-spacing: 0.04em; color: #64748b; }
.gf-act { position: absolute; right: 1.1rem; bottom: 1.1rem; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: #1e1e1e; color: #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.gf-act svg { width: 1.35rem; height: 1.35rem; transform: rotate(45deg); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gf--plain .gf-act { background: linear-gradient(#fff, #f1ede8); color: #1e1e1e; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.gf--dark .gf-front { border-color: rgba(255, 255, 255, 0.1); background: linear-gradient(160deg, rgba(42, 36, 32, 0.74), rgba(18, 16, 14, 0.6)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 40px -20px rgba(0, 0, 0, 0.6); }
.gf--dark .gf-name { color: #fff; }
.gf--dark .gf-count { color: rgba(255, 255, 255, 0.62); }
.gf--dark .gf-act { background: #f47920; color: #1e1e1e; }

/* The documents. --k places each card in the fan: 0 in the middle, newest on
   the right and on top. Open is the default; closed is set below. */
.gf-files { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; }
.gf-file {
  --k: calc((var(--n) - 1) / 2 - var(--i));
  position: absolute; left: 14%; top: 2%; width: 72%; aspect-ratio: 4 / 3; z-index: calc(10 - var(--i));
  transform: translate(calc(var(--k) * var(--spread)), calc(-40% + var(--k) * var(--k) * 8%)) rotate(calc(var(--k) * 8deg));
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  transition-delay: calc(var(--i) * 45ms);
}
.gf-file a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: #fff; color: #1e1e1e; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gf-file a:hover { transform: translateY(-6px); box-shadow: 0 20px 34px -14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(244, 121, 32, 0.6); }
.gf-file a:focus-visible { outline: 3px solid #c2570f; outline-offset: 3px; }
.gf-file-head { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.75rem 0.55rem; }
.gf-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 0.875rem; font-weight: 700; line-height: 1.25; }
.gf-file-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.6875rem; color: #64748b; }
.gf-file img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 0; background: #f1f5f9; }
@media (max-width: 480px) { .gf { --spread: 15%; } }
/* Without JS the folders stay open and the button does nothing, so no badge. */
html:not(.js) .gf-act { display: none; }
html:not(.js) .gf-front { cursor: default; }

/* Closed: the cards sit inside, heads stepping up behind one another; hovering
   lifts them a little and tips the glass front toward the viewer. */
.js .gf:not(.is-open) .gf-file { transform: translate(calc(var(--k) * 3%), calc((var(--n) - 1 - var(--i)) * -1 * 7% + 13% + var(--lift, 0%))) rotate(calc(var(--k) * -1.2deg)); transition-delay: 0s; }
.js .gf:not(.is-open) .gf-act svg { transform: none; }
.js .gf:not(.is-open) .gf-front:hover, .js .gf:not(.is-open) .gf-front:focus-visible { --fx: -7deg; }
.js .gf:not(.is-open):hover { --lift: -10%; }
.js .gf.is-open .gf-front { --fx: -14deg; }
/* Assembling as it scrolls in: back, then documents, then the glass. */
.js .gf:not(.is-in) .gf-back { opacity: 0; transform: translateY(1.25rem); }
.js .gf:not(.is-in) .gf-file { opacity: 0; }
.js .gf:not(.is-in) .gf-front { opacity: 0; --fy: 2.25rem; }
/* The stagger applies only while assembling; tmh.js adds .is-settled after. */
.js .gf:not(.is-settled) .gf-back { transition-delay: calc(var(--d) * 140ms); }
.js .gf:not(.is-settled) .gf-file { transition-delay: calc(var(--d) * 140ms + 120ms + var(--i) * 60ms); }
.js .gf:not(.is-settled) .gf-front { transition-delay: calc(var(--d) * 140ms + 260ms); }
@media (prefers-reduced-motion: reduce) {
  .gf-body, .gf-back, .gf-front, .gf-file, .gf-file a, .gf-act svg { transition: none; }
}

/* Health package comparison. Without JS: a sideways-scrolling table with every
   column. tmh.js adds .sc-on, then the band slides to the chosen column and
   phones show one package at a time. */
.sc-full { padding-inline: clamp(1rem, 3vw, 3.5rem); }
.sc-intro { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) {
  .sc-intro { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 4rem; }
  .sc-intro-text { flex: 0 1 36rem; }
}
.sc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.sc-title { font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; color: #1e1e1e; }
.sc-switch { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: 0.875rem; font-weight: 600; color: #334155; }
.sc-switch.hidden { display: none; }
.sc-switch-track { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 999px; background: #cbd5e1; transition: background-color 0.2s ease; }
.sc-switch-thumb { position: absolute; top: 0.15rem; left: 0.15rem; width: 1.1rem; height: 1.1rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.sc-switch[aria-pressed="true"] .sc-switch-track { background: #c2570f; }
.sc-switch[aria-pressed="true"] .sc-switch-thumb { transform: translateX(1.1rem); }
.sc-switch:focus-visible, .sc-tab:focus-visible, .sc-plan-name:focus-visible, .sc-cta:focus-visible { outline: 3px solid #f47920; outline-offset: 2px; }
.sc-tabs { position: sticky; top: var(--sc-nav, 72px); z-index: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.75rem; border-radius: 0.9rem; background: #fff; border: 1px solid #fed7aa; box-shadow: 0 8px 18px -10px rgba(120, 53, 15, 0.3); }
.sc-tabs.hidden { display: none; }
.sc-tab { min-height: 2.75rem; padding: 0.3rem; border-radius: 0.7rem; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: #475569; transition: background-color 0.2s ease, color 0.2s ease; }
.sc-tab[aria-pressed="true"] { background: #c2570f; color: #fff; }
.sc-wrap { position: relative; isolation: isolate; overflow-x: auto; border-radius: 1.25rem; background: #fff; border: 1px solid #ffedd5; box-shadow: 0 18px 40px -24px rgba(120, 53, 15, 0.35); }
.sc-on .sc-wrap { overflow: visible; }
.sc-band { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 1.25rem; background: #fff7ed; box-shadow: inset 0 0 0 2px #f47920, 0 14px 30px -14px rgba(180, 84, 10, 0.5); pointer-events: none; transition: transform 0.45s var(--ease-out-expo), width 0.45s var(--ease-out-expo); }
.sc-band.hidden { display: none; }
.sc-table { position: relative; z-index: 1; width: 100%; min-width: 44rem; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sc-on .sc-table { min-width: 0; }
.sc-corner { width: 30%; }
/* The header follows the page down and hides the band behind it, so it has its
   own band, moved in step with the one below. */
.sc-table thead { position: sticky; top: var(--sc-nav, 72px); z-index: 3; background: #fff; clip-path: inset(0 round 1.25rem 1.25rem 0 0); }
.sc-plan { position: relative; z-index: 1; padding: 1.25rem 1rem; vertical-align: top; text-align: center; font-weight: 400; border-bottom: 1px solid #f1f5f9; }
.sc-corner { border-bottom: 1px solid #f1f5f9; }
.sc-band-head { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 1.25rem 1.25rem 0 0; background: #fff7ed; box-shadow: inset 2px 0 0 #f47920, inset -2px 0 0 #f47920, inset 0 2px 0 #f47920; pointer-events: none; transition: transform 0.45s var(--ease-out-expo), width 0.45s var(--ease-out-expo); }
.sc-band-head.hidden { display: none; }
.sc-plan-name { display: block; width: 100%; font-weight: 800; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.25; color: #1e1e1e; cursor: pointer; }
.sc-plan-tag { display: inline-block; margin-top: 0.4rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(244, 121, 32, 0.1); color: #9a4708; font-size: 0.75rem; font-weight: 600; }
.sc-plan-about { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.45; color: #475569; }
.sc-cta { display: block; width: 100%; max-width: 13rem; margin: 0.75rem auto 0; padding: 0.6rem 0.75rem; border-radius: 0.75rem; border: 1px solid rgba(180, 84, 10, 0.35); color: #b4540a; font-size: 0.875rem; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.sc-cta:hover, .sc-plan.is-on .sc-cta { background: #c2570f; border-color: #c2570f; color: #fff; }
.sc-plan.is-on .sc-cta:hover { background: #b4540a; }
.sc-group th { padding: 1.1rem 1.25rem 0.5rem; text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #b4540a; }
.sc-row th { padding: 0.7rem 1.25rem; text-align: left; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: #1e293b; border-top: 1px solid #f1f5f9; }
.sc-row td { padding: 0.7rem 0.5rem; text-align: center; border-top: 1px solid #f1f5f9; cursor: pointer; }
.sc-on .sc-row:hover th { color: #b4540a; }
.sc-check { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: #e2e8f0; color: #475569; vertical-align: middle; }
.sc-check svg { width: 0.85rem; height: 0.85rem; }
td.is-on .sc-check { background: #c2570f; color: #fff; }
.sc-none { display: inline-block; width: 0.85rem; height: 2px; border-radius: 2px; background: #94a3b8; vertical-align: middle; }
.sc-when { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: #334155; }
td.is-on .sc-when { color: #b4540a; }
.sc-summary { display: none; }
.sc-summary td { padding: 0.6rem 1.25rem 1rem; font-size: 0.875rem; font-style: italic; color: #64748b; }
.sc-diff .sc-row[data-same] { display: none; }
.sc-diff .sc-summary { display: table-row; }
.sc-table tbody:last-child .sc-row:last-child > * { padding-bottom: 1.1rem; }
.sc-about-corner { padding: 0; }
.sc-about { padding: 0 1rem 1rem; vertical-align: top; text-align: center; cursor: pointer; }
/* Pinned under the floating navbar: rows passing above it stay hidden. */
.sc-table thead.is-pinned { clip-path: none; box-shadow: 0 -6rem 0 #fff; }
@media (min-width: 768px) {
  .sc-tabs, .sc-tabs.hidden { display: none; }
}
:lang(ta) .sc-group th { letter-spacing: 0.02em; }
@media (prefers-reduced-motion: no-preference) {
  .sc-on td.is-on .sc-check { animation: scCheck 0.38s var(--ease-out-expo) both; animation-delay: calc(var(--i, 0) * 18ms); }
  @keyframes scCheck { from { transform: scale(0.55); opacity: 0.35; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .sc-band, .sc-band-head { transition: none; }
}
/* One package at a time on phones, with the tabs choosing it. */
@media (max-width: 767.98px) {
  .sc-on .sc-table thead { position: static; clip-path: none; }
  .sc-on .sc-corner { display: none; }
  .sc-on .sc-plan[data-col], .sc-on .sc-row td[data-col] { display: none; }
  .sc-on .sc-plan[data-col].is-on { display: table-cell; background: #fff7ed; }
  .sc-on .sc-row td.is-on { display: table-cell; width: 34%; }
  .sc-on .sc-about-corner, .sc-on .sc-about { display: none; }
  .sc-on .sc-about.is-on { display: table-cell; background: #fff7ed; }
  .sc-on .sc-band { display: none; }
  .sc-on .sc-table { table-layout: auto; }
  .sc-on .sc-plan.is-on { border-radius: 1.25rem 1.25rem 0 0; }
  .sc-row th { padding-inline: 1rem; font-size: 0.875rem; }
  .sc-group th { padding-inline: 1rem; }
}

/* Squishy package cards (home). Two shapes sit behind the text and stretch with a
   spring on hover; they darken what is behind white text, so they never cost
   contrast. tmh.js adds .is-squished to the middle card on touch screens. */
.sq-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.sq { --sq-bg: #c2570f; --sq-shape: rgba(0, 0, 0, 0.24); --sq-glow: rgba(194, 87, 15, 0.45); position: relative; isolation: isolate; overflow: hidden; display: flex; border-radius: 1.5rem; background: var(--sq-bg); color: #fff; box-shadow: 0 16px 32px -20px var(--sq-glow); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease; }
.sq-dark { --sq-bg: #1e1e1e; --sq-shape: rgba(255, 255, 255, 0.09); --sq-glow: rgba(0, 0, 0, 0.5); }
.sq-red { --sq-bg: #c81e25; --sq-shape: rgba(0, 0, 0, 0.24); --sq-glow: rgba(200, 30, 37, 0.45); }
.sq-circle, .sq-ellipse { position: absolute; z-index: -1; left: 50%; width: 66%; border-radius: 50%; background: var(--sq-shape); transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sq-circle { top: 6%; aspect-ratio: 1; transform: translateX(-50%) scaleY(0.55); transform-origin: 50% 0; }
.sq-ellipse { bottom: 12%; aspect-ratio: 2.3; transform: translateX(-50%); transform-origin: 50% 100%; }
.sq-body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: clamp(1.25rem, 2vw, 2rem); }
.sq-tag { padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1e1e1e; font-size: 0.75rem; font-weight: 700; }
.sq-title { font-weight: 800; font-size: clamp(1.625rem, 2.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.sq-about { font-size: 0.9375rem; line-height: 1.5; }
.sq-tests { width: 100%; padding-bottom: 0.5rem; }
.sq-tests .text-slate-500 { color: #fff; }
.sq-tests .text-primary-ink { color: #fff; }
.sq-tests .pkg-chip { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.28); color: #fff; font-size: 0.8125rem; }
.sq-tests .pkg-chip-base { background: #fff; border-color: #fff; color: #1e1e1e; }
.sq-cta { margin-top: auto; width: 100%; padding: 0.85rem 1rem; border-radius: 0.85rem; background: #fff; color: #1e1e1e; font-size: 0.9375rem; font-weight: 700; transition: background-color 0.2s ease, transform 0.2s ease; }
.sq-cta:hover { background: #fff7ed; }
.sq-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
:lang(ta) .sq-title { font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1.3; letter-spacing: 0; }
@media (hover: hover) {
  .sq:hover { transform: scale(1.025); box-shadow: 0 26px 46px -20px var(--sq-glow); }
  .sq:hover .sq-circle { transform: translateX(-50%) scaleY(1.05); }
  .sq:hover .sq-ellipse { transform: translateX(-50%) scaleY(1.9); }
}
.sq:focus-within .sq-circle, .sq.is-squished .sq-circle { transform: translateX(-50%) scaleY(1.05); }
.sq:focus-within .sq-ellipse, .sq.is-squished .sq-ellipse { transform: translateX(-50%) scaleY(1.9); }
.sq.is-squished { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
  .sq, .sq-circle, .sq-ellipse { transition: none; }
  .sq:hover, .sq.is-squished { transform: none; }
}

/* Leadership image accordion (home). Without JS: every panel open, stacked.
   tmh.js adds .ac-on, and the photos rest side by side. Below 1180px, tapping one
   opens its text underneath. Above it, opening one pushes them aside for its text,
   which sits on that photo's own side. */
.ac { --gap: 1rem; display: flex; flex-direction: column; gap: var(--gap); }
.ac-panel { position: relative; overflow: hidden; border-radius: 1.5rem; background: #fffaf7; border: 1px solid #ffedd5; box-shadow: 0 18px 38px -26px rgba(120, 53, 15, 0.45); }
.ac-trigger { position: relative; display: block; width: 100%; height: 22rem; overflow: hidden; background: #f1f5f9; text-align: left; cursor: default; }
.ac-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ac-peek { position: absolute; inset: auto 0 0; display: none; padding: 3.5rem 1.25rem 1.1rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82)); }
.ac-peek-name { display: block; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.ac-peek-role { display: block; margin-top: 0.2rem; font-size: 0.875rem; font-weight: 500; line-height: 1.3; }
.ac-text { padding: 1.5rem 1.25rem 1.6rem; }
.ac-name { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; color: #1e1e1e; }
.ac-role { margin-top: 0.4rem; font-size: 1rem; font-weight: 600; line-height: 1.35; color: #b4540a; }
.ac-bio { margin-top: 1rem; font-size: 0.9375rem; line-height: 1.65; color: #475569; }
.ac-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-size: 0.9375rem; font-weight: 600; color: #b4540a; transition: gap 0.2s ease; }
.ac-link:hover { gap: 0.65rem; }
.ac-link:focus-visible, .ac-trigger:focus-visible { outline: 3px solid #f47920; outline-offset: -3px; }
:lang(ta) .ac-name { line-height: 1.3; letter-spacing: 0; }

/* Both photos side by side from the start, as on large screens. Tapping one opens
   its text underneath; the full profile is one link further. */
.ac-on .ac-peek { display: block; pointer-events: none; transition: opacity 0.35s ease; }
@media (max-width: 1179.98px) {
  .ac-on { --gap: 0.75rem; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: 46rem; margin-inline: auto; }
  .ac-on .ac-panel { display: contents; }
  .ac-on .ac-trigger { grid-row: 1; height: auto; aspect-ratio: 4 / 5; border-radius: 1.25rem; cursor: pointer; box-shadow: 0 16px 30px -20px rgba(30, 30, 30, 0.6); transition: box-shadow 0.3s ease; }
  .ac-on .ac-panel.is-open .ac-trigger { box-shadow: 0 0 0 3px #f47920, 0 16px 30px -20px rgba(30, 30, 30, 0.6); }
  .ac-on .ac-photo { object-position: 50% 0; }
  .ac-on .ac-peek { padding: 2.75rem 0.7rem 0.7rem; }
  .ac-on .ac-peek-name { font-size: clamp(0.9375rem, 2.6vw, 1.25rem); }
  .ac-on .ac-peek-role { font-size: clamp(0.75rem, 1.9vw, 0.875rem); }
  .ac-on .ac-body { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.6s var(--ease-out-expo), visibility 0.6s; }
  .ac-on .ac-panel.is-open .ac-body { grid-template-rows: 1fr; visibility: visible; }
  .ac-on .ac-text { min-height: 0; overflow: hidden; padding-block: 0; border-radius: 1.25rem; background: #fffaf7; opacity: 0; transition: padding 0.6s var(--ease-out-expo), opacity 0.3s ease; }
  .ac-on .ac-panel.is-open .ac-text { padding-block: 1.25rem 1.4rem; opacity: 1; box-shadow: inset 0 0 0 1px #ffedd5; }
  .ac-on .ac-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
}

@media (min-width: 1180px) {
  .ac-on {
    --h: min(clamp(32rem, 34vw, 38rem), 82vh);
    --ph: min(calc(var(--h) * 0.8), calc((100cqw - (var(--n) - 1) * var(--gap) - 34rem) / var(--n)));
    --free: calc(100cqw - var(--n) * var(--ph) - (var(--n) - 1) * var(--gap));
    --shift: 0px;
    container-type: inline-size; position: relative; flex-direction: row; justify-content: center; height: var(--h);
  }
  .ac-on.ac-open-left { --shift: calc(var(--free) / 2); }
  .ac-on.ac-open-right { --shift: calc(var(--free) / -2); }
  .ac-on .ac-panel, .ac-on .ac-panel:not(.is-open) { position: static; flex: none; width: var(--ph); overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .ac-on .ac-trigger, .ac-on .ac-panel:not(.is-open) .ac-trigger {
    z-index: 1; width: 100%; height: 100%; border-radius: 1.5rem; cursor: default; box-shadow: 0 18px 38px -22px rgba(30, 30, 30, 0.55);
    transform: translateX(var(--shift)); transition: transform 0.9s var(--ease-out-expo);
  }
  .ac-on .ac-photo { object-position: 50% 0; }
  .ac-on .ac-peek, .ac-on .ac-panel:not(.is-open) .ac-peek { opacity: 1; }
  .ac-on .ac-panel.is-open .ac-peek { opacity: 0; }
  .ac-on .ac-body, .ac-on .ac-panel:not(.is-open) .ac-body { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; width: calc(var(--free) - var(--gap)); visibility: hidden; transition: visibility 0.4s; }
  .ac-on .ac-panel.ac-left .ac-body { left: 0; }
  .ac-on .ac-panel.ac-right .ac-body { right: 0; }
  .ac-on .ac-panel.is-open .ac-body { visibility: visible; transition: visibility 0s; }
  .ac-on .ac-text, .ac-on .ac-panel:not(.is-open) .ac-text { max-height: 100%; padding: 0.5rem clamp(1rem, 2.5vw, 3rem); overflow-y: auto; scrollbar-width: thin; opacity: 0; transition: opacity 0.2s ease, transform 0.6s var(--ease-out-expo); }
  .ac-on .ac-panel.ac-left .ac-text { transform: translateX(2.5rem); }
  .ac-on .ac-panel.ac-right .ac-text { transform: translateX(-2.5rem); }
  .ac-on .ac-panel.is-open .ac-text { opacity: 1; transform: none; transition: opacity 0.55s ease 0.2s, transform 0.9s var(--ease-out-expo) 0.05s; }
  .ac-on .ac-bio { font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ac-on .ac-panel, .ac-on .ac-trigger, .ac-on .ac-body, .ac-on .ac-text, .ac-on .ac-peek { transition: none !important; }
}

/* Patient Care Services: photos on an arc (home). Without JS, a swipeable row.
   tmh.js adds .gl-on, then places each card and sets the stage height to fit the arc. */
.gl { --gw: clamp(13.5rem, 24vw, 27rem); margin-top: -0.5rem; }
.gl-track { list-style: none; display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; padding: 1rem clamp(1rem, 3vw, 3.5rem); }
.gl-track::-webkit-scrollbar { display: none; }
.gl-card { flex: none; width: var(--gw); }
.gl-photo { position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 1.25rem; background: #f1f5f9; box-shadow: 0 18px 34px -20px rgba(15, 23, 42, 0.5); }
.gl-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out-expo); user-select: none; -webkit-user-drag: none; }
.gl-cap { display: block; padding: 0.8rem 0.25rem 0; text-align: center; }
.gl-title { display: block; font-weight: 800; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.2; color: #1e1e1e; }
.gl-sub { display: block; margin-top: 0.2rem; font-size: clamp(0.8125rem, 0.95vw, 0.9375rem); line-height: 1.35; color: #475569; }
.gl-card figure:focus-visible { outline: 3px solid #f47920; outline-offset: 4px; border-radius: 1.25rem; }
.gl-on .gl-stage { position: relative; height: var(--gl-h, calc(var(--gw) * 1.5)); overflow: clip; touch-action: pan-y; cursor: grab; }
.gl-on .gl-stage.is-dragging { cursor: grabbing; }
.gl-on .gl-track { position: absolute; inset: 0; display: block; overflow: visible; padding: 0; }
.gl-on .gl-card { position: absolute; top: 1rem; left: 50%; margin-left: calc(var(--gw) / -2); will-change: transform; transform-origin: 50% 50%; }
.gl-on .gl-card:hover .gl-photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .gl-photo img { transition: none; }
}

/* Bottom action bar (phones): a full-width bar at the top of the page that floats
   up as a pill once scrolled, in step with the navbar. tmh.js adds .is-floating. */
#mobile-cta {
  --cta-move: 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  left: 0; right: 0; bottom: 0;
  transition: left var(--cta-move), right var(--cta-move), bottom var(--cta-move), border-radius var(--cta-move), padding var(--cta-move), box-shadow 0.7s ease, border-color 0.5s ease, filter 0.3s ease, translate 0.4s var(--ease-out-soft);
}
/* Both pills slide out of the way while scrolling down (tmh.js .nav-away):
   the navbar everywhere, the call/book pill on phones (it only exists there).
   The desktop contact strip above the navbar scrolls away with the page. */
#navbar.nav-away .nav-shell { translate: 0 calc(-100% - 1rem); }
#navbar.nav-away .nav-shell { pointer-events: none; }
@media (max-width: 767px) {
  #mobile-cta.nav-away { translate: 0 calc(100% + 1rem + env(safe-area-inset-bottom)); }
}
#mobile-cta > div { transition: padding var(--cta-move); }
#mobile-cta > div > * { transition: border-radius var(--cta-move), background-color 0.2s ease; }
#mobile-cta.is-floating {
  left: 0.75rem; right: 0.75rem; bottom: calc(0.5rem + env(safe-area-inset-bottom)); padding-bottom: 0;
  border-radius: 1.5rem; border-color: rgba(30, 30, 30, 0.06); box-shadow: 0 14px 34px -12px rgba(30, 30, 30, 0.45);
}
#mobile-cta.is-floating > div { padding: 0.4rem; }
#mobile-cta.is-floating > div > * { border-radius: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
  #mobile-cta, #mobile-cta > div, #mobile-cta > div > * { transition: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Home hero: layered parallax. --sw is the width of the photo (4:3), always
   wide enough to cover. The photo is pinned to the hero by one point, so the
   building's roofline sits at the same height on every screen and the name
   stays anchored to it. tmh.js moves the [data-px] layers.
   ───────────────────────────────────────────────────────────────────────── */
.hero-px {
  --hero-h: clamp(580px, calc(100vh - 7.875rem), 1120px);
  --hero-h: clamp(580px, calc(100svh - 7.875rem), 1120px);
  --sw: max(100vw, calc(var(--hero-h) * 1.5));
  position: relative; overflow: hidden; background: #0a0f1c;
  min-height: var(--hero-h); display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-px-scene {
  position: absolute; width: var(--sw); height: calc(var(--sw) * 0.75);
  left: calc((100vw - var(--sw)) * 0.4);
  top: calc(var(--hero-h) * 0.36 - var(--sw) * 0.3075);
}
.hero-px-layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.hero-px-sky { filter: brightness(0.68) saturate(1.1); }
.hero-px-title {
  /* A full viewport wide wherever the photo is cropped. Its foot just touches
     the tower's roofline, so scrolling sinks it behind the building. */
  position: absolute; left: calc((var(--sw) - 100vw) * 0.4); width: 100vw; bottom: 62.2%;
  padding-inline: 1rem; text-align: center; color: #fff; text-wrap: balance;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: 5.5vw;
  margin: 0;
  text-shadow: 0 2px 30px rgba(15, 23, 42, 0.3);
}
.hero-px-title > span { display: inline-block; }
.hero-px-abbr { color: #ffc48a; }
.hero-px-shade {
  position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 15, 28, 0.94), rgba(10, 15, 28, 0.86) 50%, rgba(10, 15, 28, 0.45) 80%, transparent);
}
.hero-px-content { width: 100%; padding-block: 1.75rem 1.5rem; isolation: isolate; }
.hero-px-content h1 { font-size: 3rem; line-height: 1.1; }
/* One calm band under the photo: tagline and buttons, then a ruled row of facts. */
.hero-px-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; }
.hero-px-label { margin-bottom: 0.5rem; color: #ffc48a; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.hero-px-intro { margin-top: 0.5rem; max-width: 42rem; color: rgba(255, 255, 255, 0.82); font-size: 1rem; line-height: 1.6; }
.hero-px-facts {
  display: flex; justify-content: space-between; gap: 1.5rem;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
}
.hero-px-fact { display: flex; align-items: center; gap: 0.75rem; }
.hero-px-checks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.hero-px-check { display: flex; align-items: center; gap: 0.375rem; color: rgba(255, 255, 255, 0.72); font-size: 0.8125rem; }
@media (max-width: 1023px) {
  /* Too narrow to overlay: the scene takes the top, the text follows on dark. */
  .hero-px { --hero-h: clamp(440px, 58vh, 620px); --hero-h: clamp(440px, 58svh, 620px); min-height: 0; }
  .hero-px-title { font-size: 8.6vw; }
  .hero-px-shade { inset: calc(var(--hero-h) * 0.5) 0 0; height: auto;
    background: linear-gradient(to bottom, transparent, rgba(10, 15, 28, 0.92) calc(var(--hero-h) * 0.32), #0a0f1c calc(var(--hero-h) * 0.5)); }
  .hero-px-content { padding-top: calc(var(--hero-h) * 0.76); }
  .hero-px-content h1 { font-size: 2.25rem; }
  .hero-px-main { flex-direction: column; align-items: stretch; gap: 1.25rem; }
}
/* Phones crop the photo so the taller left-hand block reaches above the
   tower's roofline, and the name wraps to three lines: lift it clear so its
   last line isn't half hidden at rest (it still sinks behind on scroll). */
@media (max-width: 767px) {
  .hero-px-title { bottom: 66%; }
  /* The Tamil name is longer: keep it to three lines below the navbar. */
  html:lang(ta) .hero-px-title { font-size: 6.6vw; line-height: 1.2; }
}
@media (min-width: 768px) {
  /* The Emergency fact already says this. */
  .hero-px-check--dup { display: none; }
}
@media (min-width: 1024px) {
  /* The shade follows the text, so it stays behind it however tall the text is. */
  .hero-px-shade { display: none; }
  .hero-px-content::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: 50%; width: 100vw; transform: translateX(-50%); top: -6.5rem; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 15, 28, 0.62) 6.5rem, rgba(10, 15, 28, 0.86) 12rem, rgba(10, 15, 28, 0.95));
  }
}
@media (max-width: 767px) {
  /* Phones keep the short checklist; these three facts would push it off screen. */
  .hero-px-facts { display: none; }
  .hero-px-checks { justify-content: flex-start; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }
}
:lang(ta) .hero-px-title { font-family: 'Noto Sans Tamil', sans-serif; letter-spacing: 0; line-height: 1.25; font-size: 5.2vw; }
@media (max-width: 1023px) { :lang(ta) .hero-px-title { font-size: min(7.6vw, 3.25rem); } .hero-px-title { font-size: min(8.6vw, 3.75rem); } }
@media (min-width: 1024px) {
  :lang(ta) .hero-px-title { font-size: 4.3vw; }
  :lang(ta) .hero-px-content h1 { font-size: 2.25rem; line-height: 1.3; }
}
/* On opening, the name rises from behind the hospital: it starts below the
   skyline, where the layers in front hide it. Held until those layers have
   loaded (tmh.js adds .is-ready), or it would slide across bare sky. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-px-rise {
    animation: heroRise 3s cubic-bezier(0.3, 0.8, 0.3, 1) 0.25s both paused;
    will-change: transform;
  }
  .js .hero-px.is-ready .hero-px-rise { animation-play-state: running; }
  @keyframes heroRise {
    from { transform: translateY(calc(100% + var(--sw) * 0.1)); }
    to { transform: none; }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Footer: a call to action over rolling hills. Each hill is solid from its crest
   down and only slides downwards, so nothing can open up behind it.
   ───────────────────────────────────────────────────────────────────────── */
.ft { --ft-ground: #1e1e1e; --ft-gutter: clamp(1rem, 3vw, 3.5rem); background: var(--ft-ground); }
.ft-scene {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(440px, 33vw, 760px);
  background: linear-gradient(to bottom, #fffdf9, #fdf6ea 50%, #fce8d2);
}
.ft-scene::after {
  /* Melts the last hill into the ground under it. */
  content: ''; position: absolute; z-index: 2; inset: auto 0 0; height: 3.5rem; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ft-ground));
}
.ft-ridge {
  position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; top: var(--t);
  height: calc(100% - var(--t)); object-fit: cover; object-position: 50% 0; pointer-events: none;
  transform: translate3d(0, calc((1 - var(--p, 1)) * var(--k)), 0);
}
.ft-ridge-1 { --t: 30%; --k: 30px; }
.ft-ridge-2 { --t: 40%; --k: 60px; }
.ft-ridge-3 { --t: 49%; --k: 100px; }
.ft-ridge-4 { --t: 57%; --k: 150px; }
.ft-ridge-5 { --t: 65%; --k: 210px; }
.ft-ridge-6 { --t: 73%; --k: 280px; }
.ft-call { position: relative; z-index: 3; padding: clamp(2rem, 3.2vw, 4.5rem) var(--ft-gutter) 0; text-align: center; }
.ft-title {
  color: #1e1e1e; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance;
  font-size: clamp(2.25rem, 6vw, 10rem);
}
:lang(ta) .ft-title { letter-spacing: 0; line-height: 1.3; font-size: clamp(2rem, 4.6vw, 8rem); }
.ft-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: clamp(1rem, 1.5vw, 1.75rem); }
/* Keyboard focus: dark on the light sky (the rest of the footer is on dark ground). */
.ft-call :focus-visible { outline-color: #1e1e1e; }
/* The links use the full width: lists run in columns, so no tall thin stacks. */
.ft-grid {
  display: grid; gap: 2rem clamp(2rem, 4vw, 5rem);
  padding: 1.75rem var(--ft-gutter) 2rem;
}
.ft-bar { padding-inline: var(--ft-gutter); }
.ft-brand > * + * { margin-top: 0.75rem; }
.ft-list { columns: 2; column-gap: 1.5rem; }
.ft-list > li { break-inside: avoid; padding-bottom: 0.6rem; line-height: 1.35; }
@media (min-width: 640px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ft-grid { grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.9fr) minmax(14rem, 1fr); }
}
@media (min-width: 1800px) {
  .ft-list { columns: 3; }
  .ft-grid a, .ft-grid li span, .ft-brand p { font-size: 1rem; }
}
@media (max-width: 639.98px) {
  /* Phones: taller hills would push the links away, the buttons share a line. */
  .ft-scene { height: 400px; }
  .ft-ridge-1 { --t: 44%; } .ft-ridge-2 { --t: 52%; } .ft-ridge-3 { --t: 60%; }
  .ft-ridge-4 { --t: 67%; } .ft-ridge-5 { --t: 74%; } .ft-ridge-6 { --t: 81%; }
  .ft-actions > * { flex: 1 1 0; padding-inline: 0.5rem; white-space: nowrap; }
  :lang(ta) .ft-actions > * { font-size: 0.8125rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   About page growth timeline (.stl). An orange line fills down the track as
   the reader scrolls and each year lights up when the line reaches its dot
   (tmh.js "Scroll timeline"). Phones: one rail down the left. Desktop: edge
   to edge, cards alternating around a centre line, each faced by its year in
   large outline type that fills with orange when reached. The plain state is
   fully drawn and lit: only `.is-armed`, set by the script, dims the years
   not yet reached.
   ───────────────────────────────────────────────────────────────────────── */
.stl {
  position: relative;
  --stl-x: 0.75rem;                 /* the line's distance from the left */
  --stl-pad: 1rem;                  /* card padding above the year pill */
  --stl-dot-y: calc(var(--stl-pad) + 0.875rem);
  --stl-line: #f6dcc6;
}
.stl-list { list-style: none; margin: 0; padding: 0; }
.stl-item { position: relative; padding: 0 0 1.5rem 2.5rem; }
.stl-item:last-child { padding-bottom: 0; }

.stl-track {
  position: absolute;
  left: calc(var(--stl-x) - 1px);
  top: var(--stl-dot-y);
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--stl-line);
}
.stl-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, var(--tmh-primary), var(--tmh-primary-deep));
  transform-origin: 50% 0;
  transform: scaleY(var(--stl-p, 1));
}
.stl-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--tmh-primary);
  box-shadow: 0 0 0 4px rgba(244, 121, 32, 0.2), 0 0 18px 4px rgba(244, 121, 32, 0.45);
  opacity: 0;
  transform: translateY(var(--stl-y, 0px));
  transition: opacity 0.3s ease;
}

.stl-dot {
  position: absolute;
  z-index: 1;
  left: calc(var(--stl-x) - 8px);
  top: calc(var(--stl-dot-y) - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tmh-primary);
  box-shadow: 0 0 0 5px rgba(244, 121, 32, 0.15);
  transition: transform 0.45s var(--ease-spring), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stl-body {
  position: relative;
  padding: var(--stl-pad) 1.25rem 1.125rem;
  border: 1px solid #ffedd5;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(120, 53, 15, 0.35);
}
.stl-year {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  margin: 0;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff4ea;
  color: var(--tmh-primary-ink);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.stl-text {
  margin: 0.75rem 0 0;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.7;
}
/* Figures in a description (core/templatetags/text_emphasis.py): bold, with
   an orange highlighter stroke that sweeps in when the year is reached. */
.stl-figure {
  padding: 0 0.15em;
  margin: 0 -0.05em;
  border-radius: 0.2em;
  color: var(--tmh-dark);
  font-weight: 700;
  background: linear-gradient(transparent 58%, rgba(244, 121, 32, 0.28) 58%, rgba(244, 121, 32, 0.28) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.8s var(--ease-out-soft) 0.25s;
}
.stl-big { display: none; }

@media (min-width: 1024px) {
  .stl {
    --stl-x: 50%;
    --stl-pad: 1.5rem;
    --stl-gap: clamp(3rem, 5vw, 6rem);   /* card edge to the centre line */
  }
  .stl-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--stl-gap) * 2);
    align-items: start;
    padding: 0 0 clamp(2rem, 3vw, 3.5rem);
  }
  .stl-body {
    width: 100%;
    max-width: 40rem;
    padding-inline: 1.75rem;
  }
  .stl-text { font-size: 1rem; line-height: 1.75; }
  /* A short arm joins each card to its dot. */
  .stl-body::before {
    content: "";
    position: absolute;
    top: calc(var(--stl-dot-y) - 1px);
    width: var(--stl-gap);
    height: 2px;
    background: var(--tmh-primary);
    transition: background-color 0.3s ease;
  }
  .stl-item--left .stl-body { grid-column: 1; grid-row: 1; justify-self: end; }
  .stl-item--left .stl-body::before { left: 100%; }
  .stl-item--right .stl-body { grid-column: 2; grid-row: 1; justify-self: start; }
  .stl-item--right .stl-body::before { right: 100%; }

  .stl-big {
    display: block;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    margin: 0;
    font-size: clamp(4rem, 8.5vw, 9rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 2px #f3c9a6;
    background: linear-gradient(120deg, var(--tmh-primary), var(--tmh-primary-deep) 60%, #b4540a);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
    transition: background-size 0.9s var(--ease-out-soft), -webkit-text-stroke-color 0.5s ease, opacity 0.6s ease, transform 0.8s var(--ease-out-soft);
  }
  .stl-big--long { font-size: clamp(2.5rem, 4.6vw, 5rem); }
  .stl-item--left .stl-big { grid-column: 2; }
  .stl-item--right .stl-big { grid-column: 1; }
}

/* Armed by the script: years below the line wait, dimmed and nudged outward. */
.stl.is-armed .stl-head { opacity: 1; }
.stl.is-armed .stl-body { transition: opacity 0.5s ease, transform 0.6s var(--ease-out-soft), box-shadow 0.5s ease; }
.stl.is-armed .stl-item:not(.is-on) .stl-body { opacity: 0.35; transform: translateX(14px); box-shadow: none; }
.stl.is-armed .stl-item:not(.is-on) .stl-figure { background-size: 0% 100%; }
.stl.is-armed .stl-item:not(.is-on) .stl-dot {
  background: #ead9cb;
  border-color: #ead9cb;
  box-shadow: none;
  transform: scale(0.6);
}
.stl.is-armed .stl-item.is-on .stl-dot { animation: stl-pop 0.6s var(--ease-out-soft); }
@keyframes stl-pop {
  0% { box-shadow: 0 0 0 0 rgba(244, 121, 32, 0.45); }
  100% { box-shadow: 0 0 0 5px rgba(244, 121, 32, 0.15); }
}
@media (min-width: 1024px) {
  .stl.is-armed .stl-item--left:not(.is-on) .stl-body { transform: translateX(-14px); }
  .stl.is-armed .stl-item:not(.is-on) .stl-body::before { background: var(--stl-line); }
  /* Unreached: a pale outline. Reached: filled with the brand gradient. */
  .stl.is-armed .stl-item:not(.is-on) .stl-big {
    -webkit-text-stroke-color: #f3dccb;
    background-size: 100% 0%;   /* the orange rises through the outline when reached */
    opacity: 0.8;
    transform: translateY(12px);
  }
  .stl.is-armed .stl-item.is-on .stl-big,
  .stl:not(.is-armed) .stl-big {
    -webkit-text-stroke-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stl-dot, .stl-head, .stl-big, .stl-figure { transition: none; animation: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   About page "Five reasons" card stack (.cst). Each card is sticky a little
   lower than the one before, so scrolling slides the next card up onto the
   pile and the earlier ones keep a sliver showing. tmh.js ("Card stack")
   feeds --cst-d, how many cards now lie on top, so buried cards shrink and
   dim. Without it (no JS, reduced motion) the cards still stack, flat.
   ───────────────────────────────────────────────────────────────────────── */
.cst {
  --cst-top: 5.75rem;          /* clears the floating nav */
  --cst-step: 0.875rem;        /* how much of each buried card stays visible */
  --cst-gap: 22vh;             /* scroll between one card and the next */
  list-style: none;
  margin: 0;
  padding: 0;
}
.cst-card {
  --cst-d: 0;
  position: sticky;
  top: calc(var(--cst-top) + var(--i) * var(--cst-step));
  display: grid;
  gap: 0.75rem 1.5rem;
  align-items: start;
  margin: 0 0 var(--cst-gap);
  padding: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 4.5vw, 5rem);
  border: 1px solid #ffedd5;
  border-radius: clamp(1.25rem, 2vw, 2rem);
  background: var(--tmh-cream);
  color: var(--tmh-dark);
  box-shadow: 0 -18px 40px -26px rgba(120, 53, 15, 0.35), 0 24px 50px -30px rgba(120, 53, 15, 0.35);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cst-d) * 0.04));
  will-change: transform;
}
.cst-card:last-child { margin-bottom: 0; }
/* Buried cards dim under a veil instead of fading, so nothing shows through. */
.cst-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #1e1e1e;
  opacity: min(calc(var(--cst-d) * 0.08), 0.3);
  pointer-events: none;
}

.cst-num {
  font-size: clamp(3.5rem, 11vw, 12rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(135deg, var(--tmh-primary), var(--tmh-primary-deep) 55%, #b4540a);
  -webkit-background-clip: text;
  background-clip: text;
}
.cst-title {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cst-text {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: #334155;
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
  line-height: 1.65;
}

/* Five tones of the brand, so the growing pile reads as separate layers. */
.cst-card--2 { background: #fff1e6; border-color: #fddcc2; }
.cst-card--3 { background: var(--tmh-primary-cta); border-color: var(--tmh-primary-cta); color: #fff; }
.cst-card--4 { background: var(--tmh-dark); border-color: #2c2c2c; color: #fff; }
.cst-card--5 { background: #fff; border-color: #fbd5b5; }
.cst-card--3 .cst-text { color: #fff; }
.cst-card--4 .cst-text { color: rgba(255, 255, 255, 0.85); }
.cst-card--3 .cst-num { background: none; color: rgba(255, 255, 255, 0.9); }

@media (min-width: 768px) {
  .cst { --cst-top: 6.5rem; --cst-step: 1.125rem; }
  .cst-card {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2rem clamp(2rem, 4vw, 5rem);
    align-items: center;
    min-height: clamp(18rem, 44vh, 28rem);
  }
  .cst-num { justify-self: start; }
}
@media (min-width: 1024px) {
  .cst { --cst-step: 1.5rem; }
}
/* Very wide screens: the copy grows with the card instead of leaving a gap. */
@media (min-width: 1800px) {
  .cst-card { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .cst-title { font-size: clamp(3.25rem, 2.6vw, 4rem); }
  .cst-text { max-width: 64rem; font-size: clamp(1.375rem, 1.05vw, 1.625rem); }
}
@media (prefers-reduced-motion: reduce) {
  .cst-card { transform: none; }
  .cst-card::after { opacity: 0; }
}

/* Ribbon field behind the card stack: soft brand ribbons (orange, amber,
   deep orange, a light sheen) drifting slowly on warm peach. The field is a
   sticky, screen-tall layer, so it stays in view while the cards stack.
   overflow: clip (not hidden) keeps the sticky layer working. Lighter at the
   top and bottom so the heading and the CTA strip read cleanly. */
.cst-section { position: relative; isolation: isolate; background: #fde3c8; }
.cst-bg { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.cst-bg-field { position: sticky; top: 0; height: 100vh; overflow: clip; }
.cst-bg::before,
.cst-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 12vh;
}
.cst-bg::before { top: 0; background: linear-gradient(#fff 0%, rgba(253, 227, 200, 0)); }
.cst-bg::after { bottom: 0; background: linear-gradient(rgba(253, 227, 200, 0), var(--tmh-cream) 100%); }  /* the timeline below is cream */

.cst-ribbon {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: cst-drift var(--dur, 22s) ease-in-out infinite alternate;
}
.cst-ribbon--1 {
  left: -20vw; top: 4vh; width: 100vw; height: 52vh;
  background: radial-gradient(closest-side, rgba(238, 108, 18, 0.9), rgba(238, 108, 18, 0));
  --rot: -12deg; --dx: 8vw; --dy: 6vh; --dur: 24s;
}
.cst-ribbon--2 {
  right: -25vw; top: 34vh; width: 105vw; height: 56vh;
  background: radial-gradient(closest-side, rgba(250, 178, 40, 0.9), rgba(250, 178, 40, 0));
  --rot: 10deg; --dx: -10vw; --dy: -5vh; --dur: 28s;
}
.cst-ribbon--3 {
  left: 30vw; top: -6vh; width: 85vw; height: 46vh;
  background: radial-gradient(closest-side, rgba(217, 96, 10, 0.75), rgba(217, 96, 10, 0));
  --rot: -6deg; --dx: 6vw; --dy: -8vh; --dur: 20s;
}
.cst-ribbon--4 {
  left: -12vw; top: 64vh; width: 60vw; height: 34vh;
  background: radial-gradient(closest-side, rgba(255, 244, 228, 0.95), rgba(255, 244, 228, 0));
  --rot: 14deg; --dx: 12vw; --dy: -4vh; --dur: 18s;
}
@keyframes cst-drift {
  from { transform: rotate(var(--rot)) translate3d(0, 0, 0) scale(1); }
  to { transform: rotate(calc(var(--rot) * -0.6)) translate3d(var(--dx), var(--dy), 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .cst-ribbon { animation: none; transform: rotate(var(--rot)); }
}

/* ─────────────────────────────────────────────────────────────────────────
   About page Mission & Vision (.gls): frosted-glass cards with soft-edged
   brand-orange balls gliding slowly behind a translucent white face. The
   balls are blurred themselves and clipped to the card's shape; blurring
   with backdrop-filter instead left a hard edge at the card's corner.
   Reduced motion: the balls stay still.
   ───────────────────────────────────────────────────────────────────────── */
.gls-section {
  position: relative;
  background:
    radial-gradient(60% 80% at 10% 0%, #ffe9d6 0%, rgba(255, 233, 214, 0) 70%),
    var(--tmh-cream);
}
.gls-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 768px) { .gls-grid { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); } }

.gls {
  --gls-r: clamp(1.5rem, 2vw, 2rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--gls-r);
  box-shadow: 0 30px 60px -36px rgba(120, 53, 15, 0.45);
}
.gls-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  will-change: transform;
}
/* Soft-edged balls that glide slowly across the card and back. */
.gls-orb--a {
  top: 6%;
  right: 6%;
  width: clamp(9rem, 15vw, 16rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 30%, #ffd08a, var(--tmh-primary) 58%, var(--tmh-primary-deep));
  animation: gls-glide-a 10s ease-in-out infinite alternate;
}
.gls-orb--b {
  bottom: 6%;
  left: 5%;
  width: clamp(6rem, 9vw, 10rem);
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 30%, #fff0cf, #fbb03b 55%, var(--tmh-primary));
  animation: gls-glide-b 13s ease-in-out infinite alternate;
  animation-delay: -4s;
}
.gls--alt .gls-orb--a { animation-delay: -5s; }
.gls--alt .gls-orb--b { left: auto; right: 5%; animation-name: gls-glide-b-alt; animation-delay: -9s; }
@keyframes gls-glide-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-70%, 22%) scale(0.86); }
  100% { transform: translate(-130%, -6%) scale(1.05); }
}
@keyframes gls-glide-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80%, -40%) scale(1.12); }
  100% { transform: translate(150%, -10%) scale(0.92); }
}
@keyframes gls-glide-b-alt {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80%, -40%) scale(1.12); }
  100% { transform: translate(-150%, -10%) scale(0.92); }
}

.gls-card {
  position: relative;
  height: 100%;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--gls-r);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.46));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gls-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--tmh-dark);
  background: linear-gradient(100deg, var(--tmh-dark) 30%, var(--tmh-primary-cta) 75%, var(--tmh-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gls-statement {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  color: #1f2937;
  font-size: clamp(1.25rem, 2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.gls-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
  max-width: 52rem;
}
.gls-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #334155;
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  line-height: 1.6;
}
.gls-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tmh-primary), var(--tmh-primary-deep));
  box-shadow: 0 0 0 4px rgba(244, 121, 32, 0.15);
}
@media (prefers-reduced-motion: reduce) {
  .gls-orb { animation: none; }
}


/* ─────────────────────────────────────────────────────────────────────────
   About page Genesis fan (.fan): a hand of four story cards. tmh.js
   ("Genesis fan") adds .fan-on and gives each card data-pos: 0 front,
   1 right, 2 back, 3 left; the front card tilts with the pointer through
   --rx/--ry on its inner box. Without the script the cards are a grid.
   ───────────────────────────────────────────────────────────────────────── */
.fan { display: grid; gap: 2rem; align-items: center; }
.fan-stage { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.fan-card { --edge: var(--tmh-primary); }
.fan-card--2 { --edge: var(--tmh-primary-cta); }
.fan-card--3 { --edge: #fbb03b; }
.fan-card--4 { --edge: var(--tmh-dark); }
.fan-inner {
  height: 100%;
  overflow: hidden;
  border-top: 6px solid var(--edge);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 28px 60px -30px rgba(30, 30, 30, 0.45);
}
.fan-photo { padding: 0.75rem 0.75rem 0; }
.fan-photo img {
  display: block;
  width: 100%;
  height: clamp(10rem, 16vw, 14rem);
  object-fit: cover;
  border-radius: 1rem;
  user-select: none;
}
.fan-body { padding: 1.125rem 1.5rem 1.5rem; }
.fan-title { margin: 0; font-size: clamp(1.375rem, 1.8vw, 1.875rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--tmh-dark); }
.fan-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.fan-chips li { padding: 0.25rem 0.7rem; border-radius: 999px; background: #fff1e6; color: var(--tmh-primary-ink); font-size: 0.8125rem; font-weight: 700; }
.fan-text { margin: 0.75rem 0 0; color: #334155; font-size: clamp(0.9375rem, 1vw, 1.0625rem); line-height: 1.6; }

.fan-controls { margin-top: 1.5rem; }
.fan-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fan-tab {
  padding: 0.55rem 1rem;
  border: 1px solid #fbd5b5;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.fan-tab:hover { border-color: var(--tmh-primary); color: var(--tmh-primary-ink); }
.fan-tab[aria-pressed="true"] { background: var(--tmh-primary-cta); border-color: var(--tmh-primary-cta); color: #fff; }
.fan-arrows { display: flex; gap: 0.5rem; margin-top: 1rem; }
.fan-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #fbd5b5;
  border-radius: 50%;
  background: #fff;
  color: var(--tmh-primary-ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.fan-arrow svg { width: 1.25rem; height: 1.25rem; }
.fan-arrow:hover { background: var(--tmh-primary-cta); border-color: var(--tmh-primary-cta); color: #fff; }
.fan-tab:focus-visible, .fan-arrow:focus-visible, .fan-card:focus-visible { outline: 2px solid var(--tmh-primary-cta); outline-offset: 3px; }

/* The fanned hand (script on). */
.fan-on .fan-stage {
  position: relative;
  display: block;
  height: var(--fan-h, 36rem);
  touch-action: pan-y;
  perspective: 1400px;
}
.fan-on .fan-card {
  --fan-w: min(84vw, 28rem);
  position: absolute;
  top: 8%;
  left: 50%;
  width: var(--fan-w);
  margin-left: calc(var(--fan-w) / -2);
  transition: transform 0.75s var(--ease-out-expo), filter 0.5s ease;
  cursor: pointer;
}
.fan-on .fan-card[data-pos="0"] { z-index: 4; transform: none; cursor: default; }
.fan-on .fan-card[data-pos="1"] { z-index: 3; transform: translate(var(--fan-dx, 34%), 6%) rotate(var(--fan-rot, 8deg)) scale(0.92); }
.fan-on .fan-card[data-pos="3"] { z-index: 2; transform: translate(calc(var(--fan-dx, 34%) * -1), 6%) rotate(calc(var(--fan-rot, 8deg) * -1)) scale(0.92); }
.fan-on .fan-card[data-pos="2"] { z-index: 1; transform: translateY(-13%) scale(0.86); filter: brightness(0.96); }
.fan-on .fan-card:not([data-pos="0"]) .fan-inner { box-shadow: 0 18px 40px -26px rgba(30, 30, 30, 0.4); }
.fan-on .fan-card[data-pos="0"] .fan-inner {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}
/* Every card takes the tallest card's height (tmh.js sets --fan-card-h), so
   the ones behind never stick out unevenly. */
.fan-on .fan-card { height: var(--fan-card-h, auto); }
.fan-card .fan-photo, .fan-card .fan-body { transition: opacity 0.4s ease; }

/* Phones: the cards behind are plain edges peeking out on either side (their
   tilted text was unreadable clutter), the title buttons give way to the
   arrows, and the hand sits close under the heading. */
@media (max-width: 767px) {
  .fan { gap: 1.25rem; }
  .fan-tabs { display: none; }
  .fan-controls { margin-top: 1rem; }
  .fan-arrows { margin-top: 0; }
  .fan-on .fan-stage { --fan-dx: 5%; --fan-rot: 3.5deg; }
  .fan-on .fan-card { top: 0.75rem; --fan-w: calc(100vw - 3.5rem); }
  .fan-on .fan-card:not([data-pos="0"]) .fan-photo,
  .fan-on .fan-card:not([data-pos="0"]) .fan-body { opacity: 0; }
  .fan-on .fan-card[data-pos="1"] { transform: translate(var(--fan-dx), 2.5%) rotate(var(--fan-rot)) scale(0.96); }
  .fan-on .fan-card[data-pos="3"] { transform: translate(calc(var(--fan-dx) * -1), 2.5%) rotate(calc(var(--fan-rot) * -1)) scale(0.96); }
  .fan-on .fan-card[data-pos="2"] { transform: translateY(-2.5%) scale(0.92); }
  .fan-photo img { height: 11rem; }
  .fan-body { padding: 1rem 1.25rem 1.25rem; }
  .fan-text { font-size: 0.9375rem; }
}

@media (min-width: 1024px) {
  .fan { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 5rem); }
  .fan-intro { padding-left: clamp(0rem, 2vw, 2.5rem); }
  .fan-on .fan-card { --fan-w: clamp(23rem, 27vw, 40rem); }
  .fan-on .fan-stage { --fan-dx: 36%; --fan-rot: 8deg; }
}
@media (min-width: 1700px) {
  .fan-on .fan-stage { --fan-dx: 44%; --fan-rot: 9deg; }
  .fan-title { font-size: 2.125rem; }
  .fan-text { font-size: 1.125rem; }
  .fan-photo img { height: 17rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-on .fan-card, .fan-on .fan-card .fan-inner { transition: none; }
}


/* ─────────────────────────────────────────────────────────────────────────
   About page hero (.ahc): "About TMH" in the middle of real TMH photos
   floating at two depths on brand dark. tmh.js ("About hero") feeds --mx/--my
   (-1..1, pointer) and --sp (0..1, scroll); each card moves by its --d, so
   the front ones (d 1) travel further than the back ones (d 0.55). Cards fly
   in on load (--i staggers them) and bob gently. Reduced motion: still.
   ───────────────────────────────────────────────────────────────────────── */
.ahc {
  --mx: 0; --my: 0; --sp: 0;
  position: relative;
  isolation: isolate;
  height: clamp(36rem, 92svh, 60rem);
  overflow: hidden;
  background: #1e1e1e;
  color: #fff;
}
.ahc-glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(42% 38% at 50% 50%, rgba(244, 121, 32, 0.32), rgba(244, 121, 32, 0) 70%),
    radial-gradient(30% 30% at 15% 85%, rgba(217, 106, 18, 0.22), rgba(217, 106, 18, 0)),
    radial-gradient(30% 30% at 88% 12%, rgba(251, 176, 59, 0.16), rgba(251, 176, 59, 0));
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0);
  transition: transform 0.6s ease-out;
}
.ahc-card {
  --rot: 0deg;
  position: absolute;
  margin: 0;
  width: var(--w);
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  z-index: calc(2 + var(--d) * 10);
  transform:
    translate3d(calc(var(--mx) * var(--d) * -46px + var(--sx, 0) * var(--sp) * 120px),
                calc(var(--my) * var(--d) * -30px + var(--sp) * var(--d) * -90px), 0)
    rotate(var(--rot));
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ahc-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: clamp(4px, 0.45vw, 8px) solid #fff;
  border-radius: clamp(0.75rem, 1vw, 1.25rem);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  user-select: none;
  animation: ahc-in 1.1s cubic-bezier(0.19, 1, 0.22, 1) both, ahc-bob 7s ease-in-out infinite alternate;
  animation-delay: calc(0.12s * var(--i)), calc(1.2s + var(--i) * -1.3s);
}
/* Back layer: smaller, softer, behind the title. */
.ahc-card[style*="--d: 0.55"] img { filter: saturate(0.85) brightness(0.8); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7); }
@keyframes ahc-in {
  from { opacity: 0; transform: translate3d(0, 60px, 0) scale(0.7) rotate(calc(var(--rot) * -2)); }
  to { opacity: 1; transform: none; }
}
@keyframes ahc-bob {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}
/* Where each photo sits (centre point), how wide, how tilted, and which way
   it spreads on scroll (--sx). Front cards keep clear of the text block. */
.ahc-c1 { --x: 12%; --y: 22%; --w: 19vw; --rot: -6deg; --sx: -1; }
.ahc-c2 { --x: 88%; --y: 24%; --w: 17vw; --rot: 5deg;  --sx: 1; }
.ahc-c3 { --x: 15%; --y: 80%; --w: 19vw; --rot: 4deg;  --sx: -1; }
.ahc-c4 { --x: 82%; --y: 77%; --w: 21vw; --rot: -4deg; --sx: 1; }
.ahc-c5 { --x: 33%; --y: 14%; --w: 13vw; --rot: 3deg;  --sx: -0.5; }
.ahc-c6 { --x: 67%; --y: 13%; --w: 12vw; --rot: -5deg; --sx: 0.5; }
.ahc-c7 { --x: 50%; --y: 89%; --w: 11vw; --rot: 2deg;  --sx: 0; }

.ahc-copy {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: 96vw;
  translate: -50% -50%;
  text-align: center;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -6px + var(--sp) * 40px), 0);
  transition: transform 0.6s ease-out;
}
.ahc-crumb { display: inline-flex; gap: 0.5rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.75); }
.ahc-crumb a:hover { color: var(--tmh-primary); text-decoration: underline; text-underline-offset: 4px; }
.ahc-title {
  display: block;
  width: max-content;   /* the gradient fill only covers the box, so the box must hold every letter */
  margin: 0.5rem auto 0;
  padding-inline: 0.06em;
  font-size: clamp(3.5rem, 12vw, 13rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #ffd2a8 70%, var(--tmh-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45));
}
.ahc-h1 { margin: 1rem auto 0; max-width: 56rem; font-size: clamp(1.25rem, 2vw, 1.875rem); font-weight: 800; line-height: 1.2; }
.ahc-sub { margin: 0.5rem auto 0; max-width: 34rem; color: rgba(255, 255, 255, 0.8); font-size: clamp(0.9375rem, 1.1vw, 1.125rem); line-height: 1.6; }

/* Narrower desktops: the title takes more of the width, so the front photos
   shrink and move to the corners. */
@media (min-width: 768px) and (max-width: 1439px) {
  .ahc-c1 { --x: 13%; --y: 22%; --w: 22vw; }
  .ahc-c2 { --x: 87%; --y: 22%; --w: 20vw; }
  .ahc-c3 { --x: 15%; --y: 82%; --w: 21vw; }
  .ahc-c4 { --x: 85%; --y: 82%; --w: 22vw; }
  .ahc-c5, .ahc-c6 { --y: 10%; }
}
@media (max-width: 767px) {
  .ahc { height: 40rem; }
  .ahc-c5, .ahc-c6, .ahc-c7 { display: none; }
  .ahc-c1 { --x: 22%; --y: 17%; --w: 42vw; }
  .ahc-c2 { --x: 78%; --y: 20%; --w: 38vw; }
  .ahc-c3 { --x: 24%; --y: 85%; --w: 40vw; }
  .ahc-c4 { --x: 76%; --y: 83%; --w: 42vw; }
  .ahc-title { font-size: 17vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ahc-card, .ahc-copy, .ahc-glow { transition: none; transform: rotate(var(--rot, 0deg)); }
  .ahc-copy, .ahc-glow { transform: none; }
  .ahc-card img { animation: none; }
}

/* Sections with looping animations ([data-anim-pause]) pause them while off
   screen (tmh.js "Pause off-screen loops"), so they cost nothing there. */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* ─────────────────────────────────────────────────────────────────────────
   Model of Care "pinned steps" (.pin): the care principles as cards pinned
   to ruled paper, joined in order by a dashed path. tmh.js ("Pinned steps")
   places them in a snake (every other row reversed), staggers alternate
   columns down, draws the path, and drops each card onto its pin as it
   enters the view. Columns: 1 phone, 2 tablet, 3 laptop, 4 wide (--cols).
   Without the script the cards are a plain grid in reading order.
   ───────────────────────────────────────────────────────────────────────── */
.pin-section {
  position: relative;
  overflow-x: clip;   /* a tall tilted card at the edge can poke a pixel past it */
  background-color: var(--tmh-cream);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(244, 121, 32, 0.09) 35px 36px);
}
.pin-board {
  --cols: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 3.5rem clamp(1.5rem, 3.5vw, 4.5rem);
  list-style: none;
  margin: 0;
  padding: 0 0 2rem;
}
@media (min-width: 640px) { .pin-board { --cols: 2; } }
@media (min-width: 1024px) { .pin-board { --cols: 3; } }
@media (min-width: 1440px) { .pin-board { --cols: 4; } }

.pin-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.pin-path .pin-seg {
  fill: none;
  stroke: #c9b8aa;
  stroke-width: 2;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
}
.pin-path .pin-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.pin-path .pin-reveal.is-drawn { stroke-dashoffset: 0; }

.pin-card {
  --tilt: 0deg;
  --pin: var(--tmh-primary);
  --tint: #fff4ea;
  position: relative;
  z-index: 1;
  padding: 2.25rem 0.75rem 0.75rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 22px 44px -26px rgba(120, 53, 15, 0.45);
  transform: rotate(var(--tilt));
  transition: transform 0.45s var(--ease-out-soft), box-shadow 0.45s ease;
}
.pin-tone-2 { --pin: var(--tmh-primary-cta); --tint: #fdebdc; }
.pin-tone-3 { --pin: #e8a11a; --tint: #fff6e0; }
.pin-tone-4 { --pin: var(--tmh-dark); --tint: #f4f1ee; }
.pin-pin {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.875rem;
  color: var(--pin);
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.18));
}
.pin-pin svg { width: 100%; height: 100%; display: block; }
.pin-panel {
  height: 100%;
  padding: 1.25rem 1.375rem 1.375rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  background: var(--tint);
}
.pin-num { margin: 0; color: var(--pin); font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pin-tone-3 .pin-num { color: #b7770a; }
.pin-title { margin: 0.75rem 0 0; color: var(--tmh-dark); font-size: clamp(1.1875rem, 1.35vw, 1.4375rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.pin-text { margin: 0.625rem 0 0; color: #475569; font-size: 0.9375rem; line-height: 1.6; }

/* Script on: snake layout, alternating tilt and stagger, drop-in. */
.pins-on .pin-card { align-self: start; }
.pins-on .pin-card.is-low { margin-top: 3.5rem; }
.pins-on .pin-card:nth-child(odd) { --tilt: -2.5deg; }
.pins-on .pin-card:nth-child(even) { --tilt: 2deg; }
.pins-on .pin-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 30px 60px -28px rgba(120, 53, 15, 0.55); }
.pins-armed .pin-card:not(.is-in) { opacity: 0; transform: translateY(-46px) rotate(calc(var(--tilt) * -4)); }
.pins-armed .pin-card { transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease; }
.pins-armed .pin-card:not(.is-in) .pin-pin { transform: scale(0.4); opacity: 0; }
.pins-armed .pin-pin { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s, opacity 0.2s ease 0.35s; }

@media (min-width: 1800px) {
  .pin-title { font-size: 1.625rem; }
  .pin-text { font-size: 1.0625rem; }
  .pin-num { font-size: 2.375rem; }
  .pin-panel { padding: 1.5rem 1.75rem 1.75rem; }
}
/* Phones: one column, cards alternately to the left and right. */
@media (max-width: 639px) {
  .pin-board { gap: 2.75rem; padding-inline: 0.25rem; }
  .pins-on .pin-card { width: 88%; }
  .pins-on .pin-card.is-right { justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .pin-card, .pin-pin, .pin-path .pin-reveal { transition: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Model of Care hero (.moc): the title on ruled paper beside a pinned
   clipboard listing every care principle. tmh.js ("Care checklist") ticks
   them off one by one (.is-done) and tilts the board with the pointer
   (--rx/--ry). Without JS or with reduced motion every item shows ticked.
   ───────────────────────────────────────────────────────────────────────── */
.moc {
  position: relative;
  overflow: hidden;
  background-color: var(--tmh-cream);
  background-image:
    radial-gradient(45% 60% at 80% 45%, rgba(244, 121, 32, 0.16), rgba(244, 121, 32, 0) 70%),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(244, 121, 32, 0.09) 35px 36px);
}
.moc-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem);
}
@media (min-width: 1024px) { .moc-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); } }

.moc-crumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; color: #64748b; }
.moc-crumb a:hover { color: var(--tmh-primary-ink); text-decoration: underline; text-underline-offset: 4px; }
.moc-crumb [aria-current] { color: var(--tmh-dark); }
.moc-title {
  margin: 1rem 0 0;
  color: var(--tmh-dark);
  font-size: clamp(2.75rem, 6.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
:lang(ta) .moc-title { font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1.15; letter-spacing: 0; }
.moc-sub { margin: 1.25rem 0 0; max-width: 34rem; color: #475569; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); line-height: 1.55; }
.moc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--tmh-primary-cta);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.moc-cta:hover { background: var(--tmh-primary-ink); }
.moc-cta svg { width: 1.125rem; height: 1.125rem; }
.moc-cta:focus-visible { outline: 2px solid var(--tmh-primary-cta); outline-offset: 3px; }

/* The clipboard. */
.moc-board-wrap { perspective: 1400px; display: flex; justify-content: center; }
.moc-board {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  width: min(100%, 30rem);
  padding: 2.25rem 0.875rem 0.875rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #3a2f28, #1e1e1e 70%);
  box-shadow: 0 40px 70px -34px rgba(30, 30, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(2.5deg) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s ease-out;
}
.moc-clip {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  width: 7.5rem;
  height: 2.5rem;
  margin-left: -3.75rem;
  border-radius: 0.75rem 0.75rem 0.5rem 0.5rem;
  background: linear-gradient(#e4e4e7, #a1a1aa);
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff;
}
.moc-clip::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 2.25rem;
  height: 0.75rem;
  margin-left: -1.125rem;
  border-radius: 999px;
  background: #3f3f46;
}
.moc-paper {
  padding: 1.25rem 1.375rem 1.375rem 2.25rem;
  border-radius: 0.875rem;
  background-color: #fff;
  background-image: linear-gradient(to right, transparent 1.4rem, rgba(210, 32, 39, 0.35) 1.4rem 1.5rem, transparent 1.5rem);
}
.moc-paper-head { margin: 0 0 0.375rem; color: var(--tmh-primary-ink); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
/* Ruled on the list itself, one rule every 2rem, and every line of text is
   2rem tall, so items (even two-line Tamil ones) sit on the rules. */
.moc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2rem - 1px), #f1e3d6 calc(2rem - 1px) 2rem);
}
.moc-item { display: flex; align-items: flex-start; gap: 0.625rem; }
.moc-item .moc-box { margin-top: 0.4375rem; }
.moc-box {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #d6c4b5;
  border-radius: 0.3rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.moc-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.moc-box path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.moc-label { color: var(--tmh-dark); font-size: 0.9375rem; font-weight: 600; line-height: 2rem; }
.moc-item .moc-box { border-color: var(--tmh-primary-cta); background: var(--tmh-primary-cta); }

/* Script on: items start unticked and are ticked one by one. */
.moc-on .moc-item:not(.is-done) .moc-box { border-color: #d6c4b5; background: transparent; }
.moc-on .moc-item:not(.is-done) .moc-box path { stroke-dashoffset: 1; }
.moc-on .moc-item:not(.is-done) .moc-label { color: #94a3b8; }
.moc-on .moc-box path { transition: stroke-dashoffset 0.35s ease 0.08s; }
.moc-on .moc-label { transition: color 0.3s ease; }

@media (max-width: 1023px) {
  .moc-board { transform: rotate(1.5deg); }
}
@media (max-width: 639px) {
  .moc-paper { padding-left: 2rem; }
  .moc-label { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .moc-board, .moc-box, .moc-box path, .moc-label { transition: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Patient reviews (templates/core/_reviews.html, tmh.js) — one Google review
   at a time: the quote blurs out, the next blurs in, and the avatar pill of
   the one showing widens to the reviewer's name. All quotes share one grid
   cell (once JS is on), so the box is as tall as the longest quote and the
   page never jumps. Without JS: the quotes listed with their names.
   ───────────────────────────────────────────────────────────────────────── */
.rv { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.rv-stage {
  position: relative; display: grid; align-items: center;
  width: 100%; max-width: 46rem; padding: 2.25rem 1.25rem 1rem;
}
.rv-mark {
  position: absolute; font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(5.5rem, 14vw, 9rem); line-height: 1;
  color: var(--tmh-primary); opacity: .16; pointer-events: none; user-select: none;
}
.rv-mark--open  { left: -.25rem; top: -.75rem; }
.rv-mark--close { right: -.25rem; bottom: -3.25rem; }
.rv-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.rv-item + .rv-item { margin-top: 3rem; }
.rv-quote { margin: 0; }
.rv-quote p {
  margin: 0; color: var(--tmh-dark); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); line-height: 1.42; text-wrap: balance;
}
.rv-quote--long p { font-size: clamp(1.1rem, .95rem + .85vw, 1.55rem); line-height: 1.5; }
.rv-cap { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.rv-stars { display: inline-flex; gap: .15rem; color: var(--tmh-primary); }
.rv-stars svg { width: .95rem; height: .95rem; }
.rv-author { font-weight: 600; font-size: .95rem; color: var(--tmh-dark); }
.rv-meta { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #64748b; }

/* JS on: stack the quotes and cross-fade them */
.rv-on .rv-item {
  grid-area: 1 / 1; margin-top: 0;
  transition: opacity .9s var(--ease-out-soft) .35s, filter .9s var(--ease-out-soft) .35s,
              transform .9s var(--ease-out-soft) .35s, visibility 0s 0s;
}
.rv-on .rv-item:not(.is-active) {
  opacity: 0; filter: blur(6px); transform: scale(.98); visibility: hidden;
  transition: opacity .4s ease-in, filter .4s ease-in, transform .4s ease-in, visibility 0s .4s;
}
/* With pills, the name is on the pill — keep it for screen readers only */
.rv-on.rv-multi .rv-author {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.rv-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 100%; }
.rv-pills[hidden] { display: none; }
.rv-pill {
  --rv-ease: cubic-bezier(.4, 0, .2, 1);
  display: inline-flex; align-items: center; border: 0; border-radius: 999px;
  padding: .2rem; background: transparent; cursor: pointer;
  transition: background-color .5s var(--rv-ease), padding .5s var(--rv-ease), box-shadow .5s var(--rv-ease);
}
.rv-pill.is-active { background: var(--tmh-dark); box-shadow: var(--shadow-soft); padding: .35rem 1rem .35rem .35rem; }
.rv-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  font: 700 .72rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--tmh-primary), var(--tmh-primary-cta));
  transition: box-shadow .5s var(--rv-ease), transform .3s var(--rv-ease);
}
.rv-avatar--2 { background: linear-gradient(135deg, var(--tmh-accent), var(--tmh-primary)); }
.rv-avatar--3 { background: linear-gradient(135deg, #3a3a3a, var(--tmh-dark)); }
.rv-pill.is-active .rv-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.rv-name-wrap {
  display: grid; grid-template-columns: 0fr; opacity: 0; margin-left: 0;
  transition: grid-template-columns .5s var(--rv-ease), opacity .5s var(--rv-ease), margin-left .5s var(--rv-ease);
}
.rv-name { overflow: hidden; white-space: nowrap; font-size: .875rem; font-weight: 500; color: var(--tmh-dark); transition: color .3s; }
.rv-pill.is-active .rv-name-wrap { grid-template-columns: 1fr; opacity: 1; margin-left: .55rem; }
.rv-pill.is-active .rv-name { color: #fff; }
.rv-pill:focus-visible:not(.is-active) { padding: .35rem 1rem .35rem .35rem; background: rgba(30, 30, 30, .07); }
.rv-pill:focus-visible:not(.is-active) .rv-name-wrap { grid-template-columns: 1fr; opacity: 1; margin-left: .55rem; }
@media (hover: hover) {
  .rv-pill:not(.is-active):hover { padding: .35rem 1rem .35rem .35rem; background: rgba(30, 30, 30, .07); }
  .rv-pill:not(.is-active):hover .rv-name-wrap { grid-template-columns: 1fr; opacity: 1; margin-left: .55rem; }
  .rv-pill:not(.is-active):hover .rv-avatar { transform: scale(1.05); }
}
.rv-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .875rem; font-weight: 600; color: var(--tmh-primary-ink);
  transition: gap .3s var(--ease-out-soft);
}
.rv-more:hover { gap: .6rem; }
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv-item, .rv-on .rv-item:not(.is-active),
  .rv-pill, .rv-avatar, .rv-name-wrap { transition: none; }
  .rv-on .rv-item:not(.is-active) { filter: none; transform: none; }
}

/* Reviews entrance, tied to scroll (tmh.js sets --rv-p 0→1 on .rv as the
   block comes up the screen; .rv-in marks it as running). The reviewers'
   avatars start scattered round the quote and gather into their row, the
   words light up one after another, the quote marks swing in from the sides
   and keep a slow drift, and the stars pop in last. Unset, everything sits
   at its finished state. */
.rv-in .rv-w {
  opacity: clamp(.14, calc((var(--rv-p, 1) * (var(--n, 1) + 6) - var(--i, 0)) / 6), 1);
}
.rv-in .rv-mark--open {
  transform: translate(calc((1 - var(--rv-p, 1)) * -9rem), var(--rv-drift, 0px)) rotate(calc((1 - var(--rv-p, 1)) * -30deg));
  opacity: calc(.16 * var(--rv-p, 1));
}
.rv-in .rv-mark--close {
  transform: translate(calc((1 - var(--rv-p, 1)) * 9rem), calc(var(--rv-drift, 0px) * -1)) rotate(calc((1 - var(--rv-p, 1)) * 30deg));
  opacity: calc(.16 * var(--rv-p, 1));
}
.rv-in .rv-stars svg {
  transform: scale(clamp(0, calc((var(--rv-p, 1) - .62) * 22 - var(--s, 0) * .5), 1));
}
.rv-in .rv-meta, .rv-in .rv-more { opacity: clamp(0, calc(var(--rv-p, 1) * 5 - 3.6), 1); }
.rv-in .rv-pill {
  transform: translate(var(--rv-x, 0px), var(--rv-y, 0px)) rotate(var(--rv-r, 0deg)) scale(var(--rv-s, 1));
  opacity: var(--rv-o, 1);
}
.rv-in .rv-pill:not(.is-active) .rv-avatar { box-shadow: 0 10px 24px -10px rgba(30, 30, 30, calc((1 - var(--rv-s, 1)) * -1.4)); }

/* Slow auto-advance (tmh.js .rv-auto): a line fills under the active pill
   over --rv-dur; when it ends the next review comes in. .rv-paused holds it
   (pointer on the quote/pills, keyboard focus, off-screen, hidden tab). */
.rv { --rv-dur: 8s; }
.rv-auto .rv-pill { position: relative; }
.rv-auto .rv-pill.is-active::after {
  content: ''; position: absolute; left: 3.2rem; right: 1rem; bottom: .45rem; height: 2px;
  border-radius: 2px; background: var(--tmh-primary); transform-origin: left center;
  transform: scaleX(0); animation: rv-count var(--rv-dur) linear forwards;
}
.rv-auto.rv-paused .rv-pill.is-active::after { animation-play-state: paused; }
@keyframes rv-count { to { transform: scaleX(1); } }

/* ─────────────────────────────────────────────────────────────────────────
   Awards page: award moments (.asc). Plain state (no JS, reduced motion,
   phones): a card per award with its own photo. `.asc-on`, set by tmh.js
   "Award moments" at 768px and up, turns it into a full-width split: a
   sticky photo panel on the left that crossfades to each award's photo as
   its caption scrolls through the middle of the screen on the right. The
   script sets --o (fade) and --d (drift) on each caption from its distance
   to the screen's centre, and --asc-p for the panel's progress bar. The
   panel shows each photo whole (contain) over a blurred copy of itself, so
   any shape of photo staff upload fills the frame without cropping.
   ───────────────────────────────────────────────────────────────────────── */
.asc-section { padding: 3.5rem 0 4rem; --asc-nav: 4.75rem; }
@media (min-width: 640px) { .asc-section { padding: 5rem 0; } }
.asc { padding: 2rem 1rem 0; }
@media (min-width: 640px) { .asc { padding-inline: 1.5rem; } }
.asc-panel { display: none; }
.asc-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 85rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px) { .asc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .asc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.asc-item { background: #fff; border: 1px solid #ffedd5; border-radius: 1rem; overflow: hidden; }
.asc-card-photo { display: block; aspect-ratio: 4 / 3; background: #f1f5f9; overflow: hidden; cursor: zoom-in; }
.asc-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asc-copy { padding: 1.25rem; }
.asc-year {
  display: inline-block; margin-bottom: .6rem; padding: .2rem .65rem; border-radius: 999px;
  background: #fff3e8; color: var(--tmh-primary-ink, #b4540a);
  font: 800 .75rem/1.2 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif;
}
.asc-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; color: #1e1e1e; line-height: 1.3; }
.asc-org { margin-top: .25rem; font-size: .875rem; color: #475569; }
.asc-desc { margin-top: .5rem; font-size: .875rem; line-height: 1.6; color: #475569; }

.asc-on .asc {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 7rem); padding: 0 clamp(1rem, 4vw, 5rem);
}
.asc-on .asc-panel { display: block; }
.asc-on .asc-stage {
  --asc-h: min(calc(100vh - var(--asc-nav) - 4rem), 37vw);
  position: sticky; top: calc(var(--asc-nav) + (100vh - var(--asc-nav) - var(--asc-h)) / 2);
  height: var(--asc-h); overflow: hidden; border-radius: 1.5rem; background: #1e1e1e;
  box-shadow: 0 40px 80px -40px rgba(30, 30, 30, .55);
}
@media (max-width: 1023px) {
  .asc-on .asc-stage { --asc-h: min(calc(100vh - var(--asc-nav) - 4rem), 52vw); }
}
.asc-slide {
  position: absolute; inset: 0; display: block; overflow: hidden; cursor: zoom-in;
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.asc-slide.is-active { opacity: 1; pointer-events: auto; }
.asc-fill {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2); filter: blur(28px) brightness(.62) saturate(1.25);
}
.asc-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.07); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1);
}
.asc-slide.is-active .asc-photo { transform: none; }
.asc-slide:focus-visible { outline: 3px solid var(--tmh-primary); outline-offset: -3px; }
/* One segment per award; tmh.js sets --f (0..1) on each as its caption
   passes, so finished ones are full and the current one fills. */
.asc-bar {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem;
  display: flex; gap: .4rem; pointer-events: none;
}
.asc-seg {
  position: relative; flex: 1; height: 3px; overflow: hidden;
  border-radius: 3px; background: rgba(255, 255, 255, .28);
}
.asc-seg > span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--tmh-primary);
  transform-origin: left center; transform: scaleX(var(--f, 0));
}

.asc-on .asc-list { display: block; max-width: none; margin: 0; padding: 38vh 0; }
.asc-on .asc-item {
  background: none; border: 0; border-radius: 0; overflow: visible;
  opacity: var(--o, 1); transform: translateY(calc(var(--d, 0) * 5rem));
}
.asc-on .asc-item + .asc-item { margin-top: 30vh; }
.asc-on .asc-card-photo { display: none; }
.asc-on .asc-copy { padding: 0; max-width: 36rem; }
.asc-on .asc-year {
  display: block; margin-bottom: .75rem; padding: 0; border-radius: 0; background: none;
  font-size: clamp(3rem, 6.5vw, 7rem); line-height: .9; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--tmh-primary);
  transition: color .5s ease;
}
.asc-on .asc-item.is-active .asc-year { color: var(--tmh-primary); }
.asc-on .asc-title { font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; }
.asc-on .asc-org { margin-top: .6rem; font-size: clamp(1rem, 1.2vw, 1.2rem); }
.asc-on .asc-desc { margin-top: .75rem; font-size: clamp(.95rem, 1vw, 1.05rem); }

/* ─────────────────────────────────────────────────────────────────────────
   Awards page: recognitions timeline (.atl). Plain state (no JS, reduced
   motion, or a screen too short for two rows of text): a vertical list down
   one orange rail. `.atl-on`, set by tmh.js "Recognitions timeline", pins
   the section and slides the track sideways as the page scrolls; the
   section's height (set by the script) is the sideways distance plus one
   screen. Awards alternate above and below a centre line that draws
   (--atl-line) as you go; each award grows its stem (--q), pops its dot,
   and slides its text up out of a mask (.is-on) when the line reaches it.
   ───────────────────────────────────────────────────────────────────────── */
.atl { position: relative; background: #1e1e1e; color: #fff; --atl-nav: 4.75rem; --atl-step: clamp(12rem, 15vw, 21rem); }
.atl-pin { max-width: 85rem; margin: 0 auto; padding: 4rem 1rem 4.5rem; }
@media (min-width: 640px) { .atl-pin { padding: 5rem 1.5rem; } }
.atl-intro { display: grid; gap: 2rem; align-items: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .atl-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.atl-photo { overflow: hidden; border-radius: 1.25rem; aspect-ratio: 4 / 3; background: #2a2a2a; }
.atl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.atl-title {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.025em; color: #fff;
}
.atl-rule { display: flex; align-items: center; width: min(100%, 22rem); margin-top: 1.75rem; }
.atl-rule-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tmh-primary); }
.atl-rule-line { flex: 1; height: 1px; background: var(--tmh-primary); transform-origin: left center; }
.atl-period { margin-top: 1rem; font-size: clamp(1rem, 1.5vw, 1.4rem); color: #a1a1aa; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.atl-list { position: relative; list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(244, 121, 32, .45); }
.atl-item { position: relative; padding: 0 0 2.25rem 1.75rem; }
.atl-item:last-child { padding-bottom: 0; }
.atl-stem { display: none; }
.atl-dot {
  position: absolute; left: 0; top: .55rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--tmh-primary); transform: translateX(-50%); box-shadow: 0 0 0 4px #1e1e1e;
}
.atl-copy > * > span { display: block; }
.atl-year { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--tmh-primary); }
.atl-year svg { width: 1.6rem; height: 1.6rem; }
.atl-name { margin-top: .45rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: #fff; }
.atl-org { margin-top: .3rem; font-size: .925rem; line-height: 1.4; color: #d4d4d8; }
.atl-desc { margin-top: .5rem; max-width: 40rem; font-size: .875rem; line-height: 1.55; color: #a1a1aa; }

.atl-on .atl-pin {
  position: sticky; top: 0; height: 100vh; height: 100lvh; max-width: none; margin: 0;
  display: flex; align-items: center;
  padding: calc(var(--atl-nav) + 2rem) 0 2rem; overflow: hidden;
}
.atl-on .atl-track {
  display: flex; align-items: stretch; gap: 8vw; width: max-content; height: min(100%, max(36rem, 42vw));
  padding: 0 5vw; will-change: transform;
}
.atl-on .atl-intro { display: flex; flex: none; align-items: center; gap: 3vw; margin: 0; }
.atl-on .atl-photo { width: 30vw; height: min(31vw, 72%); aspect-ratio: auto; border-radius: 1.25rem; }
.atl-on .atl-photo img { transform: scale(calc(1.12 - var(--atl-p, 0) * .5)); transform-origin: left center; }
.atl-on .atl-head { width: 27vw; }
.atl-on .atl-title { font-size: clamp(2.5rem, 4vw, 5rem); }
.atl-on .atl-rule-line { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.65, 0, .35, 1) .15s; }
.atl-on.is-in .atl-rule-line { transform: none; }

.atl-on .atl-list {
  display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-auto-columns: var(--atl-step);
  flex: none; height: 100%; border: 0; padding-right: 4vw;
}
.atl-on .atl-list::before,
.atl-on .atl-list::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; transform-origin: left center;
}
.atl-on .atl-list::before { background: rgba(255, 255, 255, .12); }
.atl-on .atl-list::after { background: var(--tmh-primary); transform: scaleX(var(--atl-line, 0)); }
.atl-on .atl-item {
  grid-column: var(--i) / span 2; grid-row: 1; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 0 2.5vw 2.5rem 1.5rem;
}
.atl-on .atl-item:nth-child(even) { grid-row: 2; justify-content: flex-end; padding: 2.5rem 2.5vw 0 1.5rem; }
.atl-on .atl-stem {
  display: block; position: absolute; left: 0; top: .5rem; bottom: 0; width: 1px; background: var(--tmh-primary);
  transform-origin: center bottom; transform: scaleY(var(--q, 0));
}
.atl-on .atl-item:nth-child(even) .atl-stem { top: 0; bottom: .5rem; transform-origin: center top; }
.atl-on .atl-dot {
  top: .15rem; width: .85rem; height: .85rem; box-shadow: 0 0 0 5px rgba(244, 121, 32, .18);
  transform: translateX(-50%) scale(clamp(0, calc(var(--q, 0) * 4 - 3), 1));
}
.atl-on .atl-item:nth-child(even) .atl-dot { top: auto; bottom: .15rem; }
.atl-on .atl-copy { max-width: calc(var(--atl-step) * 2 - 5vw); }
.atl-on .atl-copy > * { overflow: hidden; padding-bottom: .08em; }
.atl-on .atl-copy > * > span {
  transform: translateY(115%); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.atl-on .atl-copy > :nth-child(2) > span { transition-delay: .07s; }
.atl-on .atl-copy > :nth-child(3) > span { transition-delay: .14s; }
.atl-on .atl-copy > :nth-child(4) > span { transition-delay: .21s; }
.atl-on .atl-item.is-on .atl-copy > * > span { transform: none; }
.atl-on .atl-year { font-size: clamp(1.75rem, 2.7vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
.atl-on .atl-year svg { width: 1em; height: 1em; }
.atl-on .atl-name { font-size: clamp(1.05rem, 1.35vw, 1.55rem); line-height: 1.22; }
.atl-on .atl-org { font-size: clamp(.85rem, .95vw, 1.05rem); }
.atl-on .atl-desc { font-size: clamp(.8rem, .9vw, 1rem); line-height: 1.45; }

@media (max-width: 767px) {
  .atl { --atl-step: 44vw; }
  /* Clear of the fixed Call / Book bar at the bottom of phones. */
  .atl-on .atl-pin { padding: calc(var(--atl-nav) + .75rem) 0 calc(4.75rem + env(safe-area-inset-bottom)); }
  .atl-on .atl-track { gap: 12vw; padding: 0 7vw; }
  /* Photo above the title, so the first pinned screen shows both. */
  .atl-on .atl-intro { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; }
  .atl-on .atl-photo { width: 80vw; height: min(56vw, 45%); }
  .atl-on .atl-head { width: 80vw; }
  .atl-on .atl-rule { margin-top: 1.1rem; }
  .atl-on .atl-title { font-size: 2.6rem; }
  .atl-on .atl-item { padding: 0 6vw 1.5rem 1.1rem; }
  .atl-on .atl-item:nth-child(even) { padding: 1.5rem 6vw 0 1.1rem; }
  .atl-on .atl-copy { max-width: none; }
  .atl-on .atl-year { font-size: 1.6rem; }
  .atl-on .atl-name { font-size: 1rem; }
  .atl-on .atl-org { font-size: .85rem; }
  .atl-on .atl-desc { font-size: .8rem; }
}

/* Awards: the timeline's dark fades into the footer's cream through warm
   dusk tones (a straight dark-to-cream blend goes muddy grey midway). */
.atl-fade {
  height: clamp(9rem, 22vw, 20rem); margin-bottom: -1px;
  background: linear-gradient(to bottom,
    #1e1e1e 0%, #241d19 14%, #34241a 28%, #573420 42%, #8f5631 56%,
    #c98a5c 69%, #ebc39f 81%, #f9e6d3 91%, #fffdf9 100%);
}

/* ─────────────────────────────────────────────────────────────────────────
   Awards hero (.spk), after 21st.dev Aceternity "Sparkles Preview Dark":
   sparks drift and twinkle on the brand dark behind a large centred title
   (tmh.js "Sparkles hero" draws them on the canvas). A soft orange glow
   sits under the title so the plain state (no JS, reduced motion) still
   reads as lit.
   ───────────────────────────────────────────────────────────────────────── */
.spk {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(24rem, 64vh, 42rem); background: #1e1e1e; color: #fff;
}
.spk-canvas { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.spk-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 58%, rgba(244, 121, 32, .17), transparent 70%),
    radial-gradient(45% 35% at 50% 105%, rgba(210, 32, 39, .14), transparent 72%);
}
.spk-inner { position: relative; max-width: 80rem; padding: 4.5rem 1rem; }
.spk-crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-bottom: 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .72);
}
.spk-crumbs a { transition: color .2s; }
.spk-crumbs a:hover { color: var(--tmh-primary); text-decoration: underline; text-underline-offset: 4px; }
.spk-crumbs [aria-current] { color: rgba(255, 255, 255, .92); }
.spk-title {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 8rem); line-height: 1.02; letter-spacing: -.035em;
  padding-bottom: .08em; text-wrap: balance;
  background: linear-gradient(to bottom, #fff 35%, #ffc896 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
:lang(ta) .spk-title { font-size: clamp(2rem, 5.5vw, 5rem); letter-spacing: 0; line-height: 1.25; }
/* Orange light beam under the title, as in the Sparkles preview. */
.spk-beam { position: relative; width: min(36rem, 80%); height: 6px; margin: 1.25rem auto 0; }
.spk-beam > span {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--tmh-primary), transparent);
}
.spk-beam > span:first-child { height: 3px; filter: blur(3px); }
.spk-beam > span:last-child { left: 30%; right: 30%; height: 1px; background: linear-gradient(to right, transparent, #ffd7b3, transparent); box-shadow: 0 0 10px 1px rgba(255, 170, 100, .5); }
.spk-sub { margin: 1.5rem auto 0; max-width: 40rem; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .74); }


/* ─────────────────────────────────────────────────────────────────────────
   Leadership page. Everything runs the full page width (.ldr-wrap).
   ───────────────────────────────────────────────────────────────────────── */
.ldr-wrap { padding-inline: clamp(1rem, 4vw, 5rem); }
/* Very wide screens: the group photo is only 870px wide, so it takes less of
   the row and the two profile cards sit side by side. */
@media (min-width: 1800px) {
  .ldr-lead { grid-template-columns: 2fr 3fr; }
  .ldr-lead > * { grid-column: auto; }
  .ldr-lead > div { flex-direction: row; }
  .ldr-lead h3 { font-size: 1.75rem; line-height: 1.2; }
  .ldr-lead .text-sm { font-size: 1.0625rem; line-height: 1.7; }
}

/* Hero: portrait wall, edge to edge. Columns drift in opposite directions. */
.pw {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(30rem, 78vh, 54rem); background: #1e1e1e; color: #fff;
}
.pw-wall {
  --g: clamp(.4rem, .7vw, .9rem);
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 100%; gap: var(--g);
}
.pw-col { min-height: 0; animation: pw-in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.pw-col:nth-child(n + 4) { display: none; }
.pw-track {
  display: flex; flex-direction: column; gap: var(--g); padding-bottom: var(--g);
  animation: pw-drift 60s linear infinite; animation-delay: calc(var(--i) * -9s);
}
.pw-col:nth-child(even) .pw-track { animation-direction: reverse; }
.pw-track img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: clamp(.5rem, .8vw, 1rem); }
.pw.is-paused .pw-track { animation-play-state: paused; }
@keyframes pw-drift { to { transform: translateY(-50%); } }
@keyframes pw-in { from { opacity: 0; translate: 0 40px; } }
@media (min-width: 640px) {
  .pw-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pw-col:nth-child(n + 4) { display: block; }
  .pw-col:nth-child(n + 6) { display: none; }
}
@media (min-width: 1024px) {
  .pw-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pw-col:nth-child(n + 6) { display: block; }
}
.pw-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 50% 50%, rgba(30, 30, 30, .95) 0%, rgba(30, 30, 30, .88) 50%, rgba(30, 30, 30, .2) 100%),
    linear-gradient(to bottom, rgba(30, 30, 30, .6), transparent 24%, transparent 76%, rgba(30, 30, 30, .65));
}
@media (min-width: 1024px) {
  .pw-scrim {
    background:
      radial-gradient(ellipse 40% 56% at 50% 50%, rgba(30, 30, 30, .95) 0%, rgba(30, 30, 30, .86) 52%, rgba(30, 30, 30, 0) 100%),
      linear-gradient(to bottom, rgba(30, 30, 30, .55), transparent 22%, transparent 78%, rgba(30, 30, 30, .6));
  }
}
.pw-inner { position: relative; max-width: 46rem; padding: 7rem 1.25rem 5.5rem; }
.pw-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .8rem; color: rgba(255, 255, 255, .78); }
.pw-crumbs a { transition: color .2s; }
.pw-crumbs a:hover { color: var(--tmh-primary); text-decoration: underline; text-underline-offset: 4px; }
.pw-crumbs [aria-current] { color: rgba(255, 255, 255, .95); }
.pw-title {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800;
  font-size: clamp(3rem, 7vw, 7.5rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
.pw-accent { color: var(--tmh-primary); }
.pw-sub { margin: 1.25rem auto 0; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .82); }
:lang(ta) .pw-title { font-size: clamp(2.25rem, 5vw, 5rem); letter-spacing: 0; line-height: 1.25; }
.pw-toggle {
  position: absolute; right: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem);
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 .85rem;
  border-radius: 999px; background: rgba(30, 30, 30, .78); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: .75rem; font-weight: 600; transition: background .2s;
}
.pw-toggle.hidden { display: none; }
.pw-toggle:hover { background: #c2570f; }
.pw-toggle svg { width: .85rem; height: .85rem; }
.pw-toggle svg.hidden { display: none; }

/* Founders: photo stack, story and name rail across the full width. */
.fdr {
  position: relative; overflow: hidden; background: #fffaf7; border-top: 1px solid #f1f5f9;
  padding-block: clamp(3.5rem, 6vw, 6rem) clamp(5rem, 15vw, 20rem);
}
.fdr-inner { position: relative; z-index: 1; }
.fdr-stage { display: grid; gap: 2.5rem; }
/* Without JS: all four photos, then all four stories. */
.fdr-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fdr-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; border-radius: 1.5rem; box-shadow: 0 18px 40px -16px rgba(30, 30, 30, .4); }
.fdr-rail { display: none; }
.fdr-panel + .fdr-panel { margin-top: 2.5rem; }
.fdr-who { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 2.8vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; color: #1e1e1e; }
.fdr-role { margin-top: .5rem; font-size: clamp(.875rem, .95vw, 1.05rem); font-weight: 600; color: #b4540a; }
.fdr-quote { margin-top: 1.25rem; padding-left: .9rem; border-left: 2px solid rgba(244, 121, 32, .45); font-style: italic; font-size: clamp(1rem, 1.15vw, 1.25rem); line-height: 1.55; color: #334155; }
.fdr-body { margin-top: 1.25rem; max-width: 66ch; font-size: clamp(1rem, 1.1vw, 1.2rem); line-height: 1.75; color: #475569; }
.fdr-body p + p { margin-top: .9rem; }

/* Narrower than its column: the leaning photos must not reach the page edge. */
.fdr.is-live .fdr-stack { display: block; position: relative; width: min(100% - 5rem, 18rem); margin-inline: auto; aspect-ratio: 4 / 5; perspective: 1000px; }
.fdr.is-live .fdr-photo {
  position: absolute; inset: 0; height: 100%; transform-origin: 50% 100%; opacity: .7;
  transform: rotate(var(--r, 0deg)) scale(.95); transition: transform .4s ease-in-out, opacity .4s ease-in-out;
}
.fdr.is-live .fdr-photo.is-active { opacity: 1; transform: none; }
.fdr.is-live .fdr-rail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.fdr.is-live .fdr-panels { display: grid; }
.fdr.is-live .fdr-panel { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; }
.fdr.is-live .fdr-panel.is-active { visibility: visible; opacity: 1; animation: fdr-rise .25s ease-in-out; }
.fdr.is-first .fdr-panel.is-active, .fdr.is-first .fdr-w { animation: none !important; }
.fdr-w { display: inline-block; }
.fdr-panel.is-active .fdr-w { animation: fdr-word .28s ease-in-out both; animation-delay: var(--d, 0ms); }
@keyframes fdr-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes fdr-word { from { opacity: 0; filter: blur(8px); transform: translateY(5px); } }

.fdr-names { display: flex; gap: .75rem; }
.fdr-name { display: flex; align-items: center; gap: .9rem; border-radius: 999px; text-align: left; color: #64748b; transition: color .2s; }
.fdr-name img { width: 3.25rem; height: 3.25rem; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 15%; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.fdr-name span { display: none; }
.fdr-name:hover { color: #1e1e1e; }
.fdr-name:hover img { outline-color: rgba(244, 121, 32, .4); }
.fdr-name[aria-current] { color: #1e1e1e; }
.fdr-name[aria-current] img { outline-color: var(--tmh-primary); }
.fdr-arrows { display: flex; gap: .6rem; }
.fdr-arrow {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: #1e1e1e; color: #fff; transition: background .2s;
}
.fdr-arrow svg { width: 1.2rem; height: 1.2rem; transition: transform .3s; }
.fdr-arrow:hover { background: #c2570f; }
.fdr-arrow:first-child:hover svg { transform: rotate(12deg); }
.fdr-arrow:last-child:hover svg { transform: rotate(-12deg); }
.fdr-ghost {
  position: absolute; left: 0; right: 0; bottom: .02em; z-index: 0; pointer-events: none;
  text-align: center; white-space: nowrap; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif;
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em; color: rgba(244, 121, 32, .13);
}
.fdr-ghost span { display: inline-block; }

@media (min-width: 1024px) {
  .fdr-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(13rem, 3fr); align-items: center; column-gap: clamp(3rem, 6vw, 7.5rem); }
  .fdr-stack { grid-column: 1; grid-row: 1; }
  .fdr-panels { grid-column: 2; grid-row: 1; }
  .fdr-rail { grid-column: 3; grid-row: 1; }
  .fdr.is-live .fdr-stack { width: min(100% - 4rem, 38rem); }
  .fdr.is-live .fdr-rail { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.75rem; }
  .fdr-names { flex-direction: column; gap: 1.1rem; }
  .fdr-name span { display: inline; font-size: clamp(.95rem, 1vw, 1.15rem); font-weight: 600; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .fdr.is-live .fdr-photo { transition: none; }
  .fdr.is-live .fdr-panel.is-active { animation: none; }
  .pw-col, .pw-track { animation: none; }
}

/* Patron and trustee cards: portrait in a soft tray, then name, role, a dotted
   rule and the short bio. A short last row sits centred. */
.pc-row { --gap: clamp(1.25rem, 2.2vw, 2.25rem); --n: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2.25rem, 3vw, 3rem) var(--gap); }
.pc { flex: 0 0 calc((100% - var(--gap) * (var(--n) - 1)) / var(--n)); min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 640px) { .pc-row { --n: 2; } }
@media (min-width: 1024px) { .pc-row { --n: 4; } }
@media (min-width: 1800px) { .pc-row--wide { --n: 7; } }
.pc-tray { padding: .5rem; border-radius: 1.25rem; background: #f6efe8; }
.pc-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: .85rem; background: #fffaf7; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .pc:hover .pc-photo img { transform: scale(1.04); } }
.pc-rule { margin: .75rem 0; border-top: 1px dotted #cbd5e1; }

/* Leadership bio popup (core/_bio_panel.html): brand dark panel, story on the
   left, portrait melting in from the right. Phones keep the bottom sheet. */
.bio-sheet.is-wide { background: #1e1e1e; color: #fff; padding-bottom: 0; }
.bp-photo { position: relative; height: 46vh; max-height: 26rem; background: #1e1e1e; }
.bp-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.bp-main { position: relative; margin-top: -3rem; }
.bp--text .bp-main { margin-top: 0; }
.bp--text .bp-copy { padding-top: 3.5rem; }
.bp-copy { padding: 0 1.5rem 1.75rem; }
.bp-name {
  padding-right: 2.5rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; color: #fff; text-wrap: balance;
}
.bp-role { margin-top: .6rem; font-size: clamp(.9rem, 1vw, 1.05rem); font-weight: 600; line-height: 1.4; color: #ffb27a; }
.bp-quote { margin-top: 1.5rem; }
.bp-quote span { display: block; height: 2.6rem; margin-left: -.15rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--tmh-primary); }
.bp-quote blockquote { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.5rem); line-height: 1.4; color: #fff; }
.bp-body { margin-top: 1.5rem; max-width: 62ch; font-size: clamp(.95rem, 1.05vw, 1.1rem); line-height: 1.75; color: rgba(255, 255, 255, .78); }
.bp-body p + p { margin-top: .9rem; }
.bp-rail {
  position: sticky; bottom: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  padding: .85rem 1rem max(.85rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #1e1e1e 78%, rgba(30, 30, 30, 0));
}
.bp-rail::-webkit-scrollbar { display: none; }
.bp-face { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.bp-face img {
  width: 2.35rem; height: 2.35rem; border-radius: 50%; object-fit: cover; object-position: 50% 15%; opacity: .6;
  outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s, outline-color .2s;
}
.bp-face:hover img { opacity: 1; }
.bp-face[aria-current] img { opacity: 1; outline-color: var(--tmh-primary); }
.bp-face:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* --bp-edge lets the flying photo take on the portrait's soft left edge as it lands. */
@property --bp-edge { syntax: '<number>'; inherits: false; initial-value: 1; }
.bp-flyer {
  position: fixed; z-index: 2; object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--bp-edge)), #000 34%); mask-image: linear-gradient(to right, rgba(0, 0, 0, var(--bp-edge)), #000 34%);
}
.is-openable { cursor: pointer; }
@media (hover: hover) { .is-openable:hover [data-bio-open] { text-decoration: underline; } }
@media (min-width: 1024px) {
  .bio-sheet.is-wide { max-width: 72rem; overflow-y: hidden; }
  .bp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); height: min(42rem, 88vh); }
  .bp--text { grid-template-columns: minmax(0, 1fr); }
  .bp-photo { grid-column: 2; grid-row: 1; height: 100%; max-height: none; }
  .bp-photo img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 34%); mask-image: linear-gradient(to right, transparent, #000 34%);
  }
  .bp-main { grid-column: 1; grid-row: 1; margin-top: 0; display: flex; flex-direction: column; min-height: 0; }
  .bp-scroll {
    flex: 1 1 auto; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    background:
      linear-gradient(rgba(30, 30, 30, 0), #1e1e1e 70%) center bottom / 100% 48px no-repeat local,
      radial-gradient(farthest-side at 50% 100%, rgba(255, 255, 255, .16), transparent) center bottom / 100% 14px no-repeat scroll,
      #1e1e1e;
  }
  .bp-scroll::-webkit-scrollbar { display: none; }
  .bp-copy { margin-block: auto; padding: 3.5rem 2rem 2rem clamp(2.5rem, 4vw, 4rem); }
  .bp-rail { position: static; padding: .9rem 2rem 1.1rem clamp(2.5rem, 4vw, 4rem); background: none; }
}
@media (min-width: 1800px) {
  .bio-sheet.is-wide { max-width: 88rem; }
  .bp { height: min(52rem, 88vh); }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet-overlay:not(.hidden) > .sheet.no-pop { animation: none; }
  .is-flying .bp-photo img { opacity: 0; animation: none; }
  .bp-photo img { animation: bp-fade .45s ease; }
  .bp-copy > * { animation: bp-rise .5s var(--ease-out-expo) both; }
  .bp-copy > :nth-child(2) { animation-delay: 60ms; }
  .bp-copy > :nth-child(3) { animation-delay: 120ms; }
  .bp-copy > :nth-child(4) { animation-delay: 180ms; }
  @keyframes bp-rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes bp-fade { from { opacity: 0; } }
}


/* ─────────────────────────────────────────────────────────────────────────
   Community page. Full width throughout (.ldr-wrap sets the side padding).
   ───────────────────────────────────────────────────────────────────────── */
/* Hero: one light per village. */
.vl {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  --vl-f: clamp(7rem, 15vw, 16rem);
  min-height: clamp(36rem, 84vh, 58rem); color: #fff; text-align: center;
  background: linear-gradient(to bottom, #1e1e1e calc(100% - var(--vl-f)), #241d19 calc(100% - var(--vl-f) * .86), #34241a calc(100% - var(--vl-f) * .72), #573420 calc(100% - var(--vl-f) * .58), #8f5631 calc(100% - var(--vl-f) * .44), #c98a5c calc(100% - var(--vl-f) * .31), #ebc39f calc(100% - var(--vl-f) * .19), #f9e6d3 calc(100% - var(--vl-f) * .09), #ffffff 100%);
}
.vl-fade { flex: none; height: var(--vl-f); }
.vl-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.vl-glow { position: absolute; inset: 0; bottom: var(--vl-f); z-index: -2; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(244, 121, 32, .14), transparent 70%); }
.vl-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 60rem; width: 100%; margin-inline: auto; padding: 5.5rem 1.25rem 2.5rem; }
.vl-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 6rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.vl-sub { margin: 1.25rem auto 0; max-width: 36rem; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .82); }
:lang(ta) .vl-title { font-size: clamp(2rem, 4.2vw, 4.25rem); letter-spacing: 0; line-height: 1.28; }
.vl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; padding: 1.5rem clamp(1rem, 4vw, 5rem) .5rem; }
.vl-stats > div { display: flex; flex-direction: column-reverse; }
.vl-stats dd { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 4.6vw, 5rem); line-height: 1.05; letter-spacing: -.03em; color: var(--tmh-primary); font-variant-numeric: tabular-nums; }
.vl-stats dt { margin-top: .35rem; font-size: clamp(.8rem, 1vw, 1rem); color: rgba(255, 255, 255, .72); }
@media (min-width: 1024px) { .vl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vl .pw-toggle { top: clamp(.75rem, 2vw, 1.5rem); bottom: auto; }

/* Intro: the lead paragraph and the two aims. */
.cm-intro { display: grid; gap: 2rem; }
.cm-lead { font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.7; color: #475569; }
.cm-vision { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.cm-vision li { position: relative; padding: clamp(1.5rem, 2.4vw, 2.5rem); border-radius: 1.25rem; background: #fffaf7; border: 1px solid #ffedd5; }
.cm-vision span { display: block; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 4vw, 4.5rem); line-height: 1; color: var(--tmh-primary); }
.cm-vision p { margin-top: .75rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.6rem); line-height: 1.4; color: #1e1e1e; }
@media (min-width: 768px) { .cm-vision { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cm-intro { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: clamp(2.5rem, 4vw, 5rem); } }

/* The closed loop. */
.lp-fade-top { height: clamp(5rem, 10vw, 11rem); background: linear-gradient(to bottom, #ffffff 0%, #f9e6d3 9%, #ebc39f 19%, #c98a5c 31%, #8f5631 44%, #573420 58%, #34241a 72%, #241d19 86%, #1e1e1e 100%); }
.lp-fade-end { height: clamp(6rem, 12vw, 13rem); background: linear-gradient(to bottom, #1e1e1e 0%, #241d19 14%, #34241a 28%, #573420 42%, #8f5631 56%, #c98a5c 69%, #ebc39f 81%, #f9e6d3 91%, #fffaf7 100%); }
.lp { position: relative; background: radial-gradient(ellipse 80% 45% at 50% 62%, rgba(244, 121, 32, .1), transparent 72%), #1e1e1e; color: #fff; }
.lp-model { position: relative; z-index: 1; padding-block: clamp(1rem, 2vw, 2.5rem) clamp(1.5rem, 3vw, 3rem); }
.lp-model-title { max-width: 24ch; margin-bottom: clamp(1.75rem, 3vw, 3rem); }
.lp-model-grid { display: grid; gap: 1.75rem; }
.lp-model-grid > p { padding-top: 1rem; border-top: 2px solid rgba(244, 121, 32, .55); font-size: clamp(.98rem, 1.05vw, 1.15rem); line-height: 1.72; color: rgba(255, 255, 255, .78); }
.lp-diagram { border-radius: 1rem; overflow: hidden; background: #fff; }
.lp-diagram img { display: block; width: 100%; }
@media (min-width: 768px) { .lp-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .lp-model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3.5rem); align-items: start; } }

/* Default (phones, reduced motion, no JS, text too long): ring above a list. */
.lp-pin { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 6vw, 6rem); }
.lp-intro-text { margin-top: .9rem; max-width: 42ch; font-size: clamp(.98rem, 1.05vw, 1.15rem); line-height: 1.7; color: rgba(255, 255, 255, .75); }
.lp-ring { position: relative; width: min(100%, 19rem); aspect-ratio: 1; margin: 2.25rem auto; }
.lp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-track, .lp-line { fill: none; stroke-width: 5; }
.lp-track { stroke: rgba(255, 255, 255, .16); stroke-dasharray: .012 .012; }
.lp-line { stroke: var(--tmh-primary); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 10px rgba(244, 121, 32, .75)); }
.lp-head { display: none; }
.lp-head-glow { fill: rgba(244, 121, 32, .35); }
.lp-head-dot { fill: #ffe0c4; }
.lp-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--tmh-primary); color: #1e1e1e; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: .85rem;
  transition: background .3s, color .3s, box-shadow .3s;
}
.lp-centre { display: none; }
.lp-panels { display: grid; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.lp-num { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: .85rem; color: var(--tmh-primary); }
.lp-panel h3 { margin-top: .2rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 1.6vw, 1.75rem); line-height: 1.2; color: #fff; }
.lp-panel p { margin-top: .6rem; font-size: clamp(.95rem, 1.02vw, 1.1rem); line-height: 1.72; color: rgba(255, 255, 255, .78); }
@media (min-width: 768px) { .lp-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; } }

/* Pinned (set by tmh.js). */
.lp.is-pinned .lp-pin { height: 360vh; padding: 0; }
.lp.is-pinned .lp-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 5.5rem; padding-bottom: 1rem; }
.lp.is-pinned .lp-grid { display: grid; width: 100%; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); align-items: center; gap: clamp(2rem, 4vw, 5.5rem); }
.lp.is-pinned .lp-ring { width: min(100%, calc(100vh - 8.5rem)); margin: 0 auto; }
.lp.is-pinned .lp-head { display: block; }
.lp.is-pinned .lp-line { stroke-dashoffset: 1; }
.lp.is-pinned .lp-node { background: #333; color: rgba(255, 255, 255, .7); box-shadow: 0 0 0 5px #1e1e1e; }
.lp.is-pinned .lp-node:hover { background: #4a4a4a; color: #fff; }
.lp.is-pinned .lp-node.is-lit { background: var(--tmh-primary); color: #1e1e1e; box-shadow: 0 0 0 5px #1e1e1e, 0 0 26px rgba(244, 121, 32, .7); }
.lp-ring.is-closed .lp-line { filter: drop-shadow(0 0 20px rgba(244, 121, 32, 1)); }
.lp.is-pinned .lp-centre { position: absolute; inset: 24%; display: grid; place-items: center; text-align: center; }
.lp-centre p { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.35rem, 2.3vw, 3rem); line-height: 1.14; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.lp-centre p.is-on { opacity: 1; transform: none; }
:lang(ta) .lp-centre p { font-size: clamp(1.1rem, 1.7vw, 2.1rem); letter-spacing: 0; line-height: 1.3; }
.lp.is-pinned .lp-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.lp.is-pinned .lp-panel { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.lp.is-pinned .lp-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lp.is-pinned .lp-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp.is-pinned .lp-num { display: none; }
.lp.is-pinned .lp-panel p { margin-top: 0; }

/* Programmes: full-width sideways row. */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pg-arrows { flex: none; }
.pg-arrows { display: none; }
.pg.is-live .pg-arrows { display: flex; }
.pg.no-scroll .pg-arrows { display: none; }
.fdr-arrow:disabled { opacity: .3; cursor: default; }
.fdr-arrow:disabled:hover { background: #1e1e1e; }
.pg-track {
  --side: clamp(1rem, 4vw, 5rem);
  display: flex; gap: clamp(.9rem, 1.4vw, 1.5rem); list-style: none; margin: 0; padding: .5rem var(--side) 1.25rem;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--side); scrollbar-width: none;
}
.pg-track::-webkit-scrollbar { display: none; }
.pg-track { align-items: flex-start; }
.pg-card { position: relative; flex: 0 0 clamp(18rem, 86vw, 26rem); overflow: hidden; border-radius: 1.5rem; background: #c2570f; scroll-snap-align: start; transition: box-shadow .3s ease; }
@media (min-width: 640px) { .pg-card { flex-basis: 26rem; } }
.pg-media { position: relative; aspect-ratio: 1; cursor: pointer; background: #1e1e1e; }
@media (min-width: 640px) { .pg-media { aspect-ratio: 5 / 4; } }
@media (hover: hover) { .pg-card:hover { box-shadow: 0 22px 44px -18px rgba(30, 30, 30, .5); } .pg-card:hover .pg-photo img { transform: scale(1.04); } }
.pg-photo { position: absolute; inset: 0; overflow: hidden; }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.pg-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .62) 34%, rgba(20, 20, 20, 0) 66%); pointer-events: none; }
.pg-over { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 2vw, 2.25rem); color: #fff; }
.pg-fig { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 4.4vw, 5rem); line-height: 1; letter-spacing: -.03em; color: #ffa35c; }
.pg-label { margin-top: .3rem; font-size: clamp(.85rem, .95vw, 1.05rem); color: rgba(255, 255, 255, .86); }
.pg-title { margin-top: .75rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.15rem, 1.5vw, 1.75rem); line-height: 1.2; }
.pg-more { margin-top: .35rem; font-size: .8rem; font-weight: 600; color: #ffd7b3; text-underline-offset: 3px; }
@media (hover: hover) { .pg-media:hover .pg-more { text-decoration: underline; } }

/* The story. Small screens: drops open below the photo. */
.pg-full { display: grid; grid-template-rows: 1fr; color: #fff; }
.pg-full-in { position: relative; min-height: 0; overflow: hidden; }
.pg-full p { padding: 1.5rem 3.25rem 1.6rem 1.5rem; font-size: 1rem; line-height: 1.65; }
.pg-close { display: none; position: absolute; top: .75rem; right: .75rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; transition: background .2s; }
.pg-close:hover { background: rgba(255, 255, 255, .34); }
.pg-close svg { width: 1.1rem; height: 1.1rem; }
.pg.is-live .pg-close { display: grid; }
.pg:not(.is-live) .pg-more { display: none; }
.pg.is-live .pg-full { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.pg.is-live .pg-card.is-open .pg-full { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }

/* Wide screens: the card grows sideways and the story sits beside the photo. */
@media (min-width: 900px) {
  .pg-card { --w: clamp(26rem, 36vw, 46rem); --story: clamp(20rem, 30vw, 38rem); flex-basis: var(--w); height: calc(var(--w) * .8); }
  .pg-media { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); aspect-ratio: auto; }
  .pg:not(.is-live) .pg-card { flex-basis: calc(var(--w) + var(--story)); }
  .pg.is-live .pg-card { transition: flex-basis .55s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
  .pg.is-live .pg-card.is-open { flex-basis: calc(var(--w) + var(--story)); }
  .pg-full { position: absolute; left: var(--w); top: 0; bottom: 0; width: var(--story); }
  .pg.is-live .pg-full, .pg.is-live .pg-card.is-open .pg-full { grid-template-rows: 1fr; }
  .pg.is-live .pg-full { opacity: 0; transition: opacity .2s ease, visibility 0s .2s; }
  .pg.is-live .pg-card.is-open .pg-full { opacity: 1; transition: opacity .4s ease .15s, visibility 0s; }
  .pg-full-in { display: flex; align-items: center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .pg-full-in::-webkit-scrollbar { display: none; }
  .pg-full p { margin-block: auto; padding: 3rem clamp(1.75rem, 2.8vw, 3.25rem); font-size: clamp(1rem, 1.25vw, 1.45rem); line-height: 1.6; }
  :lang(ta) .pg-full p { padding-block: 1.75rem; font-size: clamp(.86rem, .98vw, 1.15rem); line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .pg.is-live .pg-card, .pg.is-live .pg-full, .pg.is-live .pg-card.is-open .pg-full { transition: none; }
}

/* Closing appeal. */
/* No band edges: it warms up and fades back into the cream on either side. */
.cm-give { padding-block: clamp(4rem, 8vw, 9rem); background: linear-gradient(to bottom, #fffaf7, #ffe6cf 42%, #ffe6cf 58%, #fffdf9); }
.cm-give-title { font-size: clamp(1.75rem, 3.2vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.cm-give-text { font-size: clamp(1rem, 1.2vw, 1.25rem); }
@media (prefers-reduced-motion: reduce) {
  .lp-centre p, .lp-panel { transition: none; }
}

/* ── Contact page ───────────────────────────────────────────────────────────
   Rebuilt without React from four 21st.dev pieces: Contact with Globe (.ctg),
   Efferd's Contact Page table (.cl) and Contact Card (.ctf), Expand Map (.gm). */
.ctg {
  --gl-side: clamp(1rem, 5vw, 6rem);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(36rem, 80svh, 54rem);
  background: #1e1e1e; color: #fff;
}
.ctg-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; }
.ctg.is-ready .ctg-canvas { opacity: 1; }
.ctg-glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 52% 72% at 74% 62%, rgba(244, 121, 32, .2), transparent 72%); }
.ctg::after { content: ""; position: absolute; inset: auto 0 0; height: 7rem; pointer-events: none; background: linear-gradient(to bottom, transparent, #1e1e1e); }
.ctg-inner { position: relative; z-index: 1; width: 100%; padding: 3.5rem var(--gl-side); }
.ctg-title { color: #fff; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(3rem, 7vw, 7.5rem); line-height: 1.02; letter-spacing: -.04em; }
.ctg-sub { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.3125rem); line-height: 1.55; color: rgba(255, 255, 255, .82); }
:lang(ta) .ctg-title { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: 0; line-height: 1.25; }
.ctg-sos { display: flex; align-items: center; gap: .875rem; margin-top: 1.75rem; max-width: 34rem; padding: .875rem 1.125rem; border: 1px solid rgba(255, 255, 255, .16); border-left: 3px solid #d22027; border-radius: .75rem; background: rgba(30, 30, 30, .72); }
.ctg-sos svg { flex: none; width: 1.5rem; height: 1.5rem; color: #ff8a8f; }
.ctg-sos p { font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.ctg-sos a { color: #fff; white-space: nowrap; text-decoration: underline; text-decoration-color: #ff8a8f; text-underline-offset: 3px; }
.ctg-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ctg-btn { display: inline-flex; align-items: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .28); font-size: .9375rem; font-weight: 600; color: #fff; background: rgba(30, 30, 30, .45); transition: background-color .2s, border-color .2s; }
.ctg-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.ctg-btn-main { border-color: transparent; background: #c2570f; }
.ctg-btn-main:hover { border-color: transparent; background: #b4540a; }

.ctg-pin { position: absolute; left: 0; top: 0; z-index: 0; display: flex; align-items: center; gap: .625rem; opacity: 0; transition: opacity .5s ease; pointer-events: none; will-change: transform; }
.ctg.is-landed .ctg-pin { opacity: 1; }
.ctg-dot { position: relative; width: .75rem; height: .75rem; margin-left: -.375rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #f47920, 0 0 18px 4px rgba(244, 121, 32, .8); }
.ctg-dot::before, .ctg-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid #f9a15e; animation: glPing 2.6s ease-out infinite; }
.ctg-dot::after { animation-delay: 1.3s; }
@keyframes glPing { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
.ctg-label { padding: .25rem .625rem; border-radius: 999px; background: #fff; color: #1e1e1e; font-size: .8125rem; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
@media (max-width: 1023.98px) {
  .ctg { align-items: flex-start; min-height: 0; }
  .ctg-inner { padding-top: 2.5rem; padding-bottom: min(82vw, 25rem); }
  .ctg-glow { background: radial-gradient(ellipse 90% 40% at 50% 82%, rgba(244, 121, 32, .22), transparent 72%); }
}

.cl { background: #1e1e1e; color: #fff; position: relative; }
.cl-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid rgba(255, 255, 255, .14); }
.cl-col { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid rgba(255, 255, 255, .14); transition: background-color .25s; }
.cl-col:first-child { border-left: 0; }
.cl-col:hover { background: rgba(244, 121, 32, .07); }
.cl-head, .cl-body, .cl-foot { padding-inline: clamp(1.125rem, 2.4vw, 2.75rem); }
.cl-head { display: flex; align-items: center; gap: .625rem; padding-block: 1rem; font-size: .9375rem; font-weight: 600; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .035); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.cl-head svg { flex: none; width: 1.125rem; height: 1.125rem; color: #f47920; }
.cl-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 8.5rem; padding-block: 1.75rem; }
.cl-value { min-width: 0; font-size: 1.0625rem; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.cl-value-lg { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.5rem, 2.1vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
a.cl-value:hover { color: #f9a15e; }
.cl-foot { padding-block: 1rem; font-size: .9375rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.cl-foot a { display: inline-flex; gap: .5rem; font-weight: 600; color: #f9a15e; }
.cl-foot a span { transition: transform .2s; }
.cl-foot a:hover span { transform: translateX(4px); }
.cl-foot-plain { color: rgba(255, 255, 255, .72); }
.cl-fade { height: clamp(4rem, 8vw, 8rem); background: linear-gradient(to bottom, #1e1e1e, #fffaf7); }
.copy-btn { position: relative; flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .625rem; color: rgba(255, 255, 255, .72); transition: color .2s, background-color .2s; }
.copy-btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.copy-btn[hidden] { display: none; }
.copy-btn svg { grid-area: 1 / 1; width: 1.125rem; height: 1.125rem; transition: opacity .2s, transform .2s; }
.copy-b { opacity: 0; transform: scale(.5); color: #f9a15e; }
.copy-btn.is-copied .copy-a { opacity: 0; transform: scale(.5); }
.copy-btn.is-copied .copy-b { opacity: 1; transform: none; }
@media (max-width: 1279.98px) {
  .cl-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-col:nth-child(odd) { border-left: 0; }
  .cl-col:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 639.98px) {
  .cl-table { grid-template-columns: minmax(0, 1fr); }
  .cl-col { border-left: 0; }
  .cl-col + .cl-col { border-top: 1px solid rgba(255, 255, 255, .14); }
  .cl-body { min-height: 0; padding-block: 1.25rem; }
}

.ctf { background: #fffaf7; padding: 1rem clamp(1rem, 5vw, 6rem) clamp(3.5rem, 6vw, 6rem); scroll-margin-top: 4.5rem; }
.ctf-card { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: 1px solid #f1d9c5; background: #fff; }
.ctf-plus { position: absolute; z-index: 1; width: 1.25rem; height: 1.25rem; pointer-events: none; background: linear-gradient(#f47920, #f47920) center / 100% 2px no-repeat, linear-gradient(#f47920, #f47920) center / 2px 100% no-repeat; }
.ctf-plus-tl { left: -.6875rem; top: -.6875rem; } .ctf-plus-tr { right: -.6875rem; top: -.6875rem; }
.ctf-plus-bl { left: -.6875rem; bottom: -.6875rem; } .ctf-plus-br { right: -.6875rem; bottom: -.6875rem; }
.ctf-side { padding: clamp(1.5rem, 3.5vw, 4rem); }
.ctf-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 3.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.03em; color: #1e1e1e; text-wrap: balance; }
:lang(ta) .ctf-title { font-size: clamp(1.625rem, 2.6vw, 2.75rem); letter-spacing: 0; line-height: 1.3; }
.ctf-lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.6; color: #475569; }
.ctf-label { margin-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: .75rem; border-bottom: 1px solid #f1d9c5; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
:lang(ta) .ctf-label { letter-spacing: 0; text-transform: none; }
.ctf-desks { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.ctf-desk { display: flex; gap: 1rem; }
.ctf-icon { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .75rem; background: #fff1e6; color: #b4540a; }
.ctf-icon svg { width: 1.375rem; height: 1.375rem; }
.ctf-desk h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 1.0625rem; font-weight: 700; color: #1e1e1e; }
.ctf-desk p { margin-top: .25rem; font-size: .9375rem; line-height: 1.6; color: #475569; }
.ctf-desk p.ctf-note { font-size: .8125rem; color: #64748b; }
.ctf-form { padding: clamp(1.5rem, 3.5vw, 4rem); border-left: 1px solid #f1d9c5; background: #fffaf7; }
.ctf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1rem; align-items: start; }
.ctf-wide { grid-column: 1 / -1; }
.ctf-form label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: #334155; }
.ctf-form label span { font-size: .75rem; font-weight: 400; color: #64748b; }
.ctf-form input:not([type="hidden"]), .ctf-form select, .ctf-form textarea { background: #fff; border-color: #e2d6cb; min-height: 3rem; }
.ctf-submit { display: block; width: 100%; min-height: 3.25rem; margin-top: 1.25rem; border-radius: .75rem; background: #c2570f; color: #fff; font-size: 1rem; font-weight: 600; transition: background-color .2s; }
.ctf-submit:hover { background: #b4540a; }
@media (max-width: 1023.98px) {
  .ctf-card { grid-template-columns: minmax(0, 1fr); }
  .ctf-form { border-left: 0; border-top: 1px solid #f1d9c5; }
}
@media (max-width: 479.98px) {
  .ctf-grid { grid-template-columns: minmax(0, 1fr); }
}

.gm { background: #fffaf7; padding: 0 clamp(1rem, 5vw, 6rem) clamp(3.5rem, 6vw, 6rem); scroll-margin-top: 5rem; transition: padding .7s var(--ease-out-soft); }
.gm.is-open { padding-inline: 0; padding-bottom: 0; }
.gm-card { position: relative; overflow: hidden; height: clamp(20rem, 32vw, 30rem); border-radius: 1.5rem; background: #1e1e1e; color: #fff; transition: height .7s var(--ease-out-soft), border-radius .7s var(--ease-out-soft); }
.gm.is-open .gm-card { height: min(80svh, 48rem); border-radius: 0; }
.gm-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s, transform 1.1s var(--ease-out-soft); }
.gm-card:hover .gm-art { transform: scale(1.04); }
.gm-minor path { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.gm-major path { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: 4; }
.gm-blocks rect { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .1); }
.gm-route { fill: none; stroke: #f47920; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out-soft); }
.gm-card:hover .gm-route, .gm-card:has(.gm-open:focus-visible) .gm-route { stroke-dashoffset: 0; }
.gm-badge { position: absolute; right: 1.25rem; top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 999px; background: rgba(30, 30, 30, .8); border: 1px solid rgba(255, 255, 255, .16); font-size: .8125rem; font-weight: 600; }
.gm-badge i { width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; }
.gm-pin { position: absolute; left: 50%; top: 50%; width: 3.25rem; height: 3.25rem; margin: -3.1rem 0 0 -1.625rem; transition: transform .35s var(--ease-out-soft), opacity .35s; }
.gm-pin svg { width: 100%; height: 100%; fill: #f47920; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.gm-pin circle { fill: #1e1e1e; }
.gm-card:hover .gm-pin { transform: translateY(-6px); }
.gm-text { position: absolute; left: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem); max-width: 30rem; transition: opacity .3s; }
.gm-text h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.gm-text p { margin-top: .375rem; text-wrap: balance; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px #1e1e1e; }
.gm-open { display: inline-flex; align-items: center; min-height: 2.875rem; margin-top: 1rem; padding: .625rem 1.375rem; border-radius: .75rem; background: #c2570f; color: #fff; font-size: .9375rem; font-weight: 600; transition: background-color .2s; }
.gm-open:hover { background: #b4540a; }
.gm-open::after { content: ""; position: absolute; inset: -100vh -100vw; }
.gm-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s .3s; }
.gm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.gm.is-open .gm-frame { opacity: 1; visibility: visible; }
.gm.is-open .gm-art, .gm.is-open .gm-pin, .gm.is-open .gm-text, .gm.is-open .gm-badge { opacity: 0; visibility: hidden; }
.gm-close { position: absolute; right: 1rem; top: 1rem; min-height: 2.75rem; padding: .5rem 1rem; border-radius: .625rem; background: #1e1e1e; color: #fff; font-size: .875rem; font-weight: 600; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.gm-close:hover { background: #000; }
.gm-close[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ctg-dot::before, .ctg-dot::after { animation: none; opacity: 0; }
  .gm, .gm-card, .gm-art, .gm-pin, .gm-route, .gm-frame { transition: none; }
}

/* ── Careers page ───────────────────────────────────────────────────────────
   After four 21st.dev designs: 3D Marquee (.mq), Grid Feature Cards (.wyt),
   Hover Expand Gallery (.hx), Let's Work Together (.lw). */
.mq { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: clamp(36rem, 84svh, 56rem); background: #1e1e1e; color: #fff; text-align: center; }
.mq-stage { position: absolute; left: 50%; top: 50%; z-index: -2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; width: max(160vw, 75rem); transform: translate(-50%, -50%) rotateX(55deg) rotateY(0deg) rotateZ(-45deg); transform-style: preserve-3d; }
.mq-col { display: grid; gap: 1.25rem; animation: mqUp 13s ease-in-out infinite alternate; }
.mq-col:nth-child(even) { animation-name: mqDown; animation-duration: 16s; }
.mq-col:nth-child(3n) { animation-duration: 19s; }
@keyframes mqUp { from { translate: 0 6rem; } to { translate: 0 -6rem; } }
@keyframes mqDown { from { translate: 0 -6rem; } to { translate: 0 6rem; } }
.mq-card { width: 100%; aspect-ratio: 97 / 70; object-fit: cover; border-radius: .75rem; outline: 1px solid rgba(255, 255, 255, .14); transition: translate .3s ease; filter: none; }
.mq-card:hover { translate: 0 -.75rem; }
.mq-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 62% 66% at 50% 50%, rgba(22, 20, 18, .9) 0%, rgba(22, 20, 18, .76) 50%, rgba(22, 20, 18, .3) 100%); }
.mq::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 8rem; pointer-events: none; background: linear-gradient(to bottom, transparent, #fff); }
.mq-inner { width: 100%; max-width: 62rem; padding: 3.5rem 1.25rem 6rem; pointer-events: none; }
.mq-inner a { pointer-events: auto; }
.mq-crumb { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .75rem; color: rgba(255, 255, 255, .85); }
.mq-crumb a:hover { color: #f9a15e; text-decoration: underline; text-underline-offset: 4px; }
.mq-title { color: #fff; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.75rem, 6.4vw, 6.75rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
:lang(ta) .mq-title { font-size: clamp(2.125rem, 4.6vw, 4.5rem); letter-spacing: 0; line-height: 1.3; }
.mq-sub { max-width: 40rem; margin: 1.25rem auto 0; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); line-height: 1.55; color: rgba(255, 255, 255, .9); text-wrap: balance; }
.mq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.mq-btn { display: inline-flex; align-items: center; min-height: 3rem; padding: .75rem 1.625rem; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .35); background: rgba(30, 30, 30, .55); color: #fff; font-size: .9375rem; font-weight: 600; transition: background-color .2s, border-color .2s; }
.mq-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.mq-btn-main { border-color: transparent; background: #c2570f; }
.mq-btn-main:hover { border-color: transparent; background: #b4540a; }

.wyt { background: #fff; padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 5vw, 6rem) clamp(3rem, 6vw, 6rem); text-align: center; scroll-margin-top: 4.5rem; }
.wyt-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b4540a; }
:lang(ta) .wyt-eyebrow { letter-spacing: 0; text-transform: none; }
.wyt-title { max-width: 56rem; margin: .75rem auto 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 4.25rem); line-height: 1.08; letter-spacing: -.03em; color: #1e1e1e; text-wrap: balance; }
:lang(ta) .wyt-title { font-size: clamp(1.625rem, 3vw, 3.125rem); letter-spacing: 0; line-height: 1.3; }
.wyt-defs { position: absolute; }
.wyt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.25rem, 4vw, 4rem); border: 1px dashed #e7cdb8; text-align: left; }
.wyt-card { position: relative; overflow: hidden; padding: clamp(1.5rem, 2.6vw, 3rem); padding-top: clamp(2rem, 3.4vw, 3.5rem); border-left: 1px dashed #e7cdb8; }
.wyt-card:first-child { border-left: 0; }
.wyt-pattern { position: absolute; right: 0; top: 0; width: 19.5rem; height: 12rem; pointer-events: none; -webkit-mask-image: radial-gradient(farthest-side at 100% 0, #000 20%, transparent); mask-image: radial-gradient(farthest-side at 100% 0, #000 20%, transparent); }
.wyt-fill { fill: rgba(244, 121, 32, .14); }
.wyt-icon { position: relative; width: 2rem; height: 2rem; color: #b4540a; }
.wyt-card h3 { position: relative; margin-top: clamp(1.75rem, 3vw, 3rem); font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.25rem, 1.6vw, 1.625rem); font-weight: 700; color: #1e1e1e; }
.wyt-card p { position: relative; margin-top: .625rem; font-size: 1rem; line-height: 1.65; color: #475569; }
@media (max-width: 767.98px) {
  .wyt-grid { grid-template-columns: minmax(0, 1fr); }
  .wyt-card { border-left: 0; }
  .wyt-card + .wyt-card { border-top: 1px dashed #e7cdb8; }
}

.hx-wrap { background: #fff; padding-bottom: clamp(3rem, 6vw, 6rem); text-align: center; }
.hx-title { margin: 0 auto clamp(2rem, 3.5vw, 3.5rem); padding-inline: 1rem; }
.hx { display: flex; height: clamp(30rem, 78svh, 48rem); border-block: 1px solid #ececec; text-align: left; }
.hx-panel { position: relative; display: flex; flex: 1 1 0; min-width: 5rem; border-right: 1px solid #ececec; transition: flex-grow .6s var(--ease-out-soft); }
.hx-panel:last-child { border-right: 0; }
.hx-panel.is-open { flex-grow: 14; }
.hx-h { flex: none; width: 5rem; height: 100%; }
.hx-tab { display: flex; flex-direction: column; justify-content: space-between; align-items: center; width: 100%; height: 100%; padding-block: 1.25rem; color: #64748b; transition: color .25s; }
.hx-tab:hover, .hx-panel.is-open .hx-tab { color: #1e1e1e; }
.hx-tab:focus-visible { outline: 2px solid #c2570f; outline-offset: -4px; }
.hx-num { font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-name { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.hx-media { position: relative; flex: 1; min-width: 0; margin: .625rem .625rem .625rem 0; overflow: hidden; border-radius: .75rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.hx-panel.is-open .hx-media { opacity: 1; visibility: visible; transition-delay: .12s; }
.hx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-cv { position: absolute; left: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .625rem 1.25rem; border-radius: .75rem; background: #c2570f; color: #fff; font-size: .9375rem; font-weight: 600; max-width: calc(100% - 2.5rem); transition: background-color .2s; }
.hx-cv:hover { background: #b4540a; }
@media (max-width: 767.98px) {
  .hx { flex-direction: column; height: auto; }
  .hx-panel { display: block; flex: none; min-width: 0; border-right: 0; border-bottom: 1px solid #ececec; }
  .hx-panel:last-child { border-bottom: 0; }
  .hx-h { width: 100%; height: auto; }
  .hx-tab { flex-direction: row; justify-content: flex-start; gap: 1rem; min-height: 3.75rem; padding: .75rem 1rem; text-align: left; }
  .hx-name { writing-mode: horizontal-tb; transform: none; white-space: normal; }
  .hx-media { flex: none; height: 0; margin: 0 1rem; transition: height .4s var(--ease-out-soft), opacity .3s, visibility .3s; }
  .hx-panel.is-open .hx-media { height: 17rem; margin-bottom: 1rem; }
}
html:not(.js) .hx { flex-direction: column; height: auto; }
html:not(.js) .hx-panel { display: block; flex: none; }
html:not(.js) .hx-h { width: 100%; height: auto; }
html:not(.js) .hx-name { writing-mode: horizontal-tb; transform: none; }
html:not(.js) .hx-media { height: 17rem; opacity: 1; visibility: visible; margin: 0 1rem 1rem; }

.lw { position: relative; background: #fff; padding: clamp(3.5rem, 7vw, 7rem) 1.25rem; text-align: center; color: #1e1e1e; }
.lw-first { transition: opacity .35s, visibility .35s; }
.lw.is-next .lw-first { opacity: 0; visibility: hidden; }
.lw-status { display: inline-flex; align-items: center; gap: .625rem; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #64748b; }
:lang(ta) .lw-status { letter-spacing: 0; text-transform: none; }
.lw-status i { width: .5rem; height: .5rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.lw-title { display: grid; justify-items: center; margin-top: 1.25rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 300; font-size: clamp(3rem, 9vw, 10rem); line-height: 1.04; letter-spacing: -.045em; color: #1e1e1e; }
:lang(ta) .lw-title { font-size: clamp(2.25rem, 6vw, 6.5rem); letter-spacing: 0; line-height: 1.3; }
.lw-soft { position: relative; color: #8a8a8a; transition: color .3s; }
.lw-soft::before, .lw-soft::after { content: ""; position: absolute; top: 58%; width: 0; height: 1px; background: #d9d9d9; transition: width .45s var(--ease-out-soft); }
.lw-soft::before { right: calc(100% + 1.5rem); }
.lw-soft::after { left: calc(100% + 1.5rem); }
.lw-first:has(.lw-go:hover) .lw-soft, .lw-first:has(.lw-go:focus-visible) .lw-soft { color: #6b6b6b; }
.lw-first:has(.lw-go:hover) .lw-soft::before, .lw-first:has(.lw-go:hover) .lw-soft::after,
.lw-first:has(.lw-go:focus-visible) .lw-soft::before, .lw-first:has(.lw-go:focus-visible) .lw-soft::after { width: clamp(2rem, 6vw, 6rem); }
.lw-go { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin: 2rem auto 0; border: 1px solid #d9d9d9; border-radius: 50%; color: #1e1e1e; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out-soft); }
.lw-go svg { width: 1.625rem; height: 1.625rem; transition: transform .3s var(--ease-out-soft); }
.lw-go:hover, .lw-go:focus-visible { background: #c2570f; border-color: #c2570f; color: #fff; transform: scale(1.06); }
.lw-go:hover svg { transform: translate(2px, -2px); }
.lw-text { max-width: 38rem; margin: 2.25rem auto 0; font-size: 1.0625rem; line-height: 1.65; color: #475569; }
.lw-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; margin-top: 1rem; font-size: .9375rem; font-weight: 600; color: #475569; }
.lw-contact a:hover { color: #b4540a; }
.lw-next { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; animation: lwIn .45s var(--ease-out-soft) both; }
.lw-next[hidden] { display: none; }
@keyframes lwIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.lw-routes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.lw-routes a { display: flex; align-items: center; gap: 1rem; min-width: min(20rem, 100%); padding: 1.25rem 1.75rem; border: 1px solid #e2e2e2; border-radius: 999px; text-align: left; font-size: 1.125rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.lw-routes a:hover { border-color: #c2570f; background: #fff7f0; }
.lw-routes svg { flex: none; width: 1.5rem; height: 1.5rem; color: #b4540a; }
.lw-routes small { display: block; font-size: .875rem; font-weight: 400; color: #64748b; }
@media (prefers-reduced-motion: reduce) {
  .mq-col, .lw-next { animation: none; }
  .hx-panel, .hx-media, .lw-first, .lw-soft::before, .lw-soft::after { transition: none; }
}

/* ── Media page ─────────────────────────────────────────────────────────────
   After 21st.dev designs: Hero Video Dialog (.mdh, .mdd), Focus Cards (.mdf). */
.mdh { --mdh-side: clamp(1rem, 5vw, 6rem); position: relative; isolation: isolate; overflow: hidden; padding: 0 var(--mdh-side) 2rem; text-align: center; background: radial-gradient(ellipse 72% 52% at 50% 36%, rgba(244, 121, 32, .24), transparent 72%), linear-gradient(to bottom, #1e1e1e 0, #1e1e1e calc(100% - 19rem), #fff calc(100% - 7.5rem)); color: #fff; }
.mdh-inner { padding-top: 2.75rem; }
.mdh-crumb { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; font-size: .75rem; color: rgba(255, 255, 255, .85); }
.mdh-crumb a:hover { color: #f9a15e; text-decoration: underline; text-underline-offset: 4px; }
.mdh-title { color: #fff; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(3rem, 7vw, 7.5rem); line-height: 1.02; letter-spacing: -.04em; }
:lang(ta) .mdh-title { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: 0; line-height: 1.25; }
.mdh-sub { margin-top: .75rem; font-size: clamp(1.0625rem, 1.4vw, 1.375rem); color: rgba(255, 255, 255, .88); }
.mdh-frame { position: relative; display: block; width: min(100%, 72rem, calc(62svh * 16 / 9)); aspect-ratio: 16 / 9; margin: clamp(1.75rem, 3vw, 2.75rem) auto 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 1.25rem; background: #141414; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); }
.mdh-frame img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: filter .25s ease; }
.mdh-frame:hover img, .mdh-frame:focus-visible img { filter: brightness(.8); }
.mdh-frame:focus-visible { outline: 3px solid #f47920; outline-offset: 3px; }
.mdh-play { position: absolute; inset: 0; display: grid; place-items: center; }
.mdh-play > span { display: grid; place-items: center; width: clamp(4.75rem, 9vw, 7.5rem); height: clamp(4.75rem, 9vw, 7.5rem); border-radius: 50%; background: rgba(244, 121, 32, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); transition: transform .3s var(--ease-out-soft); }
.mdh-play svg { width: 62%; height: 62%; padding: 16%; border-radius: 50%; color: #fff; background: linear-gradient(to bottom, #f47920, #c2570f); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-out-soft); }
.mdh-frame:hover .mdh-play > span { transform: scale(1.08); }
.mdh-frame:hover .mdh-play svg { transform: scale(1.08); }
.mdh-cap { max-width: 52rem; margin: 1.5rem auto 0; color: #1e1e1e; }
.mdh-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mdh-meta { margin-top: .25rem; font-size: .9375rem; color: #64748b; }

.mdf { background: #fff; padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 5vw, 6rem) clamp(3.5rem, 6vw, 6rem); text-align: center; }
.mdf-title { max-width: 56rem; margin-inline: auto; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 4.25rem); line-height: 1.08; letter-spacing: -.03em; color: #1e1e1e; text-wrap: balance; }
:lang(ta) .mdf-title { font-size: clamp(1.625rem, 3vw, 3.125rem); letter-spacing: 0; line-height: 1.3; }
.mdf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.5rem); margin-top: clamp(2rem, 3.5vw, 3.5rem); list-style: none; padding: 0; text-align: left; }
.mdf-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .875rem; background: #1e1e1e; transition: filter .3s ease, transform .3s ease; }
.mdf-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; filter: blur(22px) saturate(1.25); transform: scale(1.2); }
.mdf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none; }
.mdf-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; padding: 1.125rem; color: #fff; background: rgba(0, 0, 0, .56); opacity: 0; transition: opacity .3s ease; }
.mdf-card:hover .mdf-over, .mdf-card:focus-visible .mdf-over { opacity: 1; }
.mdf-card:focus-visible { outline: 3px solid #f47920; outline-offset: 2px; }
.mdf-new { align-self: flex-start; padding: .125rem .5rem; border-radius: 999px; background: #c2570f; font-size: .75rem; font-weight: 600; }
.mdf-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1rem, 1.25vw, 1.25rem); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.mdf-meta { font-size: .8125rem; color: rgba(255, 255, 255, .85); }
@media (hover: hover) {
  .mdf-grid:has(.mdf-card:hover) .mdf-card:not(:hover) { filter: blur(4px); transform: scale(.98); }
}
@media (hover: none) {
  .mdf-grid li { display: flex; }
  .mdf-card { display: flex; flex-direction: column; width: 100%; aspect-ratio: auto; padding-top: 100%; }
  .mdf-blur, .mdf-img { inset: 0 0 auto 0; height: auto; aspect-ratio: 1 / 1; }
  .mdf-over { position: relative; z-index: 1; flex: 1; justify-content: flex-start; opacity: 1; background: #1e1e1e; padding: .75rem; }
  .mdf-name { font-size: .875rem; -webkit-line-clamp: 3; }
}
@media (max-width: 1099.98px) { .mdf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699.98px) { .mdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mdf-channel { display: inline-flex; align-items: center; gap: .625rem; min-height: 3rem; margin-top: clamp(2rem, 3.5vw, 3.5rem); padding: .75rem 1.5rem; border: 1px solid #e2e2e2; border-radius: .75rem; color: #1e1e1e; font-size: .9375rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.mdf-channel:hover { border-color: #c2570f; background: #fff7f0; }
.mdf-channel svg { width: 1.375rem; height: 1.375rem; color: #e62117; }

.mdd { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(.75rem, 3vw, 2.5rem); border: 0; background: transparent; }
.mdd[open] { display: flex; align-items: center; justify-content: center; }
.mdd::backdrop { background: rgba(20, 18, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mdd-box { position: relative; width: min(100%, 72rem, calc((100svh - 9rem) * 16 / 9)); animation: mddIn .4s cubic-bezier(.2, 1.2, .3, 1) both; }
.mdd.is-short .mdd-box { width: min(100%, 25rem, calc((100svh - 9rem) * 9 / 16)); }
@keyframes mddIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.mdd-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); border-radius: 1rem; background: #000; }
.mdd.is-short .mdd-frame { aspect-ratio: 9 / 16; }
.mdd-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.mdd-close { position: absolute; right: 0; top: -3.25rem; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; transition: background-color .2s; }
.mdd-close:hover { background: rgba(255, 255, 255, .3); }
.mdd-close svg { width: 1.25rem; height: 1.25rem; }
.mdd-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: #fff; }
.mdd-foot p { min-width: 0; font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdd-foot a { flex: none; display: inline-flex; gap: .375rem; align-items: center; min-height: 2.75rem; font-size: .875rem; font-weight: 600; color: #f9a15e; }
.mdd.is-short .mdd-foot { flex-direction: column; align-items: stretch; gap: 0; }
@media (prefers-reduced-motion: reduce) {
  .mdf-card, .mdf-over, .mdh-frame img, .mdh-play > span, .mdh-play svg { transition: none; }
  .mdd-box { animation: none; }
}

/* ── Specialities list: hero parallax (.dpx) and expanding directory (.dg) ───── */
.dpx { position: relative; overflow: clip; color: #fff; background: #1e1e1e; perspective: 1000px; transform-style: preserve-3d; padding-bottom: clamp(9rem, 15vw, 17rem); --dpx-w: max(30rem, 25vw); --dpx-gap: max(5rem, 4vw); }
.dpx-head { position: relative; z-index: 2; max-width: 88rem; margin-inline: auto; padding: clamp(1.75rem, 4vw, 3.5rem) 1.5rem clamp(3rem, 7vw, 7rem); text-align: center; pointer-events: none; }
.dpx-head a { pointer-events: auto; }
.dpx-title { margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.9rem, 7.4vw, 7rem); line-height: 1.02; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
:lang(ta) .dpx-title { font-size: clamp(2.25rem, 5vw, 5rem); letter-spacing: 0; line-height: 1.25; }
.dpx-lead { max-width: 42rem; margin: 1.5rem auto 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .86); text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.dpx-rows { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--dpx-gap); }
.dpx-row { display: flex; gap: var(--dpx-gap); }
.dpx-row--r { flex-direction: row-reverse; }
.dpx-row--fill { display: none; }
.dpx-card { position: relative; flex: none; display: block; width: var(--dpx-w); height: calc(var(--dpx-w) * .8); overflow: hidden; border-radius: 1rem; background: #2a2a2a; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); transition: translate .35s cubic-bezier(.22, 1, .36, 1); }
.dpx-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dpx-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .34)); opacity: 0; transition: opacity .3s; }
.dpx-name { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.6rem); line-height: 1.2; opacity: 0; transition: opacity .3s; }
.dpx::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: clamp(8rem, 13.5vw, 15.5rem); background: linear-gradient(to bottom, #1e1e1e, #3d2211 16%, #7f3d12 32%, #c9651b 48%, #f2964c 62%, #fbc79a 76%, #fee7d3 89%, #fffaf7); pointer-events: none; }
@media (hover: hover) {
  .dpx-card:hover { translate: 0 -20px; }
  .dpx-card:hover .dpx-shade, .dpx-card:hover .dpx-name { opacity: 1; }
}
@media (hover: none) {
  .dpx-shade { opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent 55%); }
  .dpx-name { opacity: 1; }
}
@media (max-width: 1023px) { .dpx { --dpx-w: 22rem; --dpx-gap: 2.5rem; } }
@media (max-width: 639px) { .dpx { --dpx-w: 15rem; --dpx-gap: 1.25rem; } }
@media (prefers-reduced-motion: no-preference) {
  .js .dpx-rows {
    --dpx-s: 0; --dpx-p: 0; --dpx-y: 1200; --dpx-t: 0;
    transform: translate3d(0, calc((var(--dpx-s) - 1) * var(--dpx-y) * 1px), 0) rotateX(calc((1 - var(--dpx-s)) * 15deg)) rotateZ(calc((1 - var(--dpx-s)) * 20deg));
    opacity: calc(.28 + var(--dpx-s) * .72);
    will-change: transform, opacity;
  }
  .js .dpx-row { will-change: transform; }
  .js .dpx-row--fill { display: flex; position: absolute; left: 0; right: 0; top: calc(100% + var(--dpx-gap)); opacity: calc(1 - var(--dpx-s) * 2.2); }
  .js .dpx-row--r { transform: translate3d(calc(var(--dpx-p) * var(--dpx-t) * 1px), 0, 0); }
  .js .dpx-row--l { transform: translate3d(calc(var(--dpx-p) * var(--dpx-t) * -1px), 0, 0); }
}

.dg-sec { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5.5rem); }
.dg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding-inline: 1rem; }
.dg-row { display: contents; }
.dg-tile { position: relative; display: flex; min-height: 15rem; overflow: hidden; border-radius: 1.5rem; }
.dg-tile--span { grid-column: 1 / -1; min-height: 17rem; }
.dg-in { position: relative; display: flex; align-items: flex-end; width: 100%; overflow: hidden; border-radius: inherit; background: #1e1e1e; }
.dg-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .7s cubic-bezier(.22, 1, .36, 1); }
.dg-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .42) 36%, transparent 66%); }
:lang(ta) .dg-in::after { background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .55) 50%, transparent 82%); }
.dg-cap { position: relative; z-index: 1; display: block; padding: 1rem; color: #fff; }
.dg-name { display: block; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.dg-desc { display: block; margin-top: .3rem; font-size: .78rem; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.dg-go { position: absolute; z-index: 1; top: 1rem; right: 1rem; display: none; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; background: #c75a0e; color: #fff; opacity: 0; scale: .7; transition: opacity .25s, scale .35s cubic-bezier(.22, 1.3, .36, 1); }
.dg-go svg { width: 1.15rem; height: 1.15rem; }
.dg-tile:focus-visible { outline: 3px solid #f47920; outline-offset: 3px; }
.dg-tile:focus-visible .dg-go { opacity: 1; scale: 1; }
.dg-row:nth-child(n) .dg-tile:nth-child(2) .dg-in { --reveal-delay: 60ms; }
.dg-row:nth-child(n) .dg-tile:nth-child(3) .dg-in { --reveal-delay: 120ms; }
.dg-row:nth-child(n) .dg-tile:nth-child(4) .dg-in { --reveal-delay: 180ms; }
@media (min-width: 640px) {
  .dg { gap: 1rem; padding-inline: 1.5rem; }
  .dg-tile { min-height: 20rem; }
  .dg-cap { padding: 1.5rem; }
  .dg-name { font-size: 1.4rem; }
  .dg-desc { font-size: .9rem; }
}
@media (min-width: 1024px) {
  .dg { display: flex; flex-direction: column; gap: 1.25rem; }
  .dg-row { display: flex; gap: 1.25rem; min-height: clamp(19rem, 23vw, 34rem); }
  .dg-tile { flex: 1 1 0; min-width: 0; min-height: 0; transition: flex-grow .6s cubic-bezier(.22, 1.12, .36, 1); }
  .dg-tile.is-wide { flex-grow: 1.9; }
  /* Held at the narrow tile's width so the words don't re-wrap as a tile grows. */
  .dg-cap { width: calc((100vw - 6.75rem) / 4.9); flex: none; }
  .dg-name { font-size: clamp(1.3rem, 1.75vw, 2.1rem); }
  .dg-desc { font-size: clamp(.875rem, .95vw, 1.1rem); }
  .dg-go { display: flex; }
  .dg-row:has(.dg-tile:focus-visible) .dg-tile { flex-grow: 1; }
  .dg-row:has(.dg-tile:focus-visible) .dg-tile:focus-visible { flex-grow: 1.9; }
}
@media (min-width: 1024px) and (hover: hover) {
  .dg-row:has(.dg-tile:hover) .dg-tile { flex-grow: 1; }
  .dg-row:has(.dg-tile:hover) .dg-tile:hover { flex-grow: 1.9; }
  .dg-tile:hover .dg-go { opacity: 1; scale: 1; }
  .dg-tile:hover img { scale: 1.04; }
}
@media (prefers-reduced-motion: reduce) {
  .dpx-card, .dpx-shade, .dpx-name, .dg-tile, .dg-in img, .dg-go { transition: none; }
}

/* ── Department page: chart paper and heartbeat line (.pu) ──────────────────── */
.pu {
  --pu-l: 2.25rem; --pu-gap: 4.75rem;
  position: relative; overflow: clip; color: #1e1e1e; background-color: #fffaf7;
  background-image:
    linear-gradient(rgba(244, 121, 32, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 121, 32, .1) 1px, transparent 1px),
    linear-gradient(rgba(244, 121, 32, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 121, 32, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.pu::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; background: linear-gradient(to bottom, rgba(255, 253, 249, 0), #fffdf9); pointer-events: none; }
.pu-wire { position: absolute; inset: 0; pointer-events: none; }
.pu-svg { position: absolute; left: 0; top: 0; overflow: visible; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pu-svg[data-pu-track] { stroke: rgba(244, 121, 32, .24); stroke-width: 2; }
.pu-svg--bright, .pu-svg[data-pu-hero], .pu-svg[data-pu-end] { stroke: #f47920; stroke-width: 2.75; }
.pu-svg--bright { will-change: clip-path; }
.pu-svg[data-pu-hero] path, .pu-svg[data-pu-end] path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pu-svg[data-pu-hero].is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.45, .05, .25, 1); }
.pu-tip { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #f47920; box-shadow: 0 0 0 5px rgba(244, 121, 32, .22), 0 0 22px 5px rgba(244, 121, 32, .45); opacity: 0; transition: opacity .5s; will-change: transform; }
.pu-tip.is-on { opacity: 1; }
.pu-tip::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(244, 121, 32, .55); animation: pu-beat 1.15s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes pu-beat { from { transform: scale(1); opacity: .8; } 70%, to { transform: scale(3.4); opacity: 0; } }

.pu-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) min(46vw, 60rem); column-gap: 3rem; align-items: center; padding-top: clamp(1.5rem, 3vw, 3rem); }
.pu-hero-text { position: relative; z-index: 1; padding-left: calc(var(--pu-l) + var(--pu-gap)); }
.pu-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; font-size: .8rem; color: #57534e; }
.pu-crumbs a { transition: color .2s; }
.pu-crumbs a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.pu-crumbs [aria-current] { color: #1e1e1e; }
.pu-title { margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.75rem, 5vw, 5.75rem); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
:lang(ta) .pu-title { font-size: clamp(2.1rem, 3.7vw, 4.25rem); line-height: 1.25; letter-spacing: 0; }
.pu-sub { max-width: 38rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 1.45vw, 1.4rem); line-height: 1.5; color: #44403c; }
.pu-hours { display: flex; gap: .75rem; margin-top: 1.75rem; }
.pu-hours svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: #b4540a; }
.pu-hours-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b4540a; }
:lang(ta) .pu-hours-k { letter-spacing: 0; }
.pu-hours-v { margin-top: .15rem; font-weight: 600; line-height: 1.45; white-space: pre-line; }
.pu-walkin { max-width: 34rem; margin-top: 1rem; color: #57534e; line-height: 1.55; }
.pu-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.pu-btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: .9rem; color: #fff; font-weight: 600; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.pu-btn--ghost { color: #1e1e1e; background: rgba(255, 255, 255, .75); border: 1px solid rgba(30, 30, 30, .2); }
.pu-btn--ghost:hover { border-color: #b4540a; color: #b4540a; }
.pu-photo { position: relative; z-index: 1; aspect-ratio: 4 / 3; max-height: 36rem; width: 100%; overflow: hidden; border-radius: 1.75rem 0 0 1.75rem; background: #f3e7dc; box-shadow: 0 30px 60px -30px rgba(120, 60, 15, .45); }
.pu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pu-trace { grid-column: 1 / -1; height: 9.5rem; }

.pu-body { position: relative; padding: clamp(1rem, 2vw, 2rem) var(--pu-l) 0; }
.pu-sec { display: grid; grid-template-columns: minmax(0, clamp(19rem, 23vw, 30rem)) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 5rem); margin-left: var(--pu-gap); padding-bottom: clamp(4.5rem, 8vw, 8.5rem); }
.pu-h { align-self: start; position: sticky; top: 7rem; margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
:lang(ta) .pu-h { font-size: clamp(1.35rem, 1.8vw, 2rem); line-height: 1.35; letter-spacing: 0; }
.pu-h::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: .9rem; border-radius: 2px; background: #f47920; transform-origin: 0 50%; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.pu-lede { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 500; font-size: clamp(1.25rem, 1.75vw, 1.85rem); line-height: 1.42; letter-spacing: -.012em; color: #1e1e1e; max-width: 62rem; }
:lang(ta) .pu-lede { font-size: clamp(1.1rem, 1.4vw, 1.5rem); line-height: 1.65; letter-spacing: 0; }
.pu-p { max-width: 54rem; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: #44403c; }
.pu-main > .pu-p:first-child { margin-top: 0; }
.pu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; list-style: none; margin: 0; padding: 0; }
.pu-main .pu-p + .pu-list { margin-top: 1.5rem; }
.pu-list li { padding: 1.05rem 0; border-bottom: 1px solid rgba(30, 30, 30, .13); font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.35rem); line-height: 1.32; letter-spacing: -.01em; }
:lang(ta) .pu-list li { font-size: 1.0625rem; line-height: 1.55; letter-spacing: 0; }
.pu-blurbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 1.75rem; }
.pu-main > .pu-blurbs:first-child { margin-top: 0; }
.pu-blurb { padding-top: 1rem; border-top: 2px solid #1e1e1e; }
.pu-blurb h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.pu-blurb p { margin-top: .55rem; line-height: 1.65; color: #44403c; }
.pu-blurb ul { margin-top: .55rem; padding-left: 1.1rem; list-style: disc; line-height: 1.65; color: #44403c; }
.pu-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pu-main .pu-p + .pu-chips { margin-top: 1.5rem; }
.pu-chips li { padding: .55rem 1rem; border: 1px solid rgba(180, 84, 10, .32); border-radius: .85rem; background: #fff; font-weight: 500; font-size: .975rem; line-height: 1.35; }
.pu-quote { margin: 0; max-width: 66rem; }
.pu-quote + .pu-quote { margin-top: 2.5rem; }
.pu-quote blockquote { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2.25vw, 2.4rem); line-height: 1.3; letter-spacing: -.02em; }
.pu-quote blockquote::before { content: "\201C"; color: #f47920; }
.pu-quote blockquote::after { content: "\201D"; color: #f47920; }
:lang(ta) .pu-quote blockquote { font-size: clamp(1.2rem, 1.7vw, 1.75rem); line-height: 1.55; letter-spacing: 0; }
.pu-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: 1.1rem; font-size: .925rem; color: #57534e; }
.pu-quote strong { color: #1e1e1e; }
.pu-stars { display: inline-flex; gap: 2px; color: #d96a12; }
.pu-stars svg { width: 1rem; height: 1rem; }
.pu-more { display: inline-block; margin-top: 1.5rem; font-weight: 600; color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.pu-faqs { max-width: 80rem; border-top: 2px solid #1e1e1e; }
.pu-faq { border-bottom: 1px solid rgba(30, 30, 30, .13); }
.pu-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; cursor: pointer; list-style: none; }
.pu-faq summary::-webkit-details-marker { display: none; }
.pu-faq summary:hover h3 { color: #b4540a; }
.pu-faq h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.35; transition: color .2s; }
.pu-faq p { max-width: 54rem; padding-bottom: 1.35rem; line-height: 1.7; color: #44403c; }
.pu-plus { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.pu-plus::before, .pu-plus::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; border-radius: 1px; background: #b4540a; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pu-plus::after { transform: rotate(90deg); }
.pu-faq[open] .pu-plus::after { transform: rotate(0); }

.pu-bar-slot { display: none; }
.pu-close { position: relative; }
.pu-close-in { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 3rem) var(--pu-l) 0 calc(var(--pu-l) + var(--pu-gap)); }
.pu-close-h { max-width: 62rem; margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 5vw, 5.5rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
:lang(ta) .pu-close-h { font-size: clamp(1.8rem, 3.4vw, 3.75rem); line-height: 1.3; letter-spacing: 0; }
.pu-close-p { max-width: 46rem; margin-top: 1.25rem; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.6; color: #44403c; }

.pu-others { position: relative; z-index: 1; padding: clamp(2rem, 4vw, 4rem) var(--pu-l) clamp(4rem, 7vw, 7rem) calc(var(--pu-l) + var(--pu-gap)); }
.pu-others-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.pu-others-head h2 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b4540a; }
:lang(ta) .pu-others-head h2 { letter-spacing: 0; font-size: .95rem; }
.pu-others-head a { font-weight: 600; color: #b4540a; }
.pu-others-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pu-others ul { display: flex; flex-wrap: wrap; gap: .35rem 2.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pu-others li a { position: relative; display: inline-block; padding: .2rem 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 2rem); letter-spacing: -.02em; color: #1e1e1e; transition: color .2s; }
.pu-others li a:hover, .pu-others li a:focus-visible { color: #b4540a; }
.pu-others img { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + .4rem); width: 12.5rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .9rem; box-shadow: 0 20px 40px -14px rgba(60, 30, 5, .55); opacity: 0; translate: -50% 10px; scale: .92; pointer-events: none; transition: opacity .22s, translate .3s cubic-bezier(.22, 1, .36, 1), scale .3s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .pu-others li a:hover img { opacity: 1; translate: -50% 0; scale: 1; }
}
@media (min-width: 1024px) {
  .js .pu-bar { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .4s cubic-bezier(.22, 1, .36, 1), visibility .3s; }
  .js .pu-bar.is-on { opacity: 1; visibility: visible; transform: none; }
  .pu-bar-slot { display: block; position: sticky; bottom: 1.25rem; z-index: 30; height: 0; margin-left: var(--pu-gap); }
  .pu-bar { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 1.25rem; width: max-content; max-width: 100%; padding: .5rem .5rem .5rem 1.4rem; border-radius: 1.15rem; border: 1px solid rgba(30, 30, 30, .08); background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -16px rgba(60, 30, 5, .4); }
  .pu-bar strong { flex: none; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; }
  .pu-bar span { font-size: .9rem; line-height: 1.3; color: #57534e; }
  .pu-bar .pu-btn { flex: none; padding: .6rem 1.15rem; font-size: .925rem; }
}
@media (min-width: 1700px) {
  .pu-list, .pu-blurbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 2300px) {
  .pu-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pu { --pu-l: 1.5rem; --pu-gap: 2.75rem; }
  .pu-hero { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .pu-hero-text { padding-right: var(--pu-l); }
  .pu-photo { margin-left: calc(var(--pu-l) + var(--pu-gap)); width: auto; }
  .pu-sec { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; padding-bottom: 3.75rem; }
  .pu-h { position: static; }
}
@media (max-width: 639px) {
  .pu { --pu-l: 1rem; --pu-gap: 1.75rem; background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; }
  .pu-list, .pu-blurbs { grid-template-columns: minmax(0, 1fr); }
  .pu-trace { height: 6.5rem; }
  .pu-actions .pu-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .pu-sec:not(.is-on) .pu-h::after { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pu-tip { display: none; }
  .pu-svg[data-pu-hero].is-drawn path { transition: none; }
  .pu-others img, .pu-plus::before, .pu-plus::after, .pu-h::after { transition: none; }
}

/* ── Our Doctors: Image Sphere hero (.dsh) and Kinetic roster (.drl) ──────────
   Hero: the doctors' portraits on a turning globe beside the speciality
   index; tmh.js [data-dsh] places each portrait every frame (position, size
   and fade by depth) and adds .is-3d. Without it they are a plain grid. */
.dsh { position: relative; overflow: clip; color: #fff; background: #1e1e1e; }
.dsh::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90%; background: radial-gradient(closest-side, rgba(244, 121, 32, .2), transparent 70%); pointer-events: none; }
.dsh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #f47920 30%, #f47920 70%, transparent); }
.dsh-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 1rem 3rem; }
.dsh-text { padding-top: clamp(1.75rem, 4vw, 3.5rem); }
.dsh-crumbs { justify-content: flex-start; }
.dsh-title { margin: 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.75rem, 6vw, 6.25rem); line-height: 1.02; letter-spacing: -.03em; }
.dsh-lead { max-width: 36rem; margin-top: 1.25rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .82); }
.dsh-count { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f47920; }
.dsh-idx { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.dsh-idx a { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .85rem; color: rgba(255, 255, 255, .85); transition: color .25s, border-color .25s, background-color .25s; }
.dsh-idx a:hover, .dsh-idx a:focus-visible, .dsh-idx a.is-on { color: #fff; border-color: #f47920; }

.dsh-sphere { position: relative; margin-top: 1.5rem; height: min(calc(100vw - 1rem), 34rem); }
.dsh-sphere::before { content: ""; position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(244, 121, 32, .26), rgba(244, 121, 32, .08) 45%, transparent 70%); pointer-events: none; }
/* No-JS fallback: a plain grid. */
.dsh-globe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.dsh-face { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: .7rem; overflow: hidden; background: #2a2622; }
.dsh-img { width: 100%; height: 100%; font-size: 1.1rem; transition: scale .5s var(--ease-out-soft); }
.dsh-face-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .5rem .45rem; font-size: .72rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent); opacity: 0; transition: opacity .3s; }
.dsh-sphere.is-3d .dsh-globe { position: absolute; inset: 0; display: block; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.dsh-sphere.is-dragging .dsh-globe { cursor: grabbing; }
.dsh-sphere.is-3d .dsh-face { position: absolute; left: 50%; top: 50%; width: var(--dsh-tile, 6rem); margin: calc(var(--dsh-tile, 6rem) * -.625) 0 0 calc(var(--dsh-tile, 6rem) * -.5); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); will-change: transform, opacity; -webkit-user-drag: none; }
.dsh-sphere.is-3d .dsh-face img { pointer-events: none; -webkit-user-drag: none; }
.dsh-face.is-on { outline: 2px solid #f47920; outline-offset: 2px; }
@media (hover: hover) {
  .dsh-face:hover .dsh-img { scale: 1.08; }
  .dsh-face:hover .dsh-face-name, .dsh-face.is-on .dsh-face-name { opacity: 1; }
  .dsh-face:hover { outline: 2px solid #f47920; outline-offset: 2px; }
}
.dsh-hint { position: absolute; left: 0; bottom: .5rem; margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.dsh-sphere:not(.is-3d) .dsh-hint { display: none; }

@media (min-width: 640px) {
  .dsh-in { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .dsh-in { grid-template-columns: minmax(24rem, 36rem) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "text sphere" "nav sphere"; column-gap: clamp(2rem, 4vw, 5rem); padding: 0 0 0 max(1.5rem, calc((100% - 88rem) / 2 + 1.5rem)); }
  .dsh-text { grid-area: text; }
  .dsh-nav { grid-area: nav; padding-bottom: clamp(3rem, 5vw, 5rem); }
  .dsh-sphere { grid-area: sphere; margin: 0; height: auto; min-height: min(52rem, calc(100vh - 7rem)); }
  .dsh-hint { left: auto; right: 9rem; bottom: clamp(.75rem, 2vw, 1.5rem); line-height: 2.25rem; }
  /* On a desktop the specialities are a two-column index, as in the reference's name list. */
  .dsh-idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
  .dsh-idx a { justify-content: space-between; padding: .55rem 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 0; font-size: .92rem; }
  .dsh-idx-name { position: relative; transition: translate .35s var(--ease-out-soft); }
  .dsh-idx-name::before { content: ""; position: absolute; left: -1rem; top: 50%; width: .45rem; height: 2px; background: #f47920; scale: 0 1; transform-origin: left; transition: scale .3s var(--ease-out-soft); }
  .dsh-idx a:hover .dsh-idx-name, .dsh-idx a:focus-visible .dsh-idx-name, .dsh-idx a.is-on .dsh-idx-name { translate: 1rem 0; }
  .dsh-idx a:hover .dsh-idx-name::before, .dsh-idx a:focus-visible .dsh-idx-name::before, .dsh-idx a.is-on .dsh-idx-name::before { scale: 1 1; }
  .dsh-face-name { font-size: .74rem; }
  .dsh-img { font-size: 1.75rem; }
}

/* Roster: big numbered names, grouped by speciality. With a mouse, the
   doctor's portrait follows the cursor (.drl-float); elsewhere it sits in the row. */
.drl { position: relative; background: #fffaf7; padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(2rem, 4vw, 4rem); }
.drl-wrap { max-width: 110rem; margin-inline: auto; padding-inline: 1rem; }
.drl-group { margin-top: clamp(2rem, 3vw, 3rem); scroll-margin-top: 6rem; }
.drl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding-bottom: .75rem; border-bottom: 2px solid #1e1e1e; }
.drl-spec { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.1rem, 1.5vw, 1.5rem); letter-spacing: -.01em; color: #1e1e1e; }
.drl-dept { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--tmh-primary-ink); }
.drl-dept svg { width: 1rem; height: 1rem; transition: translate .3s var(--ease-out-soft); }
.drl-dept:hover { text-decoration: underline; text-underline-offset: 4px; }
.drl-dept:hover svg { translate: .2rem 0; }
.drl-list { list-style: none; margin: 0; padding: 0; }
.drl-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2.25rem; grid-template-areas: "thumb main go" "thumb meta go"; column-gap: 1rem; row-gap: .35rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(30, 30, 30, .12); color: #1e1e1e; transition: opacity .35s; }
.drl-thumb { grid-area: thumb; align-self: start; display: block; width: 3.5rem; aspect-ratio: 4 / 5; border-radius: .5rem; overflow: hidden; background: #fbe9da; }
.drl-img { width: 100%; height: 100%; font-size: 1rem; }
.drl-main { grid-area: main; min-width: 0; }
.drl-name { display: block; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 2.5vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; transition: color .3s, translate .5s var(--ease-out-soft); }
.drl-qual { display: block; margin-top: .3rem; font-size: .8rem; color: #64748b; }
.drl-meta { grid-area: meta; display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; }
.drl-role { font-weight: 600; color: var(--tmh-primary-ink); }
.drl-exp { color: #64748b; font-size: .8rem; }
.drl-go { grid-area: go; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgba(30, 30, 30, .2); transition: background-color .3s, border-color .3s, color .3s, rotate .4s var(--ease-out-soft); }
.drl-go svg { width: 1rem; height: 1rem; }
.drl-row:hover .drl-name, .drl-row:focus-visible .drl-name { color: var(--tmh-primary-ink); }
.drl-row:hover .drl-go, .drl-row:focus-visible .drl-go { background: var(--tmh-primary-cta); border-color: var(--tmh-primary-cta); color: #fff; rotate: 45deg; }
.drl-float { display: none; }

@media (min-width: 640px) {
  .drl-wrap { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .drl-wrap { padding-inline: clamp(1.5rem, 4vw, 5rem); }
  /* Speciality name stays beside its doctors while they scroll past. */
  .drl-group { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 5rem); border-top: 2px solid #1e1e1e; }
  .drl-head { position: sticky; top: 6.5rem; align-self: start; flex-direction: column; align-items: flex-start; padding-top: 1.25rem; border-bottom: 0; }
  .drl-row { grid-template-columns: minmax(0, 1fr) minmax(14rem, 26rem) 2.75rem; grid-template-areas: "main meta go"; column-gap: clamp(1rem, 2vw, 2.5rem); padding: clamp(1.1rem, 1.6vw, 1.75rem) 0; }
  .drl-list li:last-child .drl-row { border-bottom: 0; }
  .drl-thumb { display: none; }
  .drl-meta { text-align: right; align-items: flex-end; }
  .drl-go { width: 2.75rem; height: 2.75rem; }
  .drl-row:hover .drl-name, .drl-row:focus-visible .drl-name { translate: 1rem 0; }
}
/* Mouse only: the other rows step back, and the portrait follows the cursor. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .drl-list:hover .drl-row:not(:hover) { opacity: .4; }
  .drl-float { display: block; position: fixed; left: 0; top: 0; z-index: 30; width: clamp(13rem, 15vw, 18rem); aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; pointer-events: none; background: #fbe9da; box-shadow: 0 30px 60px -20px rgba(60, 30, 10, .45); opacity: 0; scale: .6; transition: opacity .25s, scale .45s var(--ease-out-soft); will-change: transform; }
  .drl-float.is-on { opacity: 1; scale: 1; }
  .drl-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .3s, scale .5s var(--ease-out-soft); }
  .drl-float img:not(.is-cur) { opacity: 0; scale: 1.08; }
}
@media (prefers-reduced-motion: reduce) {
  .dsh-img, .dsh-face-name, .dsh-idx-name, .dsh-idx-name::before, .drl-name, .drl-go, .drl-row { transition: none; }
  .drl-float { display: none !important; }
}

/* ── Doctor profile (/doctors/<slug>/): Minimalist Hero (.dp) ──────────────────
   Light, editorial: the portrait rises from the bottom edge in front of one
   bold brand circle; the name is set very large beside it, sized from its
   longest word (--fit, from the view) so long names step down. */
.dp { --side: max(1rem, calc((100% - 88rem) / 2 + 1.5rem)); position: relative; overflow: clip; background: #fffaf7; color: #1e1e1e; }
.dp-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "name" "figure" "intro" "facts"; padding: clamp(1.5rem, 3vw, 2.5rem) var(--side) 0; }
.dp-crumbs { grid-area: crumbs; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: #57534e; }
.dp-crumbs a { transition: color .2s; }
.dp-crumbs a:hover { color: var(--tmh-primary-ink); text-decoration: underline; text-underline-offset: 4px; }
.dp-crumbs [aria-current] { color: #1e1e1e; font-weight: 600; }
.dp-name { grid-area: name; position: relative; z-index: 3; margin: 1.25rem 0 0; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, calc(140vw / var(--fit, 10)), 3.4rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.dp-figure { grid-area: figure; position: relative; justify-self: center; width: min(68vw, 19rem); margin-top: 2.5rem; }
.dp-circle { position: absolute; left: 50%; top: 8%; width: 132%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #f47920; }
.dp-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 1.25rem 1.25rem; overflow: hidden; background: #fbe9da; box-shadow: 0 30px 60px -28px rgba(80, 35, 0, .55); }
.dp-img { width: 100%; height: 100%; font-size: 4rem; }
.dp-intro { grid-area: intro; position: relative; z-index: 2; margin-top: 2rem; }
.dp-spec { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tmh-primary-ink); }
.dp-role { margin-top: .6rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 700; line-height: 1.3; }
.dp-qual { margin-top: .5rem; max-width: 30rem; font-size: .95rem; line-height: 1.6; color: #57534e; }
.dp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.dp-btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: .9rem; color: #fff; font-weight: 600; font-size: .95rem; transition: background-color .2s; }
.dp-btn--full { width: 100%; margin-top: 1.25rem; }
.dp-call { font-weight: 600; font-size: .95rem; color: #1e1e1e; text-decoration: underline; text-decoration-color: rgba(244, 121, 32, .6); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: color .2s; }
.dp-call:hover { color: var(--tmh-primary-ink); }
.dp-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: .4rem 0; margin: 1.75rem 0 0; padding: 1rem 0 1.5rem; border-top: 1px solid rgba(30, 30, 30, .12); list-style: none; font-size: .85rem; color: #57534e; }
.dp-facts:empty { display: none; }
.dp-facts li { display: inline-flex; align-items: center; margin-right: 1.25rem; }
.dp-facts li::before { content: ""; flex: none; width: .35rem; height: .35rem; margin-right: .55rem; border-radius: 50%; background: #f47920; }

@media (min-width: 640px) {
  .dp-figure { width: min(55vw, 21rem); }
}
@media (min-width: 1024px) {
  .dp-in { --w: clamp(17rem, 26vw, 30rem); grid-template-columns: minmax(16rem, 1fr) auto minmax(0, 1.2fr); grid-template-rows: auto 1fr auto; grid-template-areas: "crumbs figure name" "intro figure name" "facts figure name"; column-gap: clamp(2rem, 4vw, 5rem); min-height: clamp(36rem, calc(100vh - 8rem), 56rem); padding-top: clamp(1.75rem, 3vw, 2.75rem); }
  .dp-figure { width: var(--w); align-self: end; margin-top: calc(var(--w) * .35); }
  .dp-circle { top: -12%; }
  .dp-photo { border-radius: 999px 999px 0 0; }
  /* Like the reference's headline, the name reaches back over the circle's edge. */
  .dp-name { align-self: center; margin: 0 0 0 calc(var(--w) * -.16); font-size: clamp(2.6rem, calc(42vw / var(--fit, 10)), 7rem); }
  .dp-intro { align-self: center; margin: 0; }
  .dp-facts { align-self: end; margin: 0; padding-bottom: 2rem; }
}

/* Filling the hero: the speciality as a huge outlined word behind everything,
   two faint rings around the circle, and floating cards from the doctor's
   record (experience, OP timings) around the portrait. */
.dp-in { position: relative; z-index: 1; }
.dp-word { position: absolute; left: 50%; top: clamp(6.5rem, 16vh, 10rem); z-index: 0; margin: 0; translate: -50% 0; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  font-size: min(10vw, calc(150vw / var(--sl, 12))); color: transparent; -webkit-text-stroke: 1.5px rgba(244, 121, 32, .26); display: none; }
.dp-circle::before, .dp-circle::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dp-circle::before { inset: -11%; border: 1.5px solid rgba(244, 121, 32, .3); }
.dp-circle::after { inset: -24%; border: 1.5px dashed rgba(244, 121, 32, .22); }
.dp-float { position: absolute; z-index: 4; margin: 0; border-radius: 1rem; background: rgba(255, 255, 255, .92); border: 1px solid rgba(244, 121, 32, .18); box-shadow: 0 22px 44px -18px rgba(80, 35, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #1e1e1e; }
.dp-float--exp { left: -8%; top: 16%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 6.25rem; aspect-ratio: 1; padding: .5rem; border-radius: 50%; text-align: center; }
.dp-float--exp strong { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1; color: var(--tmh-primary-ink); }
.dp-float--exp span { margin-top: .2rem; font-size: .7rem; font-weight: 600; line-height: 1.2; color: #57534e; }
.dp-float--op { right: -8%; bottom: -6%; max-width: 15.5rem; padding: .8rem 1rem; }
.dp-float-h { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tmh-primary-ink); }
.dp-float-h svg { width: .9rem; height: .9rem; flex: none; }
.dp-float-t { margin: 0; font-size: .82rem; font-weight: 600; line-height: 1.45; white-space: pre-line; }
@media (min-width: 1024px) {
  .dp-float--exp { left: -22%; top: 12%; width: 7.25rem; }
  .dp-float--exp strong { font-size: 2.4rem; }
  .dp-float--exp span { font-size: .7rem; }
  .dp-float--op { right: -34%; bottom: 12%; max-width: 17rem; padding: 1rem 1.15rem; }
  .dp-float-t { font-size: .9rem; }
  .dp-word { display: block; top: clamp(4.5rem, 10vh, 7rem); }
}

/* Entrance, as in the reference: the circle swells, the portrait rises, the name follows. */
@media (prefers-reduced-motion: no-preference) {
  .dp-circle { animation: dp-swell .9s var(--ease-out-soft) both; }
  .dp-photo { animation: dp-rise .9s .08s var(--ease-out-soft) both; }
  .dp-name { animation: dp-up .8s .18s var(--ease-out-soft) both; }
  .dp-intro, .dp-facts { animation: dp-up .7s .3s var(--ease-out-soft) both; }
  .dp-float { animation: dp-pop .7s .5s var(--ease-out-soft) both; }
  .dp-float--op { animation-delay: .62s; }
  .dp-word { animation: dp-fade 1.2s .1s ease-out both; }
}
@keyframes dp-swell { from { scale: .55; opacity: 0; } }
@keyframes dp-rise { from { translate: 0 3rem; opacity: 0; } }
@keyframes dp-up { from { translate: 0 1.25rem; opacity: 0; } }
@keyframes dp-pop { from { scale: .7; opacity: 0; } }
@keyframes dp-fade { from { opacity: 0; } }
/* On a phone the hero is already full; the word appears from tablet-landscape up. */

/* Body: about and details beside the OP timings card (after Coach Scheduling Card). */
.dp-body { background: #fff; }
.dp-side { order: -1; }
.dp-body-in { display: grid; gap: 2.5rem; max-width: 88rem; margin-inline: auto; padding: clamp(3rem, 6vw, 6rem) 1rem; }
.dp-h { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -.02em; color: #1e1e1e; margin-bottom: 1.25rem; }
.dp-sec { margin-bottom: 2.5rem; }
.dp-p { max-width: 46rem; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.75; color: #3f3a36; }
.dp-p + .dp-p, .dp-p + .dp-list, .dp-list + .dp-p, .dp-list + .dp-list { margin-top: 1.1rem; }
.dp-list-h { font-weight: 700; color: #1e1e1e; margin-bottom: .6rem; }
.dp-list ul { display: grid; gap: .55rem 2rem; list-style: none; margin: 0; padding: 0; }
.dp-list li { position: relative; padding-left: 1.4rem; line-height: 1.6; color: #3f3a36; }
.dp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: #f47920; }
.dp-dl { margin: 0; border-top: 1px solid rgba(30, 30, 30, .1); }
.dp-dl > div { display: grid; gap: .25rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(30, 30, 30, .1); }
.dp-dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tmh-primary-ink); }
.dp-dl dd { margin: 0; line-height: 1.6; color: #1e1e1e; }
.dp-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--tmh-primary-ink); transition: gap .25s; }
.dp-link:hover { gap: .7rem; text-decoration: underline; text-underline-offset: 4px; }
.dp-link svg { width: 1rem; height: 1rem; }
.dp-badge { width: 7rem; height: 7rem; object-fit: contain; margin-top: 1.75rem; }

.dp-card { padding: 1.5rem; border-radius: 1.5rem; border: 1px solid #fde3cc; background: #fffaf7; box-shadow: 0 24px 50px -30px rgba(80, 35, 0, .35); }
.dp-card-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1.1rem; border-bottom: 1px solid #fde3cc; }
.dp-card-face { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; background: #fbe9da; }
.dp-card-img { width: 100%; height: 100%; font-size: 1.1rem; }
.dp-card-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; line-height: 1.25; }
.dp-card-spec { font-size: .8rem; color: var(--tmh-primary-ink); font-weight: 600; margin-top: .15rem; }
.dp-card-h { margin-top: 1.25rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #57534e; }
.dp-times { list-style: none; margin: .6rem 0 0; padding: 0; }
.dp-times li { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem 0; border-bottom: 1px dashed #f3cfae; font-weight: 600; line-height: 1.45; color: #1e1e1e; }
.dp-times li:last-child { border-bottom: 0; }
.dp-times svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; color: #f47920; }
.dp-card-note { margin-top: .65rem; font-size: .78rem; line-height: 1.5; color: #64748b; text-align: center; }
.dp-times + .dp-btn, .dp-card-h + .dp-card-note { margin-top: 1rem; }

.dp-more { background: #fffaf7; }
.dp-more-in { max-width: 88rem; margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) 1rem; }
.dp-peers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.dp-peer { display: block; }
.dp-peer-photo { display: block; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; background: #fbe9da; }
.dp-peer-img { width: 100%; height: 100%; font-size: 2rem; transition: scale .6s var(--ease-out-soft); }
.dp-peer:hover .dp-peer-img { scale: 1.05; }
.dp-peer-name { display: block; margin-top: .75rem; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; line-height: 1.25; color: #1e1e1e; transition: color .2s; }
.dp-peer:hover .dp-peer-name { color: var(--tmh-primary-ink); }
.dp-peer-role { display: block; margin-top: .2rem; font-size: .82rem; color: #57534e; }
.dp-back { max-width: 88rem; margin-inline: auto; padding: 2rem 1rem 3rem; }

@media (min-width: 640px) {
  .dp-body-in, .dp-more-in, .dp-back { padding-inline: 1.5rem; }
  .dp-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-dl > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
  .dp-peers { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .dp-body-in { grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .dp-side { position: sticky; top: 7rem; order: 0; }
  .dp-peers { grid-template-columns: repeat(auto-fill, minmax(13rem, 15rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .dp-peer-img, .dp-link { transition: none; }
}

/* ── Week calendar for booking forms (.bk-cal), used by the Contact form ──────
   After Booking Slot Calendar (bidyut10, 21st.dev). tmh.js draws it and hides
   the date box, which keeps carrying the value. */
.bk-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; }
.bk-cal { border: 1px solid #ece7e2; border-radius: 1rem; padding: .85rem .85rem .7rem; background: #fff; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.bk-cal-month { font-size: .9rem; font-weight: 700; color: #1e1e1e; }
.bk-cal-arrows { display: flex; gap: .25rem; }
.bk-cal-arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: #44403c; transition: background-color .2s, color .2s; }
.bk-cal-arrow:hover:not(:disabled) { background: #fff3ea; color: var(--tmh-primary-ink); }
.bk-cal-arrow:disabled { color: #d6d3d1; cursor: default; }
.bk-cal-arrow svg { width: 1.1rem; height: 1.1rem; }
.bk-cal-wd, .bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.bk-cal-wd span { font-size: .68rem; font-weight: 600; color: #a8a29e; padding-bottom: .3rem; }
.bk-cal-day { position: relative; display: grid; place-items: center; width: min(2.6rem, 11vw); aspect-ratio: 1; border-radius: 50%; font-size: .9rem; font-weight: 600; color: #1e1e1e; transition: background-color .2s, color .2s; }
.bk-cal-day:hover:not(:disabled) { background: #fff3ea; color: var(--tmh-primary-ink); }
.bk-cal-day:focus-visible { outline: 2px solid #f47920; outline-offset: 2px; }
.bk-cal-day:disabled { color: #d6d3d1; cursor: default; }
.bk-cal-day.is-today::after { content: ""; position: absolute; bottom: .3rem; width: .3rem; height: .3rem; border-radius: 50%; background: #f6b27f; }
.bk-cal-day[aria-checked="true"], .bk-cal-day[aria-checked="true"]:hover:not(:disabled) { background: var(--tmh-primary-cta); color: #fff; box-shadow: 0 8px 18px -8px rgba(194, 87, 15, .7); }
.bk-cal-chosen { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed #ece7e2; font-size: .82rem; font-weight: 600; color: #1e1e1e; }
.bk-cal-chosen.is-empty { font-weight: 500; color: #64748b; }

/* ── Booking takeover (.bkx): one question at a time beside a live ticket ─────
   Full screen in brand dark. tmh.js shows one .bkx-q at a time, fills the
   ticket as questions are answered, and adds .is-sent when the request is
   received (the ticket's stub tears off). */
.bkx:not(.hidden) { position: fixed; inset: 0; z-index: 200; display: block; }
.bkx-shell { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; color: #fff;
  background: radial-gradient(60rem 40rem at 15% 25%, rgba(244, 121, 32, .16), transparent 60%), #1e1e1e; }
.bkx-bar { height: 3px; background: rgba(255, 255, 255, .08); }
.bkx-bar span { display: block; height: 100%; width: 0; background: #f47920; transition: width .5s var(--ease-out-soft); }
.bkx-top { display: flex; align-items: center; gap: 1rem; padding: .9rem clamp(1rem, 4vw, 3rem); }
.bkx-brand { display: flex; align-items: center; gap: .65rem; font-size: .9rem; font-weight: 700; }
.bkx-brand span:last-child { outline: none; }
.bkx-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #f47920; box-shadow: 0 0 0 5px rgba(244, 121, 32, .2); }
.bkx-count { margin-left: auto; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bkx-count-of { color: rgba(255, 255, 255, .5); }
.bkx-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .2s; }
.bkx-close:hover { background: rgba(255, 255, 255, .08); }
.bkx-close svg { width: 1.1rem; height: 1.1rem; }
.bkx-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; overscroll-behavior: contain; }
.bkx-stage { display: flex; flex-direction: column; padding: clamp(1rem, 4vh, 3rem) clamp(1.25rem, 6vw, 7rem) 1.5rem; }
.bkx-form, .bkx-done { width: 100%; max-width: 46rem; }
.bkx-done[hidden], .bkx-form[hidden] { display: none; }

.bkx-chip { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.75rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; background: rgba(244, 121, 32, .14); border: 1px solid rgba(244, 121, 32, .35); font-size: .85rem; color: #fff; }
.bkx-chip img { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; object-position: top; }
.bkx-chip button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: rgba(255, 255, 255, .8); }
.bkx-chip button:hover { background: rgba(255, 255, 255, .1); }
.bkx-chip button svg { width: .9rem; height: .9rem; }
.bkx-chip:not(:has(img)):not(:has(button)) { padding-left: .9rem; }

.bkx-q { display: none; }
.bkx-q.is-on { display: block; }
.bkx-qn { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .95rem; font-weight: 800; color: #f47920; font-variant-numeric: tabular-nums; }
.bkx-qn::after { content: "→"; font-weight: 600; }
.bkx-qh { display: block; margin: 0 0 clamp(1.25rem, 3.5vh, 2.25rem); font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; outline: none; }
.bkx .bkx-q input:not([type=hidden]):not(.bk-native), .bkx .bkx-q textarea { display: block; width: 100%; margin: 0; padding: .35rem 0 .6rem; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .28); border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 600; color: #fff; caret-color: #f47920; transition: border-color .2s; }
.bkx .bkx-q textarea { padding: .9rem 1rem; border: 2px solid rgba(255, 255, 255, .22); border-radius: 1rem; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; resize: vertical; }
.bkx .bkx-q input::placeholder, .bkx .bkx-q textarea::placeholder { color: rgba(255, 255, 255, .32); }
.bkx .bkx-q input:focus, .bkx .bkx-q textarea:focus { border-color: #f47920; }
.bkx .bkx-q [aria-invalid="true"] { border-color: #ff9a76; }
.bkx-hint { margin-top: 1rem; font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.bkx-hint a, .bkx-lead a, .bkx-foot a { font-weight: 600; color: #f9a35f; }
.bkx-hint a:hover, .bkx-lead a:hover, .bkx-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bkx-err { margin-top: .75rem; font-size: .95rem; font-weight: 600; color: #ffb08a; }
.bkx-err:empty { display: none; }
.bkx-lead { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.bkx-lead--sm { margin-top: .75rem; font-size: 1rem; }
.bkx-lead .font-semibold, .bkx-lead .text-dark { color: #fff; }
.bkx .bkx-q[data-q="review"] > p.text-center { margin-top: 1.5rem; text-align: left; font-size: .8rem; color: rgba(255, 255, 255, .62); }
.bkx .bkx-q[data-q="review"] > p.text-center a:hover { color: #f9a35f; }
.bkx-turnstile { margin-top: 1.5rem; }
.bkx [data-booking-status] { margin-top: 1rem !important; text-align: left !important; font-size: .95rem !important; color: #ffb08a !important; }
.bkx [data-booking-status]:empty { display: none; }

/* Department chips and day tiles. */
.bkx-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.bkx-pick { padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .22); font-size: clamp(.9rem, 1.15vw, 1.02rem); font-weight: 600; color: rgba(255, 255, 255, .92); transition: border-color .2s, background-color .2s, color .2s; }
.bkx-pick--any { border-style: dashed; }
.bkx-pick:hover { border-color: #f47920; }
.bkx-pick[aria-checked="true"], .bkx-day[aria-checked="true"] { background: var(--tmh-primary-cta); border-color: var(--tmh-primary-cta); color: #fff; }
.bkx-pick:focus-visible, .bkx-day:focus-visible, .bkx-btn:focus-visible, .bkx-back:focus-visible, .bkx-close:focus-visible { outline: 2px solid #f9a35f; outline-offset: 3px; }
.bkx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; max-width: 40rem; }
.bkx-day { display: grid; justify-items: center; gap: .05rem; padding: .5rem 0 .45rem; border-radius: .85rem; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #fff; transition: border-color .2s, background-color .2s; }
.bkx-day:hover:not(:disabled) { border-color: #f47920; }
.bkx-day-wd { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.bkx-day-n { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 800; line-height: 1.15; }
.bkx-day-mo { min-height: .85rem; font-size: .6rem; font-weight: 700; color: #f9a35f; line-height: 1.3; }
.bkx-day[aria-checked="true"] .bkx-day-wd, .bkx-day[aria-checked="true"] .bkx-day-mo { color: #fff; }
.bkx-day.is-today { border-style: dashed; opacity: .55; cursor: default; }

/* Bottom bar: back, skip, OK / send. */
.bkx-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .85rem clamp(1.25rem, 6vw, 7rem) max(.85rem, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(20, 18, 17, .85); }
.bkx-nav [hidden] { display: none !important; }
.bkx-back { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; transition: background-color .2s; }
.bkx-back:hover { background: rgba(255, 255, 255, .08); }
.bkx-back svg { width: 1.2rem; height: 1.2rem; }
.bkx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: .9rem; background: var(--tmh-primary-cta); color: #fff; font-size: 1rem; font-weight: 700; transition: background-color .2s, border-color .2s; }
.bkx-btn:hover { background: var(--tmh-primary-ink); }
.bkx-btn svg { width: 1.1rem; height: 1.1rem; }
.bkx-btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .25); }
.bkx-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.bkx-btn--send { padding-inline: 2rem; }
.bkx-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.bkx-enter { font-size: .8rem; color: rgba(255, 255, 255, .5); }
.bkx[data-at="review"] .bkx-enter, .bkx[data-at="department"] .bkx-enter, .bkx[data-at="preferred_date"] .bkx-enter { display: none; }
.bkx-foot { display: none; margin-left: auto; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.bkx.is-sent .bkx-nav { display: none; }
.bkx.is-sent .bkx-bar span { width: 100% !important; }
.bkx.is-sent .bkx-count { visibility: hidden; }
@media (hover: none) { .bkx-enter { display: none; } }

/* The live ticket. */
.bkx-ticket-wrap { display: none; padding: 0 1.25em 1.5em; }
.bkx[data-at="review"] .bkx-ticket-wrap, .bkx.is-sent .bkx-ticket-wrap { display: block; }
.bkx-ticket { --notch: #1e1e1e; position: relative; width: min(100%, 22em); font-size: 1rem; margin-inline: auto; border-radius: 1.25em; background: #fffaf7; color: #1e1e1e; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); transition: rotate .7s var(--ease-out-soft); }
.bkx-t-head { display: flex; align-items: center; gap: .75em; padding: 1em 1.25em; border-radius: 1.25em 1.25em 0 0; background: #f47920; }
.bkx-t-logo { width: 2.5em; height: 2.5em; padding: .2em; border-radius: .6em; background: #fff; object-fit: contain; }
.bkx-t-org { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: .92em; font-weight: 800; line-height: 1.2; color: #1e1e1e; }
.bkx-t-kind { margin-top: .15em; font-size: .66em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #3b2a1c; }
.bkx-t-rows { margin: 0; padding: .6em 1.25em .4em; }
.bkx-t-rows > div { padding: .55em 0; border-bottom: 1px dashed #ead9ca; border-radius: .4em; }
.bkx-t-rows > div:last-child { border-bottom: 0; }
.bkx-t-rows dt { font-size: .62em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6560; }
.bkx-t-rows dd { margin: .2em 0 0; min-height: 1.35em; font-size: 1.02em; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.bkx-t-rows > div:not(.is-filled) dd { width: 70%; height: .55em; min-height: 0; margin-top: .55em; border-radius: 2px; background: repeating-linear-gradient(90deg, #e7d6c7 0 6px, transparent 6px 11px); }
.bkx-t-rows > div.is-new { animation: bkx-flash 1s ease-out; }
.bkx-t-stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.25em 1.2em; border-top: 2px dashed #e2cdbb; }
.bkx-t-stub::before, .bkx-t-stub::after { content: ""; position: absolute; top: -.8em; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--notch); }
.bkx-t-stub::before { left: -.75em; }
.bkx-t-stub::after { right: -.75em; }
.bkx-t-date { display: flex; flex-direction: column; line-height: 1; }
.bkx-t-date [data-t-day] { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 2.6em; font-weight: 800; color: #d6c4b4; letter-spacing: -.03em; }
.bkx-t-date.is-filled [data-t-day] { color: var(--tmh-primary-cta); }
.bkx-t-date [data-t-month] { margin-top: .3em; font-size: .72em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #57534e; }
.bkx-t-status { display: flex; align-items: center; gap: .4em; flex: 0 1 auto; min-width: 0; max-width: 72%; justify-content: flex-end; text-align: right; font-size: .68em; font-weight: 800; letter-spacing: .04em; line-height: 1.3; color: var(--tmh-primary-ink); }
.bkx-t-status::before { content: ""; flex: none; width: .45em; height: .45em; border-radius: 50%; background: #f47920; }

/* Sent: the answer column says what happens next; the stub tears away. */
.bkx-done .bkx-qn { justify-content: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--tmh-primary-cta); color: #fff; font-size: 1.4rem; }
.bkx-done .bkx-qn::after { content: none; }
.bkx-done-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

@media (min-width: 640px) {
  .bkx-foot { display: block; }
  .bkx-days { gap: .55rem; }
  .bkx-day-wd { font-size: .66rem; }
  .bkx-day-mo { font-size: .64rem; }
}
@media (min-width: 1024px) {
  .bkx-body { grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 1fr); grid-template-rows: minmax(0, 1fr); align-content: stretch; overflow: hidden; }
  .bkx-stage { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .bkx-form, .bkx-done { margin-block: auto; }
  .bkx .bkx-ticket-wrap { display: grid; place-items: center; padding: 2rem; background: linear-gradient(160deg, #2b2622, #191614); border-left: 1px solid rgba(255, 255, 255, .06); }
  /* Scales with the screen (and its height, so it always fits): about two thirds
     of its column, from ~21px type at 1440 to 32px on very wide displays. */
  .bkx-ticket { --notch: #221e1b; rotate: -3deg; font-size: clamp(15px, min(1.45vw, 2.7vh), 32px); }
  .bkx[data-at="review"] .bkx-ticket, .bkx.is-sent .bkx-ticket { rotate: 0deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .bkx:not(.hidden) .bkx-shell { animation: bkx-open .45s var(--ease-out-soft) both; }
  .bkx-q.is-on { animation: bkx-in .5s var(--ease-out-soft) both; }
  .bkx-q.is-on.is-back { animation-name: bkx-in-back; }
  .bkx-done:not([hidden]) { animation: bkx-in .6s .25s var(--ease-out-soft) both; }
  .bkx.is-sent .bkx-t-stub { animation: bkx-tear 1s .15s var(--ease-out-soft) both; }
  .bkx.is-sent .bkx-t-status::before { animation: bkx-ping 1.4s .9s ease-out 2; }
}
@keyframes bkx-open { from { opacity: 0; scale: 1.02; } }
@keyframes bkx-in { from { opacity: 0; translate: 0 2rem; } }
@keyframes bkx-in-back { from { opacity: 0; translate: 0 -2rem; } }
@keyframes bkx-flash { from { background: rgba(244, 121, 32, .22); } }
@keyframes bkx-tear { 0% { translate: 0 0; rotate: 0deg; } 45% { translate: 0 .9rem; rotate: 4deg; } 100% { translate: 0 .7rem; rotate: 3deg; } }
/* Tamil: wide letter spacing pulls Tamil letters apart; set it plainly. */
:lang(ta) .bkx-t-rows dt, :lang(ta) .bkx-t-kind, :lang(ta) .bkx-t-status, :lang(ta) .bkx-t-date [data-t-month], :lang(ta) .bkx-day-wd { letter-spacing: 0; }
@keyframes bkx-ping { 50% { box-shadow: 0 0 0 6px rgba(244, 121, 32, .25); } }

/* ── Patient Support & Insurance ─────────────────────────────────────────────
   21st.dev / Magic UI references: Orbiting Circles hero (.psh), Bento Grid
   services (.psb), searchable logo cloud for insurers (.psi). */
.psh {
  --side: clamp(1rem, 5vw, 6rem);
  --R1: 16vw; --R2: 30vw; --R3: 43vw; --sz1: 2.25rem; --sz: 2.25rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background: #1e1e1e; color: #fff;
}
.psh-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 78%, rgba(244, 121, 32, .22), transparent 55%); }
.psh-inner { position: relative; z-index: 1; padding: 3rem var(--side) 1rem; }
.psh-title { color: #fff; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 6.5rem); line-height: 1.02; letter-spacing: -.04em; max-width: 12ch; }
:lang(ta) .psh-title { font-size: clamp(2.1rem, 4.4vw, 4.4rem); letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
.psh-sub { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.3125rem); line-height: 1.55; color: rgba(255, 255, 255, .82); }
.psh-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.psh-btn { display: inline-flex; align-items: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .28); font-size: .9375rem; font-weight: 600; color: #fff; background: rgba(30, 30, 30, .45); transition: background-color .2s, border-color .2s; }
.psh-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.psh-btn-main { border-color: transparent; background: #c2570f; }
.psh-btn-main:hover { border-color: transparent; background: #b4540a; }

/* The orbit. Every item sits at the centre and is turned out to its ring;
   a negative delay spreads each ring's items evenly. */
.psh-orbit { position: relative; flex: none; align-self: center; width: calc(var(--R3) * 2 + var(--sz)); height: calc(var(--R3) * 2 + var(--sz)); margin: 1rem 0 2.5rem; }
.psh-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); transform: translate(-50%, -50%); }
.psh-ring-1 { width: calc(var(--R1) * 2); height: calc(var(--R1) * 2); border: 1px dashed rgba(244, 121, 32, .45); }
.psh-ring-2 { width: calc(var(--R2) * 2); height: calc(var(--R2) * 2); }
.psh-ring-3 { width: calc(var(--R3) * 2); height: calc(var(--R3) * 2); border-color: rgba(255, 255, 255, .07); }
.psh-core { position: absolute; left: 50%; top: 50%; width: calc(var(--R1) * .95); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 .5rem rgba(244, 121, 32, .16), 0 0 3rem rgba(244, 121, 32, .45); animation: psh-beat 3.2s ease-in-out infinite; }
.psh-core img { width: 60%; height: auto; object-fit: contain; }
@keyframes psh-beat { 50% { box-shadow: 0 0 0 1.1rem rgba(244, 121, 32, .07), 0 0 4rem rgba(244, 121, 32, .55); } }
.psh-o {
  --r: var(--R3); --d: 120s; --s: var(--sz);
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 .5rem 1.5rem rgba(0, 0, 0, .4);
  animation: psh-turn var(--d) linear infinite; animation-delay: calc(var(--d) * var(--i) / var(--n) * -1);
}
.psh-o { overflow: hidden; }
.psh-o img { width: 78%; height: 78%; object-fit: contain; }
.psh-o-1 { --r: var(--R1); --d: 48s; --s: var(--sz1); background: #2a2420; color: #f47920; box-shadow: 0 0 0 1px rgba(244, 121, 32, .55), 0 0 1.25rem rgba(244, 121, 32, .25); }
.psh-o-1 svg { width: 50%; height: 50%; }
.psh-o-2 { --r: var(--R2); --d: 84s; animation-direction: reverse; }
@keyframes psh-turn {
  from { transform: rotate(0deg) translateY(calc(var(--r) * -1)) rotate(0deg); }
  to { transform: rotate(360deg) translateY(calc(var(--r) * -1)) rotate(-360deg); }
}
.psh-orbit:hover .psh-o { animation-play-state: paused; }

@media (min-width: 640px) {
  .psh { --R1: 6.5rem; --R2: 11.5rem; --R3: 16.5rem; --sz1: 3rem; --sz: 3.25rem; }
}
/* Wide: text on the left, the orbit fills the right and runs off the edge. */
@media (min-width: 1024px) {
  .psh { --R1: clamp(7rem, 8.5vw, 10rem); --R2: clamp(12rem, 15.5vw, 18rem); --R3: clamp(17.5rem, 22.5vw, 26rem); --sz1: clamp(3.25rem, 3.6vw, 4.25rem); --sz: clamp(3.5rem, 4.2vw, 5rem); display: block; min-height: clamp(38rem, 88svh, 60rem); }
  .psh-inner { display: flex; flex-direction: column; justify-content: center; min-height: inherit; padding-block: 4rem; max-width: calc(var(--side) + min(40rem, 44vw)); }
  .psh-orbit { position: absolute; margin: 0; top: 50%; left: calc(100% - var(--R3) * .92 - 1rem); transform: translate(-50%, -50%); }
  .psh-glow { background: radial-gradient(circle at calc(100% - 17vw) 50%, rgba(244, 121, 32, .24), transparent 46%); }
}
@media (prefers-reduced-motion: reduce) {
  .psh-o, .psh-core { animation-play-state: paused; }
}


/* Services: bento grid, wider than the text column. Each tile has a small
   scene; tmh.js adds .is-off while a tile is off screen (pauses it) and
   .is-seen the first time it shows (one-off draw-ins). */
.psb { --side: clamp(1rem, 5vw, 6rem); background: #fffaf7; padding: 4.5rem var(--side) 5rem; }
.psb-head, .psb-grid, .psb-complain { max-width: 112rem; margin-inline: auto; }
.psb-head { margin-bottom: 2.5rem; }
.psb-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .psb-grid { grid-template-columns: 1fr 1fr; }
  .psb-amb, .psb-abdm { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .psb-grid { grid-template-columns: repeat(12, 1fr); }
  .psb-amb { grid-column: span 7; }
  .psb-bus { grid-column: span 5; }
  .psb-pharm, .psb-food, .psb-dept { grid-column: span 4; }
  .psb-abdm { grid-column: span 12; }
}
.psb-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; background-color: #fff; border: 1px solid #fbe3d1; }
.psb-tile.is-off *, .psb-tile.is-off *::before, .psb-tile.is-off *::after { animation-play-state: paused !important; }
.psb-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 12rem; padding: 1.25rem 1.5rem; overflow: hidden;
  background: radial-gradient(circle, rgba(244, 121, 32, .16) 1px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(180deg, #fff3ea, rgba(255, 255, 255, 0));
  border-bottom: 1px solid #fdeee2;
}
.psb-text { position: relative; z-index: 1; padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.psb-text h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.1875rem; color: #1e1e1e; margin-bottom: .5rem; }
.psb-text p { font-size: .9375rem; line-height: 1.6; color: #475569; }
.psb-more { margin-top: auto; padding-top: .875rem; display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 600; color: #b4540a; }
.psb-more svg { width: 1rem; height: 1rem; transition: transform .2s; }
.psb-dept:hover .psb-more svg { transform: translateX(.25rem); }
.psb-chip { position: relative; z-index: 1; flex: none; width: 4.25rem; height: 4.25rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #f47920; border: 1px solid rgba(244, 121, 32, .3); box-shadow: 0 .75rem 1.5rem -.75rem rgba(194, 87, 15, .45); }
.psb-chip svg { width: 1.875rem; height: 1.875rem; }
.psb-chip img { width: 2.125rem; height: 2.125rem; object-fit: contain; }

/* Ambulance: drives on through a whole day and night (16s), light bar flashing. */
.psb-amb .psb-art { --cyc: 16s; height: 15rem; padding: 0; background: linear-gradient(180deg, #ffe4cc, #fff4ea 70%); }
.psb-night { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, .8) .8px, transparent 1.3px) 0 0 / 46px 38px, radial-gradient(circle, rgba(255, 255, 255, .5) .7px, transparent 1.2px) 23px 17px / 46px 38px, linear-gradient(180deg, #151a2b, #2e2433 75%); animation: psb-night var(--cyc) linear infinite; }
@keyframes psb-night { 0%, 18% { opacity: 0; } 32%, 68% { opacity: 1; } 82%, 100% { opacity: 0; } }
.psb-cycle { position: absolute; left: 50%; bottom: 3rem; width: 0; height: 0; animation: psb-spin var(--cyc) linear infinite; }
.psb-sun, .psb-moon { position: absolute; width: 2.75rem; height: 2.75rem; left: -1.375rem; border-radius: 50%; }
.psb-sun { top: -10.4rem; background: radial-gradient(circle at 40% 40%, #ffd08a, #f47920 70%); box-shadow: 0 0 2.5rem rgba(244, 121, 32, .55); }
.psb-moon { top: 7.65rem; background: transparent; box-shadow: inset .7rem -.35rem 0 0 #fff4dc; filter: drop-shadow(0 0 .6rem rgba(255, 244, 220, .5)); }
.psb-layer { position: absolute; left: 0; bottom: 3rem; width: 200%; display: flex; }
.psb-layer svg { width: 50%; height: 100%; display: block; }
.psb-hills { height: 4.5rem; fill: rgba(244, 121, 32, .2); animation: psb-pan 36s linear infinite; }
.psb-city { height: 4rem; fill: rgba(30, 30, 30, .2); animation: psb-pan 14s linear infinite; }
@keyframes psb-pan { to { transform: translateX(-50%); } }
.psb-road { position: absolute; left: 0; right: 0; bottom: 0; height: 3rem; background: #1e1e1e; }
.psb-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 1.5rem, transparent 1.5rem 3rem); animation: psb-road .5s linear infinite; }
@keyframes psb-road { to { background-position: -3rem 0; } }
.psb-ambv { position: absolute; left: 34%; bottom: 1.35rem; width: 9rem; margin-left: -4.5rem; animation: psb-bob .5s ease-in-out infinite alternate; }
.psb-ambv svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 .4rem .5rem rgba(0, 0, 0, .25)); }
.psb-body { fill: #fff; stroke: rgba(30, 30, 30, .18); stroke-width: 1; }
.psb-wh { transform-box: fill-box; transform-origin: center; animation: psb-spin .45s linear infinite; }
.psb-lb { animation: psb-flash .7s steps(1) infinite; }
.psb-lb-a { fill: #d22027; }
.psb-lb-b { fill: #f47920; animation-delay: -.35s; }
@keyframes psb-flash { 0% { opacity: 1; } 50% { opacity: .25; } }
.psb-beam { position: absolute; left: 92%; bottom: .55rem; width: 8rem; height: 3rem; clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 78%); background: linear-gradient(90deg, rgba(255, 220, 150, .9), rgba(255, 220, 150, 0)); opacity: .15; animation: psb-beam var(--cyc) linear infinite; }
@keyframes psb-beam { 0%, 18% { opacity: .12; } 32%, 68% { opacity: .9; } 82%, 100% { opacity: .12; } }
@keyframes psb-bob { to { translate: 0 -2px; } }
@keyframes psb-spin { to { transform: rotate(360deg); } }
.psb-247 { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .9375rem; color: #1e1e1e; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12); }
.psb-247 i { width: .5rem; height: .5rem; border-radius: 50%; background: #d22027; box-shadow: 0 0 0 0 rgba(210, 32, 39, .6); animation: psb-live 1.6s ease-out infinite; }
@keyframes psb-live { to { box-shadow: 0 0 0 .5rem rgba(210, 32, 39, 0); } }

/* Transport: 12s round trip. Out: waits at each stop, reaches TMH, turns; back the same way. */
.psb-bus .psb-art { padding-inline: .5rem; }
.psb-trip { --t: 12s; position: relative; width: 100%; padding-top: 1.5rem; }
.psb-line { position: absolute; left: 12.5%; right: 12.5%; top: calc(1.5rem + .5rem - 2px); height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #f6b98c 0 .5rem, transparent .5rem .875rem); container-type: inline-size; }
.psb-line-fill { position: absolute; inset: 0; border-radius: 2px; background: #f47920; transform-origin: left; transform: scaleX(0); animation: psb-fill var(--t) ease-in-out infinite; }
.psb-busv { position: absolute; left: 0; bottom: 6px; width: 2.75rem; margin-left: -1.375rem; animation: psb-trip var(--t) ease-in-out infinite; }
.psb-busv svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 .25rem .375rem rgba(0, 0, 0, .25)); }
@keyframes psb-trip {
  0%, 6% { transform: translateX(0) scaleX(1); }
  16%, 22% { transform: translateX(33.333cqw) scaleX(1); }
  32%, 38% { transform: translateX(66.667cqw) scaleX(1); }
  48% { transform: translateX(100cqw) scaleX(1); }
  54% { transform: translateX(100cqw) scaleX(-1); }
  64%, 70% { transform: translateX(66.667cqw) scaleX(-1); }
  80%, 86% { transform: translateX(33.333cqw) scaleX(-1); }
  96% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}
@keyframes psb-fill {
  0%, 6% { transform: scaleX(0); } 16%, 22% { transform: scaleX(.3333); } 32%, 38% { transform: scaleX(.6667); }
  48%, 54% { transform: scaleX(1); } 64%, 70% { transform: scaleX(.6667); } 80%, 86% { transform: scaleX(.3333); } 96%, 100% { transform: scaleX(0); }
}
.psb-route { position: relative; display: flex; list-style: none; }
.psb-route li { position: relative; flex: 1 1 0; min-width: 0; padding-top: 1.75rem; text-align: center; font-size: .78rem; line-height: 1.3; font-weight: 600; color: #475569; }
.psb-route li::before { content: ""; position: absolute; left: 50%; top: 0; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%; background: #fff; border: 3px solid #f47920; z-index: 1; animation: var(--stop) var(--t) linear infinite; }
.psb-route li:nth-child(1) { --stop: psb-s1; }
.psb-route li:nth-child(2) { --stop: psb-s2; }
.psb-route li:nth-child(3) { --stop: psb-s3; }
.psb-route .psb-route-end { --stop: psb-s4; color: #1e1e1e; font-weight: 800; }
.psb-route .psb-route-end::before { width: 1.5rem; height: 1.5rem; margin: -.25rem 0 0 -.75rem; background: #f47920; }
@keyframes psb-s1 { 0%, 6%, 96%, 100% { background: #f47920; box-shadow: 0 0 0 .4rem rgba(244, 121, 32, .2); } 9%, 93% { background: #fff; box-shadow: none; } }
@keyframes psb-s2 { 0%, 13%, 25%, 77%, 89%, 100% { background: #fff; box-shadow: none; } 16%, 22%, 80%, 86% { background: #f47920; box-shadow: 0 0 0 .4rem rgba(244, 121, 32, .2); } }
@keyframes psb-s3 { 0%, 29%, 41%, 61%, 73%, 100% { background: #fff; box-shadow: none; } 32%, 38%, 64%, 70% { background: #f47920; box-shadow: 0 0 0 .4rem rgba(244, 121, 32, .2); } }
@keyframes psb-s4 { 0%, 45%, 57%, 100% { box-shadow: 0 0 0 .3rem rgba(244, 121, 32, .15); } 48%, 54% { box-shadow: 0 0 0 .75rem rgba(244, 121, 32, .25); } }

/* Pharmacy: a parcel arcs out to a home every 3.6s; the home ticks it off. */
.psb-deliv { position: relative; flex: none; width: 280px; height: 112px; }
.psb-chip-l { position: absolute; left: 0; top: 22px; }
.psb-chip-l::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid #f47920; opacity: 0; animation: psb-send 3.6s ease-out infinite; }
@keyframes psb-send { 0% { opacity: .8; transform: scale(1); } 25%, 100% { opacity: 0; transform: scale(1.5); } }
.psb-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.psb-arc path { fill: none; stroke: #f6b98c; stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.psb-parcel { position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: .5rem; background: #f47920; color: #fff; box-shadow: 0 .375rem .75rem rgba(194, 87, 15, .4); offset-path: path("M74 48Q140-16 206 48"); offset-rotate: 0deg; animation: psb-parcel 3.6s cubic-bezier(.45, 0, .3, 1) infinite; }
.psb-parcel svg { width: 1.1rem; height: 1.1rem; }
@keyframes psb-parcel { 0% { offset-distance: 0%; opacity: 0; scale: .6; } 10% { opacity: 1; scale: 1; } 62% { offset-distance: 100%; opacity: 1; scale: 1; } 72%, 100% { offset-distance: 100%; opacity: 0; scale: .5; } }
.psb-home { position: absolute; right: 0; top: 30px; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 1rem; background: #1e1e1e; color: #fff; animation: psb-knock 3.6s ease-out infinite; }
.psb-home > svg { width: 1.5rem; height: 1.5rem; }
@keyframes psb-knock { 0%, 62% { transform: none; } 67% { transform: scale(1.1); } 74%, 100% { transform: none; } }
.psb-tick { position: absolute; right: -.5rem; top: -.5rem; width: 1.375rem; height: 1.375rem; display: grid; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; box-shadow: 0 0 0 2px #fff; opacity: 0; animation: psb-tick 3.6s ease-out infinite; }
.psb-tick svg { width: .8rem; height: .8rem; }
@keyframes psb-tick { 0%, 64% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.15); } 76%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* Canteen: steam rising from a bowl. */
.psb-bowl { width: 9rem; height: auto; overflow: visible; animation: psb-bowl 3s ease-in-out infinite; }
@keyframes psb-bowl { 50% { transform: translateY(-3px); } }
.psb-st { fill: none; stroke: #f47920; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 48 100; stroke-dashoffset: 48; opacity: 0; animation: psb-steam 2.7s ease-in infinite; }
.psb-st:nth-child(2) { animation-delay: -.9s; }
.psb-st:nth-child(3) { animation-delay: -1.8s; }
@keyframes psb-steam { 0% { stroke-dashoffset: 48; opacity: 0; } 20% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }

/* Nutrition: a plate chart draws in once, then turns slowly. */
.psb-platebox { position: relative; width: 8.5rem; height: 8.5rem; }
.psb-plate { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 14; animation: psb-turn 40s linear infinite; }
@keyframes psb-turn { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.psb-seg { stroke: var(--c); stroke-dasharray: var(--a) 100; stroke-dashoffset: calc(var(--o) * -1); }
.psb-dept.is-seen .psb-seg { animation: psb-seg .9s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--k) * .18s + .2s); }
@keyframes psb-seg { from { stroke-dasharray: 0 100; } }
.psb-chip-c { position: absolute; left: 50%; top: 50%; margin: -2.125rem 0 0 -2.125rem; }

/* ABDM: dark, wide, an ABHA card flips in, then floats inside pulse rings. */
.psb-abdm { background-color: #1e1e1e; border-color: #1e1e1e; color: #fff; }
.psb-abdm .psb-art { background: radial-gradient(circle at 50% 55%, rgba(244, 121, 32, .3), transparent 62%); border: 0; height: 14rem; perspective: 900px; }
.psb-abdm .psb-text h3 { color: #fff; font-size: 1.375rem; }
.psb-abdm .psb-text p { color: rgba(255, 255, 255, .75); }
.psb-abdm .psb-text .psb-new { color: #f47920; font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: .375rem; }
:lang(ta) .psb-abdm .psb-text .psb-new { letter-spacing: 0; }
.psb-cardbox { position: relative; display: grid; place-items: center; }
.psb-pulse { position: absolute; left: 50%; top: 50%; width: 12rem; height: 12rem; margin: -6rem 0 0 -6rem; border-radius: 50%; border: 1.5px solid rgba(244, 121, 32, .55); opacity: 0; animation: psb-pulse 4.5s ease-out infinite; }
.psb-pulse:nth-child(2) { animation-delay: 1.5s; }
.psb-pulse:nth-child(3) { animation-delay: 3s; }
@keyframes psb-pulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.9); } }
.psb-card { position: relative; overflow: hidden; width: 16rem; height: 10rem; padding: 1.125rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; border-radius: 1rem; color: #fff; background: linear-gradient(135deg, #f47920, #c2570f 70%, #8f3f09); box-shadow: 0 1.5rem 3rem -1rem rgba(244, 121, 32, .55); transform: rotate(-6deg); animation: psb-float 5s ease-in-out infinite; }
.psb-abdm.is-seen .psb-card { animation: psb-flipin 1.1s cubic-bezier(.2, .8, .2, 1) both, psb-float 5s ease-in-out 1.1s infinite; }
@keyframes psb-flipin { from { transform: rotateY(-80deg) rotate(-6deg) translateX(-2rem); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.psb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); animation: psb-sheen 5s ease-in-out infinite; }
.psb-card-top { display: flex; align-items: center; justify-content: space-between; }
.psb-card-top b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: .12em; }
.psb-card-top svg { width: 1.75rem; height: 1.75rem; opacity: .9; }
.psb-card-num { font-size: .8125rem; letter-spacing: .08em; opacity: .9; }
.psb-card-bar { height: .5rem; width: 55%; border-radius: 1rem; background: rgba(255, 255, 255, .35); }
@keyframes psb-float { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-3deg) translateY(-6px); } }
@keyframes psb-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (min-width: 768px) {
  .psb-abdm { flex-direction: row-reverse; align-items: stretch; }
  .psb-abdm .psb-art { flex: 0 0 42%; height: auto; min-height: 15rem; }
  .psb-abdm .psb-text { justify-content: center; padding: 2.25rem 2.5rem; max-width: 46rem; }
}
.psb-complain { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.5rem; border-radius: 1.5rem; background: #fff; border: 1px solid #fbe3d1; }
.psb-complain-icon { width: 1.5rem; height: 1.5rem; flex: none; color: #f47920; }
.psb-complain-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: #b4540a; transition: gap .2s; }
.psb-complain-link:hover { gap: .75rem; }
.psb-complain-link svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) {
  .psb-complain { flex-direction: row; align-items: center; }
  .psb-complain-link { margin-left: auto; flex: none; }
}
/* Reduced motion: every scene holds still, fully drawn. */
@media (prefers-reduced-motion: reduce) {
  .psb-art *, .psb-art *::before, .psb-art *::after { animation: none !important; }
  .psb-parcel, .psb-tick { opacity: 0; }
}

/* Insurance: a sticky panel beside a wall of logos. */
.psi { --side: clamp(1rem, 5vw, 6rem); background: #fff; padding: 4.5rem var(--side) 5rem; border-top: 1px solid #f1f5f9; }
.psi-wrap { max-width: 112rem; margin-inline: auto; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .psi-wrap { grid-template-columns: minmax(22rem, 29rem) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 5rem); align-items: start; }
  .psi-side { position: sticky; top: 6.5rem; }
}
.psi-lead { color: #475569; line-height: 1.65; }
.psi-find { margin-top: 1.75rem; }
.psi-label { display: block; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.0625rem; color: #1e1e1e; margin-bottom: .625rem; }
.psi-box { display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; min-height: 3.5rem; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff; transition: border-color .2s, box-shadow .2s; }
.psi-box:focus-within { border-color: #f47920; box-shadow: 0 0 0 4px rgba(244, 121, 32, .15); }
.psi-box svg { flex: none; width: 1.25rem; height: 1.25rem; color: #94a3b8; }
.psi-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: #1e1e1e; padding: .75rem 0; }
.psi-box input::placeholder { color: #94a3b8; }
.psi-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }
.psi-tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .375rem .875rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-size: .875rem; font-weight: 600; color: #475569; transition: background-color .2s, border-color .2s, color .2s; }
.psi-tab span { font-size: .75rem; font-weight: 700; padding: .0625rem .4375rem; border-radius: 999px; background: #f1f5f9; color: #475569; }
.psi-tab:hover { border-color: rgba(244, 121, 32, .5); }
.psi-tab[aria-pressed="true"] { background: #1e1e1e; border-color: #1e1e1e; color: #fff; }
.psi-tab[aria-pressed="true"] span { background: #c2570f; color: #fff; }
.psi-answer:not(:empty) { margin-top: 1rem; }
.psi-yes { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .875rem 1rem; padding: 1rem; border-radius: 1.25rem; background: #f0fdf4; border: 1px solid #bbf7d0; animation: psi-pop .35s cubic-bezier(.2, .9, .3, 1.2); }
.psi-yes-logo { width: 4.5rem; height: 3.25rem; display: grid; place-items: center; border-radius: .75rem; background: #fff; border: 1px solid #dcfce7; padding: .375rem; color: #f47920; }
.psi-yes-logo img { max-width: 100%; max-height: 2.5rem; object-fit: contain; }
.psi-yes-logo svg { width: 1.5rem; height: 1.5rem; }
.psi-yes-k { display: flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #15803d; }
:lang(ta) .psi-yes-k { letter-spacing: 0; text-transform: none; }
.psi-yes-k svg { width: .875rem; height: .875rem; }
.psi-yes-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: #1e1e1e; line-height: 1.3; margin-top: .125rem; }
.psi-yes-btn { grid-column: 1 / -1; display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: .75rem; background: #c2570f; color: #fff; font-weight: 600; font-size: .9375rem; transition: background-color .2s; }
.psi-yes-btn:hover { background: #b4540a; }
.psi-many { font-size: .9375rem; color: #334155; }
.psi-many b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; color: #c2570f; }
.psi-none { padding: .875rem 1.125rem; border-radius: .875rem; background: #fffaf7; border: 1px solid #fbe3d1; font-size: .9375rem; line-height: 1.55; color: #334155; animation: psi-pop .3s ease-out; }
@keyframes psi-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.psi-desk { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.125rem 1.25rem; border-radius: 1.25rem; background: #fffaf7; border: 1px solid #fbe3d1; }
.psi-desk p { font-size: .9375rem; line-height: 1.6; color: #334155; }
.psi-desk-icon { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; background: #1e1e1e; color: #f47920; }
.psi-desk-icon svg { width: 1.5rem; height: 1.5rem; }
.psi-note { margin-top: 1rem; font-size: .75rem; line-height: 1.5; color: #64748b; }

.psi-group + .psi-group { margin-top: 2.75rem; }
.psi-group-h { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: 1.125rem; color: #1e1e1e; margin-bottom: 1rem; }
.psi-group-p { margin: -.625rem 0 1rem; font-size: .875rem; color: #64748b; }
.psi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; list-style: none; }
@media (min-width: 640px) { .psi-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; } }
.psi-logo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 8.5rem; padding: 1.25rem .875rem 1rem; text-align: center; border-radius: 1.25rem; background: #fff; border: 1px solid #edf0f4; transition: border-color .25s, box-shadow .25s, transform .25s, opacity .25s; }
.psi-logo:hover { border-color: rgba(244, 121, 32, .4); box-shadow: 0 1rem 2rem -1.25rem rgba(194, 87, 15, .45); transform: translateY(-3px); }
.psi-logo-img { width: 100%; height: 3.5rem; display: flex; align-items: center; justify-content: center; }
.psi-logo-img img { display: block; width: auto; height: auto; max-width: 88%; max-height: 3.5rem; object-fit: contain; transition: transform .3s; }
.psi-logo:hover .psi-logo-img img { transform: scale(1.06); }
.psi-logo-name { font-size: .75rem; line-height: 1.3; font-weight: 500; color: #64748b; }
.psi-scheme { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: .875rem 1rem; }
.psi-scheme .psi-logo-name { font-size: .875rem; color: #334155; font-weight: 600; }
.psi-scheme-icon { flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: .75rem; background: #fff3ea; color: #f47920; }
.psi-scheme-icon svg { width: 1.125rem; height: 1.125rem; }
.psi-grid-text { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.psi-logo.is-hit { border-color: #f47920; box-shadow: 0 0 0 3px rgba(244, 121, 32, .18); }
.psi-logo.is-in { animation: psi-in .35s ease-out both; animation-delay: calc(var(--n, 0) * 25ms); }
@keyframes psi-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.psi-logo[hidden], .psi-group[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .psi-logo.is-in, .psi-yes, .psi-none { animation: none; } }

/* ── Community Health Research ──────────────────────────────────────────────
   Hero set like a journal title page (.rsh) with a Circular Text seal;
   studies as a Sticky Scroll Reveal (.rsx) with line figures (.rs-fig). */
.rsh {
  --side: clamp(1rem, 5vw, 6rem);
  position: relative; padding: 0 var(--side);
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(244, 121, 32, .07) 39px 40px), #fffaf7;
  color: #1e1e1e;
}
.rsh > * { max-width: 112rem; margin-inline: auto; }
.rsh-mast { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0 .75rem; border-bottom: 3px double #1e1e1e; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.rsh-mast-r { text-align: right; color: #b4540a; }
:lang(ta) .rsh-mast { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.rsh-main { position: relative; padding: 2rem 0 2.5rem; }
.rsh-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 1.25rem; }
.rsh-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.rsh-crumb [aria-current] { color: #1e1e1e; }
.rsh-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(3rem, 8.6vw, 10rem); line-height: .94; letter-spacing: -.045em; max-width: 11ch; }
:lang(ta) .rsh-title { font-size: clamp(2.25rem, 5.6vw, 6rem); line-height: 1.2; letter-spacing: 0; max-width: 14ch; }
.rsh-seal { position: relative; width: 8.5rem; height: 8.5rem; margin-top: 1.75rem; }
.rsh-seal > svg { width: 100%; height: 100%; animation: rsh-turn 36s linear infinite; overflow: visible; }
.rsh-seal-o { fill: none; stroke: #1e1e1e; stroke-width: 1.5; }
.rsh-seal-i { fill: none; stroke: #f47920; stroke-width: 1.5; stroke-dasharray: 3 5; }
.rsh-seal-t { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; fill: #1e1e1e; }
:lang(ta) .rsh-seal-t { text-transform: none; letter-spacing: 0; font-size: 12px; }
.rsh-seal-c { position: absolute; inset: 31%; display: grid; place-items: center; border-radius: 50%; background: #f47920; color: #fff; box-shadow: 0 .75rem 1.5rem -.5rem rgba(194, 87, 15, .6); }
.rsh-seal-c svg { width: 52%; height: 52%; }
@keyframes rsh-turn { to { transform: rotate(360deg); } }
@media (min-width: 768px) {
  .rsh-seal { position: absolute; right: 0; top: 50%; width: clamp(10rem, 16vw, 17rem); height: auto; aspect-ratio: 1; margin: 0; translate: 0 -50%; }
}
.rsh-paper { display: grid; gap: .5rem 3rem; padding: 2rem 0 3.5rem; border-top: 1px solid #1e1e1e; }
.rsh-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: #b4540a; padding-top: .5rem; }
:lang(ta) .rsh-label { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.rsh-abstract { font-size: clamp(1.125rem, 1.55vw, 1.5rem); line-height: 1.65; color: #1e1e1e; max-width: 64rem; margin-bottom: 1.5rem; }
.rsh-abstract::first-letter { float: left; margin: .35rem .625rem 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 3.9em; line-height: .78; color: #f47920; }
:lang(ta) .rsh-abstract::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.rsh-keys { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.rsh-keys a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .375rem .9375rem; border: 1px solid #1e1e1e; border-radius: 999px; font-size: .875rem; font-weight: 600; color: #1e1e1e; background: #fffaf7; transition: background-color .2s, color .2s; }
.rsh-keys a:hover { background: #1e1e1e; color: #fff; }
@media (min-width: 1024px) {
  .rsh-paper { grid-template-columns: 11rem minmax(0, 1fr); }
  .rsh-abstract { margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .rsh-seal > svg { animation: none; } }

/* Line figures. Drawn by default; once tmh.js runs (.rsx-js), a figure draws
   in when its study reaches the middle of the screen. */
.rs-fig { display: block; color: #fff; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.rs-fig .rs-acc { stroke: #f47920; }
.rs-fig .rs-dash { stroke-dasharray: .02 .03; opacity: .6; }
.rs-scan { stroke: #f47920; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(244, 121, 32, .9)); animation: rs-scan 2.4s ease-in-out infinite alternate; }
@keyframes rs-scan { to { transform: translateY(84px); } }
.rs-wave { animation: rs-wave 1.6s ease-in-out infinite; }
.rs-wave2 { animation-delay: .3s; }
@keyframes rs-wave { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.rsx-js .rs-ln:not(.rs-dash) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .2, 1); }
.rsx-js .rs-ln.rs-acc { transition-delay: .4s; }
.rsx-js .rs-dash { opacity: 0; transition: opacity .6s .9s; }
.rsx-js .is-on .rs-ln:not(.rs-dash), .rsx-js .was-on .rsx-fig-inline .rs-ln:not(.rs-dash) { stroke-dashoffset: 0; }
.rsx-js .is-on .rs-dash, .rsx-js .was-on .rsx-fig-inline .rs-dash { opacity: .6; }

/* Studies: dark, full width. Phones: a list with small figures. */
.rsx { --side: clamp(1rem, 5vw, 6rem); background: #1e1e1e; color: #fff; padding: 5rem var(--side) 5.5rem; }
.rsx-head, .rsx-body { max-width: 112rem; margin-inline: auto; }
.rsx-head { margin-bottom: 2.5rem; }
.rsx-steps { list-style: none; }
.rsx-step { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); scroll-margin-top: 6rem; }
.rsx-fig-inline { flex: none; width: 5.5rem; height: 5.5rem; padding: .75rem; border-radius: 1.25rem; background: radial-gradient(circle, rgba(244, 121, 32, .22), rgba(255, 255, 255, .03) 70%); }
.rsx-fig-inline .rs-fig { width: 100%; height: 100%; stroke-width: 6; }
.rsx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; margin-bottom: .5rem; }
.rsx-num { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
:lang(ta) .rsx-num { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.rsx-status { display: inline-flex; align-items: center; gap: .375rem; padding: .1875rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.rsx-on { background: rgba(244, 121, 32, .15); border: 1px solid rgba(244, 121, 32, .55); color: #fbb07a; }
.rsx-on i { width: .4375rem; height: .4375rem; border-radius: 50%; background: #f47920; animation: psb-live 1.6s ease-out infinite; box-shadow: 0 0 0 0 rgba(244, 121, 32, .6); }
.rsx-done { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.rsx-done svg { width: .75rem; height: .75rem; }
.rsx-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
:lang(ta) .rsx-name { letter-spacing: 0; line-height: 1.35; }
.rsx-panel { display: none; }

/* Wide: list on the left, a sticky figure on the right. */
@media (min-width: 1024px) {
  .rsx-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 7rem); }
  .rsx-step { min-height: 62vh; border: 0; padding: 0; scroll-margin-top: 19vh; }
  .rsx-step:last-child { min-height: 70vh; }
  .rsx-fig-inline { display: none; }
  .rsx-name { font-size: clamp(2rem, 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; max-width: 16ch; }
  .rsx-meta { margin-bottom: 1rem; }
  .rsx-js .rsx-step > div { transform: translateX(-.75rem); transition: transform .5s; }
  .rsx-js .rsx-step .rsx-name { color: rgba(255, 255, 255, .45); transition: color .5s; }
  .rsx-js .rsx-step.is-on > div { transform: none; }
  .rsx-js .rsx-step.is-on .rsx-name { color: #fff; }
  .rsx-panel { display: block; position: sticky; top: 17vh; height: 66vh; }
}
.rsx-card {
  position: relative; height: 100%; overflow: hidden; border-radius: 2rem; border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 121, 32, .3), transparent 58%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    #262321;
}
.rsx-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rsx-slide.is-on { opacity: 1; transform: none; }
.rsx-slide .rs-fig { width: min(58%, 26rem); height: auto; }
.rsx-cap { position: absolute; left: 2rem; right: 2rem; bottom: 1.75rem; font-size: .875rem; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.rsx-cap b { color: #f47920; margin-right: .5rem; }
.rsx-ticks { position: absolute; right: 2rem; top: 2rem; display: flex; gap: .375rem; }
.rsx-ticks span { width: 1.5rem; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); transition: background-color .3s, width .3s; }
.rsx-ticks span.is-on { width: 2.5rem; background: #f47920; }
@media (prefers-reduced-motion: reduce) {
  .rsx-js .rs-ln:not(.rs-dash) { stroke-dashoffset: 0; transition: none; }
  .rsx-js .rs-dash { opacity: .6; transition: none; }
  .rs-scan, .rs-wave, .rsx-on i { animation: none; }
  .rsx-slide, .rsx-js .rsx-step > div { transition: none; }
}

/* ── Diagnostics ─────────────────────────────────────────────────────────────
   Dark hero with a wayfinding index and a published-hours board (.dia-board:
   a 24-hour timetable, needle at the time now in India). Then one chapter per
   group with a ruled label (.dia-ch-head): the lab as a report slip over a
   photo, imaging as a list that swaps the room photo, heart tests beside the
   treadmill photo, lungs & hearing as the charts those tests draw. */
.dia-hero, .dia-ch, .dia-book-wrap { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.dia-hero > *, .dia-ch > *, .dia-book { max-width: 112rem; margin-inline: auto; }
.dia-hero { background: #1e1e1e; color: #fff; padding-top: 2rem; }
.dia-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.5rem; }
.dia-crumb a:hover { color: #f47920; text-decoration: underline; text-underline-offset: 4px; }
.dia-crumb [aria-current] { color: #fff; }
.dia-hero-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.dia-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(3rem, 9vw, 9.5rem); line-height: .92; letter-spacing: -.05em; }
:lang(ta) .dia-title { font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1.2; letter-spacing: 0; }
.dia-lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.dia-index { list-style: none; border-bottom: 1px solid rgba(255, 255, 255, .14); align-self: end; }
.dia-index a { display: flex; align-items: center; gap: 1.25rem; padding: 1rem .25rem; border-top: 1px solid rgba(255, 255, 255, .14); transition: background-color .25s, padding .25s; }
.dia-index-no { font-size: .8125rem; font-weight: 700; color: #f47920; font-variant-numeric: tabular-nums; }
.dia-index-body { flex: 1; min-width: 0; display: grid; gap: .125rem; }
.dia-index-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.dia-index-tests { font-size: .8125rem; color: rgba(255, 255, 255, .62); line-height: 1.45; }
.dia-index-arrow { flex: none; width: 1.25rem; height: 1.25rem; color: rgba(255, 255, 255, .45); transition: color .25s, transform .25s; }
.dia-index a:hover, .dia-index a:focus-visible { background: rgba(255, 255, 255, .04); padding-inline: .75rem; }
.dia-index a:hover .dia-index-arrow, .dia-index a:focus-visible .dia-index-arrow { color: #f47920; transform: translateY(3px); }
@media (min-width: 1024px) {
  .dia-hero { padding-top: 2.5rem; }
  .dia-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 8rem); padding-bottom: 4rem; }
}

/* Hours dial. Arcs are dashes on circles with pathLength 24: --len hours
   long, starting --s hours past midnight (00 at the top, clockwise). */
.dia-board { display: grid; gap: 2.5rem; align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); padding: 2.75rem 0 4rem; }
.dia-board-title { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
:lang(ta) .dia-board-title { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.dia-legend { list-style: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dia-key { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .125rem .875rem; align-items: center; padding: .8125rem .25rem; border-top: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s, opacity .25s; }
.dia-key-ring { width: 1.5rem; height: 1.5rem; grid-row: span 2; }
.dia-key-ring circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .9; }
.dia-key-ring circle.is-me { stroke: #f47920; stroke-width: 1.9; }
.dia-key-name { font-weight: 700; font-size: .9375rem; }
.dia-key-hours { display: flex; flex-wrap: wrap; gap: .125rem 1rem; font-size: .8125rem; color: rgba(255, 255, 255, .68); }
.dia-key-hours .is-away::before { content: ""; display: inline-block; width: .875rem; height: .5rem; margin-right: .375rem; border-radius: 999px; vertical-align: .05em; background: repeating-linear-gradient(-45deg, #f47920 0 3px, rgba(244, 121, 32, .28) 3px 6px); }
.dia-board-note { margin-top: 1.25rem; font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.is-focus .dia-key { opacity: .45; }
.is-focus .dia-key.is-on { opacity: 1; background: rgba(255, 255, 255, .05); }

.dia-dial { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; aspect-ratio: 1; }
@media (max-width: 1023px) {
  .dia-board { gap: 0; }
  .dia-board-text { display: contents; }
  .dia-board-title { order: -2; }
  .dia-dial { order: -1; max-width: 30rem; margin-bottom: 2rem; }
}
.dia-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dia-face { fill: #262321; stroke: rgba(255, 255, 255, .08); }
.dia-day { fill: rgba(255, 255, 255, .035); }
.dia-tick { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-linecap: round; }
.dia-tick.is-major { stroke: rgba(255, 255, 255, .6); stroke-width: 2; }
.dia-hr { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; fill: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.dia-track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 10; }
.dia-arc { fill: none; stroke: rgba(244, 121, 32, .42); stroke-width: 10; stroke-linecap: butt; stroke-dasharray: var(--len) 24; stroke-dashoffset: calc(var(--s) * -1); transition: stroke .35s, opacity .35s, stroke-dasharray 1.1s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 110ms + 200ms); }
.dia-arc.is-away { stroke: url(#dia-stripe); }
.dia-arc.is-now { stroke: #f47920; filter: drop-shadow(0 0 6px rgba(244, 121, 32, .7)); }
.dia-arc.is-away.is-now { stroke: url(#dia-stripe); }
.dia-hit { fill: none; stroke: transparent; stroke-width: 21; pointer-events: stroke; }
.dia-ring { transition: opacity .3s; }
.is-focus .dia-ring { opacity: .25; }
.is-focus .dia-ring.is-on { opacity: 1; }
.is-focus .dia-ring.is-on .dia-arc { stroke: #f47920; }
.is-focus .dia-ring.is-on .dia-arc.is-away { stroke: url(#dia-stripe); }
.dia-hand[hidden] { display: none; }
.dia-hand { transform-origin: 250px 250px; transform: rotate(calc(var(--t, 0) * 360deg)); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .5s; }
.dia-hand line { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.dia-hand circle { fill: #f47920; stroke: #1e1e1e; stroke-width: 3; }
.dia-hand .dia-hub { fill: #fff; stroke: none; }
.dia-centre { position: absolute; inset: 32%; display: grid; place-items: center; text-align: center; pointer-events: none; }
.dia-centre > div { display: grid; gap: .25rem; justify-items: center; }
.dia-centre > [hidden] { display: none; }
.dia-centre-label { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fbb07a; }
:lang(ta) .dia-centre-label { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.dia-centre-time { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 3.4vw, 2rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dia-centre-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(.875rem, 1.9vw, 1.125rem); line-height: 1.2; }
.dia-centre-hours { display: grid; gap: .125rem; font-size: clamp(.625rem, 1.3vw, .75rem); line-height: 1.35; color: rgba(255, 255, 255, .72); }
/* Before the board scrolls into view: arcs undrawn, hand at midnight. */
.dia-js:not(.is-in) .dia-arc { stroke-dasharray: 0 24; }
.dia-js:not(.is-in) .dia-hand { transform: rotate(0deg); }
@media (min-width: 1024px) {
  .dia-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 8rem); }
  .dia-key { padding-inline: .5rem; }
}

/* Chapters. */
.dia-ch { background: #fffaf7; color: #1e1e1e; padding-block: 4rem; }
.dia-ch--imaging, .dia-ch--lungs-hearing { background: #fff; }
.dia-ch-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.25rem; scroll-margin-top: 6rem; }
.dia-ch-no { font-size: .875rem; font-weight: 700; color: #b4540a; font-variant-numeric: tabular-nums; }
.dia-ch-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.04em; }
:lang(ta) .dia-ch-title { font-size: clamp(1.625rem, 3.6vw, 3.25rem); line-height: 1.3; letter-spacing: 0; }
.dia-ch-rule { flex: 1; height: 1px; background: rgba(30, 30, 30, .2); min-width: 2rem; }
.dia-item-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; transition: color .3s; }
:lang(ta) .dia-item-name { letter-spacing: 0; line-height: 1.4; }
.dia-item-text { margin-top: .375rem; font-size: .9375rem; line-height: 1.6; color: #475569; max-width: 36rem; }
.dia-hours { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.dia-hours span { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 999px; background: rgba(244, 121, 32, .08); border: 1px solid rgba(244, 121, 32, .3); font-size: .75rem; font-weight: 600; color: #9a4708; }
.dia-hours svg { width: .875rem; height: .875rem; flex: none; }
.dia-list { list-style: none; border-bottom: 1px solid rgba(30, 30, 30, .12); }
.dia-item { display: flex; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(30, 30, 30, .12); }

/* Laboratory: report slip over the photo. */
.dia-lab { position: relative; }
.dia-lab-photo { aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; background: #e7e2dd; }
.dia-lab-photo img, .dia-heart-photo img { width: 100%; height: 100%; object-fit: cover; }
.dia-lab-photo img { object-position: 62% 30%; }
.dia-slip { position: relative; margin: -3rem .75rem 0; padding: 1.5rem 1.5rem 1.25rem; background: #fff; border-radius: .5rem; box-shadow: 0 1.5rem 3rem -1rem rgba(30, 30, 30, .3), 0 0 0 1px rgba(30, 30, 30, .06); }
.dia-slip-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 3px double #1e1e1e; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.dia-slip-head span:last-child { color: #b4540a; text-align: right; }
:lang(ta) .dia-slip-head { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
.dia-slip-row { padding: 1rem 0; border-bottom: 1px dashed rgba(30, 30, 30, .22); }
.dia-slip-row dt { font-weight: 800; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 1.0625rem; }
.dia-slip-row dd { margin-top: .25rem; font-size: .875rem; line-height: 1.55; color: #475569; }
.dia-slip-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; padding: .875rem 1rem; border-radius: .5rem; background: #1e1e1e; color: #fff; font-weight: 700; font-size: .9375rem; }
.dia-slip-go { display: inline-flex; align-items: center; gap: .375rem; color: #fbb07a; font-size: .8125rem; transition: gap .25s; }
.dia-slip-go svg { width: .875rem; height: .875rem; }
.dia-slip-foot:hover .dia-slip-go { gap: .75rem; }
@media (min-width: 1024px) {
  .dia-lab { padding-bottom: 4rem; }
  .dia-lab-photo { aspect-ratio: 16 / 8; border-radius: 2rem; }
  .dia-slip { position: absolute; left: clamp(1.5rem, 4vw, 4rem); bottom: 0; width: 30rem; margin: 0; padding: 1.75rem 2rem 1.5rem; }
}

/* Imaging: list + room photo. Phones get a small photo on each row instead. */
.dia-thumb { flex: none; width: 4.5rem; height: 4.5rem; border-radius: .875rem; object-fit: cover; }
.dia-frame { display: none; }
@media (min-width: 1024px) {
  .dia-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; }
  .dia-img .dia-thumb { display: none; }
  .dia-img .dia-item { padding: 1.75rem 0 1.75rem 0; box-shadow: inset 0 0 0 transparent; transition: padding .35s, box-shadow .35s; }
  .dia-img .dia-item[data-photo] { cursor: default; }
  .dia-img .dia-item.is-on { padding-left: 1.25rem; box-shadow: inset 3px 0 0 #f47920; }
  .dia-img .dia-item.is-on .dia-item-name { color: #b4540a; }
  .dia-frame { display: block; position: sticky; top: 7rem; aspect-ratio: 4 / 3.3; border-radius: 2rem; overflow: hidden; background: #1e1e1e; }
  .dia-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
  .dia-shot.is-on { opacity: 1; transform: none; }
  .dia-frame-cap { position: absolute; left: 1.25rem; bottom: 1.25rem; padding: .5rem .875rem; border-radius: .75rem; background: rgba(30, 30, 30, .78); color: #fff; font-size: .875rem; font-weight: 700; backdrop-filter: blur(6px); }
}

/* Heart. */
.dia-heart { display: grid; gap: 2rem; }
.dia-heart-photo { aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; background: #e7e2dd; }
@media (min-width: 1024px) {
  .dia-heart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); align-items: center; }
  .dia-heart-photo { border-radius: 2rem; }
}

/* Lungs & hearing: the charts these tests produce, drawn in on view. */
.dia-figs { display: grid; gap: 1.25rem; }
.dia-fig-card { padding: 1.5rem; border-radius: 1.5rem; background: #fffaf7; border: 1px solid rgba(30, 30, 30, .08); }
.dia-fig { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; overflow: visible; }
.dia-fig .dia-gridlines { stroke: rgba(30, 30, 30, .08); stroke-width: 1; fill: none; }
.dia-fig .dia-axis-ln { stroke: rgba(30, 30, 30, .45); stroke-width: 1.5; fill: none; }
.dia-fig .dia-ln { fill: none; stroke: #1e1e1e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dia-fig .dia-ln.dia-acc { stroke: #f47920; stroke-width: 3; }
.dia-fig .dia-marks { fill: none; stroke: #1e1e1e; stroke-width: 2.5; stroke-linecap: round; }
.dia-fig .dia-marks.dia-acc { stroke: #f47920; }
.dia-fig circle { fill: #fffaf7; }
.dia-fig text { font-size: 11px; font-family: 'Inter', sans-serif; fill: #64748b; }
@media (min-width: 768px) { .dia-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } .dia-fig-card { padding: 2rem; } }
/* Wider cards draw the charts at up to ~1.8x, so thin the lines and type back down. */
@media (min-width: 1024px) {
  .dia-fig text { font-size: 7.5px; }
  .dia-fig .dia-ln { stroke-width: 1.7; }
  .dia-fig .dia-ln.dia-acc { stroke-width: 2.1; }
  .dia-fig .dia-marks { stroke-width: 1.7; }
  .dia-fig .dia-axis-ln { stroke-width: 1; }
  .dia-fig .dia-gridlines { stroke-width: .7; }
}
.dia-js .dia-ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1); }
.dia-js .dia-ln + .dia-ln { transition-delay: .35s; }
.dia-js .dia-marks { opacity: 0; transition: opacity .6s 1.2s; }
.dia-js.is-drawn .dia-ln { stroke-dashoffset: 0; }
.dia-js.is-drawn .dia-marks { opacity: 1; }

/* Booking band. */
.dia-book-wrap { background: #fff; padding-bottom: 4.5rem; }
.dia-book { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem; border-radius: 1.5rem; background: #1e1e1e; color: rgba(255, 255, 255, .82); text-align: center; }
@media (min-width: 640px) { .dia-book { flex-direction: row; text-align: left; padding: 2rem 2.25rem; } }
@media (prefers-reduced-motion: reduce) {
  .dia-arc, .dia-hand, .dia-js .dia-ln, .dia-js .dia-marks, .dia-shot { transition: none; }
}

/* ── Dedicated Speciality Centres ───────────────────────────────────────────
   Photo-tile hero (.cen-tiles); Emergency as the lit box sign from the
   entrance (.cen-sign, switches on when seen); ICU capabilities as bedside-
   monitor channels (.cen-monitor); NCD complications marked on a body
   (.cen-body); dialysis as a floor plan filling from 2 stations to 15
   (.cen-floor). tmh.js adds .cen-js/.is-in for the entrances. */
.cen-hero, .cen-er, .cen-icu, .cen-ncd, .cen-dia, .cen-cta { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.cen-hero > *, .cen-er-inner, .cen-icu-inner, .cen-ncd-inner, .cen-dia-inner, .cen-cta-inner { max-width: 112rem; margin-inline: auto; }
.cen-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 1.5rem; }
.cen-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.cen-crumb [aria-current] { color: #1e1e1e; }

/* Hero */
.cen-hero { background: #fffaf7; color: #1e1e1e; padding-top: 2rem; padding-bottom: 3.5rem; }
.cen-hero-grid { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.cen-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 7vw, 7.5rem); line-height: .95; letter-spacing: -.045em; max-width: 13ch; }
:lang(ta) .cen-title { font-size: clamp(2rem, 4.8vw, 4.75rem); line-height: 1.25; letter-spacing: 0; max-width: 16ch; }
.cen-lede { font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.6; color: #475569; max-width: 34rem; }
@media (min-width: 1024px) { .cen-hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 4rem; } }
.cen-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 1024px) { .cen-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.cen-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 1.25rem; overflow: hidden; background: #1e1e1e; color: #fff; isolation: isolate; }
@media (min-width: 1024px) { .cen-tile { aspect-ratio: 3 / 4; border-radius: 1.75rem; } }
.cen-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.cen-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, .82) 100%); }
.cen-tile-no { position: absolute; top: .875rem; left: .875rem; padding: .25rem .5rem; border-radius: .5rem; background: rgba(30, 30, 30, .6); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cen-tile-go { position: absolute; top: .75rem; right: .75rem; width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1e1e1e; transition: background-color .3s, color .3s, transform .3s; }
.cen-tile-body { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: .25rem; }
.cen-tile-tag { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fbb07a; }
:lang(ta) .cen-tile-tag { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.cen-tile-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; }
:lang(ta) .cen-tile-name { letter-spacing: 0; line-height: 1.35; }
.cen-tile:hover img, .cen-tile:focus-visible img { scale: 1.07; }
.cen-tile:hover .cen-tile-go, .cen-tile:focus-visible .cen-tile-go { background: #f47920; color: #fff; transform: translateY(3px); }

/* Shared section type */
.cen-eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a4708; margin-bottom: .875rem; }
:lang(ta) .cen-eyebrow { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.cen-eyebrow--dark { color: rgba(255, 255, 255, .72); }
.cen-no { display: inline-grid; place-items: center; min-width: 2rem; height: 1.5rem; padding-inline: .375rem; border-radius: .375rem; background: #f47920; color: #1e1e1e; font-size: .75rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cen-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.25rem; }
:lang(ta) .cen-h2 { font-size: clamp(1.625rem, 3vw, 2.75rem); line-height: 1.3; letter-spacing: 0; }
.cen-p { color: #475569; line-height: 1.7; margin-bottom: 1rem; max-width: 40rem; }
.cen-p--dark { color: rgba(255, 255, 255, .78); }
.cen-list-title { font-weight: 700; font-size: .9375rem; margin: 1.75rem 0 .75rem; }
.cen-list-title--dark { color: #fff; }
.cen-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 700; font-size: .9375rem; color: #9a4708; transition: gap .25s; }
.cen-more svg { width: 1rem; height: 1rem; }
.cen-more:hover { gap: .875rem; }
.cen-more--dark { color: #fbb07a; }

/* 01 Emergency */
.cen-er { background: #1e1e1e; color: #fff; padding-block: 4.5rem; overflow: hidden; }
.cen-er-inner { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .cen-er { padding-block: 6rem; } .cen-er-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); } }
.cen-er-sign-col { display: grid; gap: 2.5rem; justify-items: center; }
.cen-sign { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 1.5rem); width: 100%; max-width: 34rem; padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: .875rem; border: 8px solid #2c2c2c; background: #4a1719; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 1.5rem 3rem -1rem rgba(0, 0, 0, .6); transition: background-color .3s, box-shadow .6s; }
.cen-sign::after { content: ""; position: absolute; left: 10%; right: 10%; top: 100%; height: 6rem; margin-top: 1rem; background: radial-gradient(50% 40% at 50% 0, rgba(210, 32, 39, .45), transparent 70%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.cen-sign-cross { flex: none; display: grid; place-items: center; width: clamp(2.75rem, 6vw, 4.25rem); aspect-ratio: 1; border-radius: .625rem; background: rgba(255, 255, 255, .22); transition: background-color .3s; }
.cen-sign-cross svg { width: 70%; height: 70%; fill: #4a1719; transition: fill .3s; }
.cen-sign-word { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .22); transition: color .3s, text-shadow .3s; }
:lang(ta) .cen-sign-word { text-transform: none; letter-spacing: 0; font-size: clamp(1.5rem, 3.6vw, 2.75rem); line-height: 1.3; }
.cen-sign.is-lit { background: linear-gradient(180deg, #e2333a, #c41b22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -10px 30px rgba(0, 0, 0, .18), 0 0 40px rgba(210, 32, 39, .55), 0 0 140px rgba(210, 32, 39, .35); }
.cen-sign.is-lit::after { opacity: 1; }
.cen-sign.is-lit .cen-sign-cross { background: #fff; }
.cen-sign.is-lit .cen-sign-cross svg { fill: #d22027; }
.cen-sign.is-lit .cen-sign-word { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .55); }
.cen-sign.is-lit { animation: cen-flicker 1.1s steps(1, end); }
@keyframes cen-flicker { 0% { filter: brightness(1); } 8% { filter: brightness(.35); } 14% { filter: brightness(1); } 22% { filter: brightness(.4); } 26% { filter: brightness(1); } 100% { filter: brightness(1); } }
.cen-er-call { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; max-width: 34rem; padding: 1.0625rem 1.5rem; border-radius: 1rem; background: #fff; color: #b3141b; font-weight: 800; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); transition: transform .25s, box-shadow .25s; }
.cen-er-call svg { width: 1.5rem; height: 1.5rem; flex: none; }
.cen-er-call:hover { transform: translateY(-2px); box-shadow: 0 1rem 2rem -1rem rgba(210, 32, 39, .8); }
.cen-er-list { list-style: none; display: grid; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 640px) { .cen-er-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.cen-er-list li { display: flex; gap: .875rem; padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.cen-er-list span { flex: none; font-size: .75rem; font-weight: 700; color: #f47920; font-variant-numeric: tabular-nums; padding-top: .125rem; }

/* 02 ICU */
.cen-icu { background: #fff; color: #1e1e1e; padding-block: 4.5rem; }
.cen-icu-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .cen-icu { padding-block: 6rem; } .cen-icu-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); } }
.cen-monitor { border-radius: 1.5rem; border: 10px solid #2b2b2b; background: #121212; color: #fff; overflow: hidden; box-shadow: 0 2rem 4rem -1.5rem rgba(30, 30, 30, .45); }
.cen-monitor-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
:lang(ta) .cen-monitor-bar { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.cen-monitor-bar span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.cen-monitor-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: #f47920; animation: cen-blink 1.2s steps(2, start) infinite; }
@keyframes cen-blink { to { visibility: hidden; } }
.cen-channels { list-style: none; }
.cen-ch { display: grid; gap: .25rem; padding: .625rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.cen-ch:first-child { border-top: 0; }
.cen-ch-name { font-size: .8125rem; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .86); }
.cen-ch-trace { display: block; width: 100%; height: 2.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent 96%); mask-image: linear-gradient(90deg, #000 82%, transparent 96%); }
.cen-ch-trace path { fill: none; stroke: #f47920; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cen-ch-trace.is-alt path { stroke: #fff; opacity: .85; }
.cen-ch-trace g { animation: cen-trace var(--sp, 4s) linear infinite; }
@keyframes cen-trace { to { transform: translateX(-100px); } }
.cen-monitor.is-off .cen-ch-trace g, .cen-monitor.is-off .cen-monitor-bar i { animation-play-state: paused; }
@media (min-width: 640px) { .cen-ch { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center; gap: 1.25rem; } }

/* 03 NCD Centre */
.cen-ncd { background: #fffaf7; color: #1e1e1e; padding-block: 4.5rem; }
.cen-ncd-inner { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .cen-ncd { padding-block: 6rem; } .cen-ncd-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(3rem, 6vw, 7rem); } .cen-body { position: sticky; top: 7rem; } }
.cen-ncd-photo, .cen-dia-photo { margin-top: 1.75rem; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 16 / 9; background: #e7e2dd; }
.cen-ncd-photo img, .cen-dia-photo img { width: 100%; height: 100%; object-fit: cover; }
.cen-body { padding: 1.75rem; border-radius: 1.5rem; background: #fff; border: 1px solid rgba(30, 30, 30, .08); box-shadow: 0 1.5rem 3rem -2rem rgba(30, 30, 30, .25); }
.cen-body .cen-list-title { margin-top: 0; margin-bottom: 1.25rem; }
.cen-body-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 640px) { .cen-body-grid { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; } }
.cen-figure { display: block; width: 9rem; margin-inline: auto; overflow: visible; }
@media (min-width: 640px) { .cen-figure { width: 100%; } }
.cen-fig-ln { fill: rgba(244, 121, 32, .06); stroke: #1e1e1e; stroke-width: 1.6; stroke-linejoin: round; }
.cen-fig-ln:nth-child(2) { fill: none; }
.cen-mark { transform-box: fill-box; transform-origin: center; transition: opacity .35s, scale .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 140ms + 200ms); }
.cen-mark-ring { fill: none; stroke: #f47920; stroke-width: 1.5; opacity: .45; transform-box: fill-box; transform-origin: center; }
.cen-mark-dot { fill: #f47920; }
.cen-mark text { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 800; fill: #fff; }
.cen-body.is-pick .cen-mark { opacity: .3; }
.cen-body.is-pick .cen-mark.is-on { opacity: 1; }
.cen-mark.is-on .cen-mark-dot { fill: #1e1e1e; }
.cen-mark.is-on .cen-mark-ring { opacity: 1; animation: cen-ping 1.2s ease-out infinite; }
@keyframes cen-ping { from { scale: .7; opacity: 1; } to { scale: 1.6; opacity: 0; } }
.cen-js:not(.is-in) .cen-mark { scale: 0; }
.cen-comp { list-style: none; border-bottom: 1px dashed rgba(30, 30, 30, .2); }
.cen-comp li { display: flex; align-items: center; gap: .75rem; padding: .625rem .25rem; border-top: 1px dashed rgba(30, 30, 30, .2); font-size: .9375rem; line-height: 1.4; transition: background-color .25s; }
.cen-comp li.is-on { background: rgba(244, 121, 32, .08); }
.cen-comp-no { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #f47920; color: #1e1e1e; font-size: .75rem; font-weight: 800; }

/* 04 Dialysis */
.cen-dia { background: #fff; color: #1e1e1e; padding-block: 4.5rem; }
.cen-dia-inner { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .cen-dia { padding-block: 6rem; } .cen-dia-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); } .cen-floor { position: sticky; top: 7rem; } }
.cen-floor { padding: 1.75rem; border-radius: 1.5rem; border: 1px solid rgba(30, 30, 30, .1);
  background: linear-gradient(rgba(30, 30, 30, .045) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(30, 30, 30, .045) 1px, transparent 1px) 0 0 / 24px 24px, #fffaf7; }
.cen-floor-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(30, 30, 30, .15); }
.cen-floor-stats p { display: grid; gap: .25rem; }
.cen-floor-stats b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.03em; color: #9a4708; font-variant-numeric: tabular-nums; }
.cen-floor-stats span { font-size: .8125rem; color: #475569; }
.cen-stations { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 640px) { .cen-stations { gap: .875rem; } }
.cen-st { display: grid; justify-items: center; gap: .25rem; padding: .5rem .25rem .375rem; border-radius: .75rem; background: rgba(255, 255, 255, .7); border: 1px solid rgba(30, 30, 30, .1); transition: background-color .4s, border-color .4s; transition-delay: calc((var(--i) - 3) * 110ms + 300ms); }
.cen-st svg { width: 100%; max-width: 4.5rem; height: auto; }
.cen-st span { font-size: .6875rem; font-weight: 700; color: #64748b; font-variant-numeric: tabular-nums; }
.cen-st svg * { transition: fill .4s, stroke .4s; transition-delay: inherit; }
.cen-st-bed { fill: rgba(244, 121, 32, .16); stroke: #f47920; stroke-width: 1.5; }
.cen-st-pillow { fill: #fff; stroke: #f47920; stroke-width: 1.2; }
.cen-st-mc { fill: #f47920; }
.cen-st-line { fill: none; stroke: #f47920; stroke-width: 1.5; stroke-dasharray: 2 2; }
.cen-st { border-color: rgba(244, 121, 32, .35); }
.cen-st.is-hepb .cen-st-mc { fill: #1e1e1e; }
.cen-st.is-hepb .cen-st-line { stroke: #1e1e1e; }
/* Before the plan is seen, only the first two stations (2018) are lit. */
.cen-js:not(.is-in) .cen-st:not(.is-first) { background: transparent; border-color: rgba(30, 30, 30, .1); border-style: dashed; }
.cen-js:not(.is-in) .cen-st:not(.is-first) .cen-st-bed, .cen-js:not(.is-in) .cen-st:not(.is-first) .cen-st-pillow { fill: transparent; stroke: rgba(30, 30, 30, .22); }
.cen-js:not(.is-in) .cen-st:not(.is-first) .cen-st-mc { fill: rgba(30, 30, 30, .12); }
.cen-js:not(.is-in) .cen-st:not(.is-first) .cen-st-line { stroke: transparent; }
.cen-floor-key { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; font-size: .875rem; line-height: 1.55; color: #475569; }
.cen-key-hepb { flex: none; width: .75rem; height: 1.25rem; margin-top: .125rem; border-radius: 2px; background: #1e1e1e; }

/* CTA */
.cen-cta { background: #1e1e1e; color: #fff; }
.cen-cta-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 3rem; text-align: center; }
.cen-cta h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -.02em; }
@media (min-width: 640px) { .cen-cta-inner { flex-direction: row; text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  .cen-sign.is-lit { animation: none; }
  .cen-ch-trace g, .cen-monitor-bar i, .cen-mark.is-on .cen-mark-ring { animation: none; }
  .cen-tile img, .cen-mark, .cen-st, .cen-st svg * { transition: none; }
}

/* ── N.R. Swamy Rehab & Wellness Centre ──────────────────────────────────────
   Hero: the founder's portrait with a black-granite dedication plaque in gold
   lettering (.rw-plaque). Deaddiction: a recovery calendar (.rw-cal) of 15
   residential days, each with a spouse session, then 24 months of follow-up;
   tmh.js fills it in when seen (.rw-js/.is-in). Wellness: photo + entries. */
.rw-hero, .rw-dd, .rw-well { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.rw-hero-inner, .rw-dd-inner, .rw-well-inner { max-width: 112rem; margin-inline: auto; }

/* Hero */
.rw-hero { background: #fffaf7; color: #1e1e1e; padding-block: 2rem 5rem; }
.rw-hero-inner { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .rw-hero { padding-bottom: 6rem; } .rw-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(3rem, 6vw, 7rem); } }
.rw-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 1.5rem; }
.rw-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.rw-crumb [aria-current] { color: #1e1e1e; }
.rw-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.25rem, 5.4vw, 5.5rem); line-height: .98; letter-spacing: -.04em; max-width: 14ch; }
:lang(ta) .rw-title { font-size: clamp(1.875rem, 3.8vw, 3.75rem); line-height: 1.3; letter-spacing: 0; max-width: 18ch; }
.rw-lede { margin: 1.5rem 0 2rem; max-width: 38rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.65; color: #475569; }
.rw-index { display: grid; max-width: 30rem; border-bottom: 1px solid rgba(30, 30, 30, .15); }
.rw-index p { padding: .875rem 0 .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a4708; border-top: 1px solid rgba(30, 30, 30, .15); }
:lang(ta) .rw-index p { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.rw-index a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .625rem 0; font-weight: 700; font-size: 1.0625rem; transition: color .25s, padding .25s; }
.rw-index a svg { width: 1.125rem; height: 1.125rem; color: #9a4708; transition: transform .25s; }
.rw-index a:hover { color: #9a4708; padding-left: .375rem; }
.rw-index a:hover svg { transform: translateY(3px); }

/* Dedication: portrait + granite plaque */
.rw-dedication { position: relative; max-width: 34rem; width: 100%; margin-inline: auto; }
.rw-portrait { width: 82%; margin-left: auto; aspect-ratio: 1; border-radius: 1.5rem; overflow: hidden; background: #d9cbb5; box-shadow: 0 2rem 3rem -1.5rem rgba(30, 30, 30, .35); }
.rw-portrait img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.rw-plaque { position: relative; display: grid; justify-items: center; gap: .625rem; margin: -4rem .5rem 0 0; width: 82%; padding: 1.75rem 1.5rem; text-align: center; overflow: hidden;
  border-radius: .5rem; border: 5px solid #34302c; color: #d9b36a;
  background:
    radial-gradient(rgba(255, 255, 255, .08) .6px, transparent 1.2px) 0 0 / 6px 6px,
    radial-gradient(rgba(255, 255, 255, .05) .8px, transparent 1.4px) 3px 2px / 11px 11px,
    radial-gradient(rgba(0, 0, 0, .35) 1px, transparent 2px) 5px 7px / 9px 9px,
    linear-gradient(135deg, #2a2724, #141312 55%, #24211e);
  box-shadow: 0 1.75rem 3rem -1.25rem rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 2.5rem rgba(0, 0, 0, .45); }
.rw-plaque::after { content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); transform: rotate(20deg); animation: rw-shine 7s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes rw-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.rw-plaque-rule { width: 3rem; height: 1px; background: linear-gradient(90deg, transparent, #d9b36a, transparent); }
.rw-plaque-name, .rw-plaque-year { background: linear-gradient(180deg, #f6dc9c, #c99a45 60%, #e8c57d); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8)); }
.rw-plaque-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.3125rem); line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
:lang(ta) .rw-plaque-name { letter-spacing: 0; text-transform: none; }
.rw-plaque-text { font-family: Georgia, 'Times New Roman', 'Noto Sans Tamil', serif; font-style: italic; font-size: .9375rem; line-height: 1.55; color: #d4b06c; text-shadow: 0 1px 0 rgba(0, 0, 0, .85); max-width: 26rem; }
:lang(ta) .rw-plaque-text { font-style: normal; }
.rw-plaque-year { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: .2em; line-height: 1; }
@media (min-width: 1024px) { .rw-plaque { position: absolute; left: 0; bottom: -2.5rem; margin: 0; width: 78%; padding: 2rem 1.75rem; } .rw-dedication { margin-bottom: 2.5rem; } }

/* Deaddiction + recovery calendar */
.rw-dd { background: #1e1e1e; color: #fff; padding-block: 4.5rem; scroll-margin-top: 5rem; }
.rw-dd-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .rw-dd { padding-block: 6rem; } .rw-dd-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 7rem); } }
.rw-eyebrow { font-size: .875rem; font-weight: 600; color: #f47920; margin-bottom: .75rem; }
.rw-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.5rem; }
:lang(ta) .rw-h2 { font-size: clamp(1.625rem, 3vw, 2.75rem); line-height: 1.3; letter-spacing: 0; }
.rw-dd-p { font-size: 1.0625rem; line-height: 1.75; color: rgba(255, 255, 255, .76); max-width: 40rem; }
.rw-dd-p span { color: #fff; }
.rw-cal { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.5rem; background: #262321; border: 1px solid rgba(255, 255, 255, .08); }
.rw-cal-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.rw-cal-big { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1; letter-spacing: -.03em; color: #f47920; }
:lang(ta) .rw-cal-big { letter-spacing: 0; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.rw-cal-label { font-weight: 700; color: rgba(255, 255, 255, .88); }
.rw-cal-key { flex-basis: 100%; display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: rgba(255, 255, 255, .66); }
.rw-cal-key i { width: .5rem; height: .5rem; border-radius: 50%; background: #f47920; }
.rw-days, .rw-months { list-style: none; display: grid; gap: .375rem; }
.rw-days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 640px) { .rw-days { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
.rw-days li { position: relative; aspect-ratio: 1; border-radius: .5rem; border: 1px solid rgba(244, 121, 32, .6); background: rgba(244, 121, 32, .18); transition: background-color .35s, border-color .35s; transition-delay: calc(var(--i) * 60ms + 200ms); }
@media (max-width: 639px) { .rw-days li { aspect-ratio: auto; height: 2.75rem; } }
.rw-days span { position: absolute; top: .1875rem; left: .3125rem; font-size: .625rem; font-weight: 700; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.rw-days i { position: absolute; right: .25rem; bottom: .25rem; width: .375rem; height: .375rem; border-radius: 50%; background: #f47920; transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 60ms + 320ms); }
.rw-cal-arrow { display: grid; place-items: center; margin: 1rem 0; color: rgba(255, 255, 255, .35); }
.rw-cal-arrow svg { width: 1.25rem; height: 1.25rem; }
.rw-months { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .25rem; }
@media (min-width: 640px) { .rw-months { gap: .375rem; } }
@media (max-width: 639px) { .rw-months span { font-size: .5625rem; left: .1875rem; } }
.rw-months li { position: relative; height: 2rem; border-radius: .375rem; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); transition: background-color .3s, border-color .3s; transition-delay: calc(var(--i) * 40ms + 1.3s); }
.rw-months li.is-year { box-shadow: 3px 0 0 #f47920; }
.rw-months span { position: absolute; top: .1875rem; left: .3125rem; font-size: .625rem; font-weight: 700; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
/* Before the calendar is seen: empty cells. */
.rw-js:not(.is-in) .rw-days li { background: transparent; border-color: rgba(255, 255, 255, .12); }
.rw-js:not(.is-in) .rw-days i { scale: 0; }
.rw-js:not(.is-in) .rw-months li { background: transparent; border-color: rgba(255, 255, 255, .08); }

/* Wellness */
.rw-well { background: #fffaf7; color: #1e1e1e; padding-block: 4.5rem 5rem; }
.rw-well-inner { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .rw-well { padding-block: 6rem; } .rw-well-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); } .rw-well-side { position: sticky; top: 7rem; } }
.rw-well-photo { border-radius: 1.5rem; overflow: hidden; aspect-ratio: 2 / 1; max-width: 40rem; background: #e7e2dd; }
.rw-well-photo img { width: 100%; height: 100%; object-fit: cover; }
.rw-well-list { border-bottom: 1px solid rgba(30, 30, 30, .15); }
.rw-entry { display: grid; gap: .625rem; padding: 2rem 0; border-top: 1px solid rgba(30, 30, 30, .15); scroll-margin-top: 6rem; }
@media (min-width: 640px) { .rw-entry { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; } .rw-entry-text { grid-column: 2; } }
.rw-entry-no { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .875rem; color: #9a4708; padding-top: .5rem; font-variant-numeric: tabular-nums; }
.rw-entry-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
:lang(ta) .rw-entry-title { letter-spacing: 0; line-height: 1.35; }
.rw-entry-text { font-size: 1.0625rem; line-height: 1.7; color: #475569; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  .rw-plaque::after { animation: none; display: none; }
  .rw-days li, .rw-days i, .rw-months li { transition: none; }
}

/* ── Health Check Packages ───────────────────────────────────────────────────
   Hero: the Master checks as a stack (.hcp-layers, Basic at the bottom); each
   layer shows only what it adds and the running total, and pointing at one
   lights it and everything under it. Diabetes Awareness Pack: its dated
   visits as a route (.hcp-route) above its table. The tables are unchanged. */
.hcp-hero { --side: clamp(1rem, 5vw, 6rem); padding: 2rem var(--side) 4.5rem; background: #1e1e1e; color: #fff; }
.hcp-hero-inner { max-width: 112rem; margin-inline: auto; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hcp-hero { padding-bottom: 5.5rem; } .hcp-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); } }
.hcp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.5rem; }
.hcp-crumb a:hover { color: #f47920; text-decoration: underline; text-underline-offset: 4px; }
.hcp-crumb [aria-current] { color: #fff; }
.hcp-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 6vw, 6rem); line-height: .96; letter-spacing: -.045em; max-width: 11ch; }
:lang(ta) .hcp-title { font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.25; letter-spacing: 0; max-width: 14ch; }
.hcp-lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; font-weight: 600; color: #fbb07a; max-width: 30rem; }
.hcp-sub { margin-top: .875rem; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .72); max-width: 34rem; }
.hcp-jumps { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 2rem; }
.hcp-jumps a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1.125rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .9375rem; transition: background-color .25s, border-color .25s, color .25s; }
.hcp-jumps a svg { width: 1rem; height: 1rem; transition: transform .25s; }
.hcp-jumps a:hover { background: #fff; border-color: #fff; color: #1e1e1e; }
.hcp-jumps a:hover svg { transform: translateY(2px); }

.hcp-stack { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.75rem; background: #262321; border: 1px solid rgba(255, 255, 255, .08); }
.hcp-stack-head { margin-bottom: 1.25rem; }
.hcp-stack-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.125rem; }
.hcp-stack-lead { margin-top: .25rem; font-size: .875rem; color: rgba(255, 255, 255, .65); }
.hcp-layers { list-style: none; display: flex; flex-direction: column-reverse; gap: .5rem; }
.hcp-layer { margin-inline: calc(var(--i) * .875rem); animation: hcp-drop .6s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(var(--i) * 170ms + 250ms); }
@keyframes hcp-drop { from { opacity: 0; transform: translateY(-1.75rem); } }
.hcp-layer a { display: block; padding: .875rem 1.125rem; border-radius: .875rem; background: rgba(244, 121, 32, .13); border: 1px solid rgba(244, 121, 32, .4); color: #fff; transition: background-color .3s, border-color .3s, opacity .3s, transform .3s; }
.hcp-layer[data-k="0"] a { background: #f47920; border-color: #f47920; color: #1e1e1e; }
.hcp-layer-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.hcp-layer-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.2; }
.hcp-layer-count { flex: none; font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); }
.hcp-layer[data-k="0"] .hcp-layer-count { color: #1e1e1e; }
.hcp-layer-adds { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.hcp-layer-adds span { padding: .125rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.hcp-layer-adds.is-base span { padding: 0; background: none; font-size: .8125rem; font-weight: 700; color: #1e1e1e; }
.hcp-stack.is-pick .hcp-layer a { opacity: .4; }
.hcp-stack.is-pick .hcp-layer.is-in a { opacity: 1; background: rgba(244, 121, 32, .3); }
.hcp-stack.is-pick .hcp-layer[data-k="0"].is-in a { background: #f47920; }
.hcp-stack.is-pick .hcp-layer.is-top a { transform: translateY(-2px); border-color: #fbb07a; box-shadow: 0 .75rem 1.5rem -.75rem rgba(244, 121, 32, .6); }

/* Diabetes Awareness Pack route */
.hcp-route { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.5rem; background: #fff; border: 1px solid rgba(244, 121, 32, .2); }
.hcp-route-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; margin-bottom: 1.75rem; }
.hcp-route-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1e1e1e; }
.hcp-route-tag { padding: .1875rem .625rem; border-radius: 999px; background: rgba(244, 121, 32, .12); color: #9a4708; font-size: .75rem; font-weight: 700; }
.hcp-stops { list-style: none; position: relative; display: grid; gap: 1.5rem; padding-left: 2rem; }
.hcp-stops::before, .hcp-stops::after { content: ""; position: absolute; left: .4375rem; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: rgba(244, 121, 32, .25); }
.hcp-stops::after { background: #f47920; transform-origin: top; transition: transform 1.6s cubic-bezier(.5, 0, .2, 1) .2s; }
.hcp-stop { position: relative; }
.hcp-stop-dot { position: absolute; left: -2rem; top: .25rem; width: 1rem; height: 1rem; border-radius: 50%; background: #f47920; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(244, 121, 32, .4); transition: background-color .3s, scale .4s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * (1.6s / max(1, var(--n) - 1)) + .2s); z-index: 1; }
.hcp-stop-label { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.125rem; color: #9a4708; margin-bottom: .5rem; }
.hcp-stop ul { list-style: none; display: grid; gap: .3125rem; }
.hcp-stop ul li { position: relative; padding-left: .875rem; font-size: .875rem; line-height: 1.45; color: #475569; }
.hcp-stop ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .3125rem; height: .3125rem; border-radius: 50%; background: rgba(244, 121, 32, .7); }
@media (min-width: 768px) {
  .hcp-stops { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2rem; padding: 2rem 0 0; }
  .hcp-stops::before, .hcp-stops::after { left: .5rem; right: calc((100% - (var(--n) - 1) * 2rem) / var(--n) - .5rem); top: .4375rem; bottom: auto; width: auto; height: 2px; }
  .hcp-stops::after { transform-origin: left; }
  .hcp-stop-dot { left: 0; top: -2rem; }
}
.hcp-js:not(.is-in) .hcp-stops::after { transform: scaleY(0); }
@media (min-width: 768px) { .hcp-js:not(.is-in) .hcp-stops::after { transform: scaleX(0); } }
.hcp-js:not(.is-in) .hcp-stop-dot { background: #fff; scale: .7; }
@media (prefers-reduced-motion: reduce) {
  .hcp-layer { animation: none; }
  .hcp-stops::after, .hcp-stop-dot, .hcp-layer a { transition: none; }
}

/* ── Donate ───────────────────────────────────────────────────────────────────
   Built around the paperwork a donor meets: the donor reply form's "direct
   your gift to" boxes (hero, .dn-form), the Trust's registrations as rubber
   stamps (.dn-stamps), this year's need as one split bar (.dn-split), and the
   ways to give as tabs with copy buttons (.dn-tabs; all panels stacked
   without JS). */
.dn-hero, .dn-trust, .dn-prog, .dn-impact, .dn-partners, .dn-give { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.dn-hero-inner, .dn-trust-inner, .dn-prog-inner, .dn-impact-inner, .dn-partners-inner, .dn-give-inner { max-width: 112rem; margin-inline: auto; }
.dn-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a4708; margin-bottom: .75rem; }
:lang(ta) .dn-eyebrow { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.dn-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.875rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; color: #1e1e1e; margin-bottom: 1rem; max-width: 22ch; }
:lang(ta) .dn-h2 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.3; letter-spacing: 0; }
.dn-h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1e1e1e; margin: 3rem 0 1.25rem; }
.dn-h3--tight { margin: .25rem 0 .5rem; }
.dn-p { color: #475569; line-height: 1.7; max-width: 46rem; }
.dn-p--sm { font-size: .9375rem; margin-top: .5rem; }
.dn-muted { color: #64748b; }
.dn-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.375rem; border-radius: .875rem; border: 1px solid rgba(30, 30, 30, .2); background: #fff; color: #1e1e1e; font-weight: 700; font-size: .9375rem; transition: background-color .25s, border-color .25s, color .25s; }
.dn-btn svg { width: 1.0625rem; height: 1.0625rem; flex: none; }
.dn-btn:hover { border-color: #1e1e1e; }
.dn-btn--primary { background: #c2570f; border-color: #c2570f; color: #fff; }
.dn-btn--primary:hover { background: #b4540a; border-color: #b4540a; }

/* Hero */
.dn-hero { background: #fffaf7; color: #1e1e1e; padding-block: 2rem 4.5rem; overflow: hidden; }
.dn-hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .dn-hero { padding-bottom: 6rem; } .dn-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(3rem, 6vw, 7rem); } }
.dn-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 1.5rem; }
.dn-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.dn-crumb [aria-current] { color: #1e1e1e; }
.dn-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 6.5rem); line-height: .95; letter-spacing: -.045em; max-width: 12ch; }
:lang(ta) .dn-title { font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: 1.25; letter-spacing: 0; max-width: 16ch; }
.dn-lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.45; font-weight: 600; max-width: 34rem; }
.dn-sub { margin-top: 1rem; color: #475569; line-height: 1.7; max-width: 40rem; }
.dn-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* The reply form card: ruled paper, perforated top, tick boxes. */
.dn-form { position: relative; max-width: 28rem; width: 100%; margin-inline: auto; padding: 1.75rem 1.75rem 1.5rem; border-radius: .375rem; color: #1e1e1e; rotate: -1.5deg;
  background: repeating-linear-gradient(180deg, transparent 0 2.4375rem, rgba(30, 30, 30, .07) 2.4375rem 2.5rem) 0 6.5rem / 100% 100% no-repeat, #fff;
  box-shadow: 0 2rem 3rem -1.5rem rgba(30, 30, 30, .35), 0 0 0 1px rgba(30, 30, 30, .06); }
.dn-form::before { content: ""; position: absolute; left: .75rem; right: .75rem; top: -.375rem; height: .75rem; background: radial-gradient(circle, #fffaf7 .25rem, transparent .3rem) 0 0 / 1.25rem .75rem repeat-x; }
.dn-form-head { padding-bottom: .875rem; border-bottom: 3px double #1e1e1e; margin-bottom: .5rem; }
.dn-form-kicker { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9a4708; }
:lang(ta) .dn-form-kicker { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.dn-form-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.375rem; margin-top: .25rem; }
.dn-causes { list-style: none; }
.dn-causes a { display: flex; align-items: center; gap: .875rem; min-height: 2.5rem; padding: .25rem .25rem; font-weight: 600; font-size: .9375rem; line-height: 1.3; border-radius: .375rem; transition: background-color .2s, color .2s; }
.dn-tick { flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 2px solid #1e1e1e; border-radius: .25rem; color: #c2570f; }
.dn-tick svg { width: 100%; height: 100%; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s ease; }
.dn-causes a:hover, .dn-causes a:focus-visible { background: rgba(244, 121, 32, .08); color: #9a4708; }
.dn-causes a:hover .dn-tick svg, .dn-causes a:focus-visible .dn-tick svg { stroke-dashoffset: 0; }
.dn-form-pdf { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-weight: 700; font-size: .875rem; color: #9a4708; }
.dn-form-pdf svg { width: 1rem; height: 1rem; }
.dn-form-pdf:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Trust + stamps */
.dn-trust { background: #fff; color: #1e1e1e; padding-block: 4.5rem; border-top: 1px solid rgba(30, 30, 30, .06); }
.dn-trust-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .dn-trust { padding-block: 5.5rem; } .dn-trust-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 7rem); } }
.dn-trust-text { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.6; font-weight: 500; }
.dn-stamps { display: flex; gap: clamp(.5rem, 2vw, 1.5rem); margin-bottom: 2rem; }
.dn-stamp { width: clamp(5.5rem, 12vw, 8rem); height: auto; color: #b4540a; rotate: calc(var(--r) * 9deg - 8deg); opacity: .9; overflow: visible; transition: scale .35s cubic-bezier(.3, 1.4, .5, 1), opacity .35s; transition-delay: calc(var(--r) * 180ms); }
.dn-stamp-o { fill: none; stroke: currentColor; stroke-width: 4; }
.dn-stamp-o2 { fill: none; stroke: currentColor; stroke-width: 1.2; }
.dn-stamp-i { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 4; }
.dn-stamp-ring { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; fill: currentColor; }
:lang(ta) .dn-stamp-ring { letter-spacing: 0; text-transform: none; font-size: 13px; }
.dn-stamp-code { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; font-weight: 800; fill: currentColor; letter-spacing: -.02em; }
.dn-stamp:first-child .dn-stamp-code { font-size: 22px; }
.dn-js:not(.is-in) .dn-stamp { scale: 1.4; opacity: 0; }
.dn-reg-lists { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .dn-reg-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dn-reg-title { font-weight: 700; font-size: .9375rem; margin-bottom: .5rem; }
.dn-reg-under { list-style: none; display: grid; gap: .375rem; font-size: .875rem; line-height: 1.45; color: #475569; }
.dn-reg-under li { padding-left: .875rem; position: relative; }
.dn-reg-under li::before { content: ""; position: absolute; left: 0; top: .55em; width: .3125rem; height: .3125rem; border-radius: 50%; background: #f47920; }
.dn-reg-nos div { display: flex; justify-content: space-between; gap: 1rem; padding: .375rem 0; border-bottom: 1px dashed rgba(30, 30, 30, .18); font-size: .875rem; }
.dn-reg-nos dt { color: #64748b; }
.dn-reg-nos dd, .dn-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 600; letter-spacing: .03em; color: #1e1e1e; }

/* Featured campaign: a full-width photo band */
.dn-feature-wrap { background: #fff; }
.dn-feature { position: relative; display: flex; align-items: flex-end; min-height: clamp(24rem, 46vw, 36rem); overflow: hidden; color: #fff; isolation: isolate; }
.dn-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s cubic-bezier(.2, .8, .2, 1); }
.dn-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 55%, transparent 80%), linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 50%); }
.dn-feature:hover img { scale: 1.04; }
.dn-feature-body { display: grid; gap: .625rem; max-width: 36rem; padding: 2.5rem clamp(1rem, 5vw, 6rem); }
.dn-feature-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fbb07a; }
:lang(ta) .dn-feature-kicker { letter-spacing: 0; text-transform: none; }
.dn-feature-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.875rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; }
:lang(ta) .dn-feature-title { letter-spacing: 0; line-height: 1.3; }
.dn-feature-text { line-height: 1.6; color: rgba(255, 255, 255, .88); }
.dn-feature-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-weight: 700; color: #fbb07a; }
.dn-feature-go svg { width: 1rem; height: 1rem; transition: transform .25s; }
.dn-feature:hover .dn-feature-go svg { transform: translateX(4px); }

/* Programmes + split bar */
.dn-prog { background: #fffaf7; padding-block: 4.5rem; scroll-margin-top: 4rem; }
@media (min-width: 1024px) { .dn-prog { padding-block: 6rem; } }
.dn-split { display: flex; gap: 4px; margin: 2.5rem 0 1.5rem; border-radius: 1rem; overflow: hidden; }
.dn-split span { width: var(--w); display: grid; align-content: end; gap: .125rem; min-height: 6rem; padding: .875rem 1rem; font-size: .8125rem; font-weight: 600; line-height: 1.3; transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 150ms); }
.dn-split span:nth-child(1), .dn-progcard[style*="--i: 0"] .dn-progcard-key { background: #f47920; color: #1e1e1e; }
.dn-split span:nth-child(2), .dn-progcard[style*="--i: 1"] .dn-progcard-key { background: #fbb07a; color: #1e1e1e; }
.dn-split span:nth-child(3), .dn-progcard[style*="--i: 2"] .dn-progcard-key { background: #1e1e1e; color: #fff; }
.dn-split b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.02em; }
@media (max-width: 767px) { .dn-split span { min-height: .875rem; padding: 0; font-size: 0; } .dn-split b { font-size: 0; } }
.dn-js:not(.is-in) .dn-split span { transform: scaleX(0); }
.dn-progs { display: grid; gap: 1rem; }
@media (min-width: 768px) { .dn-progs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.dn-progcard { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border-radius: 1.25rem; background: #fff; border: 1px solid rgba(244, 121, 32, .18); overflow: hidden; }
.dn-progcard-key { position: absolute; left: 0; right: 0; top: 0; height: .375rem; }
.dn-progcard h3 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1e1e1e; margin-bottom: .375rem; }
.dn-progcard > p { font-size: .9375rem; line-height: 1.55; color: #475569; margin-bottom: 1.25rem; }
.dn-progcard dl { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(244, 121, 32, .2); display: grid; gap: .375rem; font-size: .875rem; }
.dn-progcard dl div { display: flex; justify-content: space-between; gap: 1rem; }
.dn-progcard dt { color: #64748b; }
.dn-progcard dd { color: #1e1e1e; font-weight: 600; text-align: right; }
.dn-progcard .is-need dd { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.125rem; color: #9a4708; }
.dn-note { margin-top: 1.5rem; font-size: .875rem; color: #64748b; max-width: 46rem; }

/* Impact */
.dn-impact { background: #1e1e1e; color: #fff; padding-block: 3.5rem; }
.dn-impact-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
@media (min-width: 1024px) { .dn-impact-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dn-stat { padding-left: 1rem; border-left: 2px solid #f47920; }
.dn-stat-v { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.03em; color: #f47920; }
.dn-stat-l { margin-top: .5rem; font-size: .875rem; color: rgba(255, 255, 255, .72); }

/* Partners */
.dn-partners { background: #fff; padding-block: 4.5rem; scroll-margin-top: 4rem; }
@media (min-width: 1024px) { .dn-partners { padding-block: 6rem; } }
.dn-highlights { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .dn-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dn-hl { border-radius: 1.25rem; overflow: hidden; background: #fffaf7; border: 1px solid rgba(244, 121, 32, .15); }
.dn-hl-photo { aspect-ratio: 16 / 9; overflow: hidden; background: #e7e2dd; }
.dn-hl-photo img { width: 100%; height: 100%; object-fit: cover; }
.dn-hl figcaption { display: grid; gap: .375rem; padding: 1.25rem; }
.dn-hl b { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; color: #1e1e1e; }
.dn-hl span { font-size: .875rem; line-height: 1.55; color: #475569; }
.dn-wall { list-style: none; columns: 1; column-gap: 2.5rem; padding: 1.75rem; border-radius: 1.25rem; background: #fffaf7; border: 1px solid rgba(30, 30, 30, .08); }
@media (min-width: 640px) { .dn-wall { columns: 2; } }
@media (min-width: 1024px) { .dn-wall { columns: 3; } .dn-wall--people { columns: 4; } }
.dn-wall li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid rgba(30, 30, 30, .08); font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: .9375rem; line-height: 1.35; color: #1e1e1e; }
.dn-wall--people li { font-weight: 600; font-size: .875rem; color: #334155; }
.dn-source { margin-top: 1.5rem; font-size: .75rem; color: #64748b; }
.dn-source a { color: #9a4708; font-weight: 700; }
.dn-source a:hover { text-decoration: underline; }

/* Ways to give */
.dn-give { background: #fffaf7; padding-block: 4.5rem 5rem; scroll-margin-top: 4rem; }
@media (min-width: 1024px) { .dn-give { padding-block: 6rem; } }
.dn-tabs { margin-top: 2rem; display: grid; gap: 1rem; }
.dn-tablist { display: flex; gap: .375rem; padding: .375rem; border-radius: 1rem; background: #fff; border: 1px solid rgba(30, 30, 30, .1); overflow-x: auto; scrollbar-width: none; }
.dn-tablist[hidden] { display: none; }
.dn-tablist button { flex: none; min-height: 2.75rem; padding: .5rem 1rem; border-radius: .75rem; font-weight: 700; font-size: .875rem; color: #475569; white-space: nowrap; transition: background-color .2s, color .2s; }
.dn-tablist button:hover { color: #1e1e1e; background: rgba(30, 30, 30, .05); }
.dn-tablist button[aria-selected="true"] { background: #1e1e1e; color: #fff; }
.dn-panel { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; background: #fff; border: 1px solid rgba(30, 30, 30, .1); }
.dn-panel[hidden] { display: none; }
.dn-panel-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1e1e1e; margin-bottom: 1rem; }
.dn-panel-text { color: #475569; line-height: 1.65; max-width: 44rem; margin-bottom: 1rem; }
.dn-link { font-weight: 700; color: #9a4708; }
.dn-link:hover { text-decoration: underline; }
.dn-bank { max-width: 44rem; }
.dn-bank div { display: grid; grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr); gap: 1rem; align-items: center; min-height: 3rem; border-bottom: 1px dashed rgba(30, 30, 30, .15); font-size: .9375rem; }
.dn-bank dt { color: #64748b; }
.dn-bank dd { display: flex; align-items: center; gap: .25rem; color: #1e1e1e; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dn-bank .copy-btn { width: 2.5rem; height: 2.5rem; color: #9a4708; }
.dn-bank .copy-btn:hover { color: #1e1e1e; background: rgba(244, 121, 32, .12); }
.dn-reply { display: grid; gap: 1.5rem; align-items: center; margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; background: #fff; border: 1px solid rgba(30, 30, 30, .1); }
@media (min-width: 768px) { .dn-reply { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; } }
.dn-contact { margin-top: 2rem; text-align: center; font-size: .875rem; color: #64748b; }
.dn-contact a { color: #9a4708; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .dn-stamp, .dn-split span, .dn-feature img, .dn-tick svg { transition: none; }
}

/* ── Building Expansion ───────────────────────────────────────────────────────
   Built around the building: the photo as the view on a drawing sheet with the
   key stats in its title block (hero), a site diary of the milestones with
   TMH's own construction photos (.bx-diary), a section of the floors sized by floor area (.bx-floors), a hospital
   directory board, and the needs as an estimate sheet with bars. */
.bx-hero, .bx-why, .bx-progress, .bx-floors, .bx-centres, .bx-needs { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.bx-hero-inner, .bx-why-inner, .bx-progress-inner, .bx-floors-inner, .bx-centres-inner, .bx-needs-inner { max-width: 112rem; margin-inline: auto; }
.bx-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a4708; margin-bottom: .75rem; }
:lang(ta) .bx-eyebrow { letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.bx-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.875rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; color: #1e1e1e; margin-bottom: 1rem; max-width: 22ch; }
:lang(ta) .bx-h2 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.3; letter-spacing: 0; }
.bx-p { color: #475569; line-height: 1.7; max-width: 46rem; }
.bx-p + .bx-p { margin-top: 1rem; }
.bx-p--sm { font-size: .9375rem; }
.bx-note { font-size: .8125rem; color: #64748b; margin-top: .75rem; }
.bx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .75rem 1.375rem; border-radius: .875rem; border: 1px solid rgba(30, 30, 30, .2); background: #fff; color: #1e1e1e; font-weight: 700; font-size: .9375rem; transition: background-color .25s, border-color .25s, color .25s; }
.bx-btn svg { width: 1.0625rem; height: 1.0625rem; flex: none; }
.bx-btn:hover { border-color: #1e1e1e; }
.bx-btn--primary { background: #c2570f; border-color: #c2570f; color: #fff; }
.bx-btn--primary:hover { background: #b4540a; border-color: #b4540a; }

/* Hero: text + drawing sheet */
.bx-hero { background: #fffaf7; color: #1e1e1e; padding-block: 2rem 4.5rem; overflow: hidden;
  background-image: linear-gradient(rgba(30, 30, 30, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 30, 30, .045) 1px, transparent 1px); background-size: 2rem 2rem; }
.bx-hero-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .bx-hero { padding-bottom: 6rem; } .bx-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 5vw, 6rem); } }
.bx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 1.5rem; }
.bx-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.bx-crumb [aria-current] { color: #1e1e1e; }
.bx-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 5.75rem); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
:lang(ta) .bx-title { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.25; letter-spacing: 0; max-width: 18ch; }
.bx-lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; font-weight: 600; max-width: 36rem; }
.bx-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.bx-sheet { background: #fff; padding: .75rem; border: 1px solid #1e1e1e; box-shadow: 0 2rem 3rem -1.75rem rgba(30, 30, 30, .4), .5rem .5rem 0 -1px #fffaf7, .5rem .5rem 0 0 rgba(30, 30, 30, .25); }
.bx-sheet-view { border: 1px solid #1e1e1e; overflow: hidden; aspect-ratio: 16 / 10; }
.bx-sheet-img { width: 100%; height: 100%; object-fit: cover; }
.bx-titleblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #1e1e1e; border-top: 0; }
@media (min-width: 640px) { .bx-titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bx-tb-cell { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; padding: .75rem .875rem; border-top: 1px solid #1e1e1e; }
.bx-tb-cell:nth-child(odd) { border-right: 1px solid #1e1e1e; }
@media (min-width: 640px) { .bx-tb-cell:not(:last-child) { border-right: 1px solid #1e1e1e; } }
.bx-tb-value { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.375rem, 2vw, 1.875rem); letter-spacing: -.03em; line-height: 1; color: #b4540a; }
.bx-tb-label { font-size: .75rem; line-height: 1.35; color: #475569; }

/* Why + aerial */
.bx-why { background: #fff; padding-block: 4.5rem 0; }
.bx-why-inner { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .bx-why { padding-top: 6rem; } .bx-why-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 7rem); } }
.bx-why-lead { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.55; font-weight: 500; color: #1e1e1e; margin-bottom: 1.5rem; }
.bx-aerial { max-width: 112rem; margin: 3rem auto 0; padding-bottom: 4.5rem; }
.bx-aerial-card { border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-soft); }

/* Progress: site diary */
.bx-progress { background: #fffaf7; padding-block: 4.5rem; border-top: 1px solid rgba(30, 30, 30, .06); }
@media (min-width: 1024px) { .bx-progress { padding-block: 6rem; } }
.bx-diary { list-style: none; margin-top: 2.5rem; border-top: 2px solid #1e1e1e; }
.bx-entry { display: grid; gap: .375rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid rgba(30, 30, 30, .14); }
.bx-entry-when { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a4708; font-variant-numeric: tabular-nums; }
:lang(ta) .bx-entry-when { letter-spacing: 0; text-transform: none; }
.bx-entry-what { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.35; color: #1e1e1e; max-width: 34ch; }
:lang(ta) .bx-entry-what { max-width: 40ch; }
.bx-entry-shot { display: block; width: 100%; max-width: 22rem; aspect-ratio: 16 / 10; border-radius: .5rem; overflow: hidden; margin-top: .75rem; background: #e2e8f0; }
.bx-entry-photo { width: 100%; height: 100%; object-fit: cover; }
/* The rail: fills down the diary as it scrolls (height set by tmh.js); each
   entry's dot fills once the rail passes it. Without JS the rail is plain. */
.bx-diary { position: relative; }
.bx-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(30, 30, 30, .12); list-style: none; pointer-events: none; }
.bx-rail-fill { display: block; width: 100%; height: var(--fill, 0%); background: linear-gradient(#f47920, #c2570f); }
.bx-diary.bx-js .bx-entry { padding-left: 1.75rem; position: relative; }
.bx-diary:not(.bx-js) .bx-rail { display: none; }
.bx-diary.bx-js .bx-entry::before { content: ""; position: absolute; left: -.3125rem; top: 1.6rem; width: .75rem; height: .75rem; border-radius: 50%; background: #fffaf7; border: 2px solid rgba(30, 30, 30, .25); transition: background-color .35s, border-color .35s, scale .35s var(--ease-spring); }
@media (min-width: 768px) { .bx-diary.bx-js .bx-entry::before { top: 1.95rem; } }
.bx-diary.bx-js .bx-entry.is-past::before { background: #f47920; border-color: #c2570f; scale: 1.15; }
.bx-entry-when { transition: color .35s; }
.bx-diary.bx-js .bx-entry:not(.is-past) .bx-entry-when { color: #94a3b8; }
/* Photos uncover left to right and settle from a slight zoom. */
.bx-diary.bx-js .bx-entry-shot { clip-path: inset(0 100% 0 0 round .5rem); transition: clip-path 1s var(--ease-out-expo); }
.bx-diary.bx-js .bx-entry-photo { scale: 1.12; transition: scale 1.4s var(--ease-out-soft); }
.bx-diary.bx-js .bx-entry.is-seen .bx-entry-shot { clip-path: inset(0 0 0 0 round .5rem); }
.bx-diary.bx-js .bx-entry.is-seen .bx-entry-photo { scale: 1; }
.bx-entry.is-latest .bx-entry-what::after { content: ""; display: inline-block; width: .625rem; height: .625rem; margin-left: .625rem; border-radius: 50%; background: #f47920; box-shadow: 0 0 0 .25rem rgba(244, 121, 32, .2); vertical-align: middle; }
@media (min-width: 768px) {
  .bx-entry { grid-template-columns: 11rem minmax(0, 1fr) 20rem; align-items: start; padding-block: 1.5rem; }
  .bx-entry-when { padding-top: .45rem; }
  .bx-entry-shot { grid-column: 3; grid-row: 1; margin-top: 0; justify-self: end; }
}
@media (min-width: 1280px) { .bx-entry { grid-template-columns: 14rem minmax(0, 1fr) 22rem; } }

/* Floor by floor: section through the building */
.bx-floors { background: #fff; padding-block: 4.5rem; }
@media (min-width: 1024px) { .bx-floors { padding-block: 6rem; } }
.bx-stack { display: grid; gap: .5rem; margin-top: 2.5rem; }
.bx-floor { width: 100%; padding: 1.25rem 1.5rem; border-radius: .5rem; display: grid; gap: .375rem .75rem; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
@media (min-width: 768px) { .bx-floor { width: var(--w); min-width: 22rem; padding: 1.5rem 1.75rem; min-height: 8rem; } }
.bx-floor-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; grid-column: 1 / -1; }
.bx-floor-name { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.bx-floor-period { font-size: .75rem; font-weight: 700; padding: .25rem .625rem; border-radius: 999px; }
.bx-floor-uses { font-size: .9375rem; line-height: 1.55; max-width: 48rem; }
.bx-floor-area { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .9375rem; white-space: nowrap; align-self: end; }
.bx-floor.is-planned { border: 2px dashed rgba(30, 30, 30, .35); color: #1e1e1e; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(244, 121, 32, .05) 10px 11px), #fffaf7; }
.bx-floor.is-planned .bx-floor-period { background: #fff; border: 1px solid rgba(30, 30, 30, .2); color: #475569; }
.bx-floor.is-planned .bx-floor-uses { color: #475569; }
.bx-floor.is-open { background: #1e1e1e; color: #fff; box-shadow: 0 0 0 1px #1e1e1e, 0 1.5rem 3rem -1.5rem rgba(244, 121, 32, .6); position: relative; overflow: hidden; }
.bx-floor.is-open::after { content: ""; position: absolute; inset: auto 0 0 0; height: .375rem; background: linear-gradient(90deg, #f47920, #ffc58a, #f47920); }
.bx-floor.is-open .bx-floor-period { background: #f47920; color: #1e1e1e; }
.bx-floor.is-open .bx-floor-uses { color: rgba(255, 255, 255, .8); }
.bx-floor.is-open .bx-floor-area { color: #ffc58a; }
.bx-floor.is-done { color: #1e1e1e; background: repeating-linear-gradient(45deg, rgba(30, 30, 30, .08) 0 2px, transparent 2px 9px), #f1f5f9; }
.bx-floor.is-done .bx-floor-period { background: #1e1e1e; color: #fff; }
.bx-floor.is-done .bx-floor-uses { color: #475569; }
.bx-grade { height: 4px; margin-block: .5rem; background: #1e1e1e; border-radius: 2px; position: relative; }
.bx-grade::after { content: ""; position: absolute; inset: 4px 0 auto; height: .75rem; background: repeating-linear-gradient(-45deg, rgba(30, 30, 30, .35) 0 1.5px, transparent 1.5px 7px); }

/* Centres: directory board */
.bx-centres { background: #fffaf7; padding-block: 4.5rem; border-top: 1px solid rgba(30, 30, 30, .06); }
.bx-centres-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .bx-centres { padding-block: 6rem; } .bx-centres-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 7rem); } }
.bx-directory { background: #1e1e1e; color: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: inset 0 0 0 .375rem #2b2b2b, inset 0 0 0 .4375rem rgba(255, 255, 255, .08), 0 2rem 3rem -1.75rem rgba(30, 30, 30, .55); }
@media (min-width: 640px) { .bx-directory { padding: 2.25rem 2.5rem; } }
.bx-directory-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 3px solid #f47920; }
.bx-directory-head svg { width: 2rem; height: 2rem; }
.bx-directory-list { list-style: none; }
.bx-directory-row { display: flex; align-items: baseline; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bx-directory-row:last-child { border-bottom: 0; }
.bx-directory-no { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .875rem; color: #f47920; font-variant-numeric: tabular-nums; }
.bx-directory-name { display: block; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(1.125rem, 2vw, 1.625rem); letter-spacing: -.01em; line-height: 1.3; }
.bx-directory-desc { display: block; margin-top: .25rem; font-size: .875rem; color: rgba(255, 255, 255, .7); line-height: 1.5; }

/* Needs: estimate sheet */
.bx-needs { background: #fff; padding-block: 4.5rem; }
@media (min-width: 1024px) { .bx-needs { padding-block: 6rem; } }
.bx-needs-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .bx-needs-grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; align-items: start; } }
.bx-estimate { border: 1px solid #1e1e1e; border-radius: .5rem; overflow: hidden; background: #fff; }
.bx-estimate-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #1e1e1e; color: #fff; font-weight: 700; font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; }
.bx-estimate-head span { color: rgba(255, 255, 255, .65); font-weight: 400; font-size: .875rem; }
.bx-estimate-unit { font-size: .75rem; color: #f47920; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.bx-estimate-list { list-style: none; }
.bx-item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) 3.5rem; gap: .25rem .75rem; align-items: center; padding: .75rem 1.25rem; border-top: 1px solid #e2e8f0; font-size: .9375rem; transition: background-color .2s; }
.bx-item:first-child { border-top: 0; }
.bx-item:hover { background: #fffaf7; }
.bx-item-no { font-size: .75rem; color: #94a3b8; font-variant-numeric: tabular-nums; }
.bx-item-name { color: #334155; line-height: 1.4; }
.bx-item-bar { grid-column: 2; grid-row: 2; height: .375rem; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.bx-item-bar span { display: block; height: 100%; width: var(--bar); background: linear-gradient(90deg, #f47920, #c2570f); border-radius: inherit; transform-origin: left; }
.bx-item-amount { grid-column: 3; grid-row: 1 / span 2; justify-self: end; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.0625rem; color: #1e1e1e; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .bx-item { grid-template-columns: 1.75rem minmax(0, 1fr) minmax(8rem, 14rem) 3.5rem; }
  .bx-item-bar { grid-column: 3; grid-row: 1; }
  .bx-item-amount { grid-column: 4; grid-row: 1; }
}
.bx-js .bx-item-bar span { transform: scaleX(0); transition: transform .9s var(--ease-out-soft); transition-delay: calc(var(--i, 0) * 40ms); }
.bx-js.is-in .bx-item-bar span { transform: none; }
.bx-recog { position: sticky; top: 6rem; background: #fffaf7; border: 1px solid #fed7aa; border-radius: 1rem; padding: 1.75rem; display: grid; gap: 1rem; justify-items: start; }
.bx-recog-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: 1.25rem; color: #1e1e1e; }
.bx-directory-head span { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
:lang(ta) .bx-directory-head span { letter-spacing: 0; text-transform: none; }

/* ── Patient Rights & Responsibilities ────────────────────────────────────────
   Each section is a 21st.dev component: Vertical Cut Reveal (Daniel Petho) on
   the title (.rgt-title / .vcr-*), Text Gradient Scroll (Bundui) for the rights
   (.rgt-tgs), Scroll Reveal "stepped list" (Cnippet) for the responsibilities
   (.rgt-steps) and Cta 4 (Shadcnblocks) for the complaint contact and the PDF
   (.rgt-cta). All text shows plainly without JS or with reduced motion. */
.rgt-hero, .rgt-rights, .rgt-resp, .rgt-ctas { --side: clamp(1rem, 5vw, 6rem); padding-inline: var(--side); }
.rgt-inner { max-width: 72rem; margin-inline: auto; }
.rgt-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; margin-bottom: 2rem; }
.rgt-crumb a:hover { color: #b4540a; text-decoration: underline; text-underline-offset: 4px; }
.rgt-crumb [aria-current] { color: #1e1e1e; }
.rgt-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a4708; margin-bottom: 1rem; }
:lang(ta) .rgt-eyebrow { letter-spacing: 0; text-transform: none; font-size: .8125rem; }

/* Hero: Vertical Cut Reveal */
.rgt-hero { background: #fffaf7; padding-block: 2rem 4.5rem; background-image: radial-gradient(rgba(30, 30, 30, .13) 1px, transparent 1px); background-size: 1.5rem 1.5rem; }
@media (min-width: 1024px) { .rgt-hero { padding-block: 2.5rem 6rem; } }
.rgt-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -.04em; color: #1e1e1e; max-width: 14ch; }
:lang(ta) .rgt-title { font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.3; letter-spacing: 0; max-width: 20ch; }
.rgt-lede { margin-top: 1.75rem; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.5; font-weight: 500; color: #334155; max-width: 40rem; }
.rgt-jump { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.rgt-jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(30, 30, 30, .18); background: #fff; font-weight: 600; font-size: .875rem; color: #1e1e1e; transition: border-color .2s, color .2s; }
.rgt-jump a:hover { border-color: #b4540a; color: #9a4708; }
.vcr-word { display: inline-block; white-space: nowrap; }
.vcr-clip { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.vcr-ch { display: inline-block; transform: translateY(100%); transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); transition-delay: calc(var(--d, 0) * 25ms); }
.vcr-on .vcr-ch { transform: none; }

/* Rights: Text Gradient Scroll */
.rgt-rights { background: #fff; padding-block: 4.5rem 6rem; }
@media (min-width: 1024px) { .rgt-rights { padding-block: 6rem 10rem; } }
.rgt-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 800; font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; color: #1e1e1e; }
:lang(ta) .rgt-h2 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.3; letter-spacing: 0; }
.rgt-intro { margin-top: .75rem; color: #475569; font-size: 1.0625rem; }
.rgt-tgs { list-style: none; margin-top: 3rem; display: grid; gap: 1.75rem; }
.rgt-tgs li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; }
@media (min-width: 768px) { .rgt-tgs li { grid-template-columns: 3.5rem minmax(0, 1fr); } }
.rgt-tgs-no { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem; color: #b4540a; font-variant-numeric: tabular-nums; }
.rgt-tgs-text { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(1.375rem, 2.6vw, 2.25rem); line-height: 1.3; letter-spacing: -.02em; color: #1e1e1e; }
:lang(ta) .rgt-tgs-text { font-size: clamp(1.125rem, 2vw, 1.75rem); line-height: 1.6; letter-spacing: 0; }
.tgs-w { transition: opacity .5s; }

/* Responsibilities: Scroll Reveal stepped list */
.rgt-resp { background: #fffaf7; padding-block: 4.5rem; border-top: 1px solid rgba(30, 30, 30, .06); }
@media (min-width: 1024px) { .rgt-resp { padding-block: 6rem; } }
.rgt-steps { list-style: none; margin-top: 2.5rem; display: grid; gap: .5rem; max-width: 48rem; }
.rgt-step { display: flex; align-items: center; gap: .875rem; padding: .875rem 1.125rem; border: 1px solid #e2e8f0; border-radius: .5rem; background: #fff; }
.rgt-step-no { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #c2570f; color: #fff; font-weight: 700; font-size: .75rem; font-variant-numeric: tabular-nums; }
.rgt-step-text { font-weight: 500; font-size: 1rem; line-height: 1.45; color: #1e1e1e; }
.rgt-steps.rgt-js .rgt-step { opacity: 0; transform: translateX(-20px); transition: opacity .45s ease-out, transform .45s ease-out; transition-delay: calc(var(--d, 0) * 100ms); }
.rgt-steps.rgt-js .rgt-step.is-in { opacity: 1; transform: none; }

/* Complaint + PDF: Cta 4 */
.rgt-ctas { background: #fff; padding-block: 4.5rem; }
@media (min-width: 1024px) { .rgt-ctas { padding-block: 6rem; } }
.rgt-cta-stack { display: grid; gap: 1.5rem; }
.rgt-cta { display: flex; flex-direction: column; gap: 2rem; justify-content: space-between; padding: 2rem; border-radius: .75rem; background: #f4f4f5; }
@media (min-width: 768px) { .rgt-cta { flex-direction: row; align-items: center; padding: 2.5rem 3rem; } }
.rgt-cta-main { max-width: 36rem; }
.rgt-cta-title { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; color: #18181b; }
.rgt-cta-desc { margin-top: .5rem; color: #52525b; line-height: 1.6; }
.rgt-cta-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; min-height: 2.75rem; padding: .625rem 1.25rem; border-radius: .5rem; background: #18181b; color: #fff; font-weight: 600; font-size: .9375rem; transition: background-color .2s; word-break: break-all; }
.rgt-cta-btn:hover { background: #c2570f; }
.rgt-cta-btn svg { width: 1rem; height: 1rem; flex: none; }
.rgt-cta-list { list-style: none; display: grid; gap: .75rem; font-weight: 600; font-size: .9375rem; color: #18181b; }
@media (min-width: 768px) { .rgt-cta-list { min-width: 16rem; } }
.rgt-cta-list li { display: flex; align-items: center; gap: .75rem; }
.rgt-cta-list svg { width: 1.125rem; height: 1.125rem; flex: none; color: #18181b; }

/* ── Privacy Policy ───────────────────────────────────────────────────────────
   Reuses the Patient Rights hero (Vertical Cut Reveal) and Cta 4 (.rgt-*). The
   body is hirael's Table of Contents demo: article + sticky "On this page" nav
   whose active link carries the dark left border; hidden on phones, as in the
   component. Body text is 1rem rather than the demo's text-sm, for reading. */
.prv-body { background: #fff; padding: 4rem clamp(1rem, 5vw, 6rem) 6rem; }
.prv-layout { max-width: 72rem; margin-inline: auto; display: flex; gap: 2.5rem; }
@media (min-width: 1024px) { .prv-layout { gap: 5rem; } }
.prv-article { flex: 1; min-width: 0; max-width: 46rem; display: grid; gap: 2.5rem; color: #52525b; line-height: 1.7; }
.prv-lead { font-size: 1.125rem; color: #3f3f46; }
.prv-sec { scroll-margin-top: 6rem; display: grid; gap: .75rem; }
.prv-h2 { font-family: 'Plus Jakarta Sans', 'Noto Sans Tamil', sans-serif; font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; color: #18181b; }
.prv-list { list-style: disc; padding-left: 1.25rem; display: grid; gap: .375rem; }
.prv-cta .rgt-cta-main { max-width: none; }
.prv-cta a:not(.rgt-cta-btn) { overflow-wrap: anywhere; }
.prv-aside { display: none; }
@media (min-width: 768px) { .prv-aside { display: block; position: sticky; top: 6rem; align-self: flex-start; width: 12rem; flex: none; } }
@media (min-width: 1024px) { .prv-aside { width: 14rem; } }
.prv-toc { display: flex; flex-direction: column; gap: .75rem; }
.prv-toc-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; color: #71717a; }
:lang(ta) .prv-toc-label { text-transform: none; letter-spacing: 0; font-family: 'Noto Sans Tamil', sans-serif; font-size: .75rem; }
.prv-toc-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; border-left: 1px solid #e4e4e7; }
.prv-toc-link { display: block; margin-left: -1px; border-left: 1px solid transparent; padding: .25rem 0 .25rem 1rem; font-size: .875rem; line-height: 1.4; color: #71717a; transition: color .15s ease-out, border-color .15s ease-out; }
.prv-toc-link:hover { color: #18181b; }
.prv-toc-link[aria-current] { border-left-color: #18181b; color: #18181b; font-weight: 500; }

/* ── Phone tap targets (Nov 2026). Breadcrumbs and footer phone/email links
   are ~20px tall; on touch screens their hit area grows to ~32px without
   moving anything (padding offset by negative margin). ─────────────────── */
@media (pointer: coarse) {
  [data-crumbs] a { padding-block: .375rem; margin-block: -.375rem; }
  .ft-grid a[href^="tel:"], .ft-grid a[href^="mailto:"] { display: inline-block; padding-block: .375rem; margin-block: -.375rem; }
}
/* Tamil labels wrap to two lines in the phone call/book bar: keep the icons
   from shrinking and the text centred beside them. */
#mobile-cta svg { flex: none; }
:lang(ta) #mobile-cta a, :lang(ta) #mobile-cta button { text-align: center; line-height: 1.25; padding-inline: .5rem; }
/* Donate on phones: the expansion teaser's text runs the full width, so the
   side-on shade left its right half over bright sky — shade from the
   bottom instead. The five ways-to-give tabs wrap onto rows rather than
   scrolling off the edge, so every option is visible. */
@media (max-width: 639px) {
  .dn-feature::after { background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .25)); }
  .dn-tablist { flex-wrap: wrap; overflow: visible; }
  .dn-tablist button { flex: 1 1 auto; }
}

/* ── Booking ticket on phones and tablets (Nov 2026). Under 1024px there is
   no side column, so while the questions run the same ticket sits above
   them as a slim horizontal stub: orange header and the filled rows on the
   left, the date on a tear-off stub at the right (perforation with notches
   top and bottom). At review and after sending it becomes the full ticket
   again (rules above). ─────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-ticket-wrap {
    display: block; order: -1; padding: .9rem clamp(1.25rem, 6vw, 7rem) 0;
  }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-ticket {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head stub" "rows stub";
    width: 100%; max-width: 30rem; margin-inline: 0; font-size: .88rem;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-head { grid-area: head; gap: .55em; padding: .55em .9em; border-radius: 1.25em 0 0 0; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-logo { width: 2em; height: 2em; padding: .15em; border-radius: .45em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-org { font-size: .85em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-kind { margin-top: .1em; font-size: .62em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-rows {
    grid-area: rows; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1em; padding: .3em .9em .55em;
  }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-rows > div { padding: .35em 0; border-bottom: 0; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-rows > [data-t="for"] { grid-column: 1 / -1; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-rows dt { font-size: .7em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-rows dd { font-size: .98em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-stub {
    grid-area: stub; flex-direction: column; justify-content: center; gap: 0; min-width: 4.6em;
    padding: .8em 1em; border-top: 0; border-left: 2px dashed #e2cdbb;
  }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-stub::before { top: -.75em; left: -.85em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-stub::after { top: auto; bottom: -.75em; right: auto; left: -.85em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-date { align-items: center; text-align: center; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-date [data-t-day] { font-size: 2.3em; }
  .bkx:not([data-at="review"]):not(.is-sent) .bkx-t-status { display: none; }
}

/* Booking day pickers, OP-day aware (Nov 2026): days inside the three-day
   call-back window and days the chosen OP isn't open are shown but closed;
   the OP days line sits under the tiles / calendar. */
.bkx-day.is-off { opacity: .28; cursor: default; border-color: rgba(255, 255, 255, .08); background: transparent; }
.bkx-day.is-off .bkx-day-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.bkx-opdays { margin-top: .85rem; color: #f9c39a; font-weight: 600; }
.bkx-opdays[hidden] { display: none; }
.bk-cal-note { margin-top: .4rem; font-size: .8rem; font-weight: 600; color: var(--tmh-primary-ink); }
.bk-cal-note[hidden] { display: none; }

/* ── Navbar hidden (html.nav-hidden, tmh.js) ──────────────────────────────────
   Sticky parts that sit just under the navbar move up into the room it
   leaves, and glide back down when it returns. Full-screen pinned scenes
   (campus tour, card stacks, awards strip) start at the very top already,
   with the navbar floating over them, so they need nothing. */
.sc-tabs, .sc-table thead, .pu-h, .bx-recog, .drl-head, .dp-side, .psi-side, .dia-frame,
.cen-body, .cen-floor, .rw-well-side, .prv-aside { transition: top .4s var(--ease-out-soft); }
html.nav-hidden .sc-tabs, html.nav-hidden .sc-table thead { top: .5rem; }
html.nav-hidden .pu-h, html.nav-hidden .bx-recog { top: 1.5rem; }
@media (min-width: 768px) { html.nav-hidden .prv-aside { top: 1.5rem; } }
@media (min-width: 1024px) {
  html.nav-hidden :is(.drl-head, .psi-side) { top: 1.5rem; }
  html.nav-hidden :is(.dp-side, .dia-frame, .cen-body, .cen-floor, .rw-well-side) { top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-tabs, .sc-table thead, .pu-h, .bx-recog, .drl-head, .dp-side, .psi-side, .dia-frame,
  .cen-body, .cen-floor, .rw-well-side, .prv-aside { transition: none; }
}
