/* Integral Anesthesia - integralanesthesia.org */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/sourceserif4.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/publicsans.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #1b3038;            /* deep slate-teal for headings/footer */
  --ink-2: #22404a;
  --ink-soft: #4c626b;
  --aqua: #46bfaf;           /* their brand teal */
  --aqua-deep: #217c6f;      /* AA text/link teal */
  --aqua-dark: #16665b;
  --aqua-tint: #eaf8f6;
  --magenta: #cd77ae;        /* logo pink endpoint */
  --magenta-deep: #8d3f70;
  --magenta-tint: #f9eff6;
  --grad: linear-gradient(90deg, #3cc4b1, #d670ae);   /* logo teal-to-pink fade */
  --grad-soft: linear-gradient(90deg, #5fc2b8, #d670ae);
  --paper: #ffffff;
  --paper-warm: #f4f9f8;
  --line: #dfe9e7;
  --white: #ffffff;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  --max: 1220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(70,191,175,0.25); }
:focus-visible { outline: 2px solid var(--aqua-deep); outline-offset: 3px; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--aqua-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--grad); flex: none; }
.on-dark .eyebrow, .dark .eyebrow { color: rgba(255,255,255,0.75); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; line-height: 1.6; }

/* ------- Header ------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.site-header.scrolled { background: rgba(27,48,56,0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 58px; height: 58px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: #fff; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,48,56,0.22); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-primary, .dark .btn-primary { background: var(--white); color: var(--ink); }
.on-dark .btn-primary:hover, .dark .btn-primary:hover { background: #eef3f2; color: var(--ink); }
.on-dark .btn-outline, .dark .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.on-dark .btn-outline:hover, .dark .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.nav .btn { padding: 11px 22px; background: var(--white); color: var(--ink); }
.nav .btn:hover { background: #e8efee; color: var(--ink); transform: none; box-shadow: none; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 70; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: 0.2s; }

/* ------- Hero (video) ------- */
.hero {
  position: relative; min-height: 94vh;
  display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
  background: var(--ink);
}
.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,42,50,0.32) 0%, rgba(30,42,50,0.1) 40%, rgba(24,34,41,0.9) 100%),
              linear-gradient(100deg, rgba(24,34,41,0.55) 0%, rgba(24,34,41,0.04) 60%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 96px; padding-top: 160px; width: 100%; }
.hero .kicker {
  font-family: var(--sans); font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); margin-bottom: 18px;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 em { font-style: italic; display: inline-block; padding: 0.06em 0.1em 0.06em 0.02em; margin: -0.06em -0.04em -0.06em 0; background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: rgba(255,255,255,0.85); margin: 26px 0 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); font-weight: 600; }
.hero-trust span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); margin-right: 10px; vertical-align: 1px; }

/* ------- Stat ticker ------- */
.ticker { background: var(--paper); color: var(--ink); overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; gap: 72px; white-space: nowrap; width: max-content; animation: ticker 34s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.ticker-track span b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker-track span i { font-style: normal; opacity: 0.3; margin-left: 72px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------- Full-bleed photo panels ------- */
.panel { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink-2); }
.panel .panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; will-change: transform; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(30,42,50,0.9) 22%, rgba(30,42,50,0.12) 72%); }
.panel.flip::after { background: linear-gradient(275deg, rgba(30,42,50,0.9) 22%, rgba(30,42,50,0.12) 72%); }
.panel .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; width: 100%; }
.panel.flip .panel-copy { margin-left: auto; }
.panel-copy { max-width: 560px; }
.panel h2 { color: #fff; }
.panel p { color: rgba(255,255,255,0.85); margin-top: 20px; font-size: 1.1rem; }
.panel .link-arrow { margin-top: 30px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  color: #fff; text-decoration: none;
  background-image: var(--grad); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow::after { content: "\2192"; font-size: 1.2rem; color: var(--magenta); }
.link-arrow:hover { gap: 20px; color: var(--magenta); }
.light .link-arrow, .link-arrow.dark-text { color: var(--ink); }

/* ------- Sections ------- */
section { padding: 110px 0; }
section.tight { padding: 70px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.alt { background: var(--paper-warm); }
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark p { color: rgba(255,255,255,0.78); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ------- Service index rows (oversized) ------- */
.svc-rows { border-top: 1px solid var(--line); }
.dark .svc-rows { border-color: rgba(255,255,255,0.15); }
.svc-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding-left 0.25s ease;
}
.dark .svc-row { border-color: rgba(255,255,255,0.15); }
.svc-row:hover { padding-left: 18px; }
.svc-row .num { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: inherit; transition: color 0.2s ease; }
.dark .svc-row h3 { color: #fff; }
.svc-row:hover h3 { color: var(--aqua-deep); }
.svc-row p { font-size: 0.98rem; max-width: 46ch; margin-top: 8px; }
.svc-row .go { font-size: 1.6rem; color: var(--magenta); transform: translateX(0); transition: transform 0.25s ease; }
.svc-row:hover .go { transform: translateX(10px); }

/* ------- Facility rows ------- */
.facility-list { list-style: none; border-top: 1px solid var(--line); }
.facility-list li { border-bottom: 1px solid var(--line); }
.facility-list li > a, .facility-list li > div.row {
  padding: 34px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 10px 28px; align-items: center;
  text-decoration: none; color: inherit; transition: padding-left 0.25s ease;
}
.facility-list li > a:hover { padding-left: 16px; color: inherit; }
.facility-list li > a:hover strong { color: var(--aqua-deep); }
.facility-list li strong { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; }
.facility-list li span { color: var(--ink-soft); font-size: 0.98rem; display: block; margin-top: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); padding: 8px 14px; white-space: nowrap;
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.tag-teal::before { background: var(--grad); }

/* ------- Cards (interior) ------- */
.card { background: var(--white); padding: 38px 32px; box-shadow: 0 1px 2px rgba(27,48,56,0.05); border-top: 3px solid transparent; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27,48,56,0.1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.92rem; }
.card-accent { position: relative; }
.card-accent::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.dark .card { background: rgba(255,255,255,0.05); box-shadow: none; }
.dark .card p { color: rgba(255,255,255,0.75); }

/* ------- Split ------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .media img { width: 100%; box-shadow: 24px 24px 0 var(--aqua-tint); }
.dark .split .media img { box-shadow: 24px 24px 0 rgba(178,85,150,0.18); }
.split ul { margin: 24px 0 0; list-style: none; }
.split ul li { padding: 11px 0 11px 34px; position: relative; color: var(--ink-soft); }
.split ul li::before { content: ""; position: absolute; left: 0; top: 20px; width: 18px; height: 2px; background: var(--aqua-deep); }

/* ------- Stats ------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 4rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 12px; }
.stats span { font-size: 0.94rem; color: rgba(255,255,255,0.65); }
.stats > div { position: relative; padding-left: 22px; }
.stats > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(180deg,#46bfaf,#cd77ae); }

/* ------- Page hero (interior, photo) ------- */
.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.page-hero .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,42,50,0.42), rgba(30,42,50,0.78)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 64px; width: 100%; }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.page-hero .lede { color: rgba(255,255,255,0.85); margin-top: 20px; }
.crumbs { font-size: 0.85rem; margin-bottom: 22px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.crumbs a { color: rgba(255,255,255,0.85); }

/* ------- Steps ------- */
.steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; background: var(--white); padding: 36px 30px; box-shadow: 0 1px 2px rgba(27,48,56,0.05); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 10px; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* ------- Jobs ------- */
.job { display: grid; grid-template-columns: 1fr auto; gap: 8px 26px; align-items: center; background: var(--white); box-shadow: 0 1px 2px rgba(27,48,56,0.05); padding: 30px 34px; margin-bottom: 18px; position: relative; }
.job::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,#46bfaf,#cd77ae); }
.job h3 { margin-bottom: 4px; }
.job .loc { color: var(--ink-soft); font-size: 0.95rem; }

/* ------- Contact ------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card { position: relative; background: var(--white); box-shadow: 0 1px 2px rgba(27,48,56,0.05); padding: 32px; }
.contact-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.contact-card h3 { font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--sans); font-weight: 600; color: var(--ink-soft); }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; }
.contact-card a.big, .contact-card p.big { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-card a.big:hover { color: var(--aqua-deep); }

/* ------- Forms ------- */
form.inquiry { display: grid; gap: 20px; max-width: 660px; }
form.inquiry label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 7px; letter-spacing: 0.02em; }
form.inquiry input, form.inquiry select, form.inquiry textarea { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); }
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus { outline: 2px solid var(--aqua-deep); outline-offset: 1px; }

/* ------- CTA band ------- */
.cta-band { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -8%; top: -40%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(205,119,174,0.18), transparent 70%); }
.cta-band .wrap { position: relative; padding: 96px 28px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 14px; max-width: 52ch; }
.cta-band .btn { background: var(--white); color: var(--ink); }
.cta-band .btn:hover { background: #eef3f2; transform: translateY(-2px); }

/* ------- Footer ------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,0.72); font-size: 0.93rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.site-footer .wrap { padding: 80px 28px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.site-footer h4 { color: rgba(255,255,255,0.55); font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: rgba(255,255,255,0.45); }

/* ------- Reveal (JS-gated: content is always visible without JS) ------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------- Responsive ------- */
@media (max-width: 940px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .panel { min-height: 64vh; }
  .svc-row { grid-template-columns: 56px 1fr auto; }
}
@media (max-width: 740px) {
  .site-header { background: rgba(27,48,56,0.92); }
  .nav {
    position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 100px 32px; gap: 26px;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.3rem; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { min-height: 88vh; }
  .hero .wrap { padding-bottom: 64px; }
  .job { grid-template-columns: 1fr; }
  .facility-list li { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; }
  .svc-row .num { display: none; }
}

/* ------- Pathways (light, original-site imagery) ------- */
.pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pathway { background: var(--white); box-shadow: 0 1px 3px rgba(27,48,56,0.07); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.pathway:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27,48,56,0.13); color: var(--ink); }
.pathway .pw-img { aspect-ratio: 4/3; overflow: hidden; }
.pathway .pw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pathway:hover .pw-img img { transform: scale(1.045); }
.pathway .pw-body { position: relative; padding: 28px 28px 32px; }
.pathway .pw-body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.pathway h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pathway p { color: var(--ink-soft); font-size: 0.97rem; }
.pathway .pw-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 0.92rem; color: var(--aqua-deep); }
.pathway:hover .pw-link { color: var(--magenta-deep); }
@media (max-width: 940px) { .pathways { grid-template-columns: 1fr; } }

/* ------- Hero entrance ------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
html.js .hero .kicker, html.js .hero h1, html.js .hero .lede,
html.js .hero .hero-actions, html.js .hero .hero-trust {
  animation: rise 0.85s cubic-bezier(0.22,1,0.36,1) both;
}
html.js .hero .kicker { animation-delay: 0.15s; }
html.js .hero h1 { animation-delay: 0.3s; }
html.js .hero .lede { animation-delay: 0.48s; }
html.js .hero .hero-actions { animation-delay: 0.64s; }
html.js .hero .hero-trust { animation-delay: 0.8s; }

/* ------- ECG pulse line (hero) ------- */
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; width: 100%; height: 70px; opacity: 0.5; pointer-events: none; }
.hero-ecg path { fill: none; stroke: url(#ecgGrad); stroke-width: 2; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: ecgDraw 7s linear infinite; }
@keyframes ecgDraw { 0% { stroke-dashoffset: 2600; } 62% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }

/* ------- Count-up numerals ------- */
.countup { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html.js .hero .kicker, html.js .hero h1, html.js .hero .lede,
  html.js .hero .hero-actions, html.js .hero .hero-trust { animation: none; }
  .hero-ecg path { animation: none; stroke-dashoffset: 0; }
}

/* ------- Floating glass stat panels (hero) ------- */
.hero-glass { position: absolute; right: 4%; bottom: 120px; z-index: 3; display: flex; flex-direction: column; gap: 14px; }
.glass-chip {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 16px 22px; min-width: 230px;
  box-shadow: 0 8px 32px rgba(10,20,26,0.25);
}
.glass-chip strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1; }
.glass-chip span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.78); font-weight: 600; }
html.js .glass-chip { animation: rise 0.85s cubic-bezier(0.22,1,0.36,1) both, floaty 6s ease-in-out infinite; }
html.js .glass-chip:nth-child(1) { animation-delay: 0.9s, 1.8s; }
html.js .glass-chip:nth-child(2) { animation-delay: 1.05s, 2.6s; }
html.js .glass-chip:nth-child(3) { animation-delay: 1.2s, 3.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ------- Scroll progress hairline ------- */
.scroll-progress { position: fixed; top: 3px; left: 0; height: 3px; width: 100%; z-index: 61; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ------- Pathways overlap + tilt ------- */
.pathways.overlap { margin-top: -74px; position: relative; z-index: 5; }
.pathway { will-change: transform; transform-style: preserve-3d; }

@media (max-width: 1180px) { .hero-glass { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .glass-chip { animation: none; }
  .scroll-progress { display: none; }
}
