/* ==========================================================================
   Siva Sakthi Vascular & Rheumatology Center
   Design system. Palette sampled from the clinic logo:
   cyan #41ACDC, orange #E36629, blue #4A6DAD.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  --navy-900: #061529;
  --navy-800: #0b2545;
  --navy-700: #123258;
  --navy-600: #17406f;

  --blue-700: #17427f;
  --blue-600: #1f4e9c;
  --blue-500: #2c63be;
  --blue-100: #e8effb;

  --cyan-600: #2b93c4;
  --cyan-500: #41acdc;
  --cyan-400: #6cc2e7;
  --cyan-100: #e4f3fb;

  --orange-700: #b8491a;  /* accent text on white, AA at small sizes */
  --orange-600: #c8501b;  /* filled buttons, white text 4.5:1        */
  --orange-500: #e36629;  /* decorative / large display              */
  --orange-100: #fdeee6;

  --ink: #0e1b2a;
  --body: #47576b;
  --muted: #5f6e81;
  --line: #e3e9f1;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef5fb;

  --ok: #1a7f5a;
  --warn: #a8560d;
  --danger: #b3261e;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 12px rgba(11, 37, 69, .05);
  --sh-2: 0 2px 6px rgba(11, 37, 69, .07), 0 16px 36px rgba(11, 37, 69, .09);
  --sh-3: 0 30px 70px rgba(11, 37, 69, .16);

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(3.75rem, 8vw, 7rem);
  --header-h: 112px;

  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.06rem; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--orange-700); }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- layout ------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { width: min(800px, 100%); }
.section { padding-block: var(--sec-y); }
.section--soft { background: var(--bg-soft); }
.section--tint {
  background: linear-gradient(170deg, var(--bg-tint), #fff 70%);
}
.section--dark { background: var(--navy-800); color: #c3d5e8; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: clamp(1.15rem, 2.4vw, 1.9rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* --- section heads ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-700);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--cyan-500));
}
.section--dark .eyebrow { color: var(--cyan-400); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-center .eyebrow { justify-content: center; }
.sec-head p { font-size: 1.08rem; margin-bottom: 0; }
.section--dark .sec-head p { color: #a9c2da; }

.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--body); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--orange-600);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; padding: .92rem 1.6rem; border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              background-color .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 6px 18px rgba(200, 80, 27, .28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 80, 27, .34); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  color: var(--navy-800); box-shadow: inset 0 0 0 1.5px var(--blue-600);
  background: var(--blue-100);
}
.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, .07); --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn--blue { --btn-bg: var(--blue-600); box-shadow: 0 6px 18px rgba(31, 78, 156, .28); }
.btn--blue:hover { box-shadow: 0 12px 28px rgba(31, 78, 156, .34); }
.btn--sm { padding: .68rem 1.15rem; font-size: .92rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  color: var(--blue-600);
}
.link-arrow svg { transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
  margin-right: auto; flex-shrink: 0;
}
.brand img { width: 74px; height: 74px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 4px; line-height: 1.02; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.02em; color: var(--ink);
}
.brand__sub {
  font-size: .715rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: .1rem; }
.nav > a, .has-drop__link {
  display: block; padding: .6rem .66rem; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav > a:hover, .has-drop__link:hover { color: var(--blue-600); background: var(--blue-100); }
.nav > a[aria-current="page"],
.has-drop__link[aria-current="page"] { color: var(--blue-600); font-weight: 600; }

.has-drop { position: relative; display: flex; align-items: center; }
.has-drop__link { padding-right: .4rem !important; }
.has-drop__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; margin-left: -.3rem;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
  color: var(--ink);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.has-drop__label {
  display: flex; align-items: center; gap: .34rem;
  padding: .6rem .66rem; border: 0; border-radius: var(--r-sm);
  background: none; cursor: pointer; color: var(--ink);
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.has-drop > button:hover { color: var(--blue-600); background: var(--blue-100); }
.has-drop__label.is-active { color: var(--blue-600); font-weight: 600; }
.has-drop:hover > .has-drop__link { color: var(--blue-600); background: var(--blue-100); }
.has-drop > button svg { transition: transform .25s var(--ease); }
.has-drop[data-open="true"] > button svg { transform: rotate(180deg); }

.drop {
  position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0;
  width: min(680px, 88vw); padding: 1.15rem; border-radius: var(--r-lg);
  max-height: calc(100svh - var(--header-h) - 2rem); overflow-y: auto;
  background: #fff; box-shadow: var(--sh-3); border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease-out), visibility .24s;
}
.has-drop[data-open="true"] .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop__head {
  grid-column: 1 / -1; display: flex; gap: .6rem; align-items: baseline;
  font-family: var(--font-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 0 .6rem .4rem;
}
.drop--simple {
  width: 210px; grid-template-columns: 1fr; gap: 0; padding: .55rem;
}
.drop--simple a {
  display: block; padding: .58rem .7rem; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: .95rem; font-weight: 500;
  color: var(--body); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.drop--simple a:hover { color: var(--blue-600); background: var(--blue-100); }
.drop--simple a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }

.drop__col { display: flex; flex-direction: column; }
.drop__title {
  display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; border-radius: var(--r-sm);
}
.drop__title:hover { background: var(--blue-100); color: var(--blue-600); }
.drop__title .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.drop a { text-decoration: none; }
.drop__col a:not(.drop__title) {
  display: block; padding: .38rem .6rem; border-radius: var(--r-sm);
  font-size: .885rem; font-weight: 400; color: var(--body);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.drop__col a:not(.drop__title):hover { color: var(--blue-600); background: var(--blue-100); }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-cta .btn--sm { padding: .82rem 1.2rem; font-size: 1rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm);
  background: var(--blue-100); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink);
  position: relative; transition: background-color .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* transparent over the hero, solid once scrolled or on inner pages */
.site-header[data-mode="over"] { background: transparent; }
.site-header[data-mode="over"] .brand__name { color: #fff; }
.site-header[data-mode="over"] .brand__sub { color: rgba(255, 255, 255, .68); }
/* Only the TOP-LEVEL items go light over the hero. The dropdown panel is a white
   surface, so it must keep its dark text — scoping to `.nav > a` is what stops the
   light-on-light bug. */
.site-header[data-mode="over"] .nav > a,
.site-header[data-mode="over"] .has-drop__link,
.site-header[data-mode="over"] .has-drop > button { color: rgba(255, 255, 255, .9); }
.site-header[data-mode="over"] .nav > a:hover,
.site-header[data-mode="over"] .has-drop__link:hover,
.site-header[data-mode="over"] .has-drop:hover > .has-drop__link,
.site-header[data-mode="over"] .has-drop > button:hover {
  color: #fff; background: rgba(255, 255, 255, .12);
}
.site-header[data-mode="over"] .nav > a[aria-current="page"],
.site-header[data-mode="over"] .has-drop__link[aria-current="page"],
.site-header[data-mode="over"] .has-drop__label.is-active { color: #fff; font-weight: 600; }
.site-header[data-mode="over"] .btn--ghost {
  --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34);
}
.site-header[data-mode="over"] .btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header[data-mode="over"] .nav-toggle { background: rgba(255, 255, 255, .14); }
.site-header[data-mode="over"] .nav-toggle span,
.site-header[data-mode="over"] .nav-toggle span::before,
.site-header[data-mode="over"] .nav-toggle span::after { background: #fff; }

.site-header[data-mode="solid"] {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(11, 37, 69, .06);
}

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-800);
  min-height: 100vh;          /* fallback */
  min-height: min(100svh, 56rem);  /* one screen, but capped so tall displays
                                      don't leave a huge gap under the header */
  /* The content is offset a fixed distance below the header rather than being
     vertically centred. Centring split the leftover height evenly, which is what
     pushed the hero 200px down the page on a tall display; anchoring keeps the
     gap under the header the same on every screen and lets the slack fall to the
     bottom, where the stats card overlaps it anyway. */
  padding-top: calc(var(--header-h) + clamp(1rem, 3.8svh, 2.4rem));
  padding-bottom: clamp(2.5rem, 7svh, 5rem);
  color: #cfe0f0;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
}
.hero__bg::before {
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  top: -22%; right: -14%;
  background: radial-gradient(circle, rgba(65, 172, 220, .5), transparent 66%);
}
.hero__bg::after {
  width: 48vw; height: 48vw; max-width: 600px; max-height: 600px;
  bottom: -28%; left: -12%;
  background: radial-gradient(circle, rgba(227, 102, 41, .3), transparent 64%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(180deg, transparent, rgba(6, 21, 41, .72) 78%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}

/* On a wide screen the square artwork can be taller than the text column; without
   this the grid would centre the text against it and push the headline down. */
.hero__inner > .reveal-seq { align-self: start; }
.hero__inner {
  position: relative; width: 100%;
  display: grid; gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .42rem .95rem .42rem .5rem;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: .83rem; font-weight: 500; color: #dbeaf8;
  margin-bottom: clamp(.85rem, 2.2svh, 1.35rem);
  backdrop-filter: blur(6px);
}
.hero__badge .pip {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--cyan-500), var(--blue-600));
  color: #fff; font-size: .66rem; font-weight: 700;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, min(6.55vw, 10.3svh), 5.2rem);
  line-height: .99; letter-spacing: -.038em; font-weight: 700;
  margin-bottom: clamp(.4rem, 1svh, .7rem);
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(96deg, var(--cyan-400) 8%, var(--orange-500) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.65vw, 1.28rem); line-height: 1.6; color: #b3cbe2;
  max-width: 56ch; margin-bottom: clamp(1.1rem, 2.8svh, 1.8rem);
}
.hero .btn-row { margin-bottom: clamp(1.25rem, 3svh, 2rem); }
.hero .btn-row .btn { padding: 1rem 1.75rem; font-size: 1.05rem; }

.hero__docs {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  padding-top: clamp(.9rem, 2.2svh, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__docs-faces { display: flex; }
.hero__docs-faces img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(160deg, var(--cyan-100), #fff);
  box-shadow: 0 0 0 2.5px var(--navy-800), 0 0 0 4px rgba(255, 255, 255, .28);
}
.hero__docs-faces img + img { margin-left: -13px; }
.hero__docs-text { font-size: .83rem; line-height: 1.4; color: #a9c2da; }
.hero__docs-text b {
  display: block; color: #fff; font-weight: 600; font-size: .91rem;
  margin-bottom: .1rem;
}
.hero__docs a { color: var(--cyan-400); font-weight: 600; text-decoration: none; }
.hero__docs a:hover { color: #fff; text-decoration: underline; }

/* hero artwork */
.hero__art { position: relative; }
.hero__art-inner {
  position: relative; aspect-ratio: 1 / 1;
  max-width: min(620px, 74svh); margin-inline: auto;
}
@media (max-width: 940px) {
  /* stacked hero: keep headline, CTAs and the trust strip on the first screen */
  .hero { padding-bottom: clamp(2.25rem, 5svh, 3.25rem); }
  .hero__inner { gap: clamp(1.25rem, 3svh, 2rem); }
  .hero__art-inner { max-width: min(300px, 30svh); }
}
.hero__art-inner > svg {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; overflow: visible;
}
/* No will-change here. Promoting the SVG <g> layers pulled them into their own
   composited layers, which then painted over the chips regardless of z-index -
   the same compositing quirk that was breaking frame capture earlier. The
   parallax writes transforms via rAF and is smooth without the hint. */

.hero__chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: .7rem;
  padding: .72rem 1rem; border-radius: var(--r-md);
  background: #fff; box-shadow: 0 2px 8px rgba(6, 21, 41, .16), 0 18px 40px rgba(6, 21, 41, .28);
  font-size: .8rem; line-height: 1.3; color: var(--body); white-space: nowrap;
}
.hero__chip b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .92rem; }
.hero__chip .ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.hero__chip--a { top: 4%; left: -6%; }
.hero__chip--b { bottom: 7%; right: -5%; }

.hero__chip { opacity: 0; translate: 0 14px; }
.js .hero__art .hero__chip { animation: chipIn .72s var(--ease-out) forwards; }
.js .hero__art .hero__chip--a { animation-delay: .95s; }
.js .hero__art .hero__chip--b { animation-delay: 1.12s; }
@keyframes chipIn { to { opacity: 1; translate: 0 0; } }
html:not(.js) .hero__chip { opacity: 1; translate: 0 0; }
@media (max-width: 560px) {
  .hero__chip--a { left: -1%; top: 2%; }
  .hero__chip--b { right: -1%; bottom: 4%; }
  .hero__chip { padding: .55rem .75rem; font-size: .72rem; }
  .hero__chip .ico { width: 26px; height: 26px; }
}

/* entrance animation */
.reveal-seq > * { opacity: 0; transform: translateY(20px); }
.js .reveal-seq.is-in > * {
  animation: seqIn .72s var(--ease-out) forwards;
}
.js .reveal-seq.is-in > *:nth-child(1) { animation-delay: .04s; }
.js .reveal-seq.is-in > *:nth-child(2) { animation-delay: .13s; }
.js .reveal-seq.is-in > *:nth-child(3) { animation-delay: .22s; }
.js .reveal-seq.is-in > *:nth-child(4) { animation-delay: .31s; }
.js .reveal-seq.is-in > *:nth-child(5) { animation-delay: .4s; }
.js .reveal-seq.is-in > *:nth-child(6) { animation-delay: .49s; }
@keyframes seqIn { to { opacity: 1; transform: none; } }
html:not(.js) .reveal-seq > * { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(26px); }
.js .reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* svg draw-on */
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .anim .draw { animation: draw 1.75s var(--ease-out) forwards; }
.js .anim .draw--b { animation-delay: .22s; }
.js .anim .draw--c { animation-delay: .44s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .draw { stroke-dashoffset: 0; }

/* a short bright segment that keeps travelling along the pulse trace */
.pulse-comet { stroke-dasharray: 34 2400; stroke-dashoffset: 34; opacity: 0; }
.js .anim.is-live .pulse-comet { animation: comet 4.8s 2.1s linear infinite; }
@keyframes comet {
  0% { stroke-dashoffset: 34; opacity: 0; }
  8% { opacity: 1; }
  86% { opacity: 1; }
  100% { stroke-dashoffset: -2400; opacity: 0; }
}
html:not(.js) .pulse-comet { display: none; }

.ring-spin { transform-origin: 50% 50%; }
.flare { transform-box: fill-box; transform-origin: center; opacity: .2; }
.js .anim.is-live .flare { animation: flare 3.6s var(--ease) infinite; }
@keyframes flare {
  0%, 100% { opacity: .16; transform: scale(.88); }
  50% { opacity: .42; transform: scale(1.1); }
}
.js .anim.is-live .ring-spin { animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- stats -------------------------------------------------------------- */
.stats {
  position: relative; z-index: 4; margin-top: calc(clamp(1.25rem, 3vw, 2.25rem) * -1);
}
.stats__card {
  background: #fff; border-radius: 22px; box-shadow: var(--sh-3);
  padding: clamp(1.25rem, 2.2vw, 1.8rem) clamp(1.2rem, 2.4vw, 2rem);
  display: grid; gap: clamp(1rem, 2.2vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: calc(clamp(1.4rem, 3vw, 2.5rem) / -2);
  top: 6%; bottom: 6%; width: 1px; background: var(--line);
}
@media (max-width: 700px) { .stat + .stat::before { display: none; } }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.95rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(150deg, var(--blue-600), var(--cyan-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .3rem;
}
.stat:nth-child(2) .stat__value {
  background: linear-gradient(150deg, var(--orange-600), var(--orange-500));
  -webkit-background-clip: text; background-clip: text;
}
.stat__label { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .96rem; }
.stat__note { font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: .2rem; }

/* --- cards -------------------------------------------------------------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: transform .38s var(--ease-out), box-shadow .38s var(--ease-out),
              border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.card__ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 1.1rem; color: #fff;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; }

.ico--vascular { background: linear-gradient(148deg, var(--blue-600), var(--cyan-500)); }
.ico--rheum { background: linear-gradient(148deg, var(--orange-600), var(--orange-500)); }
.ico--soft { background: var(--blue-100); color: var(--blue-600); }

/* speciality feature cards */
.spec-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(1.7rem, 3.2vw, 2.6rem); color: #fff; isolation: isolate;
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.spec-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.spec-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(155deg, var(--navy-700), var(--blue-700) 55%, var(--blue-600));
}
.spec-card--rheum::before {
  background: linear-gradient(155deg, #7a2e0c, #a8410f 52%, var(--orange-600));
}
.spec-card h3 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.spec-card p { color: rgba(255, 255, 255, .84); font-size: .97rem; }
.spec-card__doc {
  display: flex; align-items: center; gap: .7rem; margin: 1.35rem 0;
  padding: .7rem .9rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.spec-card__doc img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: rgba(255, 255, 255, .2); flex: none;
}
.spec-card__doc span { font-size: .8rem; color: rgba(255, 255, 255, .8); line-height: 1.35; }
.spec-card__doc b { display: block; color: #fff; font-family: var(--font-display); font-size: .95rem; }
.spec-card ul {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .1rem .8rem;
}
.spec-card ul a {
  display: flex; align-items: center; gap: .5rem; padding: .3rem 0;
  color: rgba(255, 255, 255, .9); font-size: .9rem; text-decoration: none;
}
.spec-card ul a:hover { color: #fff; text-decoration: underline; }
.spec-card ul a::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .6);
}
.spec-card .btn { margin-top: auto; align-self: flex-start; }
.spec-card .btn--on-dark { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }

/* doctor cards - framed studio portraits, not floating cutouts, so any backdrop
   the clinic sends works without matting */
.doc-card {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 720px) { .doc-card { grid-template-columns: 1fr; } }
.doc-card__media {
  position: relative; align-self: stretch; overflow: hidden;
  background: linear-gradient(165deg, var(--cyan-100), var(--blue-100) 60%, #fff);
}
.doc-card--rheum .doc-card__media {
  background: linear-gradient(165deg, var(--orange-100), #fdf3ec 62%, #fff);
}
.doc-card__media img {
  width: 100%; height: 100%; min-height: 310px; object-fit: cover;
  object-position: center 20%;
}
@media (max-width: 720px) {
  .doc-card__media img { min-height: 0; aspect-ratio: 4 / 3; }
}
.doc-card__body { padding: clamp(1.4rem, 3vw, 2.2rem); padding-left: 0; }
@media (max-width: 720px) { .doc-card__body { padding: clamp(1.4rem, 5vw, 2rem); } }
.doc-card__quals {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--orange-700);
  margin-bottom: .5rem;
}
.doc-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-bottom: .3rem; }
.doc-card__role { font-weight: 600; color: var(--blue-600); margin-bottom: .9rem; font-size: .96rem; }

/* clinic photograph on the About page */
.clinic-band {
  display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}
@media (max-width: 860px) { .clinic-band { grid-template-columns: 1fr; } }
.clinic-shot {
  margin: 0; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-2); background: var(--bg-soft);
}
.clinic-shot img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  object-position: center 42%; display: block;
}
@media (max-width: 860px) { .clinic-shot img { aspect-ratio: 3 / 2; } }

/* portrait in the About-page sidebar */
.aside-portrait {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--cyan-100), var(--blue-100) 60%, #fff);
}
.aside-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
}

/* qualifications list */
.edu-list { list-style: none; padding: 0; margin: 0; }
.edu-list li {
  padding: .6rem 0; border-top: 1px solid var(--line-soft); margin: 0;
}
.edu-list li:first-child { border-top: 0; padding-top: 0; }
.edu-list b {
  display: block; font-family: var(--font-display); font-size: .95rem; color: var(--ink);
}
.edu-list span { font-size: .87rem; color: var(--muted); }

.pill-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.pill-list li {
  margin: 0; padding: .34rem .78rem; border-radius: var(--r-pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .82rem; color: var(--body);
}

/* condition cards */
.cond-card {
  display: flex; flex-direction: column; gap: .55rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease-out),
              border-color .3s var(--ease);
}
.cond-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.cond-card__tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.cond-card__tag .dot { width: 7px; height: 7px; border-radius: 50%; }
.tag-vascular { color: var(--blue-600); }
.tag-vascular .dot { background: var(--cyan-500); }
.tag-rheumatology { color: var(--orange-700); }
.tag-rheumatology .dot { background: var(--orange-500); }
.cond-card h3 { font-size: 1.1rem; margin: 0; color: var(--ink); }
.cond-card p { font-size: .9rem; margin: 0; color: var(--body); }
.cond-card__more {
  margin-top: auto; padding-top: .7rem; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--blue-600);
}
.cond-card:hover .cond-card__more svg { transform: translateX(4px); }
.cond-card__more svg { transition: transform .3s var(--ease-out); }

/* blog cards */
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.post-card__top {
  position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--blue-600));
  overflow: hidden;
}
.post-card--rheumatology .post-card__top { background: linear-gradient(150deg, #8f3810, var(--orange-600)); }
.post-card__top svg { width: 100%; height: 100%; opacity: .5; }
.post-card__cat {
  position: absolute; top: .8rem; left: .9rem; padding: .3rem .7rem;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .93);
  font-family: var(--font-display); font-size: .69rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.14rem; margin-bottom: .5rem; }
.post-card p { font-size: .91rem; color: var(--body); }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .9rem;
}
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* value / approach list */
.approach { display: grid; gap: 1.2rem; }
.approach__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.35rem 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.approach__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff;
  background: linear-gradient(148deg, var(--blue-600), var(--cyan-500));
}
.approach--rheum .approach__num { background: linear-gradient(148deg, var(--orange-600), var(--orange-500)); }
.approach__item h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.approach__item p { font-size: .95rem; margin: 0; }

/* --- prose (article body) ---------------------------------------------- */
.prose { font-size: 1.045rem; line-height: 1.75; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.4em; margin-bottom: .55em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin-top: 1.9em; margin-bottom: .45em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose ul li::marker { color: var(--cyan-600); }

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative; padding-left: 2rem; margin-bottom: .7rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4e9c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.check-list--rheum li::before {
  background-color: var(--orange-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8491a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.dot-list { list-style: none; padding: 0; }
.dot-list li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; }
.dot-list li::before {
  content: ""; position: absolute; left: .25rem; top: .72em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cyan-500);
}

.callout {
  margin: 2rem 0; padding: 1.35rem 1.5rem; border-radius: var(--r-lg);
  background: var(--bg-tint); border-left: 4px solid var(--cyan-500);
}
.callout h3 {
  font-family: var(--font-display); font-size: 1.02rem; color: var(--ink);
  margin: 0 0 .4rem; line-height: 1.35;
}
.callout p { font-size: .97rem; margin: 0; }

.callout--urgent { background: #fdf2f0; border-left-color: var(--danger); }
.callout--urgent h3 { color: #8a1d17; }
.callout--urgent a { color: #8a1d17; }

.treat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.treat-list li {
  margin: 0; padding: 1.15rem 1.35rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.treat-list b {
  display: block; font-family: var(--font-display); font-size: 1.02rem;
  color: var(--ink); margin-bottom: .25rem;
}
.treat-list span { font-size: .95rem; }

/* --- page hero (inner pages) ------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #cfe0f0;
  background: var(--navy-800);
  padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 3.4rem));
  padding-bottom: clamp(2.4rem, 5vw, 3.8rem);
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px; top: -30%; right: -12%; filter: blur(70px);
  background: radial-gradient(circle, rgba(65, 172, 220, .42), transparent 66%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 84px);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero--rheum::before { background: radial-gradient(circle, rgba(227, 102, 41, .38), transparent 66%); }
.page-hero h1 { color: #fff; margin-bottom: .5rem; max-width: 20ch; }
.page-hero .lede { color: #b3cbe2; max-width: 62ch; }
.page-hero__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 820px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* track artwork in the inner-page hero - decorative, so it steps aside on
   small screens rather than pushing the heading down */
.page-hero__art {
  width: clamp(190px, 24vw, 290px); aspect-ratio: 1 / 1;
  justify-self: end; align-self: center;
}
.page-hero__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) { .page-hero__art { display: none; } }

.crumbs { font-size: .82rem; margin-bottom: 1.1rem; color: #8fb0cd; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .3); }
.crumbs a { color: #a9c9e2; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* --- article layout ----------------------------------------------------- */
.layout {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) 330px; align-items: start;
}
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
@media (max-width: 980px) { .aside { position: static; } }

.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
}
.aside-card h3 { font-size: 1.08rem; margin-bottom: .7rem; }
.aside-card p { font-size: .92rem; }
.aside-card--cta {
  background: linear-gradient(155deg, var(--navy-700), var(--blue-700)); border: 0; color: #c3d9ee;
}
.aside-card--cta h3 { color: #fff; }
.aside-card--cta p { color: rgba(255, 255, 255, .82); }
.aside-nav { list-style: none; padding: 0; margin: 0; }
.aside-nav li { margin: 0; border-top: 1px solid var(--line-soft); }
.aside-nav li:first-child { border-top: 0; }
.aside-nav a {
  display: block; padding: .6rem 0; font-size: .92rem; color: var(--body); text-decoration: none;
}
.aside-nav a:hover { color: var(--blue-600); }

.toc { display: grid; gap: .1rem; }

/* --- accordion (FAQ) ---------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.2rem; padding: 1.2rem 0; background: none; border: 0; cursor: pointer;
  text-align: left; font-family: var(--font-display); font-size: 1.06rem;
  font-weight: 600; color: var(--ink); line-height: 1.4;
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--blue-600); }
.faq__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: .1rem;
  background: var(--blue-100); display: grid; place-items: center; position: relative;
  transition: background-color .25s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--blue-600); border-radius: 2px;
  transition: transform .3s var(--ease-out), background-color .25s var(--ease);
}
.faq__icon::before { width: 11px; height: 2px; }
.faq__icon::after { width: 2px; height: 11px; }
.faq__item[data-open="true"] .faq__icon { background: var(--orange-600); }
.faq__item[data-open="true"] .faq__icon::before,
.faq__item[data-open="true"] .faq__icon::after { background: #fff; }
.faq__item[data-open="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .35s var(--ease-out); }
.faq__a-inner { padding: 0 3rem 1.4rem 0; font-size: .99rem; }
.faq__a-inner p:last-child { margin-bottom: 0; }
html:not(.js) .faq__a { height: auto; }

/* --- testimonials ------------------------------------------------------- */
.tcarousel { position: relative; }
.tcarousel__track {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: none; -ms-overflow-style: none;
}
.tcarousel__track::-webkit-scrollbar { display: none; }
.tslide {
  flex: 0 0 min(430px, 84vw); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem 1.8rem;
}
.tslide__quote { font-size: 1.02rem; color: var(--ink); line-height: 1.62; margin-bottom: 1.2rem; }
.tslide__quote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.4rem; color: var(--cyan-500); line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.tslide__who { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tslide__ctx { font-size: .86rem; color: var(--muted); }
.tcarousel__controls { display: flex; gap: .55rem; margin-top: .5rem; }
.tcarousel__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.tcarousel__btn:hover { background: var(--blue-100); border-color: var(--blue-600); }

/* --- gallery ------------------------------------------------------------ */
.gal-grid {
  display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem);
  /* auto-fit + min() lets the tiles stretch to fill the row at any count,
     instead of auto-fill leaving an empty slot and shrinking every tile */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.gal-item {
  position: relative; display: block; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: #fff; cursor: zoom-in;
  transition: transform .34s var(--ease-out), box-shadow .34s var(--ease-out);
  width: 100%; text-align: left; font: inherit; color: inherit;
}
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gal-item__media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background-color: var(--bg-soft);
  background: linear-gradient(165deg, var(--cyan-100), var(--blue-100) 65%, #fff);
}
.gal-item__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.gal-item__media--edu { background: #fff; padding: 0; }
.gal-item__media--edu img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gal-item__cap { padding: 1.1rem 1.3rem 1.3rem; }
.gal-item__cat {
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700);
}
.gal-item__title {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1.1rem; line-height: 1.35; margin-top: .32rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem); background: rgba(6, 21, 41, .92);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--r-md); background: #fff; }
.lightbox figcaption { color: #cfe0f0; text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); }

/* --- forms -------------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3.4vw, 2.6rem); box-shadow: var(--sh-1);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; color: var(--ink); margin-bottom: .4rem;
}
.field .req { color: var(--orange-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.45;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347576b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(44, 99, 190, .14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: .84rem; margin-top: .35rem; }
.field__error.is-on { display: block; }
.field__hint { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.field-row { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .86rem; color: var(--muted); margin-top: 1rem; }

.form-status {
  display: none; margin-top: 1.2rem; padding: 1.15rem 1.35rem; border-radius: var(--r-md);
  font-size: .96rem;
}
.form-status.is-on { display: block; }
.form-status--ok { background: #eaf7f1; border-left: 4px solid var(--ok); color: #10593d; }
.form-status--err { background: #fdf2f0; border-left: 4px solid var(--danger); color: #8a1d17; }
.form-status b { display: block; font-family: var(--font-display); margin-bottom: .25rem; color: inherit; }

/* --- contact bits ------------------------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: .95rem; margin: 0; }
.info-list .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600); flex: none;
}
.info-list b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; margin-bottom: .15rem; }
.info-list a { color: var(--body); text-decoration: none; }
.info-list a:hover { color: var(--blue-600); text-decoration: underline; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours-table th, .hours-table td { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.hours-table th { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.hours-table td { text-align: right; color: var(--body); }

.map-embed {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); line-height: 0;
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }
@media (max-width: 620px) { .map-embed iframe { height: 320px; } }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; color: #cfe0f0;
  border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(150deg, var(--navy-800), var(--blue-700) 62%, var(--blue-600));
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 460px; height: 460px;
  border-radius: 50%; right: -120px; top: -180px; filter: blur(20px);
  background: radial-gradient(circle, rgba(65, 172, 220, .38), transparent 68%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px;
  border-radius: 50%; left: -110px; bottom: -160px; filter: blur(20px);
  background: radial-gradient(circle, rgba(227, 102, 41, .3), transparent 68%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b3cbe2; max-width: 56ch; }
.cta-band__inner {
  display: grid; gap: 1.8rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #90aac4; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #90aac4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.8rem;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer-brand b { font-family: var(--font-display); font-size: 1.08rem; color: #fff; display: block; line-height: 1.2; }
.footer-brand span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #7794b1; }
.site-footer h2 {
  color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.05rem; font-weight: 600; line-height: 1.3;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .92rem; }
.footer-note { font-size: .9rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .84rem;
}
.footer-credit { color: #7794b1; }
.footer-credit a {
  color: #b6cde3; font-family: var(--font-display); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid rgba(182, 205, 227, .35);
  padding-bottom: 1px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-credit a:hover { color: #fff; border-bottom-color: var(--orange-500); text-decoration: none; }

.footer-disclaimer {
  font-size: .82rem; line-height: 1.6; color: #6e8aa6;
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem 0 0; margin-bottom: 1.4rem;
}

/* --- mobile action bar -------------------------------------------------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--line), 0 -8px 30px rgba(11, 37, 69, .1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .18rem; padding: .65rem .3rem .7rem; text-decoration: none;
    font-family: var(--font-display); font-size: .74rem; font-weight: 600; color: var(--ink);
  }
  .action-bar a + a { border-left: 1px solid var(--line-soft); }
  .action-bar .is-primary { color: var(--orange-700); }
  body { padding-bottom: 66px; }
}

/* narrow desktop: the nav row has almost no slack once the brand carries
   "Center", so tighten the tracking rather than let it wrap */
@media (min-width: 1081px) and (max-width: 1399px) {
  .nav > a, .has-drop__link, .has-drop__label { padding-inline: .46rem; font-size: .93rem; }
  .brand__name { font-size: 1.26rem; }
  .brand__sub { font-size: .635rem; letter-spacing: .035em; }
  .brand img { width: 60px; height: 60px; }
  .header-cta { gap: .4rem; }
  .header-cta .btn--sm { padding: .68rem 1.05rem; font-size: .89rem; }
}

/* --- mobile nav --------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --header-h: 92px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem var(--gutter) 3rem; overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease-out), visibility .38s;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav > a, .has-drop__link, .has-drop > button {
    color: var(--ink) !important; background: none !important;
    padding: .85rem .2rem; font-size: 1.06rem; width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .drop a { color: var(--body) !important; }
  .drop .drop__title { color: var(--ink) !important; }
  .has-drop { width: 100%; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
  .has-drop__link { flex: 1; border-bottom: 0 !important; }
  .has-drop > button {
    width: 46px; height: 46px; flex: none; margin-left: 0;
    border-bottom: 0; justify-content: center;
  }
  .drop { flex-basis: 100%; }
  .has-drop--simple .has-drop__label {
    width: 100%; height: auto; justify-content: space-between;
    padding: .85rem .2rem; font-size: 1.06rem;
  }
  .drop--simple { width: 100%; padding: .2rem 0 .8rem .8rem; }
  .drop--simple a {
    padding: .55rem .2rem; border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .drop {
    position: static; width: 100%; transform: none; translate: none;
    max-height: none; overflow: visible;
    box-shadow: none; border: 0; padding: .2rem 0 .8rem .8rem; border-radius: 0;
    grid-template-columns: 1fr; gap: 0; visibility: hidden; opacity: 0;
    height: 0; overflow: hidden; transition: none;
  }
  .has-drop[data-open="true"] .drop { visibility: visible; opacity: 1; height: auto; }
  .drop__head { display: none; }
  .drop__col { margin-bottom: .5rem; }
  .drop__title { padding: .7rem .2rem; border-bottom: 1px solid var(--line-soft); }
  .drop__col a:not(.drop__title) { padding: .55rem .2rem; border-bottom: 1px solid var(--line-soft); }
  .header-cta .btn--ghost { display: none; }
  .brand img { width: 64px; height: 64px; }
  .brand__name { font-size: 1.34rem; }
  .site-header[data-mode="over"] .nav > a,
  .site-header[data-mode="over"] .has-drop__link,
  .site-header[data-mode="over"] .has-drop > button { color: var(--ink) !important; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .header-cta .btn { padding: .7rem 1.05rem; font-size: .9rem; }
}

/* Short viewports (small laptops, landscape phones): give the height back to the
   hero rather than to the header bar. Placed after the width queries so it wins. */
@media (max-height: 700px) {
  :root { --header-h: 84px; }
  .hero h1 { font-size: clamp(2.15rem, min(6.55vw, 8.2svh), 3.4rem); }
  .hero .btn-row .btn { padding: .85rem 1.5rem; font-size: 1rem; }
  .brand img { width: 56px; height: 56px; }
  .brand__name { font-size: 1.22rem; }
  .brand__sub { font-size: .655rem; }
  .header-cta .btn--sm { padding: .68rem 1.15rem; font-size: .92rem; }
}

/* --- utilities ---------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1.15rem; }

/* --- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-seq > * { opacity: 1 !important; transform: none !important; }
  .hero__chip { opacity: 1 !important; translate: 0 0 !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .pulse-comet { display: none; }
  .flare { animation: none !important; opacity: .26 !important; transform: none !important; }
  .ring-spin { animation: none !important; }
  .hero__art .layer { transform: none !important; }
}

/* --- print -------------------------------------------------------------- */
@media print {
  .site-header, .action-bar, .cta-band, .aside, .lightbox { display: none !important; }
  body { color: #000; }
  .hero, .page-hero { background: #fff; color: #000; padding-top: 1rem; }
  .hero h1, .page-hero h1 { color: #000; }
}
