/* SmartCareAI public website — v4 design system.
 *
 * Shape: editorial page on warm paper, with three dark "set pieces" where something moves —
 *   1. the hero: a ward monitor where one patient's early-warning score climbs and the alert goes out;
 *   2. the building act: the hospital goes digital floor by floor while you scroll past the departments;
 *   3. the call to action and footer.
 * Palette: paper + deep teal ink, one teal for interaction, amber only for alerts and the main action.
 * Type: Inter Display (display, tight) against Inter body; Amharic uses Noto Sans Ethiopic.
 */

@font-face { font-family: "Inter Display"; src: url(../fonts/InterDisplay-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
/* metric-matched fallback so the swap does not shift the huge headline */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  /* palette */
  --paper: #F2EFE8; --paper-2: #E8E3D7; --card: #FBFAF6;
  --night: #071A1F; --night-2: #0C252B;
  --teal: #0E6B6B; --teal-hi: #3FD6B8; --amber: #E3A23B; --amber-hi: #F2B24C; --red: #D2463F; --cyan: #4FB6E8;
  /* type */
  --f-display: "Inter Display", "Inter", "Inter Fallback", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-hero: clamp(3.25rem, 9.2vw, 10.25rem);
  --t-h2: clamp(2.35rem, 5.4vw, 5.25rem);
  --t-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-lead: clamp(1.0625rem, 1.25vw, 1.25rem);
  /* space */
  --gut: clamp(20px, 4vw, 56px);
  --wrap: 1360px;
  --r: 14px; --r-sm: 8px; --r-lg: 20px;
  /* motion: three tiers, one curve family */
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-std: cubic-bezier(.4, 0, .2, 1);
  --d-fast: 160ms; --d-std: 320ms; --d-slow: 700ms;
}

/* light (default) and dark grounds: every component reads these */
body, .light {
  --ground: var(--paper); --surface: var(--card); --ink: #0B1F24; --ink-2: #33494F; --muted: #5E7176;
  --line: rgba(11, 31, 36, .13); --line-2: rgba(11, 31, 36, .24); --ui: var(--teal); --ui-wash: rgba(14, 107, 107, .09);
}
.dark {
  --ground: var(--night); --surface: var(--night-2); --ink: #EAF2F0; --ink-2: #AFC7C5; --muted: #7D9997;
  --line: rgba(234, 242, 240, .12); --line-2: rgba(234, 242, 240, .24); --ui: var(--teal-hi); --ui-wash: rgba(63, 214, 184, .1);
  background: var(--ground); color: var(--ink);
}
.lang-am { --f-display: "Noto Sans Ethiopic", "Nyala", "Ebrima", var(--f-body); --f-body: "Noto Sans Ethiopic", "Nyala", "Ebrima", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.6 var(--f-body); overflow-x: clip; text-rendering: optimizeLegibility; }
body.lang-am { line-height: 1.75; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--ui); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: rgba(227, 162, 59, .35); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.lang-am h1, .lang-am h2, .lang-am h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--amber); color: #0B1F24; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ic { flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 var(--f-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast), transform var(--d-fast) var(--e-out); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-amber { background: var(--amber); color: #0B1F24; }
.btn-amber:hover { background: var(--amber-hi); color: #0B1F24; }
.btn-amber::after { content: "→"; transition: transform var(--d-std) var(--e-out); }
.btn-sm.btn-amber::after { content: none; }
.btn-amber:hover::after { transform: translateX(4px); }
.btn-teal { background: var(--ink); color: var(--ground); }
.btn-teal:hover { background: var(--ui); color: #fff; }
.btn-ghost, .btn-ghost-light, .btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-ghost-light:hover, .btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-text { min-height: 44px; padding: 0 4px; color: var(--ink); border-radius: 0; background: none; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; }
.btn-text:hover { text-decoration-color: var(--amber); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.actions:empty { display: none; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background-color var(--d-std), border-color var(--d-std); }
.top.on-dark { --ink: #EAF2F0; --ink-2: #AFC7C5; --line: rgba(234,242,240,.12); --line-2: rgba(234,242,240,.24); --ui: var(--teal-hi); background: color-mix(in srgb, var(--night) 86%, transparent); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.1875rem/1 var(--f-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .mark { color: #0F4B52; flex: none; }
.brand img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu ul a { display: block; padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9375rem; position: relative; }
.menu ul a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--d-std) var(--e-out); }
.menu ul a:hover { color: var(--ink); }
.menu ul a:hover::after, .menu ul a[aria-current="page"]::after { transform: none; }
.menu ul a[aria-current="page"] { color: var(--ink); }
.langs { display: flex; align-items: center; gap: 2px; margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.langs > * { padding: 6px 7px; border-radius: 8px; line-height: 1; }
.langs span[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.lang-sw { color: var(--muted); text-decoration: none; }
.lang-sw:hover { color: var(--ink); background: var(--ui-wash); text-decoration: none; }
.menu .btn-amber { min-height: 40px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform var(--d-fast); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero (set piece 1) */
.hero { position: relative; padding: clamp(36px, 6vh, 72px) 0 0; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); grid-template-areas: "title monitor" "side monitor"; gap: 28px clamp(32px, 5vw, 80px);
  padding: 0 var(--gut); max-width: 1600px; margin: 0 auto; align-items: end; }
.hero-title { grid-area: title; font-size: var(--t-hero); line-height: .9; letter-spacing: -.045em; color: var(--ink); }
.hl { display: block; }
.hl-last { color: var(--amber); }
.lang-am .hero-title { font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1.15; letter-spacing: 0; }
.hero-side { grid-area: side; display: grid; grid-template-columns: minmax(0, 46ch) auto; gap: 18px 40px; align-items: end; padding-bottom: 8px; }
.hero-lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 46ch; }
.hero-lead p:last-child { margin: 0; }
.hero .actions { justify-content: flex-start; }
.hero-art { grid-area: monitor; }
.hero-img, .hero-art .vid { border-radius: var(--r-lg); width: 100%; }
.hero-strip { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 7vh, 80px); padding: 18px var(--gut); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.hero-strip p { margin: 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hs-items { color: var(--ink-2); letter-spacing: .02em; }
.hs-right time { font-variant-numeric: tabular-nums; color: var(--ink); }

/* the ward monitor */
.monitor { grid-area: monitor; margin: 0; align-self: end; background: #04141A; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 16px 12px; position: relative; font-size: .875rem; }
.mon-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.mon-top b { font-weight: 600; color: var(--ink); }
.mon-top time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); flex: none; }
@media (prefers-reduced-motion: no-preference) { .live { animation: live 2s infinite; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(63,214,184,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63,214,184,0); } }
.mon-beds { list-style: none; margin: 6px 0 0; padding: 0; }
.bed { display: grid; grid-template-columns: 4.6em 2.6em 1fr 2.2em; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); transition: background-color var(--d-std); border-radius: 6px; }
.bed-no { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bed-who { color: var(--muted); font-size: .8125rem; }
.bed-trace { width: 100%; height: 28px; display: block; overflow: visible; }
.bed-trace polyline { fill: none; stroke: var(--teal-hi); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bed-score { justify-self: end; font: 600 1.25rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.bed-warn .bed-trace polyline { stroke: var(--amber-hi); } .bed-warn .bed-score { color: var(--amber-hi); }
.bed-crit { background: rgba(227,162,59,.13); }
.bed-crit .bed-trace polyline { stroke: var(--amber); stroke-width: 2.2; } .bed-crit .bed-score { color: var(--amber); }
.bed-crit .bed-no { color: var(--ink); font-weight: 600; }
.mon-alert { display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; margin: 0; padding: 12px; border-radius: 12px; background: var(--amber); color: #0B1F24; }
.ma-ic { grid-row: span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0B1F24; color: var(--amber); }
.ma-tx { display: flex; flex-direction: column; }
.ma-tx strong { font-weight: 600; line-height: 1.3; }
.ma-tx span { font-size: .8125rem; opacity: .85; }
.ma-to { font-size: .75rem; font-weight: 600; opacity: .8; }
.mon-slot { display: grid; margin: 12px 0 6px; } .mon-slot > * { grid-area: 1 / 1; }
.mon-idle { display: none; }
html.motion .monitor.playing .mon-idle { display: flex; align-items: center; justify-content: center; margin: 0; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: .8125rem; transition: opacity var(--d-std); }
html.motion .monitor.playing.alerted .mon-idle { opacity: 0; }
.mon-feed { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.mon-feed li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: .8125rem; padding: 2px 4px; }
.mon-feed .ic { color: var(--teal-hi); }
.mon-note { margin-top: 8px; padding: 0 4px; font-size: .6875rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
/* the JS plays it: the alert waits for the score, the rest of the feed follows */
html.motion .monitor.playing .mon-alert { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity var(--d-std) var(--e-out), transform var(--d-slow) var(--e-out); }
html.motion .monitor.playing.alerted .mon-alert { opacity: 1; transform: none; }
html.motion .monitor.playing .mon-feed li { opacity: .25; transition: opacity var(--d-slow); }
html.motion .monitor.playing.alerted .mon-feed li { opacity: 1; }
html.motion .monitor.playing.alerted .mon-feed li:nth-child(2) { transition-delay: .6s; } html.motion .monitor.playing.alerted .mon-feed li:nth-child(3) { transition-delay: 1.2s; }

/* ---------------------------------------------------------------- sections: shared */
.band { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.band-top { padding-top: clamp(40px, 6vw, 72px); }
.band-tint { background: var(--paper-2); }
.dark.band-tint { background: var(--night); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head > :only-child { grid-column: 1 / -1; max-width: 18ch; }
.sec-head.center { grid-template-columns: 1fr; text-align: left; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h2 { font-size: var(--t-h2); line-height: .98; letter-spacing: -.035em; max-width: 16ch; }
.page-title { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .96; letter-spacing: -.04em; margin-bottom: 24px; max-width: 18ch; }
.lang-am .h2 { font-size: clamp(2rem, 4vw, 3.6rem); } .lang-am .page-title { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.sec-lead { color: var(--ink-2); font-size: var(--t-lead); max-width: 44ch; padding-bottom: .4em; }
.sec-lead p:last-child { margin: 0; }
.sec-foot { margin: 48px 0 0; }
.lead { font-size: var(--t-lead); color: var(--ink-2); }
.more { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic { color: var(--ui); margin-top: 4px; }

/* modules: an indexed list, not a card grid */
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); counter-reset: mod; border-top: 1px solid var(--line-2); }
.mods li { counter-increment: mod; display: grid; grid-template-columns: 3.2em 1fr; gap: 6px 18px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); position: relative; }
.mods li::before { content: counter(mod, decimal-leading-zero); font: 600 .875rem/1.9 var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.mods .mod-ic { display: none; }
.mods h3 { font-size: var(--t-h3); letter-spacing: -.015em; margin-bottom: 6px; }
.mods h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat; transition: background-size var(--d-std) var(--e-out); }
.mods h3 a:hover { background-size: 100% 2px; }
.mods h3 a::after { content: " →"; color: var(--muted); }
.mods p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* building (set piece 2): pinned hospital, departments scroll past */
.building { padding-bottom: clamp(60px, 8vw, 120px); }
.bld-in { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.bld-art { order: 2; align-self: stretch; }
.bld-sticky { position: sticky; top: 84px; height: calc(100vh - 110px); min-height: 460px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.bld-cam { width: 100%; transform: scale(var(--cam-s, .94)) translateY(var(--cam-y, 0px)); transform-origin: 55% 70%; }
.bld-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bld-legend li { font-size: .8125rem; font-weight: 600; color: var(--muted); padding-left: 14px; position: relative; transition: color var(--d-std); }
.bld-legend li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.bld-legend li.built { color: var(--ink-2); } .bld-legend li.built::before { background: var(--teal-hi); border-color: var(--teal-hi); }
.bld-legend li.current { color: var(--ink); } .bld-legend li.current::before { background: var(--amber); border-color: var(--amber); }
.bld-steps { list-style: none; margin: 0; padding: 8vh 0 18vh; display: grid; gap: 30vh; }
.bld-step { opacity: .38; transition: opacity var(--d-slow) var(--e-out); }
html:not(.js) .bld-step, .bld-step.built { opacity: .62; }
.bld-step.current { opacity: 1; }
.bld-floor { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ui); margin-bottom: 14px; }
.bld-step h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 14px; }
.bld-step h3 .ic { color: var(--ui); }
.bld-step p { color: var(--ink-2); font-size: 1.0625rem; margin: 0; max-width: 46ch; }

/* the isometric hospital */
.hosp { display: block; width: 100%; height: auto; overflow: visible; }
.iso .f-t { fill: #2A6B78; } .iso .f-l { fill: #123A46; } .iso .f-r { fill: #18505D; }
.iso .iso-box polygon { stroke: rgba(150, 240, 220, .22); stroke-width: .6; stroke-linejoin: round; }
.iso .plate .f-t { fill: #0B2730; } .iso .plate .f-l { fill: #071D24; } .iso .plate .f-r { fill: #09222A; }
.iso .h-grid line { stroke: rgba(120, 220, 200, .07); stroke-width: .6; }
.iso .h-road { fill: #081B21; } .iso .h-dash { fill: #2E5C63; } .iso .h-path { fill: #12404A; }
.iso .wing .f-t { fill: #2F7683; } .iso .wing .f-l { fill: #164452; } .iso .wing .f-r { fill: #1C5A68; }
.iso .h-win { fill: #0F3440; transition: fill .6s, filter .6s; transition-delay: calc(var(--w) * 70ms); }
.iso.lit .h-solid .h-win { fill: #8FF0DC; filter: drop-shadow(0 0 3px rgba(63, 214, 184, .85)); }
.iso.alert .h-solid .h-alert { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(242, 178, 76, .95)); }
@media (prefers-reduced-motion: no-preference) { .iso.alert .h-solid .h-alert { animation: winalert 1.2s 6 alternate; } }
@keyframes winalert { to { fill: #FFE2A8; } }
.iso .h-door { fill: #0F3440; transition: fill .6s; } .iso.lit .h-door { fill: #6FE3D0; }
.iso .canopy .f-t { fill: #3FD6B8; } .iso .canopy .f-l, .iso .canopy .f-r { fill: #22A58C; }
.iso .bridge .f-l { fill: #2C7F7A; } .iso.lit .bridge .f-l { fill: #6FE3D0; }
.iso .roofcap .f-t { fill: #1F5664; }
.iso .h-pad { fill: none; stroke: #3FD6B8; stroke-width: 2; } .iso .h-h { fill: #3FD6B8; font: 700 26px var(--f-display); }
.iso .h-padglow { opacity: 0; transition: opacity 1s; } .iso.lit .h-padglow { opacity: 1; }
.iso .signboard polygon { fill: #E8F4F2; } .iso .cross { fill: var(--red); }
.iso .crane-mast polygon, .iso .crane-arm polygon, .iso .crane-weight polygon { fill: var(--amber-hi); stroke: rgba(0,0,0,.15); }
.iso .crane-cable { stroke: var(--amber-hi); stroke-width: 1.2; }
.iso .trunk { fill: #4A3B2A; } .iso .crown { fill: #1F8F6E; } .iso .crown2 { fill: #3FBF8F; }
.iso .amb-body polygon, .iso .amb-cab polygon { fill: #F2F6F5; } .iso .amb-stripe { fill: var(--red); } .iso .amb-light polygon { fill: var(--cyan); }
.iso .h-ghost polygon, .iso .h-ghost ellipse { fill: none !important; stroke: rgba(79, 182, 232, .38); stroke-width: .8; stroke-dasharray: 4 4; filter: none !important; }
.iso .h-ghost text, .iso .h-ghost .h-padglow { display: none; }
.iso .h-solid .h-floor { will-change: transform, opacity; }
html.js .iso .h-solid .h-floor { opacity: 0; }
html:not(.js) .iso .h-ghost { display: none; }
.iso .h-amb, .iso .h-crane { will-change: transform, opacity; }

/* patient journey: one patient moving through six stations */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: j; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line-2); }
.journey::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--ink); transform: scaleX(var(--jp, 1)); transform-origin: 0 50%; }
.journey li { padding: 0 20px 0 0; position: relative; z-index: 1; }
.j-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ground); border: 2px solid var(--ink); color: var(--ink); font: 600 1rem/1 var(--f-display); margin-bottom: 26px; font-variant-numeric: tabular-nums; transition: background-color var(--d-std), color var(--d-std); }
.journey li.reached .j-n { background: var(--ink); color: var(--ground); }
.journey li:last-child .j-n { border-color: var(--amber); }
.journey li:last-child.reached .j-n { background: var(--amber); color: #0B1F24; }
.journey h3 { font-size: 1.1875rem; letter-spacing: -.015em; margin-bottom: 8px; }
.journey p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* split: text with a ruled list beside it */
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.split-rev .split-copy { order: 2; }
.split-copy { position: sticky; top: 110px; }
.split-copy .h2 { margin-bottom: 24px; }
.split-copy .prose { font-size: var(--t-lead); color: var(--ink-2); max-width: 44ch; }
.split-copy .actions { margin-top: 28px; }
.split-img { border-radius: var(--r); margin: 8px 0 24px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fact-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-wash); color: var(--ui); }
.facts h3 { font-size: 1.1875rem; letter-spacing: -.01em; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--ink-2); }

/* tabs (features page) */
.band-tabs { padding-top: 0; }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.tab-list { display: flex; flex-direction: column; position: sticky; top: 100px; border-top: 1px solid var(--line-2); }
.tab-list button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 1rem/1.3 var(--f-body); cursor: pointer; position: relative; }
.tab-list button .ic { color: var(--muted); }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab-list button[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--amber); }
.tab-list button[aria-selected="true"] .ic { color: var(--ui); }
.tab-panel { padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tab-panel h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 14px; }
.tabs.js .tab-panel[hidden] { display: none; }
html.motion .tabs.js .tab-panel:not([hidden]) { animation: rise var(--d-slow) var(--e-out); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.tabs:not(.js) { grid-template-columns: 1fr; }
.tabs:not(.js) .tab-list { display: none; }
.tabs:not(.js) .tab-panel { margin-bottom: 16px; }

/* plans */
.band-plans { padding-top: 0; }
.plans { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.plan { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; }
.plan-mid { background: var(--night); --ink: #EAF2F0; --ink-2: #AFC7C5; --muted: #7D9997; --ui: var(--teal-hi); --line: rgba(234,242,240,.12); --line-2: rgba(234,242,240,.24); color: var(--ink); }
.plan-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ui); background: var(--ui-wash); margin-bottom: 26px; }
.plan-mid .plan-ic { background: rgba(63,214,184,.12); }
.plan h3 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 10px; }
.plan > p { color: var(--ink-2); }
.plan .ticks { margin: 4px 0 32px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-mid .btn-line { border-color: rgba(234,242,240,.3); color: #EAF2F0; }

/* FAQ: sticky question list head, answers in a ruled column */
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.faq-in > div:first-child { position: sticky; top: 110px; }
.faq-in .h2 { margin-bottom: 18px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; font: 600 1.1875rem/1.35 var(--f-body); letter-spacing: -.01em; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 2px 14px no-repeat; transition: transform var(--d-std) var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ui); }
.faq-a { padding: 0 52px 26px 0; color: var(--ink-2); max-width: 62ch; }
.faq-a p { margin: 0; }

/* news and post cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.news-grid > .post-card:first-child { grid-column: span 2; }
.post-card { display: flex; flex-direction: column; }
.pc-img { display: block; border-radius: var(--r); overflow: hidden; margin-bottom: 18px; aspect-ratio: 16/9; background: var(--night-2); }
.news-grid > .post-card:first-child .pc-img { aspect-ratio: 2 / 1; }
.pc-img img, .pc-img video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--e-out); }
.post-card:hover .pc-img img { transform: scale(1.03); }
.pc-vid { position: relative; }
.pc-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--amber); }
.pc-play::after { content: ""; position: absolute; left: 23px; top: 19px; border-left: 16px solid #0B1F24; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.post-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -.02em; margin-bottom: 10px; }
.news-grid > .post-card:first-child h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.post-card p:last-child { color: var(--ink-2); margin: 0; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .8125rem; color: var(--muted); margin-bottom: 10px; }
.tag { color: var(--ui); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.cover { border-radius: var(--r-lg); margin: 8px 0 40px; width: 100%; }
.cover-vid { margin: 8px 0 40px; }
article .narrow, .band-top .narrow { }

/* prose */
.prose { font-size: 1.0625rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose-lead { font-size: var(--t-lead); }
.prose strong { color: var(--ink); }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.025em; margin: 1.7em 0 .55em; }
.prose h3 { font-size: 1.375rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--ui); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); color: var(--ink); font-size: 1.1875rem; }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: .9688rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line-2); padding: 10px 12px 10px 0; text-align: left; }
.prose pre { background: var(--night); color: #EAF2F0; padding: 16px; border-radius: var(--r-sm); overflow-x: auto; }
.text-img { border-radius: var(--r); margin-top: 28px; }

/* call to action (set piece 3) */
.cta { padding: clamp(96px, 14vw, 200px) 0; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.cta .h2, .cta .page-title { font-size: clamp(2.8rem, 7.4vw, 7.25rem); line-height: .92; letter-spacing: -.045em; max-width: 13ch; margin-bottom: 0; }
.lang-am .cta .h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.2; }
.cta-in > div:first-child { display: contents; }
.cta-text { color: var(--ink-2); font-size: var(--t-lead); max-width: 40ch; grid-column: 2; grid-row: 1; align-self: end; }
.cta-text p:last-child { margin: 0; }
.cta .actions { grid-column: 1 / -1; }
.cta .btn-ghost-light { border-color: rgba(234,242,240,.3); color: #EAF2F0; }
.cta .btn-ghost-light:hover { border-color: #EAF2F0; }

/* forms */
.form-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-intro { padding-top: 10px; }
.form-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 50px; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.form input::placeholder, .form textarea::placeholder { color: #8A9A9D; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--ui); box-shadow: 0 0 0 4px var(--ui-wash); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--red); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .55; cursor: progress; }
.hint { font-size: .875rem; color: var(--muted); margin: -4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.notice p { margin: 0; }
.notice.ok { background: #E3F2EC; color: #145A44; border: 1px solid #B9DFCF; }
.notice.bad { background: #FBE9E7; color: #8E2A23; border: 1px solid #F0C3BE; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li .ic { color: var(--ui); margin-top: 3px; }
.contact-list li span { display: flex; flex-direction: column; color: var(--ink-2); }
.contact-list b { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--ui); text-decoration: underline; }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.pill:hover { border-color: var(--ink); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--r); }

/* footer */
.foot { padding: clamp(64px, 8vw, 104px) 0 0; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h2 { font: 600 .75rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { color: var(--ink); }
.foot .brand .mark { color: #12555C; }
.foot-brand p { margin: 18px 0 0; max-width: 34ch; color: var(--ink-2); }
.foot .contact-list { margin: 0; gap: 12px; }
.foot .contact-list a { color: var(--ink-2); font-weight: 500; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; margin-top: 64px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot-links { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------------- who it is for: one promoted, the rest stacked */
.aud-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.aud { grid-column: span 4; border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
/* the first kind of facility is promoted: a dark band across the grid, its name large beside the details */
.aud:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: start; background: var(--night);
  --ink: #EAF2F0; --ink-2: #AFC7C5; --muted: #7D9997; --ui: var(--teal-hi); --ui-wash: rgba(63,214,184,.12); --line: rgba(234,242,240,.12); color: var(--ink); }
.aud:first-child .aud-ic { margin: 0; grid-row: span 3; }
.aud:first-child h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.035em; grid-row: span 3; }
.aud:first-child p, .aud:first-child .ticks, .aud:first-child .aud-link { grid-column: 3; margin-top: 0; }
.aud:first-child .aud-link { padding-top: 6px; }
.aud-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-wash); color: var(--ui); margin-bottom: 26px; }
.aud h3 { font-size: 1.375rem; letter-spacing: -.02em; margin-bottom: 10px; }
.aud p { color: var(--ink-2); }
.aud .ticks { margin: 6px 0 0; font-size: .9375rem; gap: 8px; }
.aud-link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--ink); text-decoration-color: var(--amber); }

/* product screens */
.band-gal { padding-top: clamp(64px, 8vw, 120px); }
.gal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.gal-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); position: sticky; top: 110px; }
.gal-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  font: 500 1rem/1.3 var(--f-body); color: var(--ink-2); cursor: pointer; }
.gal-tabs button .ic { color: var(--muted); }
.gal-tabs button:hover { color: var(--ink); }
.gal-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.gal-tabs button[aria-selected="true"] .ic { color: var(--ui); }
.gal-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; }
.gal-tabs button[aria-selected="true"] .gal-bar { transform: scaleX(1); }
.gal.playing .gal-tabs button[aria-selected="true"] .gal-bar { transform: scaleX(0); animation: galbar var(--gal-t, 6s) linear forwards; }
@keyframes galbar { to { transform: scaleX(1); } }
.gal-stage { position: relative; min-width: 0; }
.gal-slide { margin: 0; }
.gal-slide[hidden] { display: none; }
html.motion .gal-slide:not([hidden]) .gal-frame { animation: rise var(--d-slow) var(--e-out); }
.gal-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 50px 90px -60px rgba(11,31,36,.55); }
.gal-frame img { width: 100%; }
.gal-slide figcaption { margin-top: 18px; color: var(--ink-2); max-width: 70ch; }

html.motion .gal-slide:not([hidden]) .ms-chart i { animation: bar .8s var(--e-out) both; animation-delay: calc(var(--i) * 70ms + .2s); transform-origin: 50% 100%; }
@keyframes bar { from { transform: scaleY(0); } }

/* video */
.band-video .video-in { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.band-video .h2, .band-video .page-title { margin-bottom: 20px; font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
.band-video .prose { font-size: var(--t-lead); }
.band-video .actions { margin-top: 28px; }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #04141A; }
.vid video, .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-ctl { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.vid-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(4,20,26,.75); color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; }
.vid-ctl button:hover { background: #04141A; }
.i-pause { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.paused .i-pause { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.i-mute { position: relative; width: 16px; height: 16px; }
.i-mute::before { content: ""; position: absolute; left: 0; top: 4px; width: 6px; height: 8px; background: #fff; }
.i-mute::after { content: ""; position: absolute; left: 5px; top: 0; border-right: 8px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vid:not(.sound) .vid-snd::after { content: ""; position: absolute; width: 22px; height: 2px; background: var(--amber); transform: rotate(-45deg); }

/* systems it works with: big names in a slow line */
.band-chips { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-chips .sec-head { margin-bottom: 40px; }
.chips-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 48px; }
@media (prefers-reduced-motion: no-preference) {
  html.motion .chips.marquee { flex-wrap: nowrap; width: max-content; animation: marquee 50s linear infinite; }
  html.motion .chips-wrap:hover .chips.marquee { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.chips li { display: flex; align-items: center; gap: 16px; flex: none; }
.chip-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-wash); color: var(--ui); }
.chips li span { display: flex; flex-direction: column; line-height: 1.15; }
.chips b { font: 600 clamp(1.5rem, 2.6vw, 2.4rem)/1.05 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.chips em { font-style: normal; font-size: .8125rem; color: var(--muted); margin-top: 4px; }

/* quotes and logos (shown only when real ones are added) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 48px; }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 2px solid var(--ink); }
.quote blockquote { margin: 0; font: 600 1.375rem/1.35 var(--f-display); letter-spacing: -.015em; color: var(--ink); }
.quote blockquote p { margin: 0; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img { border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote em { font-style: normal; color: var(--muted); font-size: .9375rem; }
.band-logos { padding: 48px 0; border-bottom: 1px solid var(--line); }
.logos-title { color: var(--muted); font-weight: 600; margin-bottom: 24px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; }
.logos span { font: 600 1.25rem/1 var(--f-display); color: var(--ink-2); }

/* module pages (/features/...) and module cards */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.mod-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mod-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ui-wash); color: var(--ui); margin-bottom: 24px; }
.mod-copy .lead { margin-bottom: 32px; max-width: 36rem; }
.mod-copy, .mod-shot { min-width: 0; }
.page-title, .h2, .hero-title { overflow-wrap: break-word; }
html:not(.motion) .chips.marquee li[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) { .chips.marquee li[aria-hidden="true"] { display: none; } }
.module-hero .page-title { font-size: clamp(2.6rem, 5.6vw, 5.25rem); }
.mod-shot .gal-frame { box-shadow: 0 50px 90px -60px rgba(11,31,36,.55); }
.mod-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.glass-panel { padding: 0; }
.glass-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.025em; margin: 1.5em 0 .5em; } .glass-panel h2:first-child { margin-top: 0; }
.glass-panel p:last-child { margin-bottom: 0; }
.mod-list { position: sticky; top: 100px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.mod-list-h { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.band-tight { padding: 32px 0 clamp(64px, 8vw, 120px); }
.band-tight .h2 { margin-bottom: 32px; font-size: clamp(2rem, 4vw, 3.4rem); }
.band-modules { padding-top: 0; }
.mod-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.mod-cards > li > a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mod-cards > li > a:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }
.mod-cards .mod-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-wash); color: var(--ui); }
.mod-cards b { font: 600 1.375rem/1.15 var(--f-display); letter-spacing: -.02em; }
.mod-cards > li > a > span:not(.mod-ic) { color: var(--ink-2); }
.mod-cards .ticks { margin: 6px 0 0; gap: 6px; font-size: .9063rem; }
.mod-more { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 600; color: var(--ui); }

/* cookie notice */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(420px, calc(100vw - 40px)); padding: 20px; border-radius: var(--r-lg);
  background: var(--night); color: #EAF2F0; box-shadow: 0 24px 60px -24px rgba(11,31,36,.6); opacity: 0; transform: translateY(12px); transition: opacity var(--d-std), transform var(--d-std) var(--e-out); }
.ck.in { opacity: 1; transform: none; }
.ck-t { margin: 0 0 6px; font-weight: 600; }
.ck-d { margin: 0 0 16px; color: #AFC7C5; font-size: .9rem; line-height: 1.55; }
.ck-d a { color: #EAF2F0; }
.ck-b { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-b .btn { min-height: 44px; padding: 0 22px; }
.ck-b .btn-amber::after { content: none; }
.ck .btn-ghost { border-color: rgba(234,242,240,.3); color: #EAF2F0; }
.ck .btn-ghost:hover { border-color: #EAF2F0; color: #EAF2F0; }

/* chat widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; background: var(--night); color: #EAF2F0;
  font: 600 1rem/1 var(--f-body); cursor: pointer; box-shadow: 0 16px 40px -16px rgba(11,31,36,.7); transition: transform var(--d-fast) var(--e-out); }
.chat-fab::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-hi); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab[aria-expanded="true"] { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 40px)); background: #fff; color: #0B1F24; border: 1px solid rgba(11,31,36,.14);
  border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgba(11,31,36,.55); display: flex; flex-direction: column; overflow: hidden;
  --ink: #0B1F24; --ink-2: #33494F; --muted: #5E7176; --line: rgba(11,31,36,.12); --line-2: rgba(11,31,36,.22); --ui: var(--teal); }
html.motion .chat-panel:not([hidden]) { animation: chatin var(--d-std) var(--e-out); transform-origin: 100% 100%; }
@keyframes chatin { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--night); color: #EAF2F0; }
.chat-head div { display: flex; flex-direction: column; gap: 2px; }
.chat-head strong { font: 600 1.0625rem/1.2 var(--f-display); color: #EAF2F0; }
.chat-head span { font-size: .8125rem; color: #AFC7C5; }
.chat-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.chat-x:hover { background: rgba(255,255,255,.2); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9688rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.msg-me { background: var(--night); color: #EAF2F0; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-links-row { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; margin-top: -4px; }
.msg-links-row a { font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ui-wash); color: var(--teal); text-decoration: none; }
.typing { align-self: flex-start; color: var(--muted); font-size: .875rem; padding: 4px 6px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--teal); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.lead-card { align-self: stretch; background: #FFF8EC; border: 1px solid #EBC98C; border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.lead-card p { margin: 0; font-weight: 600; font-size: .9375rem; }
.lead-card input { font: inherit; font-size: .9375rem; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; min-height: 44px; width: 100%; background: #fff; }
.lead-card input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,107,107,.12); }
.lead-card .btn { min-height: 44px; }
.lead-card .btn-amber::after { content: none; }
.lead-err { color: #A8322A; font-size: .8125rem; font-weight: 400 !important; }
.chat-quick { display: flex; gap: 8px; padding: 10px 14px 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.chat-quick button, .chat-quick a { font: 600 .8125rem/1 var(--f-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.chat-quick button:hover, .chat-quick a:hover { border-color: var(--ink); color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 10px 14px; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: .9688rem; color: var(--ink); border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; min-height: 46px; max-height: 120px; background: #fff; }
.chat-form textarea:focus { outline: none; border-color: var(--teal); }
.chat-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--amber); color: #0B1F24; display: grid; place-items: center; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .75rem; color: var(--muted); }

/* ---------------------------------------------------------------- health blog */
.t-teal { --tc: #0E6B6B; } .t-amber { --tc: #B97A12; } .t-rose { --tc: #B4444F; } .t-sky { --tc: #2C6E9E; } .t-violet { --tc: #6A55B0; } .t-lime { --tc: #4E7D1F; }
.blog-head { padding-bottom: 8px; }
.bh-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.bh-row > div { max-width: 720px; } .bh-row .lead { margin: 0; }
.b-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; min-width: 0; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.b-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; padding: 0 14px; outline: none; }
.b-search:focus-within { border-color: var(--ui); box-shadow: 0 0 0 4px var(--ui-wash); }
.b-topics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.b-topics a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.b-topics a svg { color: var(--tc, var(--ui)); }
.b-topics a span { font-size: .78rem; color: var(--muted); }
.b-topics a:hover { color: var(--ink); border-color: var(--ink); }
.b-topics a[aria-current="page"] { background: var(--night); color: #EAF2F0; border-color: var(--night); } .b-topics a[aria-current="page"] svg, .b-topics a[aria-current="page"] span { color: #EAF2F0; }
.blog-list { padding-top: 32px; }
.b-found { color: var(--ink-2); margin-bottom: 24px; } .b-found b { color: var(--ink); }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.b-card { display: flex; flex-direction: column; }
.b-img { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.b-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--e-out); } .b-card:hover .b-img img { transform: scale(1.03); }
.b-art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, var(--paper)); }
.b-art svg { width: 64px; height: 64px; }
.b-body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; font-size: .8125rem; color: var(--muted); }
.b-topic { color: var(--tc); text-decoration: none; font-weight: 600; } .b-topic:hover { text-decoration: underline; }
.b-card h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; } .b-card h3 a { color: var(--ink); text-decoration: none; } .b-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.b-ex { color: var(--ink-2); margin: 0 0 16px; font-size: .95rem; }
.b-by { margin: auto 0 0; font-size: .8125rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.b-rev { color: var(--teal); } .b-rev::before { content: "✓ "; }
.b-card-big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(40px, 5vw, 72px); align-items: center; }
.b-card-big .b-img { aspect-ratio: 4/3; }
.b-card-big .b-art svg { width: 110px; height: 110px; }
.b-card-big .b-body { padding: 0; }
.b-card-big h3 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.02; letter-spacing: -.035em; }
.b-card-big .b-ex { font-size: 1.0625rem; }
.b-empty { padding: 60px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.b-article .crumbs { margin-bottom: 18px; }
.ba-head { max-width: 900px; }
.ba-head .page-title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; }
.ba-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 28px 0 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink); }
.ba-meta small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.ba-rev { color: var(--ink-2); } .ba-rev svg { color: var(--teal); vertical-align: -3px; } .ba-rev b { color: var(--ink); font-weight: 600; }
.ba-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 48px; }
.ba-art { height: 280px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 48px; } .ba-art .b-art svg { width: 110px; height: 110px; }
.ba-grid { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(32px, 5vw, 72px); }
.ba-side { position: sticky; top: 100px; align-self: start; display: grid; gap: 28px; }
.ba-side p { margin: 0 0 10px; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.ba-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.ba-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.ba-toc a:hover, .ba-toc a.on { color: var(--ink); border-left-color: var(--amber); }
.ba-share { display: flex; flex-wrap: wrap; gap: 6px; } .ba-share p { width: 100%; }
.ba-share a, .ba-share button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: none; font: inherit; font-size: .8125rem; text-decoration: none; cursor: pointer; }
.ba-share a:hover, .ba-share button:hover { color: var(--ink); border-color: var(--ink); }
.ba-main .prose { font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.ba-main .prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--ink); margin: 1.8em 0 .55em; scroll-margin-top: 100px; }
.ba-main .prose h2:first-child { margin-top: 0; }
.ba-main .prose li { margin: .45em 0; }
.ba-note { padding: 12px 16px; border-radius: var(--r); background: #E8F0F6; color: #24506F; }
.ba-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 40px 0 0; } .ba-tags a { color: var(--ink-2); font-size: .9rem; } .ba-tags a:hover { color: var(--ink); }
.ba-src { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.ba-src h2 { font-size: 1.0625rem; margin: 0 0 10px; } .ba-src ol { margin: 0; padding-left: 1.3em; color: var(--ink-2); font-size: .92rem; } .ba-src li { margin: 6px 0; overflow-wrap: anywhere; } .ba-src a { color: var(--ink-2); }
.ba-disc { display: flex; gap: 14px; margin-top: 32px; padding: 18px 20px; border-radius: var(--r); background: #FFF6E6; border: 1px solid #EED6A8; }
.ba-disc svg { color: #B97A12; flex: 0 0 auto; margin-top: 2px; } .ba-disc p { margin: 0; color: #5B4A2A; font-size: .95rem; } .ba-disc b { color: #3A2E15; }
.ba-vote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; } .ba-vote p { margin: 0 8px 0 0; color: var(--ink); font-weight: 600; }
.ba-vote button { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink); font: inherit; cursor: pointer; } .ba-vote button:hover { border-color: var(--ink); }
.ba-thanks { color: var(--teal); }
.b-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--night); color: #EAF2F0; --ink: #EAF2F0; --ink-2: #AFC7C5; }
.b-cta .h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.4vw, 3rem); } .b-cta p { margin: 0; color: #AFC7C5; max-width: 620px; }

/* the 404 page */
.nf .page-title { font-size: clamp(3rem, 10vw, 9rem); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .menu ul a { padding: 8px 7px; font-size: .9063rem; }
  .aud:first-child { grid-template-columns: 56px minmax(0, 1fr); }
  .aud:first-child h3 { grid-row: auto; }
  .aud:first-child p, .aud:first-child .ticks, .aud:first-child .aud-link { grid-column: 2; }
}
@media (max-width: 1040px) {
  .aud:not(:first-child) { grid-column: span 6; }
  .menu-btn { display: block; }
  .menu { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px var(--gut) 26px; background: var(--paper); border-bottom: 1px solid var(--line-2); display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .top.on-dark .menu { background: var(--night); }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; }
  .menu ul a { padding: 12px 0; font-size: 1.125rem; }
  .menu ul a::after { left: 0; right: auto; width: 24px; }
  .menu .btn-amber { min-height: 50px; }
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "title" "side" "monitor"; }
  .hero-side { grid-template-columns: 1fr; }
  .monitor { max-width: 560px; width: 100%; }
  .sec-head { grid-template-columns: 1fr; }
  /* phones and tablets: the picture pins under the header and the departments slide up beneath it */
  .bld-in { display: block; }
  .bld-art { position: sticky; top: 68px; z-index: 2; background: var(--night); margin: 0 calc(var(--gut) * -1); padding: 8px var(--gut) 4px; box-shadow: 0 18px 24px -18px var(--night); }
  .bld-sticky { position: static; height: auto; min-height: 0; }
  .bld-cam { width: min(100%, 40vh, 460px); margin: 0 auto; }
  .bld-legend { display: none; }
  .bld-steps { gap: 16vh; padding: 4vh 0 8vh; }
  .journey { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .journey::before, .journey::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(var(--jp, 1)); transform-origin: 50% 0; }
  .journey li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0; }
  .journey li .j-n { grid-row: span 2; margin: 0; }
  .split-in, .faq-in, .tabs, .gal, .form-layout, .mod-top, .mod-grid, .band-video .video-in { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .split-copy, .faq-in > div:first-child, .tab-list, .gal-tabs, .mod-list { position: static; }
  .tab-list, .gal-tabs { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
  .tab-list button, .gal-tabs button { flex: none; border-bottom: 0; padding: 12px 14px 12px 0; margin-right: 10px; }
  .tab-list button[aria-selected="true"]::before { display: none; }
  .tab-list button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--amber); }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line); } .plan:first-child { border-top: 0; }
  .news-grid, .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid > .post-card:first-child { grid-column: 1 / -1; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-text { grid-column: auto; grid-row: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; } .ba-side { position: static; order: 2; } .ba-toc { display: none; }
  .b-card-big { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mods { grid-template-columns: 1fr; }
  .aud { grid-column: 1 / -1; }
  .aud:first-child { grid-template-columns: 1fr; }
  .aud:first-child .aud-ic { grid-row: auto; margin-bottom: 14px; }
  .aud:first-child p, .aud:first-child .ticks, .aud:first-child .aud-link { grid-column: 1; }
  .news-grid, .b-grid { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
  .bed { grid-template-columns: 4.2em 2.4em 1fr 2em; gap: 8px; }
  .hero-strip { flex-direction: column; }
  .ck { left: 12px; right: 12px; width: auto; bottom: 84px; } .ck-b .btn { flex: 1; }
  .chat { right: 12px; bottom: 12px; }
  .chat-panel { position: fixed; inset: auto 8px 8px 8px; width: auto; max-width: none; height: min(620px, calc(100vh - 16px)); }
  .b-search { max-width: none; }
  .b-search .btn { padding: 0 14px; }
}
@media (max-width: 380px) {
  .bed-who { display: none; }
  .bed { grid-template-columns: 4.2em 1fr 2em; }
}

/* reduced motion: the finished state, nothing travelling */

/* ===================================================================== motion layer (v5)
 * What moves, and what drives it:
 *   hero    — headline lines rise out of their mask on load; the monitor leans toward the pointer;
 *             a heart trace runs under it and turns amber when the monitor's alert fires
 *   headings— words light up in reading order as the heading scrolls in (scrubbed, so it reverses)
 *   modules — the matching sample screen follows the pointer over the list
 *   phone   — pinned beside the AI list; each item that scrolls past delivers one message
 *   receipt — prints out of its slot as it scrolls up; the PAID stamp lands at the end
 *   gallery — the screen leans toward the pointer
 *   names   — the marquee speeds up and leans with the scroll
 *   cta     — the heart trace beats faster as the pointer nears "Book a demo"
 * With reduced motion every piece shows its finished state and nothing runs. */

/* hero entrance (CSS only, so the headline never depends on the script) */
.hl { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hl-in { display: inline-block; }
html.motion .hl-in { animation: hlup 1.05s var(--e-out) both; animation-delay: calc(var(--i) * 120ms + 100ms); }
@keyframes hlup { from { transform: translateY(108%); } }
html.motion .hero-side { animation: sideup 1s var(--e-out) .5s both; }
@keyframes sideup { from { opacity: 0; translate: 0 18px; } }
html.motion .monitor { animation: monin 1.2s var(--e-out) .25s both; }
@keyframes monin { from { opacity: 0; translate: 56px 0; } }
.monitor { transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* heart traces */
.ecg { display: block; width: 100%; overflow: visible; pointer-events: none; }
.ecg polyline { fill: none; stroke: var(--teal-hi); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .5s; }
.ecg circle { display: none; }
.hero-ecg { height: clamp(44px, 7vh, 72px); margin-top: clamp(28px, 5vh, 56px); opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent); }
.hero-ecg + .hero-strip { margin-top: 0; }
.hero-ecg.alarm polyline, .cta-ecg.near polyline { stroke: var(--amber); }
.cta { position: relative; overflow: hidden; }
.cta-ecg { position: absolute; left: 0; right: 0; top: 50%; height: 34%; translate: 0 -50%; opacity: .2; }
.cta-in { position: relative; z-index: 1; }

/* headings: words light up in reading order */
.w { display: inline-block; opacity: calc(.14 + .86 * var(--t, 1)); transform: translateY(calc((1 - var(--t, 1)) * .32em)); }

/* modules: a row lights from the left on hover; the matching screen follows the pointer */
.mods li { isolation: isolate; }
.mods li::after { content: ""; position: absolute; inset: 0 -18px; background: var(--ui-wash); border-radius: var(--r-sm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--e-out); z-index: -1; }
.mods li:hover::after { transform: none; }
.mod-peek { position: fixed; left: 0; top: 0; width: 400px; z-index: 40; pointer-events: none; opacity: 0; border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line-2); box-shadow: 0 50px 80px -40px rgba(7, 26, 31, .55);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--pr, 0deg)) scale(var(--ps, .9)); transition: opacity var(--d-std) var(--e-std); }
.mod-peek.on { opacity: 1; }
.peek-s { display: none; } .peek-s.on { display: block; }
.mod-peek .ms { --ms: 7.6px; }
@media (hover: none), (max-width: 1040px) { .mod-peek { display: none; } }

/* split with the phone */
.sp-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(40px, 7vw, 128px); align-items: start; }
.sp-head .h2 { margin-bottom: 24px; }
.sp-head .prose { font-size: var(--t-lead); color: var(--ink-2); max-width: 44ch; margin-bottom: clamp(32px, 6vh, 64px); }
.sp-facts li { transition: opacity var(--d-slow) var(--e-out); }
.sp-copy .actions { margin-top: 28px; }
.sp-art { position: sticky; top: max(96px, calc(50vh - 330px)); }
@media (min-width: 1041px) {
  html.motion .sp-facts li { min-height: 44vh; align-content: start; }
  html.motion .sp-facts li:last-child { min-height: 30vh; }
  html.motion .sp-facts li:not(.on) { opacity: .32; }
}
.phone { margin: 0; }
.ph-body { width: 100%; max-width: 340px; aspect-ratio: 9 / 18.6; margin: 0 auto; border-radius: 46px; background: #0B1418; padding: 11px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 70px 90px -60px rgba(7, 26, 31, .7);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.ph-screen { position: relative; height: 100%; border-radius: 36px; background: #E6EDEB; overflow: hidden; display: flex; flex-direction: column; }
.ph-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #0B1418; z-index: 2; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 11px 24px 6px; font: 600 .78rem/1 var(--f-body); color: #EAF2F0; background: var(--night); }
.ph-sig { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.ph-sig i { width: 3px; background: #EAF2F0; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 6px; } .ph-sig i:nth-child(3) { height: 8px; } .ph-sig i:nth-child(4) { height: 10px; }
.ph-head { display: flex; gap: 10px; align-items: center; padding: 10px 16px 12px; background: var(--night); color: #EAF2F0; font-size: .875rem; }
.ph-head .mark { width: 34px; height: 34px; color: var(--teal); display: block; }
.ph-head small { display: block; color: #7D9997; font-size: .72rem; }
.ph-chat { flex: 1; position: relative; overflow: hidden; }
.ph-msgs { list-style: none; margin: 0; padding: 0; position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 9px; transition: bottom .35s var(--e-out); }
.ph-msg { align-self: flex-start; max-width: 90%; background: #fff; border-radius: 4px 16px 16px 16px; padding: 9px 12px 7px; border-left: 3px solid var(--teal);
  font-size: .78rem; line-height: 1.4; color: #0B1F24; box-shadow: 0 1px 0 rgba(11, 31, 36, .08); }
.ph-msg b { display: block; font-size: .8rem; margin-bottom: 2px; }
.ph-msg > span { display: block; }
.ph-msg time { display: block; text-align: right; font-size: .66rem; color: #5E7176; margin-top: 3px; }
.ph-alert { border-left-color: var(--red); } .ph-alert b { color: #A8322C; }
.ph-warn { border-left-color: var(--amber); }
.ph-btns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ph-btns span { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(14, 107, 107, .1); color: var(--teal); font-weight: 600; font-size: .72rem; transition: background .25s, color .25s, transform .25s; }
.ph-btns .ph-ack.pressed { background: var(--teal); color: #fff; transform: scale(.96); }
.ph-me { align-self: flex-end; background: #CFEDE4; border-left: 0; border-radius: 16px 4px 16px 16px; }
.ph-me i { font-style: normal; color: var(--teal); letter-spacing: -2px; }
html.motion .phone.js .ph-msg:not(.in) { display: none; }
html.motion .phone.js .ph-msg.in { animation: popin .5s var(--e-out) both; }
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(.95); transform-origin: 0 100%; } }
.ph-typing { display: none; position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 11px 13px; gap: 4px; background: #fff; border-radius: 4px 16px 16px 16px; }
.ph-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 1.1s infinite; }
.ph-typing i:nth-child(2) { animation-delay: .18s; } .ph-typing i:nth-child(3) { animation-delay: .36s; }
.phone.typing .ph-typing { display: flex; }
.phone.typing .ph-msgs { bottom: 54px; }
.art-note { margin: 14px 0 0; text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* the receipt */
.split-receipt .split-copy { position: static; }
.receipt { margin: 36px 0 8px; max-width: 360px; }
.rc-slot { position: relative; z-index: 2; height: 16px; border-radius: 9px; background: var(--night); box-shadow: inset 0 -5px 0 rgba(255, 255, 255, .07); }
.rc-clip { overflow: hidden; margin: -7px 16px 0; padding-bottom: 30px; }
.rc-paper { position: relative; background: #FFFDF8; padding: 20px 18px 0; color: #1E2B2E; font: 400 .8rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  box-shadow: 0 26px 30px -26px rgba(7, 26, 31, .45); clip-path: inset(0 -40px calc((1 - var(--rp, 1)) * 100%) -40px); }
.lang-am .rc-paper { font-family: var(--f-body); }
.rc-head { margin: 0; } .rc-head b { display: block; font-size: .85rem; } .rc-head span { color: #5E7176; font-size: .72rem; }
.rc-lines { list-style: none; margin: 12px 0 0; padding: 10px 0 14px; border-top: 1px dashed rgba(11, 31, 36, .3); }
.rc-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; }
.rc-lines b { font-weight: 600; white-space: nowrap; }
.rc-sum { border-top: 1px dashed rgba(11, 31, 36, .3); margin-top: 6px; padding-top: 8px !important; }
.rc-cover b, .rc-paid b, .rc-hmis b { color: var(--teal); }
.rc-total { font-weight: 700; font-size: .9rem; border-bottom: 1px dashed rgba(11, 31, 36, .3); padding-bottom: 8px !important; margin-bottom: 6px; }
.rc-stamp { position: absolute; right: 18px; bottom: 34px; margin: 0; padding: 5px 12px 4px; border: 3px solid var(--teal); border-radius: 6px; color: var(--teal);
  font: 600 1.6rem/1 var(--f-display); letter-spacing: .1em; mix-blend-mode: multiply; opacity: var(--st-o, .9); transform: rotate(-11deg) scale(var(--st-s, 1)); }
.rc-tear { height: 10px; margin: 0 -18px; background: linear-gradient(-45deg, transparent 6px, #FFFDF8 0) 0 0 / 12px 12px repeat-x, linear-gradient(45deg, transparent 6px, #FFFDF8 0) 0 0 / 12px 12px repeat-x; transform: translateY(9px); }

/* gallery screen leans toward the pointer */
.gal-slide { transform: perspective(1700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* names marquee driven by the script: speed and lean follow the scroll */
html.motion .chips.marquee.js-run { animation: none; transform: translate3d(var(--mx, 0px), 0, 0) skewX(var(--mk, 0deg)); }

@media (max-width: 1040px) {
  .sp-in { grid-template-columns: 1fr; gap: 0; }
  .sp-copy { display: contents; }
  .sp-head { order: 0; } .sp-art { order: 1; position: relative; top: auto; margin: 0 0 40px; } .sp-facts { order: 2; } .sp-copy .actions { order: 3; }
  .ph-body { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .top, .chat, .ck, .foot { display: none; } .dark { background: #fff; color: #000; } }
