/* ==========================================================================
   Dr. Bharat's Diabetes & Thyroid Clinic
   Design system — "The Consulting Room"

   Palette is drawn from two real sources: the clinic's own logo
   (logo red #F00009, clinic blue #0580B9) and the clinic interior
   (grey marble walls, walnut panelling, charcoal leather, warm lamplight).
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* Ink — navy derived from the logo blue, used for all dark surfaces */
  --ink:        #0A1D2E;
  --ink-2:      #102A40;
  --ink-3:      #1B3D5A;
  --ink-line:   rgba(255, 255, 255, .10);

  /* Clinic blue — straight from the logo ring */
  --blue:       #0580B9;
  --blue-700:   #05628D;
  --blue-300:   #6FBEE2;
  --blue-100:   #D5ECF7;

  /* Logo red — the heartbeat. Used sparingly, never as a large fill. */
  --pulse:      #E4121B;
  --pulse-soft: #FBE4E5;

  /* Warm metals + walnut, from the clinic's wood and lamplight */
  --brass:      #B0873F;
  --brass-light:#E2C994;
  --walnut:     #6C4426;
  --walnut-lt:  #A8794E;

  /* Marble greys — the wall tiles */
  --stone:      #EEF0F0;
  --stone-2:    #E1E5E5;
  --stone-3:    #C9CFCF;
  --paper:      #FBFCFC;

  --text:       #14232E;
  --text-2:     #3C4E5C;
  --muted:      #64757F;

  /* Type */
  --serif: "Fraunces", "Tiro Devanagari Marathi", Georgia, serif;
  --sans:  "Manrope", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale — a modular scale at ~1.28 */
  --t-xs:   .75rem;
  --t-sm:   .875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   clamp(1.25rem, 1.05rem + .7vw, 1.55rem);
  --t-xl:   clamp(1.6rem,  1.25rem + 1.4vw, 2.3rem);
  --t-2xl:  clamp(2.05rem, 1.5rem + 2.4vw, 3.3rem);
  --t-3xl:  clamp(2.6rem,  1.7rem + 4vw,   4.6rem);

  /* Space */
  --gap:    clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --pad-x:  clamp(1.15rem, .6rem + 2.6vw, 3.5rem);
  --sec-y:  clamp(4rem, 2.5rem + 5vw, 7.5rem);
  --maxw:   1240px;
  --maxw-narrow: 760px;

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(10, 29, 46, .06);
  --shadow:    0 14px 40px -18px rgba(10, 29, 46, .30);
  --shadow-lg: 0 34px 80px -36px rgba(10, 29, 46, .48);

  --ease:  cubic-bezier(.22, .61, .36, 1);
  --ease-o:cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* The closed mobile nav sits just off the right edge. Without this it adds
     a few pixels of horizontal scroll on narrow phones. `clip` does the job
     without turning the root into a scroll container; `hidden` is the
     fallback for browsers that do not support it. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Devanagari needs a little more air */
html[data-lang="mr"] body { line-height: 1.85; }
html[data-lang="mr"] .h1, html[data-lang="mr"] h1,
html[data-lang="mr"] h2, html[data-lang="mr"] h3 { line-height: 1.35; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  color: var(--ink);
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px; font-weight: 600; font-size: var(--t-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); }

.section--ink {
  background: var(--ink);
  color: #D9E4EC;
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: var(--blue-300); }

.section--paper { background: var(--paper); }

/* A hairline of marble-grain texture between light sections */
.section--paper + .section--paper { border-top: 1px solid var(--stone-2); }

/* ---------------------------------------------------- section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 600;
  color: var(--walnut-lt); letter-spacing: .01em;
  margin: 0 0 .9rem;
}
.section--ink .eyebrow { color: var(--brass-light); }
.eyebrow::before {
  content: ""; width: 30px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--brass), transparent);
  border-radius: 2px;
}

.h-display { font-size: var(--t-3xl); }
.h-1 { font-size: var(--t-2xl); }
.h-2 { font-size: var(--t-xl); }
.h-3 { font-size: var(--t-lg); }

.lede {
  font-size: var(--t-md);
  color: var(--text-2);
  max-width: 62ch;
  line-height: 1.75;
}
.section--ink .lede { color: #AFC3D1; }

.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 700;
  letter-spacing: .005em; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-o), box-shadow .35s var(--ease-o), background .25s var(--ease);
  box-shadow: 0 10px 26px -14px rgba(5, 128, 185, .9);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(5, 128, 185, .95); }
.btn:active { transform: translateY(0); }

/* sheen sweep — fires on hover only, so it reads as feedback not decoration */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-o);
}
.btn:hover::after { transform: translateX(120%); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: rgba(10, 29, 46, .22);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(10, 29, 46, .05); box-shadow: none; }

.section--ink .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost, .page-hero .btn--ghost {
  --btn-fg: #fff; border-color: rgba(255,255,255,.34);
}
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover,
.cta-band .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(255,255,255,.10); }

.btn--brass {
  --btn-bg: linear-gradient(135deg, #C79A4C, #9E7633);
  box-shadow: 0 10px 26px -14px rgba(176, 135, 63, .95);
}
.btn--brass:hover { box-shadow: 0 18px 34px -16px rgba(176, 135, 63, 1); }

.btn--lg { padding: 1.1rem 2rem; font-size: var(--t-base); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  transition: padding .4s var(--ease);
  padding-block: .85rem;
}
/* The blur/tint lives on a pseudo-element rather than on .header itself.
   backdrop-filter (like transform/filter) creates a new containing block for
   any position:fixed descendant — since .nav is fixed-positioned for the
   mobile menu, putting backdrop-filter directly on .header would trap the
   mobile nav panel inside the header's own (short) box instead of the
   viewport. Keeping .header filter-free avoids that. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,29,46,.72), rgba(10,29,46,0));
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header.is-stuck {
  padding-block: .5rem;
}
.header.is-stuck::before {
  background: rgba(9, 24, 38, .88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--ink-line), 0 18px 40px -30px rgba(0,0,0,.9);
}
/* Pages without a dark hero get the solid bar immediately */
body[data-header="solid"] .header::before {
  background: rgba(9, 24, 38, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex; align-items: center; gap: var(--gap);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x);
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; padding: 2px;
  box-shadow: 0 0 0 1px rgba(176,135,63,.55), 0 6px 18px -8px rgba(0,0,0,.6);
  transition: width .4s var(--ease), height .4s var(--ease);
}
.header.is-stuck .brand__badge { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #fff;
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .68rem; font-weight: 600; color: var(--brass-light);
  letter-spacing: .06em;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative; padding: .55rem .85rem; border-radius: 999px;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: var(--t-sm); font-weight: 600; white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .22rem;
  width: 18px; height: 2px; border-radius: 2px; transform: translateX(-50%);
  background: var(--brass-light);
}

.header__actions { display: flex; align-items: center; gap: .55rem; }

/* language toggle */
.lang {
  display: inline-flex; align-items: center; padding: 3px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; position: relative;
}
.lang__btn {
  position: relative; z-index: 1; appearance: none; border: 0; background: none;
  color: rgba(255,255,255,.72); cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  padding: .36rem .78rem; border-radius: 999px;
  transition: color .3s var(--ease);
}
.lang__btn[aria-pressed="true"] { color: var(--ink); }
.lang__pill {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  border-radius: 999px; background: #fff;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.4);
  transition: transform .42s var(--ease-o), width .42s var(--ease-o);
}

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* scroll progress — an ECG-tinted hairline */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 130; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--brass) 60%, var(--pulse));
  transition: width .1s linear;
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .2rem; padding: 6.5rem 1.4rem 2rem;
    background: rgba(9, 24, 38, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-left: 1px solid var(--ink-line);
    transform: translateX(105%);
    transition: transform .5s var(--ease-o);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .95rem 1rem; font-size: 1rem; border-radius: 12px; }
  .nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
  .nav a[aria-current="page"]::after { display: none; }

  /* The clinic name is the brand — keep it visible on phones. It is allowed
     to run onto a second line; the surrounding controls are tightened so
     there is room for it. */
  .header__inner { gap: .6rem; }
  .brand { gap: .6rem; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__badge { width: 44px; height: 44px; }
  .header.is-stuck .brand__badge { width: 40px; height: 40px; }
  .brand__sub {
    display: block;
    font-size: .6rem;
    letter-spacing: .04em;
    line-height: 1.25;
  }
  .lang__btn { padding: .34rem .6rem; font-size: .72rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: .88rem; }
  .brand__badge { width: 42px; height: 42px; }
  .header.is-stuck .brand__badge { width: 38px; height: 38px; }
  .brand__sub { font-size: .56rem; letter-spacing: .03em; }
  .lang__btn { padding: .32rem .5rem; font-size: .68rem; }
}

@media (max-width: 345px) {
  .brand__name { font-size: .82rem; }
  .brand__badge { width: 38px; height: 38px; }
  .brand__sub { font-size: .52rem; letter-spacing: .02em; }
}

/* --------------------------------------------------------------- preloader */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 1.6rem; width: min(380px, 78vw); }

.preloader__badge {
  width: 96px; height: 96px; border-radius: 50%; background: #fff; padding: 3px;
  box-shadow: 0 0 0 1px rgba(176,135,63,.6), 0 0 60px -10px rgba(5,128,185,.75);
  animation: badgeIn 1s var(--ease-o) both, badgePulse 2.4s 1s ease-in-out infinite;
}
@keyframes badgeIn { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(176,135,63,.6), 0 0 60px -10px rgba(5,128,185,.75); }
  50%      { box-shadow: 0 0 0 1px rgba(176,135,63,.9), 0 0 80px -6px rgba(228,18,27,.55); }
}

.preloader__ecg { width: 100%; height: 54px; overflow: visible; }
.preloader__ecg path {
  fill: none; stroke: var(--blue-300); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: ecgTrace 1.7s .35s var(--ease) infinite;
}
@keyframes ecgTrace {
  0%   { stroke-dashoffset: 1600; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1600; }
}

.preloader__name {
  font-family: var(--serif); font-size: 1.15rem; color: #fff; text-align: center;
  letter-spacing: .01em; opacity: 0; animation: fadeUp .8s .5s var(--ease-o) forwards;
}
.preloader__tag {
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  color: var(--brass-light); text-align: center;
  opacity: 0; animation: fadeUp .8s .7s var(--ease-o) forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.preloader__bar { width: 180px; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--brass)); transition: width .3s var(--ease); }

/* ------------------------------------------------------------ fallback bar */
.fallback-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  z-index: 115; max-width: min(620px, calc(100vw - 28px));
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem 1rem .8rem .95rem;
  background: rgba(10, 29, 46, .96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(176,135,63,.42);
  border-radius: 14px; color: #E5EDF3; font-size: var(--t-sm); line-height: 1.5;
  box-shadow: var(--shadow-lg);
  transition: transform .55s var(--ease-o), opacity .4s;
  opacity: 0;
}
.fallback-bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.fallback-bar svg { width: 20px; height: 20px; flex: none; color: var(--brass-light); margin-top: 1px; }
.fallback-bar__close {
  appearance: none; border: 0; background: rgba(255,255,255,.1); color: #fff;
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; flex: none;
  font-size: 15px; line-height: 1; margin-left: auto;
}
.fallback-bar__close:hover { background: rgba(255,255,255,.2); }

/* Marks a block that is showing the other language */
.i18n-fallback { position: relative; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding-top: clamp(7.5rem, 6rem + 6vw, 10.5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 70% at 78% 6%,  rgba(5,128,185,.34), transparent 62%),
    radial-gradient(70% 60% at 6% 92%,  rgba(176,135,63,.22), transparent 60%),
    radial-gradient(50% 50% at 40% 40%, rgba(228,18,27,.10), transparent 70%),
    var(--ink);
}
/* faint marble grain */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(28deg,  rgba(255,255,255,.015) 0 1px, transparent 1px 9px);
}

.hero__grid {
  display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  color: #fff; font-size: var(--t-3xl); font-weight: 600;
  letter-spacing: -.022em; line-height: 1.04; margin-bottom: .55em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.hero h1 em {
  font-style: normal; display: block;
  background: linear-gradient(98deg, var(--brass-light) 0%, #F0E2C2 32%, var(--blue-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: #B4C8D6; max-width: 54ch; font-size: var(--t-md); }

.hero__ribbon {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .95rem .42rem .55rem; margin-bottom: 1.4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(176,135,63,.45);
  border-radius: 999px; font-size: var(--t-sm); font-weight: 600; color: #EBDCBB;
}
.hero__ribbon i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #D7AF63, #9E7633); color: #23180A; flex: none;
}
.hero__ribbon svg { width: 13px; height: 13px; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.10);
  aspect-ratio: 5 / 4;
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(10,29,46,0) 40%, rgba(10,29,46,.55));
}

/* the floating OPD card */
.hero__card {
  position: absolute; left: clamp(-10px, -1vw, 0px); bottom: -26px; z-index: 2;
  width: min(268px, 74%);
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero__card dl { margin: 0; }
.hero__card dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  color: var(--walnut-lt); margin-bottom: .1rem;
}
.hero__card dd {
  margin: 0 0 .75rem; font-family: var(--serif); font-size: 1.06rem;
  font-weight: 600; color: var(--ink); line-height: 1.3;
}
.hero__card dd.is-small {
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  color: var(--text-2); line-height: 1.5;
}
.hero__card dd:last-child { margin-bottom: 0; }
.hero__card__status {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .85rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--stone-2);
  font-size: .8rem; font-weight: 700; color: var(--ink);
}
.status-chip .dot, .hero__card .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #23A455; margin-right: .4rem; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(35,164,85,.6); animation: livePulse 2.2s infinite;
}
.dot--off { background: var(--muted) !important; animation: none !important; box-shadow: none !important; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(35,164,85,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(35,164,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,164,85,0); }
}

@media (max-width: 940px) {
  .hero__card { position: static; width: 100%; margin-top: 1.1rem; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .hero__ecg { margin-top: 2rem; }
}

/* the signature ECG, traced once on load */
.ecg { width: 100%; height: clamp(38px, 5vw, 62px); overflow: visible; }
.ecg path {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke: var(--blue-300);
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
}
.ecg.is-traced path { animation: ecgDraw 2.4s .2s var(--ease) forwards; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }

.ecg--divider { margin-block: clamp(1.5rem, 3vw, 2.6rem); }
.ecg--divider path { stroke: var(--brass); opacity: .6; stroke-width: 1.6; }

.hero__ecg { margin-top: clamp(2.2rem, 4vw, 3.6rem); }
.hero__ecg path { stroke: url(#ecgGrad); }

/* --------------------------------------------------------------- stat bar */
.stats {
  background: linear-gradient(180deg, #081826, #0A1D2E);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding-block: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
}
.stats__grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink-line);
}
.stat { background: #0A1D2E; padding: .4rem clamp(.6rem, 2vw, 1.6rem); text-align: center; }
.stat__num {
  font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem);
  font-weight: 600; color: #fff; line-height: 1.05; letter-spacing: -.02em;
  display: block;
}
.stat__num span { color: var(--brass-light); }
.stat__label { font-size: var(--t-sm); color: #93AABB; margin-top: .3rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-block: 1rem; }
}

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--stone-2);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  transition: transform .45s var(--ease-o), box-shadow .45s var(--ease-o), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--stone-3); }
/* a brass hairline wipes in along the top edge on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-o);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--t-lg); margin-bottom: .45rem; }
.card p { font-size: var(--t-sm); color: var(--text-2); margin-bottom: 0; line-height: 1.7; }

.card__icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-100), #fff);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
}
.card__icon svg { width: 25px; height: 25px; }
.card--accent .card__icon {
  background: linear-gradient(145deg, var(--pulse-soft), #fff);
  border-color: #F6D2D4; color: var(--pulse);
}

.section--ink .card {
  background: rgba(255,255,255,.035); border-color: var(--ink-line);
}
.section--ink .card:hover { background: rgba(255,255,255,.06); border-color: rgba(176,135,63,.4); }
.section--ink .card p { color: #A6BCCB; }
.section--ink .card__icon {
  background: rgba(5,128,185,.16); border-color: rgba(111,190,226,.3); color: var(--blue-300);
}

/* pill list used for "conditions treated" */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.pills li {
  margin: 0;
  padding: .52rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--stone-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--text-2);
  transition: border-color .3s, color .3s, transform .3s var(--ease-o);
}
.pills li:hover { border-color: var(--blue-300); color: var(--blue-700); transform: translateY(-2px); }
.section--ink .pills li {
  background: rgba(255,255,255,.05); border-color: var(--ink-line); color: #C4D6E1;
}
.section--ink .pills li:hover { border-color: rgba(176,135,63,.55); color: #fff; }

/* -------------------------------------------------- feature (split) block */
.split {
  display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
@media (max-width: 760px) { .split--reverse > *:first-child { order: 0; } }

.framed {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed--tall { aspect-ratio: 4 / 5; }
.framed--wide { aspect-ratio: 4 / 3; }

/* brass corner brackets — a framed-certificate cue */
.framed::before, .framed::after {
  content: ""; position: absolute; z-index: 2; width: 44px; height: 44px;
  pointer-events: none; border: 2px solid rgba(237,219,178,.92);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.framed::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.framed::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* ------------------------------------------------------------- timeline */
.timeline { position: relative; list-style: none; padding: 0; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brass), rgba(176,135,63,.15));
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.2s var(--ease-o);
}
.timeline.is-in::before { transform: scaleY(1); }
.timeline li { position: relative; margin: 0 0 2rem; padding-left: 3.1rem; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
  box-shadow: 0 0 0 5px rgba(176,135,63,.12);
}
.section--ink .timeline li::before { background: var(--ink); }
.timeline__when {
  display: inline-block; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .07em; color: var(--walnut-lt); margin-bottom: .2rem;
}
.section--ink .timeline__when { color: var(--brass-light); }
.timeline__what { font-family: var(--serif); font-size: var(--t-md); font-weight: 600; margin: 0 0 .25rem; }
.section--ink .timeline__what { color: #fff; }
.timeline__where { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.section--ink .timeline__where { color: #92A9B9; }

/* ----------------------------------------------------------- credential ticker */
.ticker {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  padding-block: 1.1rem;
  border-block: 1px solid var(--stone-2);
  background: var(--paper);
}
.ticker__track { display: flex; width: max-content; animation: tickerRun 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerRun { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex; align-items: center; gap: .7rem;
  padding-inline: clamp(1.2rem, 3vw, 2.4rem);
  font-family: var(--serif); font-size: var(--t-md); font-weight: 600;
  color: var(--ink-3); white-space: nowrap;
}
.ticker__item::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass); opacity: .6; margin-left: clamp(1.2rem, 3vw, 2.4rem);
}

/* --------------------------------------------------------------- gallery
   A grid whose spans tile exactly, at every breakpoint:
     3 columns — the first photo takes 2x2, the other five fill the
                 remaining five cells of a 3x3  (4 + 5 = 9)
     2 columns — six equal cells, three rows
     1 column  — stacked

   (An earlier CSS-columns masonry was dropped: Chromium fails to paint
   images inside an overflow-clipped, break-inside-avoid element within a
   multi-column container.) */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.gallery figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--stone-2);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease-o);
}
.gallery figure:hover img { transform: scale(1.055); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.6rem .95rem .85rem;
  background: linear-gradient(0deg, rgba(8,20,32,.92), transparent);
  color: #fff; font-size: var(--t-sm); font-weight: 600;
  transform: translateY(8px); opacity: 0;
  transition: transform .45s var(--ease-o), opacity .45s;
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { transform: none; opacity: 1; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figcaption { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--stone-2); }
.acc__item { border-bottom: 1px solid var(--stone-2); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem .3rem; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: var(--t-md); font-weight: 600;
  color: var(--ink); text-align: left; line-height: 1.4;
}
.acc__btn:hover { color: var(--blue-700); }
.acc__btn i {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--stone-3); display: grid; place-items: center;
  position: relative; transition: transform .4s var(--ease-o), border-color .3s, background .3s;
}
.acc__btn i::before, .acc__btn i::after {
  content: ""; position: absolute; background: var(--ink-3); border-radius: 2px;
  transition: opacity .3s, background .3s;
}
.acc__btn i::before { width: 11px; height: 1.6px; }
.acc__btn i::after  { width: 1.6px; height: 11px; }
.acc__btn[aria-expanded="true"] i { transform: rotate(180deg); background: var(--blue); border-color: var(--blue); }
.acc__btn[aria-expanded="true"] i::before { background: #fff; }
.acc__btn[aria-expanded="true"] i::after { opacity: 0; }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-o);
}
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p, .acc__panel ul { font-size: var(--t-sm); color: var(--text-2); }
.acc__panel > div > :first-child { margin-top: 0; }
.acc__panel > div > :last-child { margin-bottom: 1.35rem; }

/* --------------------------------------------------------- test schedule */
.schedule { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sched-card {
  background: var(--paper); border: 1px solid var(--stone-2);
  border-radius: var(--radius); overflow: hidden;
}
.sched-card__head {
  padding: 1rem 1.3rem; background: linear-gradient(135deg, var(--ink), var(--ink-3));
  color: #fff;
}
.sched-card--b .sched-card__head { background: linear-gradient(135deg, #0F4B6B, var(--blue)); }
.sched-card--c .sched-card__head { background: linear-gradient(135deg, #8A2E22, var(--pulse)); }
.sched-card__head strong { display: block; font-family: var(--serif); font-size: var(--t-md); font-weight: 600; }
.sched-card__head span { font-size: var(--t-xs); color: rgba(255,255,255,.72); letter-spacing: .06em; }
.sched-card ul { list-style: none; margin: 0; padding: 1rem 1.3rem 1.3rem; }
.sched-card li {
  position: relative; padding-left: 1.55rem; font-size: var(--t-sm);
  color: var(--text-2); margin-bottom: .6rem;
}
.sched-card li:last-child { margin-bottom: 0; }
.sched-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
}

/* ------------------------------------------------------------- contacts */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--stone-2);
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease-o), border-color .3s, box-shadow .35s;
}
.contact-list a:hover {
  transform: translateX(4px); border-color: var(--blue-300); box-shadow: var(--shadow-sm);
}
.contact-list i {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-100), #fff); color: var(--blue-700);
  border: 1px solid var(--blue-100);
}
.contact-list i svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: var(--t-xs); font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.contact-list strong { font-family: var(--sans); font-size: var(--t-md); font-weight: 700; letter-spacing: .01em; }
.contact-list .arw { margin-left: auto; color: var(--stone-3); transition: color .3s, transform .3s var(--ease-o); }
.contact-list a:hover .arw { color: var(--blue); transform: translateX(3px); }

.section--ink .contact-list a { background: rgba(255,255,255,.04); border-color: var(--ink-line); color: #fff; }
.section--ink .contact-list a:hover { border-color: rgba(176,135,63,.5); }
.section--ink .contact-list i { background: rgba(5,128,185,.18); border-color: rgba(111,190,226,.28); color: var(--blue-300); }
.section--ink .contact-list b { color: #89A0B1; }

/* --------------------------------------------------------------- map */
.map-shell {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stone-2); background: var(--stone-2);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}
@media (max-width: 640px) { .map-shell { aspect-ratio: 4 / 5; } }
.map-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-shell__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center;
  justify-items: center; gap: .7rem;
  background: var(--stone-2); color: var(--muted); text-align: center; padding: 2rem;
  font-size: var(--t-sm);
}
.map-shell__placeholder svg { width: 30px; height: 30px; opacity: .55; }

.map-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }

.hours {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--stone-2); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.hours li {
  display: flex; justify-content: space-between; gap: 1rem; margin: 0;
  padding: .85rem 1.15rem; font-size: var(--t-sm);
  border-bottom: 1px solid var(--stone-2);
}
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { background: var(--blue-100); font-weight: 700; color: var(--blue-700); }
.hours li span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.hours li.is-closed span:last-child { color: var(--pulse); }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #07182A 0%, #0E3450 55%, #0A2033 100%);
  color: #fff; text-align: center;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(45% 55% at 50% 0%, rgba(5,128,185,.38), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: var(--t-2xl); margin-bottom: .5em; }
.cta-band .lede { color: #AEC4D3; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------------------------------------------------------------- footer */
.footer { background: #071523; color: #90A7B8; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; font-size: var(--t-sm); }
.footer__grid {
  display: grid; gap: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem);
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h4 {
  color: #fff; font-family: var(--sans); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #90A7B8; text-decoration: none; transition: color .25s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; }
.footer__brand strong { font-family: var(--serif); color: #fff; font-size: 1.05rem; display: block; line-height: 1.2; }
.footer__brand span { font-size: .7rem; color: var(--brass-light); letter-spacing: .06em; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  padding-top: 1.6rem; font-size: var(--t-xs); color: #6D8497;
}
.footer__disclaimer {
  margin-top: 1.4rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  font-size: var(--t-xs); line-height: 1.6; color: #7F97A9; max-width: none;
}

/* Below ~640px the auto-fit grid was squeezing two 150px columns side by
   side (EXPLORE / REACH US) while OPD TIMINGS wrapped alone underneath —
   an uneven 2-then-1 layout. A single stacked column reads far cleaner on
   a phone. */
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__brand { margin-bottom: 1.2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* --------------------------------------------------------- floating call */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 110;
  display: none; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff; font-size: var(--t-sm); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(5,128,185,.95);
}
.fab svg { width: 18px; height: 18px; }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55); opacity: 0;
  animation: fabRing 2.8s ease-out infinite;
}
@keyframes fabRing {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.22); }
  100% { opacity: 0;  transform: scale(1.22); }
}
@media (max-width: 1000px) { .fab { display: inline-flex; } body { padding-bottom: 4.5rem; } }

/* ------------------------------------------------------- scroll reveals */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal="up"]   { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-o), transform .8s var(--ease-o); }
  [data-reveal="fade"] { opacity: 0; transition: opacity 1s var(--ease-o); }
  [data-reveal="right"]{ opacity: 0; transform: translateX(-26px); transition: opacity .8s var(--ease-o), transform .8s var(--ease-o); }
  [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-o); }
  [data-reveal="zoom"] { opacity: 0; transform: scale(.955); transition: opacity .9s var(--ease-o), transform .9s var(--ease-o); }

  /* clip-path belongs only to the mask variant — applying it to every
     revealed element clips overflowing children and box-shadows */
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
}

/* -------------------------------------------------------- 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;
  }
  .hero__frame img { animation: none; transform: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------- print */
@media print {
  .header, .fab, .preloader, .fallback-bar, .progress, .cta-band .btn-row { display: none !important; }
  body { background: #fff; }
  .section--ink, .cta-band, .stats { background: #fff !important; color: #000 !important; }
  .section--ink h1, .section--ink h2, .section--ink h3, .stat__num { color: #000 !important; }
}

/* ==========================================================================
   Inner-page components
   ========================================================================== */

/* ------------------------------------------------------------- page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #D9E4EC;
  padding-top: clamp(7.5rem, 6rem + 6vw, 10rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero--short { padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 82% 0%, rgba(5,128,185,.32), transparent 62%),
    radial-gradient(60% 55% at 4% 100%, rgba(176,135,63,.20), transparent 60%),
    var(--ink);
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(28deg,  rgba(255,255,255,.015) 0 1px, transparent 1px 9px);
}
.page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero .lede { color: #B4C8D6; }
.page-hero .eyebrow { color: var(--brass-light); }
.page-hero--short h1 { max-width: 22ch; }

/* --------------------------------------------------------------- portrait */
.portrait {
  margin: 0; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(176,135,63,.35);
  box-shadow: var(--shadow-lg);
}
.portrait > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait__slot {
  aspect-ratio: 4/5; display: grid; place-content: center; justify-items: center;
  gap: 1.1rem; padding: 2rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #13293F, #0B1E2F);
}
.portrait__slot img { width: 120px; height: 120px; opacity: .92; }
.portrait__slot p {
  margin: 0; font-size: var(--t-sm); color: #8FA7B8; max-width: 26ch;
}
.portrait figcaption {
  padding: 1.15rem 1.35rem;
  background: rgba(8,20,32,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(176,135,63,.3);
}
.portrait figcaption strong {
  display: block; font-family: var(--serif); font-size: var(--t-md);
  font-weight: 600; color: #fff;
}
.portrait figcaption span { display: block; font-size: var(--t-sm); color: var(--brass-light); }
.portrait figcaption em {
  display: block; margin-top: .35rem; font-style: normal;
  font-size: var(--t-xs); color: #8FA7B8; line-height: 1.5;
}

/* --------------------------------------------------------------- prose */
.prose-lead {
  font-size: var(--t-md); line-height: 1.8; color: var(--text);
}
.section--ink .prose-lead { color: #C9DAE6; }

/* --------------------------------------------- offer rows (services page) */
.offer { list-style: none; padding: 0; margin: 0; counter-reset: offer; }
.offer__row {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 2.5vw, 2.2rem);
  align-items: start; margin: 0;
  padding-block: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem);
  border-top: 1px solid var(--stone-2);
}
.offer__row:first-child { border-top: 0; padding-top: 0; }
.offer__row h2 { margin-bottom: .4rem; }
.offer__row p { color: var(--text-2); margin-bottom: 0; max-width: 62ch; }
.offer__icon {
  width: 60px; height: 60px; border-radius: 18px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-100), #fff);
  border: 1px solid var(--blue-100); color: var(--blue-700);
  transition: transform .5s var(--ease-o);
}
.offer__icon svg { width: 28px; height: 28px; }
.offer__row:hover .offer__icon { transform: translateY(-3px) rotate(-4deg); }
@media (max-width: 560px) {
  .offer__row { grid-template-columns: 1fr; }
  .offer__icon { width: 50px; height: 50px; border-radius: 15px; }
}

/* ------------------------------------------------------------- honours */
.honour__year {
  display: inline-block; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .08em; color: var(--walnut-lt); margin-bottom: .35rem;
}
.section--ink .honour__year { color: var(--brass-light); }

/* ------------------------------------------------------------- research */
.research {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.5rem 1.6rem;
  background: var(--paper); border: 1px solid var(--stone-2);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform .4s var(--ease-o), box-shadow .4s var(--ease-o);
}
.research:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.research__icon { color: var(--brass); }
.research__icon svg { width: 22px; height: 22px; }
.research h3 { font-size: var(--t-md); margin-bottom: .35rem; }
.research p { font-size: var(--t-sm); color: var(--text-2); margin: 0; line-height: 1.7; }
.research p em { color: var(--ink-3); }

/* ------------------------------------------------ warning signs grid */
.signs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.signs li {
  position: relative; margin: 0; padding: .85rem 1rem .85rem 2.6rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); font-size: var(--t-sm); color: #C4D6E1;
  transition: border-color .3s, background .3s;
}
.signs li:hover { background: rgba(255,255,255,.07); border-color: rgba(228,18,27,.45); }
.signs li::before {
  content: ""; position: absolute; left: 1rem; top: 1.25em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pulse); box-shadow: 0 0 0 3px rgba(228,18,27,.18);
}

/* ------------------------------------------------------------ checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  margin: 0; font-size: var(--t-md); color: var(--text-2);
}
.checklist svg { width: 22px; height: 22px; color: var(--blue); margin-top: .2em; }

/* ----------------------------------------------------------------- note */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  padding: 1rem 1.2rem; margin-bottom: 0;
  background: var(--blue-100); border: 1px solid #BFE0F1;
  border-radius: var(--radius-sm);
  font-size: var(--t-sm); color: var(--blue-700); line-height: 1.65; max-width: none;
}
.note svg { width: 20px; height: 20px; margin-top: .15em; }
.section--ink .note {
  background: rgba(5,128,185,.14); border-color: rgba(111,190,226,.3); color: #C4DEEE;
}

/* ---------------------------------------------------------- status chip */
.status-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--stone-2);
  font-size: var(--t-sm); font-weight: 700; color: var(--ink);
}
.section--ink .status-chip { background: rgba(255,255,255,.06); border-color: var(--ink-line); color: #fff; }

.hours__note {
  display: block; font-style: normal; font-size: var(--t-xs);
  color: var(--muted); font-weight: 500; text-align: right;
}
.hours li > span:last-child { text-align: right; }

/* --------------------------------------------------------- address block */
.address-block {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start;
  margin-top: 1.6rem; padding: 1.15rem 1.35rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-line);
  border-radius: var(--radius); font-style: normal;
  font-size: var(--t-md); line-height: 1.7; color: #C4D6E1; max-width: 62ch;
}
.address-block svg { width: 22px; height: 22px; color: var(--brass-light); margin-top: .25em; }

/* -------------------------------------------------------- admission card */
.admit {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 2.5vw, 2rem);
  align-items: start;
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  background: linear-gradient(140deg, var(--paper), var(--stone));
  border: 1px solid var(--stone-2); border-left: 4px solid var(--pulse);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.admit__icon {
  width: 58px; height: 58px; border-radius: 17px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--pulse-soft), #fff);
  border: 1px solid #F6D2D4; color: var(--pulse);
}
.admit__icon svg { width: 27px; height: 27px; }
.admit p { color: var(--text-2); }
@media (max-width: 560px) { .admit { grid-template-columns: 1fr; } }

/* eyebrow that carries an icon instead of text */
.eyebrow svg { width: 18px; height: 18px; }
