/* Scroll narrative: a busy ecosystem opens space for people and support. */
.health-ecosystem {
  --eco-bg: #edf4f4;
  --eco-panel: #f9fcfc;
  --eco-ink: #213c45;
  --eco-muted: #607c83;
  --eco-accent: #078e90;
  --eco-line: #a8c7ca;
  position: relative;
  isolation: isolate;
  background: var(--eco-bg);
  color: var(--eco-ink);
  border-block: 1px solid var(--line);
  scroll-margin-top: 0;
}
html[data-theme=dark] .health-ecosystem {
  --eco-bg: #101f27;
  --eco-panel: #1d333b;
  --eco-ink: #e2f1f2;
  --eco-muted: #a2bcc3;
  --eco-accent: #50cfca;
  --eco-line: #3e666e;
}
.health-ecosystem.is-enhanced { height: 310vh; height: 310svh; }
.ecosystem-stage {
  position: relative;
  max-width: 1440px;
  margin: auto;
  padding: 40px clamp(24px, 6vw, 88px) 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.is-enhanced .ecosystem-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.ecosystem-ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ecosystem-ambient::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 48%, #53beb629, transparent 53%);
  transform: translateX(calc(var(--eco-progress, 0) * -8%));
}
.ecosystem-ambient::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--eco-line) .7px, transparent .7px);
  background-size: 23px 23px;
  mask-image: radial-gradient(ellipse at 75% 50%, #0006, transparent 65%);
}
.ecosystem-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ecosystem-topline .eyebrow { color: var(--eco-accent); font-size: 9px; letter-spacing: 1.8px; }
.ecosystem-skip { font-size: 10px; color: var(--eco-muted); display: flex; gap: 13px; align-items: center; }
.ecosystem-skip:hover { color: var(--eco-accent); }
.ecosystem-skip span { font-size: 17px; }
.ecosystem-composition { display: grid; grid-template-columns: .95fr 1.15fr; align-items: center; flex: 1; gap: 14px; min-height: 0; }
.ecosystem-copy { display: grid; align-items: center; position: relative; z-index: 2; padding-block: 30px; }
.ecosystem-chapter { grid-area: 1/1; opacity: 0; visibility: hidden; pointer-events: none; }
.ecosystem-chapter:last-child { opacity: 1; visibility: visible; pointer-events: auto; }
.is-enhanced .ecosystem-chapter { visibility: visible; will-change: transform, opacity; }
.ecosystem-kicker { display: block; font: 500 10px/1.4 Poppins,sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--eco-muted); margin-bottom: 25px; }
.ecosystem-chapter h2 { font: 600 clamp(36px, 4vw, 57px)/1.09 Manrope,sans-serif; letter-spacing: -2.2px; margin: 0 0 26px; }
.ecosystem-chapter em { font-style: normal; color: var(--eco-accent); }
.ecosystem-chapter p { font-size: 13px; line-height: 1.85; color: var(--eco-muted); max-width: 370px; }
.ecosystem-cta { display: inline-flex; align-items: center; gap: 35px; margin-top: 27px; padding: 13px 0 10px; font-size: 13px; font-weight: 600; color: var(--eco-ink); border-bottom: 1px solid var(--eco-accent); }
.ecosystem-cta span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--eco-accent); color: var(--eco-bg); transition: transform .25s ease; }
.ecosystem-cta:hover span { transform: translate(2px,-2px); }
.ecosystem-scene { position: relative; height: min(520px, 63vh); min-height: 240px; width: 100%; }
.ecosystem-plane { width: 600px; height: 520px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(var(--eco-scale, .8)); transform-origin: center; }
.ecosystem-topography, .ecosystem-threads, .ecosystem-bridge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ecosystem-topography { color: var(--eco-line); stroke: currentColor; stroke-width: .6; opacity: .4; }
.ecosystem-topography path { stroke-dasharray: 2 7; opacity: .5; }
.ecosystem-threads path { stroke: var(--eco-accent); stroke-width: 1; opacity: .22; }
.ecosystem-threads .ecosystem-thread-trace { stroke-width: 2; opacity: .6; stroke-dasharray: .055 .945; }
.ecosystem-bridge { color: var(--eco-accent); opacity: 0; }
.ecosystem-bridge-halo { stroke: currentColor; stroke-width: 24; opacity: .045; }
.ecosystem-bridge-line { stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ecosystem-chip {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 91px; padding: 16px 13px;
  background: var(--eco-panel); border: 1px solid var(--eco-line); border-radius: 10px;
  box-shadow: 0 7px 12px -10px #183f4e40, 0 18px 35px -20px #183f4e35;
  transform: translate(-50%,-50%) translate(var(--x),var(--y)) rotate(var(--r));
  z-index: 2; text-align: left; transform-origin: center;
}
.ecosystem-chip i { position: absolute; top: 14px; right: 11px; font: normal 8px Manrope,sans-serif; color: var(--eco-muted); opacity: .7; }
.ecosystem-chip b { display: block; font: 600 13px Manrope,sans-serif; color: var(--eco-ink); letter-spacing: -.2px; padding-right: 6px; }
.ecosystem-chip span { display: block; font-size: 8px; margin-top: 5px; color: var(--eco-muted); }
.ecosystem-chip-detail { display: flex; align-items: center; gap: 4px; margin-top: 13px; }
.ecosystem-chip-detail s { height: 3px; background: var(--eco-line); border-radius: 1px; width: 23px; opacity: .5; }
.ecosystem-chip-detail s:nth-child(2) { width: 37px; opacity: .3; }
.ecosystem-chip-detail s:last-child { width: 14px; background: var(--eco-accent); opacity: .65; }
.ecosystem-team { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 150px; height: 150px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--eco-panel); box-shadow: 0 0 0 9px var(--eco-bg), 0 0 0 10px var(--eco-line), 0 20px 60px -25px #194d5d35; }
.ecosystem-people { width: 42px; height: 36px; color: var(--eco-accent); margin-bottom: 7px; }
.ecosystem-people svg { width: 100%; height: 100%; }
.ecosystem-team strong { font: 600 16px Manrope,sans-serif; }
.ecosystem-team>span { font-size: 8px; color: var(--eco-muted); margin-top: 7px; }
.ecosystem-support { position: absolute; left: 420px; top: 260px; width: 168px; height: 150px; padding: 25px 12px; text-align: center; transform: translate(-50%,-50%); background: var(--eco-panel); border: 1px solid var(--eco-line); border-radius: 18px; box-shadow: 0 18px 60px -22px #087e8340; opacity: 0; z-index: 4; }
.ecosystem-support-label { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--eco-accent); }
.ecosystem-support img { display: block; width: 142px; margin: 20px auto 16px; }
.ecosystem-support>span:last-child { font-size: 8px; color: var(--eco-muted); }
.ecosystem-partnership { position: absolute; top: 426px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--eco-accent); opacity: 0; }
.ecosystem-partnership span { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.ecosystem-bottom { display: flex; gap: 30px; align-items: end; justify-content: space-between; position: relative; z-index: 3; }
.ecosystem-chapters { display: none; gap: 15px; width: min(100%, 540px); }
.is-enhanced .ecosystem-chapters { display: flex; }
.ecosystem-chapters button { flex: 1; position: relative; text-align: left; border: 0; border-bottom: 1px solid var(--eco-line); color: var(--eco-muted); background: none; padding: 14px 0; font-size: 10px; }
.ecosystem-chapters button>span { font-size: 9px; margin-right: 8px; opacity: .7; }
.ecosystem-chapters button[aria-current=step] { color: var(--eco-ink); }
.ecosystem-chapters button i { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--eco-accent); transform: scaleX(var(--step-progress,0)); transform-origin: left; }
.ecosystem-scroll-hint { display: none; font-size: 9px; color: var(--eco-muted); gap: 20px; align-items: center; padding-bottom: 12px; }
.is-enhanced .ecosystem-scroll-hint { display: flex; }
.ecosystem-scroll-hint span { font-size: 16px; }
.ecosystem-note { font-size: 9px; line-height: 1.6; color: var(--eco-muted); margin: 18px 0 0; }
.health-ecosystem a:focus-visible, .health-ecosystem button:focus-visible { outline: 2px solid var(--eco-accent); outline-offset: 6px; border-radius: 2px; }
@media (min-width: 761px) and (max-height: 650px) {
  .ecosystem-stage { padding-block: 20px 14px; }
  .ecosystem-kicker { margin-bottom: 14px; }
  .ecosystem-chapter h2 { font-size: 36px; margin-bottom: 15px; }
  .ecosystem-chapter p { font-size: 11px; }
  .ecosystem-cta { margin-top: 10px; padding-top: 5px; }
  .ecosystem-copy { padding-block: 18px; }
  .ecosystem-note { margin-top: 10px; font-size: 8px; }
}
@media (max-width: 760px) {
  .health-ecosystem.is-enhanced { height: 290vh; height: 290svh; }
  .ecosystem-stage { padding: 22px 24px 16px; }
  .ecosystem-topline .eyebrow { font-size: 7px; letter-spacing: 1px; gap: 6px; }
  .ecosystem-topline .eyebrow::before { width: 12px; }
  .ecosystem-skip { font-size: 0; gap: 0; }
  .ecosystem-skip span { font-size: 18px; }
  .ecosystem-composition { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 0; align-items: stretch; padding-top: 24px; }
  .ecosystem-copy { padding: 0; align-items: start; }
  .ecosystem-kicker { font-size: 8px; margin-bottom: 12px; }
  .ecosystem-chapter h2 { font-size: clamp(28px, 6.8vw, 39px); line-height: 1.08; letter-spacing: -1.25px; margin-bottom: 14px; }
  .ecosystem-chapter h2 br:last-child { display: none; }
  .ecosystem-chapter p { font-size: 11px; line-height: 1.7; max-width: 500px; }
  .ecosystem-cta { font-size: 11px; margin-top: 12px; padding-top: 0; gap: 20px; }
  .ecosystem-cta span { width: 24px; height: 24px; }
  .ecosystem-scene { height: auto; min-height: 0; margin-block: 5px; }
  .ecosystem-chip b { font-size: 16px; padding-right: 0; letter-spacing: -.5px; }
  .ecosystem-chip i { display: none; }
  .ecosystem-chip span { font-size: 10px; }
  .ecosystem-team strong { font-size: 20px; }
  .ecosystem-team>span { font-size: 10px; }
  .ecosystem-support-label { font-size: 10px; }
  .ecosystem-support>span:last-child { font-size: 10px; }
  .ecosystem-partnership { font-size: 12px; }
  .ecosystem-bottom { margin-top: 4px; }
  .ecosystem-chapters { gap: 13px; width: 100%; }
  .ecosystem-chapters button { font-size: 9px; padding: 10px 0; }
  .ecosystem-chapters button>span { margin-right: 4px; font-size: 8px; }
  .is-enhanced .ecosystem-scroll-hint { display: none; }
  .ecosystem-note { font-size: 7px; margin-top: 12px; }
  .health-ecosystem:not(.is-enhanced) .ecosystem-scene { height: 330px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .ecosystem-stage { padding-block: 14px 12px; }
  .ecosystem-composition { padding-top: 15px; }
  .ecosystem-kicker { margin-bottom: 8px; }
  .ecosystem-chapter h2 { font-size: 27px; margin-bottom: 10px; }
  .ecosystem-chapter p { font-size: 10px; }
  .ecosystem-cta { margin-top: 7px; padding-bottom: 5px; }
  .ecosystem-note { margin-top: 8px; }
}
/* Readable final composition when JavaScript is unavailable. */
.health-ecosystem:not(.is-enhanced) .ecosystem-chip { opacity: .12; }
.health-ecosystem:not(.is-enhanced) .ecosystem-team { transform: translate(-50%,-50%) translateX(-105px); }
.health-ecosystem:not(.is-enhanced) .ecosystem-support,
.health-ecosystem:not(.is-enhanced) .ecosystem-partnership,
.health-ecosystem:not(.is-enhanced) .ecosystem-bridge { opacity: 1; }
.health-ecosystem:not(.is-enhanced) .ecosystem-bridge-line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .health-ecosystem.is-enhanced { height: auto; }
  .is-enhanced .ecosystem-stage { height: auto; position: relative; padding-block: 45px; }
  .is-enhanced .ecosystem-chapter { transform: none !important; }
  .is-enhanced .ecosystem-chapters, .is-enhanced .ecosystem-scroll-hint { display: none; }
  .health-ecosystem .ecosystem-scene { height: 380px; }
  .ecosystem-cta span { transition: none; }
}
