/* ==========================================================================
   Gayatri Super Speciality Hospital & Critical Care Centre, Latur
   Colours from the hospital badge: indigo ring, aqua, lung pink and the
   yellow dots. Marcellus headings, Mukta text. Light sections alternate with
   indigo bands joined by soft waves.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* The badge ring is #393c7f. The site uses the same hue with more
     saturation, so large indigo areas feel lively rather than grey. */
  --indigo: #35399e;
  --indigo-deep: #262a7a;
  --indigo-bright: #4247c2;
  --indigo-soft: #4d52c4;
  --ink: #1e2160;
  --ink-soft: #565a8a;
  --aqua: #5fd2d7;
  --aqua-soft: #d3f3f4;
  --teal: #0e7c82;
  --pink: #e8457d;
  --pink-ink: #c2185b;
  --pink-wash: #fdeef4;
  --yellow: #ffd84d;
  --mist: #f2f9f9;
  --white: #ffffff;
  --on-indigo: #ffffff;
  --on-indigo-soft: #d4d6f2;
  /* Full-screen indigo (intro, page curtain, menu): the badge's aqua and
     lung pink glow from opposite corners. */
  --indigo-energy:
    radial-gradient(50% 42% at 10% 6%, rgba(95, 210, 215, 0.32), transparent 70%),
    radial-gradient(46% 42% at 94% 96%, rgba(232, 69, 125, 0.28), transparent 70%),
    linear-gradient(155deg, var(--indigo-bright) 0%, var(--indigo) 50%, var(--indigo-deep) 100%);
  /* Bands and footer: softer glows kept away from the top and bottom edges,
     so the flat indigo waves still meet them seamlessly. */
  --indigo-band:
    radial-gradient(38% 30% at 92% 45%, rgba(95, 210, 215, 0.14), transparent 70%),
    radial-gradient(34% 28% at 5% 60%, rgba(232, 69, 125, 0.12), transparent 70%),
    var(--indigo);
  --line: rgba(30, 33, 96, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Mukta", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 12px 30px -18px rgba(30, 33, 96, 0.35);
  --shadow-md: 0 26px 60px -30px rgba(30, 33, 96, 0.45);
  --shadow-lg: 0 40px 80px -40px rgba(20, 22, 70, 0.6);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(84px, 9vw, 130px);
  --wave: clamp(50px, 7vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--mist); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
/* Marcellus comes in a single weight. A hairline stroke in the text colour
   gives every heading a slightly heavier, firmer line. */
h1, h2, h3, h4, .brand-name, .big-name, .big-sub, .menu-links a, .intro-name, .pacer-phase, .stat strong, .timeline-year, .faq summary { -webkit-text-stroke-width: 0.024em; }
.footer-links h2, .cv-subhead { -webkit-text-stroke-width: 0; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
p { text-wrap: pretty; }
::selection { background: var(--aqua); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible, .side-nav :focus-visible, .menu :focus-visible { outline-color: var(--aqua); }

.skip-link { position: fixed; left: 16px; top: 12px; z-index: 500; padding: 12px 20px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; transform: translateY(-180%); transition: transform 0.3s var(--ease); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
/* Rotating rings and drifting photos must never widen the page on a phone.
   clip (unlike hidden) keeps sticky headers working. */
main { overflow-x: clip; }
.sec { position: relative; z-index: 2; padding-block: var(--section); }
.band { position: relative; z-index: 1; padding-block: var(--section); background: var(--indigo-band); color: var(--on-indigo); }
.wave { position: absolute; left: 0; right: 0; height: var(--wave); color: var(--indigo); pointer-events: none; }
.wave svg { width: 100%; height: 100%; }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); }
.wave--mist { color: var(--mist); }

/* Section heads: heart, small caps label, two-tone title */
.head { display: grid; justify-items: center; gap: 14px; max-width: 780px; margin-inline: auto; text-align: center; }
.head--left { justify-items: start; margin-inline: 0; text-align: left; }
.head > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.12rem; max-width: 40em; }
.band .head > p:not(.eyebrow) { color: var(--on-indigo-soft); }
.eyebrow { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal); }
.eyebrow--inline { flex-direction: row; gap: 10px; }
.eyebrow .heart { width: 18px; height: 18px; color: var(--pink); }
.band .eyebrow { color: var(--aqua); }
.title { font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.3rem); color: var(--ink); }
.title .accent { display: block; color: var(--teal); }
.band .title, .site-footer .title { color: var(--white); }
.band .title .accent, .site-footer .title .accent { color: var(--aqua); }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.3vw, 1.25rem); color: var(--ink-soft); }
.band .lead, .band p:not(.eyebrow) { color: var(--on-indigo-soft); }
/* White cards sitting on an indigo band keep dark text. */
.band :is(.award, .cond, .faq details, .card-list li, .pub) p { color: var(--ink-soft); }

/* Decorative dot clusters, as in the badge */
.dots { position: absolute; width: 34px; height: 34px; background: radial-gradient(circle, var(--yellow) 3px, transparent 3.5px) 0 0 / 12px 12px; pointer-events: none; animation: bob 5s ease-in-out infinite; }
.dots--aqua { background-image: radial-gradient(circle, var(--aqua) 3px, transparent 3.5px); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 9px 0 26px; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.16); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -16px rgba(30, 33, 96, 0.6); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: transform 0.45s var(--ease); }
.btn-arrow .icon { width: 18px; height: 18px; }
.btn:hover .btn-arrow { transform: rotate(45deg); }
.btn--plain { padding: 0 26px; }
.btn--indigo { background: var(--indigo); color: var(--white); }
.btn--indigo:hover { background: var(--indigo-deep); }
.btn--aqua { background: var(--aqua); color: var(--ink); }
.btn--aqua .btn-arrow { background: rgba(30, 33, 96, 0.12); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white .btn-arrow { background: var(--aqua-soft); }
.btn--pink { background: var(--pink-ink); color: var(--white); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 18px 30px -16px rgba(30, 33, 96, 0.5); }
.btn .icon { width: 18px; height: 18px; }

/* Round arrow button used on cards */
.go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--indigo); color: var(--white); box-shadow: 0 12px 24px -12px rgba(30, 33, 96, 0.7); transition: transform 0.5s var(--ease), background-color 0.3s; }
.go .icon { width: 20px; height: 20px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); text-decoration: none; }
.link .icon { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.link:hover .icon { transform: translate(3px, -3px); }
.band .link, .site-footer .link { color: var(--aqua); }

/* 5. Top bar (compact header) & mobile menu ------------------------------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 170; height: 3px; background: linear-gradient(90deg, var(--aqua), var(--pink)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.topbar {
  position: fixed; left: 50%; top: 12px; z-index: 160;
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
  width: min(100% - 24px, 1280px); height: 72px; padding: 0 10px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  box-shadow: 0 20px 50px -28px rgba(30, 33, 96, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transform: translate(-50%, calc(-100% - 24px)); transition: transform 0.6s var(--ease);
}
.topbar.is-on, .menu-open .topbar { transform: translate(-50%, 0); }
.menu-open .topbar { background: transparent; box-shadow: none; color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; border-radius: 999px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.brand-sub { display: block; margin-top: 3px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.topnav { margin-inline: auto; }
.topnav ul { display: flex; gap: 2px; list-style: none; }
.topnav a { display: block; padding: 9px 15px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.topnav a:hover { background: var(--aqua-soft); }
.topnav a[aria-current="page"] { background: var(--indigo); color: var(--white); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.top-call .icon { color: var(--teal); }
.menu-open .top-call .icon { color: var(--aqua); }
.menu-toggle { position: relative; display: none; width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; background: var(--indigo); color: var(--white); }
.menu-open .menu-toggle { background: var(--white); color: var(--ink); }
.menu-toggle span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 24px; transform: rotate(-45deg); }

/* Full-screen panels (menu, intro, page curtain) move with transform only, so
   phones run them on the GPU even while the page is still loading. Their
   curved edges are part of each panel's shape, not a clip that has to be
   redrawn on every frame. */
.menu {
  --curve: clamp(60px, 14vw, 140px);
  position: fixed; top: 0; right: 0; left: 0; z-index: 150;
  height: calc(100% + var(--curve));
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 120px var(--gutter) calc(36px + var(--curve)); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
  background: var(--indigo-energy);
  color: var(--white);
  transform: translate3d(0, -100%, 0);
  visibility: hidden;
  transition: transform 0.65s var(--ease-in-out), visibility 0s linear 0.65s;
}
.menu-open .menu { transform: none; visibility: visible; transition: transform 0.8s var(--ease-in-out), visibility 0s; }
.menu-links { display: grid; gap: 4px; list-style: none; }
.menu-links a { display: inline-block; font-family: var(--font-display); font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1.15; text-decoration: none; opacity: 0; transform: translateY(30px); transition: opacity 0.4s, transform 0.6s var(--ease), color 0.3s; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--aqua); }
.menu-open .menu-links a { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), color 0.3s; transition-delay: calc(0.2s + var(--i, 0) * 0.06s); }
.menu-foot { display: grid; gap: 16px; color: var(--on-indigo-soft); }
.menu-foot .btn { justify-self: start; }

/* 6. Intro & page transitions --------------------------------------------- */
/* First visit to the home page (once per session): the badge pops onto a
   white plate, a comet of light circles it, a heartbeat line is revealed,
   the badge beats, the name rises, then the indigo lifts away with a curved
   edge like the waves below. Every moving part uses transform or opacity,
   so phones run it on the GPU, untouched by the page loading behind it.
   About 2.8 seconds in all. */
.intro { display: none; }
.is-intro .intro {
  --curve: clamp(70px, 16vw, 170px);
  position: fixed; top: 0; right: 0; left: 0; z-index: 400;
  height: calc(100% + var(--curve)); padding-bottom: var(--curve);
  display: grid; place-items: center;
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
  background: var(--indigo-energy); color: var(--white);
  will-change: transform;
  animation: intro-out 0.9s var(--ease-in-out) 1.9s forwards;
}
@keyframes intro-out { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }

.intro-stage { position: relative; display: grid; justify-items: center; text-align: center; will-change: transform, opacity; animation: stage-out 0.7s var(--ease-in-out) 1.82s forwards; }
@keyframes stage-out { to { opacity: 0; transform: translateY(-28px) scale(0.96); } }

/* The badge on a white plate, inside a faint ring with a comet of light. */
.intro-mark { position: relative; display: grid; place-items: center; width: clamp(128px, 32vw, 172px); aspect-ratio: 1; }
.intro-plate { position: absolute; inset: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1), 0 34px 70px -24px rgba(8, 10, 60, 0.7); animation: plate-in 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both, beat-once 0.55s ease-in-out 1s; }
.intro-mark img { position: relative; width: 84%; height: 84%; border-radius: 50%; animation: logo-in 0.9s var(--ease) 0.3s both, beat-once 0.55s ease-in-out 1s; }
.intro-ring, .intro-arc { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); max-width: none; overflow: visible; }
.intro-ring circle, .intro-arc circle { fill: none; stroke-linecap: round; }
.intro-ring circle { stroke: rgba(95, 210, 215, 0.38); stroke-width: 1.5; }
.intro-ring { animation: ring-in 0.9s var(--ease) 0.3s both; }
.intro-arc circle { stroke: var(--aqua); stroke-width: 2.6; stroke-dasharray: 24 76; }
.intro-arc--pink circle { stroke: var(--pink); stroke-width: 2.2; stroke-dasharray: 9 91; }
.intro-arc { animation: arc-sweep 1.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.35s both; }
.intro-arc--pink { animation-name: arc-sweep-back; animation-delay: 0.5s; }
/* The heartbeat: a pink halo leaves the badge as the pulse passes. */
.intro-halo { position: absolute; inset: 0; border: 2px solid var(--pink); border-radius: 50%; opacity: 0; animation: halo 1.1s var(--ease) 1s; }
.intro-dots { position: absolute; width: 34px; height: 34px; background: radial-gradient(circle, var(--yellow) 3px, transparent 3.5px) 0 0 / 12px 12px; animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both; }
.intro-dots--a { top: -10px; right: -34px; }
.intro-dots--b { bottom: -6px; left: -40px; animation-delay: 0.9s; }
@keyframes plate-in { from { opacity: 0; transform: scale(0.5); } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.7) rotate(-25deg); } }
@keyframes beat-once { 0%, 100% { scale: 1; } 30% { scale: 1.09; } 55% { scale: 0.98; } 75% { scale: 1.04; } }
@keyframes halo { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0); } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.82); } }
@keyframes arc-sweep { 0% { opacity: 0; transform: rotate(-150deg); } 18% { opacity: 1; } 100% { opacity: 1; transform: rotate(560deg); } }
@keyframes arc-sweep-back { 0% { opacity: 0; transform: rotate(120deg); } 20% { opacity: 1; } 100% { opacity: 1; transform: rotate(-420deg); } }

/* Heartbeat line under the badge, revealed left to right: the window slides
   right while the line inside slides left by the same amount, so the line
   stays put. Two transforms instead of redrawing the stroke. */
.intro-ecg { width: clamp(220px, 60vw, 330px); margin-top: clamp(10px, 2.4vh, 20px); padding: 6px 0; overflow: hidden; animation: wipe-window 1s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.6s both; }
.intro-ecg-in { animation: wipe-content 1s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.6s both; }
.intro-ecg svg { display: block; width: 100%; height: auto; }
.intro-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intro-ecg .glow { stroke: rgba(95, 210, 215, 0.28); stroke-width: 9; }
.intro-ecg .line { stroke: var(--aqua); stroke-width: 3; }
@keyframes wipe-window { from { transform: translateX(-100%); } }
@keyframes wipe-content { from { transform: translateX(100%); } }

.intro-name, .intro-text { overflow: hidden; }
.intro-name span, .intro-text span { display: block; animation: rise-in 0.9s var(--ease) both; }
.intro-name { margin-top: clamp(6px, 1.6vh, 14px); font-family: var(--font-display); font-size: clamp(2.7rem, 1.9rem + 3vw, 4.2rem); line-height: 1.12; }
.intro-name span { animation-delay: 0.95s; }
.intro-text { margin-top: 6px; font-size: clamp(0.76rem, 0.7rem + 0.3vw, 0.92rem); font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--aqua); }
.intro-text span { padding-left: 0.32em; animation-delay: 1.15s; }
@keyframes rise-in { from { transform: translateY(110%); } }

/* On the first visit the hero waits for the intro to lift before it plays. */
.has-intro .hero-bg img { animation-delay: 1.75s; }
.has-intro .side-nav { animation-delay: 2.05s; }
.has-intro .hero-util { animation-delay: 2.25s; }
.has-intro .hero-card { animation-delay: 2.1s; }
.has-intro .hero-circle { animation-delay: 2.75s; }

/* Page change: the curtain rises from below with a curved top edge, the next
   page loads behind it, and it lifts away with a curved bottom edge. */
.curtain {
  --curve: clamp(60px, 14vw, 140px);
  position: fixed; top: calc(-1 * var(--curve)); right: 0; left: 0; z-index: 390;
  height: calc(100% + 2 * var(--curve)); padding-block: var(--curve);
  display: grid; place-items: center;
  border-radius: 50% / var(--curve);
  background: var(--indigo-energy);
  transform: translate3d(0, 100%, 0);
  visibility: hidden; pointer-events: none;
}
.curtain img { width: 86px; height: 86px; border-radius: 50%; opacity: 0; transition: opacity 0.3s 0.25s; }
.is-leaving .curtain { transform: none; visibility: visible; transition: transform 0.55s var(--ease-in-out); }
.is-leaving .curtain img { opacity: 1; }
.is-arriving .curtain { visibility: visible; animation: curtain-out 0.8s var(--ease-in-out) 0.1s both; }
.is-arriving .curtain img { opacity: 1; transition: none; }
@keyframes curtain-out { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }

/* 7. Reveal helpers --------------------------------------------------------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sw > span { display: inline-block; }
.js:not(.no-motion) [data-split]:not(.is-split) { visibility: hidden; }
/* Headline words rise out of their masks one line after another (main.js
   sets --row on each word). A CSS transition, so the GPU runs it. */
.js:not(.no-motion) [data-split].is-split .sw > span { transform: translateY(115%); }
.js:not(.no-motion) [data-split].is-risen .sw > span { transform: none; transition: transform 1.2s var(--ease) calc(var(--row, 0) * 0.1s); }
.js:not(.no-motion) [data-reveal] { opacity: 0; transform: translateY(40px); }
.js:not(.no-motion) [data-reveal="left"] { transform: translateX(-50px); }
.js:not(.no-motion) [data-reveal="right"] { transform: translateX(50px); }
.js:not(.no-motion) [data-reveal="zoom"] { transform: scale(0.9); }
.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
@keyframes failsafe { to { visibility: visible; opacity: 1; transform: none; clip-path: none; } }
.js:not(.no-motion) [data-split]:not(.is-split) { animation: failsafe 0s linear 4s forwards; }

/* Cards rise with a slight scale. */
.js:not(.no-motion) [data-reveal="card"] { transform: translateY(64px) scale(0.94); }
.js:not(.no-motion) [data-reveal="card"].is-in { transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }

/* Wipe: an aqua panel slides off a photo while the photo settles. Transform only. */
.wipe { position: relative; overflow: hidden; }
.wipe::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--aqua); transform-origin: 50% 0%; transform: scaleY(0); pointer-events: none; }
.js:not(.no-motion) .wipe::after { transform: scaleY(1); }
.js:not(.no-motion) .wipe.is-in::after { transform: scaleY(0); transition: transform 1.3s var(--ease-in-out) var(--d, 0s); }

/* Photos that drift on scroll are drawn slightly larger so no edge shows,
   and zoom a little further on hover. */
.drift, .drift-main { scale: 1.16; translate: 0 var(--dy, 0%); }
.cap:hover .cap-img img.drift, .cond:hover .cond-img img.drift, .dir-card:hover .cap-img img.drift { scale: 1.26; }

/* The heart in each label beats softly: lub-dub, rest. */
.eyebrow .heart { transform-origin: 50% 60%; animation: beat 2.6s ease-in-out infinite; }
@keyframes beat { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.28); } 24% { transform: scale(0.98); } 36% { transform: scale(1.16); } }

/* 8. Home hero ------------------------------------------------------------- */
.hero { position: relative; z-index: 2; isolation: isolate; overflow: hidden; overflow: clip; min-height: max(min(100svh, 940px), 700px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; translate: 0 var(--hy, 0%); animation: hero-zoom 3s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.14); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 33, 96, 0.42) 0%, rgba(30, 33, 96, 0.1) 55%, rgba(30, 33, 96, 0.05) 100%), linear-gradient(180deg, rgba(30, 33, 96, 0.3) 0%, transparent 28%); }

.side-nav {
  position: absolute; top: 20px; left: clamp(14px, 3vw, 44px); z-index: 6;
  display: flex; flex-direction: column; gap: 4px; width: 214px; padding: 0 16px 22px;
  border-radius: 120px 120px 36px 36px; background: var(--indigo); color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: drop-in 1s var(--ease) 0.1s both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-40px); } }
.side-logo { display: grid; place-items: center; width: 182px; height: 182px; margin: 16px auto 14px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 7px var(--aqua-soft); }
.side-logo img { width: 150px; height: 150px; border-radius: 50%; }
.side-nav ul { display: grid; gap: 4px; list-style: none; }
.side-nav a:not(.btn) { display: block; padding: 9px 18px; border-radius: 999px; font-weight: 500; text-align: center; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.side-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.12); }
.side-nav a[aria-current="page"] { background: var(--aqua); color: var(--ink); font-weight: 600; }
.side-nav .btn { margin-top: 12px; padding: 0 22px; min-height: 48px; }

.hero-util { position: absolute; top: 26px; right: var(--gutter); z-index: 6; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; animation: drop-in 1s var(--ease) 0.3s both; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 0.98rem; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.pill:hover { transform: translateY(-2px); }
.pill .icon { width: 18px; height: 18px; color: var(--teal); }
.pill--pink { background: var(--pink-ink); color: var(--white); }
.pill--pink .icon { color: var(--white); }

.hero-inner { position: relative; z-index: 3; width: 100%; padding: 130px var(--gutter) calc(var(--wave) + 70px) calc(clamp(14px, 3vw, 44px) + 260px); }
.hero-card {
  position: relative; max-width: 600px; padding: 44px 48px 72px 56px;
  border-radius: 260px 40px 40px 200px / 220px 40px 40px 180px;
  background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-lg);
  animation: rise 1.1s var(--ease) 0.35s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(50px); } }
.hero-card .eyebrow { margin-bottom: 14px; }
.hero-title { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem); line-height: 1.08; color: var(--ink); }
.hero-title .accent { display: block; margin-top: 4px; font-size: 1.16em; color: var(--teal); white-space: nowrap; }
.hero-card > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }
.hero-circle {
  position: absolute; left: 46px; bottom: -56px;
  display: grid; place-items: center; width: 118px; height: 118px; padding: 14px; border-radius: 50%;
  background: var(--indigo); color: var(--white); text-align: center; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; line-height: 1.2; box-shadow: var(--shadow-md);
  animation: pop 0.8s var(--ease) 1s both; transition: transform 0.4s var(--ease), background-color 0.3s;
}
.hero-circle::after { content: ""; position: absolute; inset: -8px; border: 2px solid var(--aqua); border-radius: 50%; animation: ring 2.4s ease-out 1.8s infinite; }
.hero-circle:hover { transform: scale(1.06); background: var(--teal); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.35); } }
.hero-card .dots { left: -16px; bottom: -40px; }
.hero-card .dots--aqua { left: auto; right: 34px; top: 26px; bottom: auto; width: 22px; height: 22px; background-size: 11px 11px; }
.hero .wave { color: var(--mist); bottom: -1px; height: calc(var(--wave) + 10px); }

/* 9. Page hero (inner pages) ---------------------------------------------- */
.page-hero { position: relative; z-index: 2; isolation: isolate; overflow: hidden; overflow: clip; display: flex; align-items: center; min-height: 560px; padding: 150px 0 calc(var(--wave) + 90px); }
.page-hero .hero-bg img { object-position: center 35%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 33, 96, 0.55), rgba(30, 33, 96, 0.15) 70%); }
.page-card { position: relative; max-width: 620px; padding: 44px 46px 48px 54px; border-radius: 220px 36px 36px 160px / 180px 36px 36px 140px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-lg); animation: rise 1.1s var(--ease) 0.2s both; }
.page-card .eyebrow { margin-bottom: 12px; }
.page-card > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-soft); }
.page-card .dots { right: -14px; bottom: -30px; }
.crumbs { display: flex; gap: 10px; margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a { color: var(--teal); font-weight: 600; text-decoration: none; }
.page-hero .wave { color: var(--mist); bottom: -1px; }
.page-hero--indigo { background: radial-gradient(60% 70% at 100% 0%, rgba(95, 210, 215, 0.22), transparent 70%), var(--indigo); }
.page-hero--indigo::before { display: none; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.portrait-circle { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.portrait-circle .ring { position: absolute; inset: -16px; border: 2px dashed rgba(95, 210, 215, 0.6); border-radius: 50%; animation: spin 40s linear infinite; }
.portrait-circle .photo { position: relative; width: 100%; height: 100%; overflow: hidden; border: 10px solid var(--white); border-radius: 50%; box-shadow: var(--shadow-lg); animation: pop 1s var(--ease) 0.3s both; }
.portrait-circle .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.portrait-circle .chip { position: absolute; display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-md); animation: bob 6s ease-in-out infinite; }
.portrait-circle .chip strong { font-size: 0.98rem; }
.portrait-circle .chip span { font-size: 0.85rem; color: var(--ink-soft); }
.portrait-circle .chip--a { top: 8%; left: -12%; }
.portrait-circle .chip--b { bottom: 10%; right: -10%; animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 10. Capsule speciality cards -------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin-top: clamp(44px, 5vw, 64px); }
.cap {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
  padding: 32px 12px 12px; border: 1px solid var(--line); border-radius: 44px 44px 200px 200px;
  background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cap::before { content: ""; position: absolute; top: 24px; right: 26px; width: 21px; height: 21px; background: radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 0 / 10.5px 10.5px; }
.cap:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.cap-text { padding: 0 18px; }
.cap h3 { font-size: 1.35rem; line-height: 1.05; }
.cap h3 .accent { display: block; font-size: 1.45em; color: var(--teal); }
.cap p { margin-top: 10px; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.cap-media { position: relative; margin-top: auto; padding-top: 16px; }
.cap-img { overflow: hidden; aspect-ratio: 1; border: 6px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.cap-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.cap:hover .cap-img img { scale: 1.1; }
.cap .go { position: absolute; top: 20px; right: 10%; }
.cap:hover .go { transform: rotate(45deg); background: var(--teal); }
.cap--dark { border-color: transparent; background: var(--indigo); color: var(--white); }
.cap--dark h3 .accent { color: var(--aqua); }
.cap--dark p { color: var(--on-indigo-soft); }
.cap--dark .cap-img { border-color: var(--indigo); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.cap--dark .go { background: var(--aqua); color: var(--ink); }

/* 11. Indigo intro band ---------------------------------------------------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.big-name { display: block; margin-top: 16px; font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 5vw, 6.2rem); line-height: 0.95; color: var(--white); }
.big-sub { display: block; margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.15; color: var(--aqua); }
.intro-copy p:not(.eyebrow) { margin-top: 18px; }
.footer-contact .eyebrow { color: var(--aqua); }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; list-style: none; }
.stat { min-width: 150px; padding: 16px 22px; border: 1px solid var(--line-light); border-radius: 24px; background: rgba(255, 255, 255, 0.07); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--aqua); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--on-indigo-soft); }
.band-photo { position: relative; overflow: hidden; aspect-ratio: 5 / 4.4; border-radius: 170px 30px 30px 30px; box-shadow: var(--shadow-lg); }
.band-photo img { width: 100%; height: 100%; object-fit: cover; }
.band-photo-wrap { position: relative; }
.band-photo-wrap .dots { left: -18px; bottom: -18px; }
.band-badge { position: absolute; right: -14px; bottom: 34px; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-md); animation: bob 6s ease-in-out infinite; }
.band-badge .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--pink-wash); color: var(--pink-ink); }
.band-badge strong { display: block; font-size: 1rem; line-height: 1.2; }
.band-badge span { display: block; font-size: 0.85rem; color: var(--ink-soft); }

/* 12. Director card & mission --------------------------------------------- */
.dir-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.dir-card {
  position: relative; display: grid; justify-items: center; gap: 8px;
  margin-top: calc(-1 * clamp(150px, 16vw, 250px)); padding: 36px 14px 14px;
  border-radius: 48px 48px 240px 240px; background: var(--white); text-align: center; box-shadow: var(--shadow-lg);
  text-decoration: none; color: var(--ink);
}
.dir-card::before { content: ""; position: absolute; top: 24px; left: 26px; width: 21px; height: 21px; background: radial-gradient(circle, var(--aqua) 2.5px, transparent 3px) 0 0 / 10.5px 10.5px; }
.dir-card::after { content: ""; position: absolute; top: 24px; right: 26px; width: 21px; height: 21px; background: radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 0 / 10.5px 10.5px; }
.dir-card h3 { font-size: 1.5rem; line-height: 1.05; }
.dir-card h3 .accent { display: block; font-size: 1.5em; color: var(--teal); }
.dir-card p { max-width: 22em; padding: 0 18px; font-size: 0.98rem; color: var(--ink-soft); }
.dir-media { position: relative; display: block; width: 100%; margin-top: 12px; }
.dir-media .cap-img { border-width: 8px; }
.dir-media .go { position: absolute; top: 4%; right: 12%; }
.dir-card:hover .go { transform: rotate(45deg); background: var(--teal); }
.dir-card:hover .cap-img img { scale: 1.06; }
.mission .lead { margin-top: 20px; }
.ticks { display: grid; gap: 12px; margin-top: 26px; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal); stroke-width: 2.6; }
.mission .btn { margin-top: 32px; }

/* 13. Facilities showcase (indigo): a photo stage beside an accordion ----- */
.fac-show { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; margin-top: clamp(44px, 5vw, 64px); }
.fac-stage { position: relative; }
.fac-stage .dots { left: -18px; bottom: -18px; }
.fac-frame { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 6 / 5; border-radius: 40px clamp(70px, 15vw, 220px) 40px 40px; background: var(--indigo-deep); box-shadow: var(--shadow-lg); }
/* Photos cross-fade and settle from a slight zoom. Transform and opacity only. */
.fac-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.1; transition: opacity 1s var(--ease), scale 1.8s var(--ease); }
.fac-frame img.is-active { opacity: 1; scale: 1; }

/* Pause button, with a ring that fills until the next photo. */
.fac-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease); }
.fac-toggle[hidden] { display: none; }
.fac-toggle:hover { transform: scale(1.07); }
.fac-toggle > svg { grid-area: 1 / 1; }
.fac-toggle .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.fac-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.fac-ring circle { fill: none; stroke-width: 3; }
.fac-ring-track { stroke: var(--aqua-soft); }
.fac-ring-bar { stroke: var(--teal); stroke-dasharray: 1; stroke-dashoffset: 1; }
.fac-play, .fac-show.is-paused .fac-pause { display: none; }
.fac-show.is-paused .fac-play { display: block; }
.fac-show.is-timing .fac-ring-bar { animation: fac-time 6.5s linear forwards; }
.fac-show:not(.is-visible) .fac-ring-bar, .fac-show.is-paused .fac-ring-bar, .fac-show.is-held .fac-ring-bar { animation-play-state: paused; }
@keyframes fac-time { to { stroke-dashoffset: 0; } }

/* The list: the open facility becomes a white card. */
.fac-list { display: grid; align-content: start; gap: 12px; list-style: none; }
.fac-item { border: 1px solid var(--line-light); border-radius: 28px; background: rgba(255, 255, 255, 0.05); color: var(--white); transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.4s; }
.fac-item:not(.is-active):hover { background: rgba(255, 255, 255, 0.1); }
.fac-item.is-active { border-color: transparent; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
.fac-item h3 { font-size: clamp(1.2rem, 1.02rem + 0.55vw, 1.5rem); }
.fac-tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; padding: 14px; border: 0; border-radius: 27px; background: none; color: inherit; text-align: left; line-height: 1.2; }
.fac-tab:focus-visible { outline-offset: -4px; }
.fac-item.is-active .fac-tab:focus-visible { outline-color: var(--teal); }
.fac-item.is-active .fac-tab { cursor: default; }
.fac-tab-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--aqua); transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.fac-tab-icon .icon { width: 22px; height: 22px; }
.fac-item.is-active .fac-tab-icon { background: var(--aqua); color: var(--ink); }
.fac-tab-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line-light); border-radius: 50%; transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s, color 0.4s; }
.fac-tab-mark .icon { width: 18px; height: 18px; }
.fac-item:not(.is-active) .fac-tab:hover .fac-tab-mark { transform: rotate(-45deg); border-color: var(--aqua); background: var(--aqua); color: var(--ink); }
.fac-item.is-active .fac-tab-mark { transform: rotate(90deg); border-color: var(--indigo); background: var(--indigo); color: var(--white); }
/* Panels open by animating the grid row from 0fr to 1fr. Without JavaScript
   every panel stays open. */
.fac-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease); }
.fac-panel > div { min-height: 0; overflow: hidden; }
.fac-panel p { padding: 0 24px 22px 82px; font-size: 1.02rem; line-height: 1.6; transition: color 0.4s; }
.band .fac-item.is-active .fac-panel p { color: var(--ink-soft); }
.js .fac-item:not(.is-active) .fac-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.6s var(--ease), visibility 0s linear 0.6s; }

/* 14. Recognition --------------------------------------------------------- */
.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(44px, 5vw, 64px); list-style: none; }
.award { position: relative; padding: 34px 24px 30px; border: 1px solid var(--line); border-radius: 32px; background: var(--white); text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.award:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.award-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; background: var(--pink-wash); color: var(--pink-ink); transition: transform 0.6s var(--ease); }
.award:nth-child(even) .award-icon { background: var(--aqua-soft); color: var(--teal); }
.award:hover .award-icon { transform: rotateY(180deg); }
.award-icon .icon { width: 32px; height: 32px; }
.award-year { display: inline-block; margin-bottom: 10px; padding: 3px 14px; border-radius: 999px; background: var(--indigo); color: var(--white); font-size: 0.82rem; font-weight: 600; }
.award h3 { font-size: 1.3rem; line-height: 1.2; }
.award p { margin-top: 8px; font-size: 0.97rem; line-height: 1.5; color: var(--ink-soft); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; list-style: none; }
.roles li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.roles .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal); }
.roles strong { display: block; font-weight: 600; line-height: 1.3; }
.roles span { display: block; font-size: 0.93rem; color: var(--ink-soft); }

/* 15. Breathe with us (indigo) + lungs ------------------------------------- */
.breathe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.steps { display: grid; margin-top: 26px; list-style: none; counter-reset: step; border-top: 1px solid var(--line-light); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-light); color: var(--on-indigo-soft); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--aqua); color: var(--ink); font-weight: 700; }
.breathe-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.breathe-note { margin-top: 16px; font-size: 0.95rem; color: var(--on-indigo-soft); }
.pacer { position: relative; display: grid; justify-items: center; gap: 16px; }
.pacer-stage { position: relative; width: min(100%, 500px); aspect-ratio: 600 / 640; }
.pacer-ring { position: absolute; inset: 6% 2% 0; border: 2px dashed rgba(95, 210, 215, 0.35); border-radius: 50%; animation: spin 60s linear infinite; }
.pacer .lungs-breath { animation: idle-breathe 4.6s var(--ease-in-out) infinite; }
.pacer.is-running .lungs-breath { animation: none; }
.pacer.is-in .lungs-breath { transform: scale(1.07); transition: transform 2s cubic-bezier(0.3, 0.7, 0.4, 1); }
.pacer.is-out .lungs-breath { transform: scale(0.95); transition: transform 4s var(--ease-in-out); }
.pacer.is-in .lungs-glow { opacity: 1; transform: scale(1.1); transition: transform 2s, opacity 2s; }
.pacer.is-out .lungs-glow { opacity: 0.55; transform: scale(0.92); transition: transform 4s, opacity 4s; }
@keyframes idle-breathe { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.035); } }
.pacer-label { display: grid; justify-items: center; text-align: center; }
.pacer-phase { font-family: var(--font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); color: var(--aqua); }
.pacer-count { font-size: 1rem; color: var(--on-indigo-soft); font-variant-numeric: tabular-nums; }
.lungs-glow { position: absolute; inset: 14% 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 210, 215, 0.45), rgba(95, 210, 215, 0.1) 55%, transparent); filter: blur(26px); opacity: 0.75; transform: scale(0.96); }
.lungs-breath { position: absolute; inset: 0; transform-origin: 50% 38%; will-change: transform; }
.lungs-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }

/* 16. Appointment form ---------------------------------------------------- */
.form-wrap { max-width: 1000px; margin: clamp(40px, 5vw, 56px) auto 0; padding: clamp(24px, 4vw, 48px); border-radius: 40px; background: var(--white); box-shadow: var(--shadow-md); position: relative; }
.form-wrap .dots { right: -14px; top: -14px; }
.booking-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { padding: 0 0 0 6px; font-size: 0.98rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.input { width: 100%; min-height: 56px; padding: 14px 22px; border: 1.5px solid rgba(30, 33, 96, 0.14); border-radius: 999px; background: var(--mist); -webkit-appearance: none; appearance: none; transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s; }
textarea.input { min-height: 116px; border-radius: 28px; resize: vertical; }
select.input { padding-right: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 20px; }
.input:hover { border-color: rgba(30, 33, 96, 0.32); }
.input:focus { outline: none; border-color: var(--teal); background-color: var(--white); box-shadow: 0 0 0 4px rgba(95, 210, 215, 0.35); }
.input[aria-invalid="true"] { border-color: var(--pink-ink); background-color: #fff6f9; }
.field-hint { padding-left: 6px; font-size: 0.93rem; color: var(--ink-soft); }
.field-error { padding-left: 6px; font-size: 0.93rem; font-weight: 600; color: var(--pink-ink); }
.field-error:empty { display: none; }
.choice-group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid rgba(30, 33, 96, 0.14); border-radius: 999px; background: var(--mist); font-weight: 500; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.choice:hover span { border-color: rgba(30, 33, 96, 0.35); }
.choice input:checked + span { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.consent { display: flex; gap: 12px; align-items: flex-start; max-width: 34em; font-size: 0.98rem; color: var(--ink-soft); }
.consent input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--indigo); }
.form-note { font-size: 0.93rem; color: var(--ink-soft); }
.form-status { font-weight: 600; color: var(--teal); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--pink-ink); }
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 24px auto 0; list-style: none; }
.contact-strip li { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-sm); }
.contact-strip .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal); }
.contact-strip li:nth-child(2) .icon { background: var(--pink-wash); color: var(--pink-ink); }
.info-label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.info-value { display: block; font-weight: 600; text-decoration: none; line-height: 1.35; }
a.info-value:hover { color: var(--teal); }
.urgent-note { display: flex; gap: 12px; align-items: baseline; max-width: 1000px; margin: 18px auto 0; padding: 14px 20px; border-radius: 18px; background: var(--pink-wash); color: var(--ink); font-size: 1rem; }
.urgent-note::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(232, 69, 125, 0.2); animation: ping 2s ease-in-out infinite; transform: translateY(-1px); }
@keyframes ping { 50% { transform: translateY(-1px) scale(1.3); } }

/* 17. Footer --------------------------------------------------------------- */
.site-footer { position: relative; z-index: 1; margin-top: var(--wave); padding-top: clamp(60px, 7vw, 90px); background: var(--indigo-band); color: var(--on-indigo); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 40px clamp(28px, 4vw, 60px); align-items: start; }
.footer-contact p { margin-top: 14px; color: var(--on-indigo-soft); max-width: 26em; }
.footer-list { display: grid; gap: 12px; margin-top: 22px; list-style: none; }
.footer-list li { display: flex; gap: 12px; align-items: flex-start; }
.footer-list .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--aqua); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--aqua); }
.footer-list small { display: block; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-indigo-soft); }
.footer-links { padding-top: 10px; }
.footer-links h2 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--aqua); }
.footer-links ul { columns: 2; column-gap: 28px; margin-top: 18px; list-style: none; }
.footer-links li { break-inside: avoid; padding: 6px 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-indigo-soft); text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.footer-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }
.footer-links a:hover { color: var(--white); }
.map-circle { position: relative; z-index: 3; justify-self: end; width: clamp(250px, 26vw, 340px); aspect-ratio: 1; margin-top: calc(-1 * clamp(150px, 15vw, 230px)); overflow: hidden; border: 10px solid var(--white); border-radius: 50%; background: var(--mist); box-shadow: var(--shadow-lg); }
.map-circle iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 48px; padding-block: 24px 30px; border-top: 1px solid var(--line-light); font-size: 0.93rem; color: var(--on-indigo-soft); }
.footer-bottom strong { color: var(--white); font-weight: 600; }
.credit { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.credit a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px 0 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 600; text-decoration: none; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
/* White on hover keeps the blue Boostimize mark clearly visible. */
.credit a:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }
.credit img { width: 26px; height: 20px; transition: transform 0.5s var(--ease); }
.credit a:hover img { transform: translate(2px, -2px); }

/* Floating helpers */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--indigo); color: var(--white); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease), background-color 0.3s; }
.to-top:hover { background: var(--teal); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
.to-top-ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.to-top-ring circle { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }

/* 18. Inner page components ----------------------------------------------- */
.conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); margin-top: clamp(40px, 5vw, 56px); }
.cond { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: 36px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.cond:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cond-img { overflow: hidden; aspect-ratio: 1; border: 5px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--aqua); }
.cond-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.cond:hover .cond-img img { scale: 1.1; }
.cond h3 { font-size: 1.45rem; }
.cond dl { display: grid; gap: 10px; margin-top: 12px; }
.cond dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.cond dd { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

.urgent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px clamp(30px, 5vw, 70px); padding: clamp(30px, 5vw, 60px); border-radius: 44px; background: var(--white); border: 2px solid rgba(194, 24, 91, 0.18); box-shadow: var(--shadow-md); }
.urgent .eyebrow { color: var(--pink-ink); }
.urgent-head p { margin-top: 14px; color: var(--ink-soft); }
.urgent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.urgent-list { list-style: none; }
.urgent-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(194, 24, 91, 0.16); font-weight: 500; }
.urgent-list li:first-child { border-top: 1px solid rgba(194, 24, 91, 0.16); }
.urgent-list li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); transform: translateY(-2px); }

.cta { text-align: center; }
.cta .title { max-width: 16em; margin-inline: auto; }
.cta p { max-width: 34em; margin: 16px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.cv-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cv-row + .cv-row { margin-top: clamp(64px, 8vw, 100px); }
.cv-row > header { position: sticky; top: 110px; }
.cv-row > header p { margin-top: 14px; color: var(--ink-soft); }
.band .cv-row > header p { color: var(--on-indigo-soft); }
.cv-lead { font-size: 1.22rem; line-height: 1.7; }
.cv-lead + .cv-lead { margin-top: 14px; }
.timeline { position: relative; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; z-index: 0; left: 21px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { background: linear-gradient(var(--aqua), var(--teal)); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 0 0 30px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; z-index: 1; left: 11px; top: 6px; width: 24px; height: 24px; border: 5px solid var(--aqua); border-radius: 50%; background: var(--white); }
.timeline-year { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--teal); }
.timeline h3 { font-size: 1.4rem; }
.timeline p { margin-top: 2px; color: var(--ink-soft); }
.cv-subhead { margin-top: 36px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); }
.band .cv-subhead { color: var(--aqua); }
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; list-style: none; }
.card-list--one { grid-template-columns: minmax(0, 1fr); }
.card-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; line-height: 1.45; }
.card-list .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--aqua-soft); color: var(--teal); stroke-width: 2.4; }
.card-list small { display: block; margin-top: 2px; font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); }
.pub-list { display: grid; gap: 12px; list-style: none; counter-reset: pub; }
.pub { counter-increment: pub; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 22px; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.pub::before { content: counter(pub, decimal-leading-zero); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--indigo); color: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.pub h3 { font-size: 1.15rem; line-height: 1.35; }
.pub p { margin-top: 4px; font-size: 0.95rem; color: var(--ink-soft); }
.role-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.role-table th, .role-table td { padding: 15px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.role-table tr:last-child th, .role-table tr:last-child td { border-bottom: 0; }
.role-table th { width: 42%; font-weight: 600; }
.role-table td { color: var(--ink-soft); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px 20px 26px; list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--aqua); color: var(--ink); font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; line-height: 1; transition: transform 0.45s var(--ease), background-color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--pink); color: var(--white); }
.faq-body { padding: 0 26px 24px; color: var(--ink-soft); }
.faq-body p + p { margin-top: 10px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.map-big { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; overflow: hidden; border: 12px solid var(--white); border-radius: 50%; box-shadow: var(--shadow-lg); }
.map-big iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 19. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .topnav { display: none; }
  .menu-toggle { display: block; }
  .top-call-text { display: none; }
  .top-call { width: 50px; padding: 0; justify-content: center; background: var(--aqua-soft); }
  .side-nav { display: none; }
  .hero-inner { padding-left: var(--gutter); padding-top: 140px; }
  .caps, .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .intro-grid, .dir-grid, .breathe-grid, .faq-grid, .find-grid, .profile-grid, .cv-row, .urgent, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .dir-card { margin-top: 0; max-width: 420px; justify-self: center; width: 100%; }
  .band-photo-wrap { max-width: 600px; }
  .conds { grid-template-columns: minmax(0, 1fr); }
  .fac-show { grid-template-columns: minmax(0, 1fr); }
  .fac-frame { aspect-ratio: 4 / 3; }
  .cv-row > header { position: static; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip { grid-template-columns: minmax(0, 1fr); }
  .map-circle { justify-self: start; margin-top: 0; }
  .portrait-circle { width: min(80%, 360px); margin-top: 20px; }
  .hero-util { display: none; }

  /* Home hero: the photo sits in a rounded frame under the top bar, so the
     doctor and the patient both stay in view, and the card overlaps its foot.
     The photo drifts inside the frame on scroll (--hy, set by main.js). */
  .hero { --frame-top: 96px; --frame-h: min(72vw, 540px); display: block; min-height: 0; }
  .hero .hero-bg { top: var(--frame-top); right: 12px; bottom: auto; left: 12px; height: var(--frame-h); isolation: isolate; border-radius: 32px; box-shadow: var(--shadow-md); }
  .hero .hero-bg img { object-position: 50% 30%; scale: 1.08; }
  .hero::before, .hero .wave { display: none; }
  .hero-inner { padding: calc(var(--frame-top) + var(--frame-h) - 80px) var(--gutter) 96px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .topbar { height: 64px; top: 8px; width: calc(100% - 16px); }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.03em; }
  .top-book { display: none; }
  .hero { --frame-top: 82px; --frame-h: min(76vw, 400px); }
  .hero .hero-bg { right: 10px; left: 10px; border-radius: 28px; }
  .hero-inner { padding: calc(var(--frame-top) + var(--frame-h) - 70px) var(--gutter) 76px; }
  .hero-card { padding: 30px 22px 72px 26px; border-radius: 72px 26px 26px 26px / 60px 26px 26px 26px; }
  /* Each line of the headline is sized to fit the card on any phone. */
  .hero-title { font-size: min(2.2rem, calc((100vw - 104px) / 8.4)); }
  .hero-title .accent { font-size: 1.12em; }
  .hero-circle { width: 104px; height: 104px; left: 26px; bottom: -48px; font-size: 0.8rem; }
  .page-hero { min-height: auto; padding-top: 110px; }
  .page-card { padding: 32px 26px 34px; border-radius: 110px 26px 26px 26px / 90px 26px 26px 26px; }
  .caps, .awards, .roles, .card-list, .form-grid, .form-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .cap { max-width: 360px; width: 100%; justify-self: center; }
  .fac-frame { border-radius: 28px 72px 28px 28px; }
  .fac-toggle { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .fac-list { gap: 10px; }
  .fac-item { border-radius: 24px; }
  .fac-tab { gap: 12px; padding: 10px; border-radius: 23px; }
  .fac-tab-icon { width: 44px; height: 44px; }
  .fac-tab-icon .icon { width: 20px; height: 20px; }
  .fac-tab-mark { width: 36px; height: 36px; }
  .fac-panel p { padding: 0 18px 18px 66px; font-size: 1rem; }
  .cond { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .cond-img { width: 130px; }
  .band-badge { right: 8px; }
  .portrait-circle .chip--a { left: -4%; }
  .portrait-circle .chip--b { right: -4%; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .role-table th, .role-table td { display: block; width: auto; }
  .role-table th { padding-bottom: 2px; border-bottom: 0; }
  .role-table td { padding-top: 0; }
  .footer-links ul { columns: 1; }
  .map-circle { width: min(100%, 300px); justify-self: center; }
  .to-top { display: none; }
}

/* Small phones: the strapline breaks onto two lines, so the call and menu
   buttons keep their place inside the top bar. */
@media (max-width: 420px) {
  .brand-sub { max-width: 6.6rem; line-height: 1.2; }
}

/* Phones and touch screens: an opaque top bar instead of a live blur, which
   would have to be recalculated on every scroll frame. */
@media (max-width: 960px), (hover: none) {
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
  /* The glow is already a soft gradient; skipping the blur filter saves the
     GPU a full-size blur on every frame of the breathing exercise. */
  .lungs-glow { filter: none; }
}

/* Decorative loops pause while their section is off screen (main.js marks
   such sections .is-idle), so phones animate only what is visible. */
.is-idle :is(.dots, .heart, .band-badge, .chip, .ring, .pacer-ring, .lungs-breath),
.is-idle .hero-circle::after, .is-idle .urgent-note::before { animation-play-state: paused; }

/* 20. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .is-intro .intro { display: none; }
  .js [data-split], .js [data-reveal] { visibility: visible; opacity: 1; transform: none; }
  .js .wipe::after { transform: scaleY(0); }
  .drift, .drift-main { scale: 1; }
}

/* Lenis (library-recommended rules) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
