/* ==========================================================================
   TERN website · review build (versions A, B, C)
   Brand: TERN blue + green, Newsreader (display) + Hanken Grotesk (text)
   ========================================================================== */

:root {
  --ink: #0B3B5B;
  --ink-deep: #082E48;
  --muted: #5F6B66;
  --green: #2E6B5C;
  --green-d: #235247;
  --green-b: #56BD84;
  --mint: #9FD3B8;
  --tint: #DCE6E0;
  --bg: #FDFCFB;
  --band: #F3F6F4;
  --line: rgba(11, 59, 91, .12);
  --line-2: rgba(11, 59, 91, .22);
  --b2: #8FA8BE;
  --b3: #C3CFDA;
  --b4: #D5DEE6;
  --b5: #E3E8EC;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gut: 32px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 24px 60px rgba(11, 59, 91, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pin-top: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--green-b); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { position: relative; padding: 96px 0; }
.band { background: var(--band); }
.sec-stack { padding-bottom: 40px; }
.sec-after-stack { padding-top: 40px; }
.sec-flush { padding-top: 0; }
.sec-tight { padding-top: 0; padding-bottom: 80px; }
.ruled::before { content: ""; position: absolute; top: 0; left: max(var(--gut), calc(50% - var(--wrap) / 2 + var(--gut))); right: max(var(--gut), calc(50% - var(--wrap) / 2 + var(--gut))); border-top: 1px solid var(--line); }
.flow > * + * { margin-top: 48px; }
.flow > .fine { margin-top: 24px; }
.flow > .more { margin-top: 28px; }
.flow > .below { margin-top: 28px; }
.flow-sm > * + * { margin-top: 28px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.eyebrow.num { font-size: 14px; letter-spacing: .1em; color: var(--green); }
/* h1 sizes are tuned so "More time to care." stays on one line in each hero column */
.h1 { font-size: min(68px, 6.5vw - 9px); line-height: 1.03; }
.v-a .h1 { font-size: min(64px, 6.4vw - 9.5px); }
.v-b .h1 { font-size: min(62px, 5.2vw); }
.v-index .h1 { font-size: clamp(40px, 5.6vw, 72px); }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; }
.h2-sm { font-size: clamp(30px, 3.7vw, 44px); line-height: 1.12; }
.h3 { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.18; letter-spacing: -.025em; }
.h3-lg { font-size: clamp(26px, 2.7vw, 32px); }
.g { color: var(--green); }
.nb { white-space: nowrap; }
.lead { font-size: clamp(17px, 1.45vw, 18.5px); line-height: 1.6; color: var(--muted); }
.lead.sm { font-size: 16px; }
.lead.lg { font-size: 20px; }
.fine { font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 900px; }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 820px; }
.head-sm { gap: 12px; max-width: 760px; }
.head-wide { max-width: 980px; }
.more { font-size: 16px; color: var(--muted); }
.more b { font-weight: 600; color: var(--green); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .i-down { transform: translateY(3px); }
.btn:hover .i-ne { transform: translate(2px, -2px); }
.btn:hover .i-right { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); color: #fff; box-shadow: 0 10px 24px rgba(11, 59, 91, .22); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; box-shadow: 0 10px 24px rgba(46, 107, 92, .25); }
.btn-white { background: #fff; color: var(--green); font-weight: 600; }
.btn-white:hover { color: var(--green-d); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-line-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line-white:hover { background: #fff; color: var(--green); }
.textlink { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 15.5px; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: none; }
.textlink svg { transition: transform .25s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }
.jump { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: var(--band); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }
.jump img { width: 30px; height: 30px; border-radius: 50%; margin-left: -10px; }
.jump:hover { background: var(--tint); color: var(--ink); }
.jump:hover svg { transform: translateY(3px); }
.jump svg { transition: transform .25s var(--ease); }
.below { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- header ---------- */
.hdr { position: relative; z-index: 30; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { width: 112px; height: auto; }
.hdr-nav { display: flex; gap: 30px; font-size: 15px; }
.hdr-nav a { position: relative; color: var(--ink); text-decoration: none; padding: 6px 0; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr-cta:hover { color: var(--green); }
.hdr-cta:hover .i-ne { transform: translate(2px, -2px); }
.hdr-cta svg { transition: transform .25s var(--ease); }

.v-c { --pin-top: 76px; }
.v-c .hdr { position: sticky; top: 0; background: rgba(253, 252, 251, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.v-c .hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 59, 91, .05); }
.v-c .hdr-in { padding-top: 13px; padding-bottom: 13px; }
.v-c section[id] { scroll-margin-top: 76px; }

/* ---------- hero (shared) ---------- */
.hero-pat { position: relative; }
.hero-pattern { position: absolute; inset: -96px 0 0 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(30deg, rgba(46, 107, 92, .09) 0 1px, transparent 1px 34px), repeating-linear-gradient(150deg, rgba(46, 107, 92, .09) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(46, 107, 92, .05) 0 1px, transparent 1px 58.9px);
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 18% 45%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 85% at 18% 45%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%); }
.hero-pat > .wrap { position: relative; z-index: 1; }
.hero-sub { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; }
.hero-p { max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.chip { position: absolute; left: 0; top: 0; z-index: 2; background: var(--bg); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 11px 18px 11px 16px; border-radius: 0 0 16px 0; }

/* Anna card */
.anna { position: absolute; z-index: 3; left: 28px; bottom: 0; width: min(330px, 84%); background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.anna-top { display: flex; align-items: center; gap: 12px; }
.anna-top img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.anna-name { font-family: var(--serif); font-size: 23px; line-height: 1.1; letter-spacing: -.02em; }
.anna-role { font-size: 13px; color: var(--muted); }
.tag-ai { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--band); }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 44px; }
.wave i { width: 3px; height: calc(var(--h) * 1%); border-radius: 2px; background: var(--green); opacity: .78; animation: wave 1.5s ease-in-out infinite; animation-delay: calc(var(--n) * -75ms); }
@keyframes wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.anna-text { font-size: 15px; line-height: 1.45; }
.anna-text b { display: block; font-weight: 700; }

/* hero A */
.heroA { padding: 44px 0 0; }
.heroA-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 60px; align-items: start; }
.heroA-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 10px; }
.heroA-vis { position: relative; padding-bottom: 104px; }
.heroA-img { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10.4; background: var(--tint); }
.heroA-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* hero B */
.heroB { padding: 40px 0 96px; }
.heroB-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.heroB-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.heroB-vis { flex: 1 1 560px; min-width: 0; position: relative; min-height: 540px; }
.heroB-img { position: absolute; inset: 0 0 64px 40px; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.heroB-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.oslog { position: absolute; z-index: 2; left: 0; bottom: 0; width: 330px; max-width: 90%; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 59, 91, .18); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.oslog-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.oslog-run { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--green); }
.oslog-run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.oslog ul { display: flex; flex-direction: column; gap: 10px; }
.oslog li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--band); font-size: 13px; line-height: 1.45; }
.oslog li b { font-size: 12px; font-weight: 600; color: var(--green); min-width: 40px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(86, 189, 132, .55); } 70% { box-shadow: 0 0 0 8px rgba(86, 189, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(86, 189, 132, 0); } }

/* hero C */
.heroC { padding: 40px 0 0; }
.heroC-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; }
.heroC-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.heroC-vis { position: relative; min-height: 548px; }
.heroC-img { position: absolute; inset: 0 0 52px 36px; border-radius: 32px; overflow: hidden; background: var(--tint); }
.heroC-img img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 40%; }
.heroC .anna { left: 0; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.proof div { padding: 22px 24px 30px 0; display: flex; flex-direction: column; gap: 2px; }
.proof div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.proof span { font-size: 14px; color: var(--muted); }

/* hero entrance */
.js .heroA-copy > *, .js .heroB-copy > *, .js .heroC-copy > * { animation: rise .9s var(--ease) both; }
.js .heroA-copy > :nth-child(2), .js .heroB-copy > :nth-child(2), .js .heroC-copy > :nth-child(2) { animation-delay: .06s; }
.js .heroA-copy > :nth-child(3), .js .heroB-copy > :nth-child(3), .js .heroC-copy > :nth-child(3) { animation-delay: .12s; }
.js .heroA-copy > :nth-child(4), .js .heroB-copy > :nth-child(4), .js .heroC-copy > :nth-child(4) { animation-delay: .18s; }
.js .heroA-copy > :nth-child(5), .js .heroB-copy > :nth-child(5), .js .heroC-copy > :nth-child(5) { animation-delay: .24s; }
.js .heroA-img, .js .heroB-img, .js .heroC-img { animation: rise 1.1s var(--ease) .1s both; }
.js .anna, .js .oslog { animation: pop .9s var(--ease) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- problem ---------- */
.figure { background: #fff; border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.figure.tint { background: var(--band); }
.figure-title { font-size: 15px; font-weight: 600; }
figcaption { font-size: 13px; font-style: italic; color: var(--muted); }
.daybar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; font-size: 14px; font-weight: 500; }
.daybar i, .shift-bar i { flex: 0 0 var(--w); min-width: 0; display: flex; align-items: center; font-style: normal; white-space: nowrap; overflow: hidden; }
.daybar i { padding: 0 16px; }
.k-care { background: var(--green); color: #fff; }
.k-travel { background: var(--b2); color: var(--ink); }
.k-admin { background: var(--b3); color: var(--ink); }
.k-idle { background: var(--b5); color: var(--ink); }
.statcards { display: flex; flex-wrap: wrap; gap: 24px; }
.statcard { flex: 1 1 260px; min-width: 0; background: #fff; border-radius: var(--r); padding: 22px 28px; display: flex; flex-direction: column; gap: 6px; }
.statcard b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -.03em; }
.statcard span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; }
.problem-grid .figure { justify-content: center; }
.statcol { display: flex; flex-direction: column; gap: 24px; }
.statcol .statcard { flex: 1 1 auto; justify-content: center; }

/* ---------- nurse stages ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stage { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); }
.stage:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 59, 91, .10); }
.stage-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.stage:hover .stage-img img { transform: scale(1.05); }
.stage-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.stage-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.stage h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.stage p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- shift split ---------- */
.shift { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.shift-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.shift-legend span { display: inline-flex; align-items: center; gap: 8px; }
.shift-legend i { width: 12px; height: 12px; border-radius: 3px; }
.shift-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: center; }
.shift-big { display: flex; flex-direction: column; gap: 2px; }
.shift-big b { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1; letter-spacing: -.04em; }
.shift-big span { font-size: 14px; color: var(--muted); }
.shift-row.is-hl .shift-big b { color: var(--green); }
.shift-bar { display: flex; height: 52px; border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 600; }
.shift-bar i { padding: 0 12px; }
.shift-vals { display: none; }
.shift-vals span { display: inline-flex; align-items: center; gap: 6px; }
.shift-vals i { width: 10px; height: 10px; border-radius: 3px; }
.js .reveal .shift-bar, .js .reveal .daybar { clip-path: inset(0 100% 0 0 round 12px); transition: clip-path 1.3s var(--ease) .2s; }
.js .reveal.in .shift-bar, .js .reveal.in .daybar { clip-path: inset(0 0 0 0 round 12px); }
.js .reveal.in .is-hl .shift-bar { transition-delay: .5s; }

/* B: figure with two labelled bars */
.figure-kpi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.figure-kpi b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 52px); line-height: 1; letter-spacing: -.03em; color: var(--green); }
.figure-kpi span { font-size: 16px; color: var(--muted); }
.shift-pairs { display: flex; flex-direction: column; gap: 14px; }
.shift-pair { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.shift-pair-label { font-size: 14px; font-weight: 500; }
.shift-pair.is-hl .shift-pair-label { font-weight: 600; color: var(--green); }
.shift-pair .shift-bar { height: 44px; border-radius: 10px; }

/* C: outcome */
.outcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.outcome + .fine { margin-top: 28px; }
.big-num { display: block; font-size: clamp(54px, 7.4vw, 100px); line-height: .98; letter-spacing: -.045em; margin-bottom: 12px; white-space: nowrap; }
.shift-c { gap: 26px; border: 0; box-shadow: 0 18px 44px rgba(11, 59, 91, .07); }
.shift-item { display: flex; flex-direction: column; gap: 10px; }
.shift-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.shift-item-top b { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.02em; }
.shift-item.is-hl .shift-item-top { color: var(--green); }

/* ---------- scale ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.split-head.wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { border-top: 3px solid var(--green); padding-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.4vw, 66px); line-height: 1; letter-spacing: -.04em; color: var(--green); }
.stat strong { margin-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.stat span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card { border-radius: var(--r); padding: 28px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid var(--line); background: #fff; }
.duo-card.tint { background: var(--band); border-color: transparent; }
.duo-card .eyebrow { font-size: 11.5px; color: var(--green); }
.duo-card .h3 { font-size: clamp(26px, 3vw, 34px); }
.duo-card p { font-size: 15.5px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts li { background: var(--band); border-radius: 16px; padding: 18px 22px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.facts b { display: block; margin-bottom: 2px; font-size: 16.5px; font-weight: 600; color: var(--ink); }

/* ---------- CareOS stack (scroll-pinned) ---------- */
.stack { --step: max(280px, 44vh); --step: max(280px, 44svh); position: relative; }
.stack-track { position: relative; height: calc(100vh - var(--pin-top) + var(--steps) * var(--step)); height: calc(100svh - var(--pin-top) + var(--steps) * var(--step)); }
.stack-pin { position: sticky; top: var(--pin-top); height: calc(100vh - var(--pin-top)); height: calc(100svh - var(--pin-top)); display: flex; align-items: center; overflow: hidden; }
.stack-inner { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.stack-row { display: flex; gap: 40px; align-items: center; }
.stack-list { flex: 1 1 400px; min-width: 0; min-height: 540px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.layer { display: flex; flex-direction: column; align-items: flex-start; }
.layer-head { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 18px; border: 0; border-radius: 999px; background: var(--muted); color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; transition: background .3s ease, transform .25s var(--ease); }
.layer-head:hover { transform: translateX(4px); }
.layer.is-built .layer-head { background: var(--green); }
.layer-num { display: none; font-size: 12px; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; }
.v-a .layer-num { display: inline; }
.layer-plus { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 16px; line-height: 1; }
.layer-body { display: none; align-self: stretch; flex-direction: column; gap: 10px; background: var(--ink); color: #fff; border-radius: 20px; padding: 20px 22px; }
.layer-k { font-size: 13px; font-weight: 500; color: var(--b3); }
.layer-body p { font-size: 17px; line-height: 1.5; }
.layer-chips { font-size: 13px; line-height: 1.5; color: var(--b3); }
.layer.is-sel .layer-head { display: none; }
.layer.is-sel .layer-body { display: flex; animation: layerIn .5s var(--ease); }
@keyframes layerIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.stack-vis { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; }
.stack-iso { position: relative; width: 520px; height: 600px; flex: none; }
.slab { position: absolute; left: 50%; top: calc(450px - var(--i) * 38px - var(--lift, 0px)); width: 300px; height: 300px; margin: -150px 0 0 -150px; transform: scaleY(.5774) rotate(45deg); border-radius: 22px; background: transparent; border: 1.5px dashed rgba(11, 59, 91, .18); opacity: .9; display: flex; align-items: center; justify-content: center; transition: top .5s ease, background .4s ease, box-shadow .4s ease, border-color .4s ease; }
.slab.is-built { background: rgba(255, 255, 255, .82); border: 1px solid rgba(11, 59, 91, .22); box-shadow: 10px 10px 0 rgba(11, 59, 91, .10); opacity: 1; }
.slab.is-sel { --lift: 14px; background: var(--ink); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 10px 10px 0 rgba(11, 59, 91, .28); }
.slab.is-sel.is-top { background: var(--green); }
.slab span { font-size: 20px; font-weight: 600; letter-spacing: .01em; color: #fff; opacity: 0; transition: opacity .3s ease; text-align: center; }
.slab.is-sel span { opacity: 1; }

.stack-foot { display: flex; align-items: center; gap: 16px; }
.stack-progress { width: 96px; height: 6px; border-radius: 999px; background: var(--b4); overflow: hidden; flex: none; }
.stack-progress i { display: block; height: 100%; width: 12.5%; background: var(--green); border-radius: 999px; transition: width .4s ease; }
.stack-progress-top { display: none; }
.stack-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.stack-skip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.stack-skip:hover { color: var(--green); }
.stack-mobile { display: none; }

.stack.is-static .stack-track, .no-js .stack-track { height: auto; }
.stack.is-static .stack-pin, .no-js .stack-pin { position: static; height: auto; padding: 32px 0 8px; }
.no-js .layer-head { display: none; }
.no-js .layer-body { display: flex; }
.no-js .stack-vis, .no-js .stack-foot { display: none; }

@media (min-width: 760px) and (max-width: 1100px) {
  .stack-iso { transform: scale(.8); margin: -60px -52px; }
  .stack-row { gap: 24px; }
}
@media (min-width: 760px) and (max-height: 800px) {
  .stack-iso { transform: scale(.82); margin-block: -54px; }
  .stack-list { min-height: 0; gap: 8px; }
  .layer-head { min-height: 40px; }
  .layer-body { padding: 16px 20px; gap: 8px; }
  .layer-body p { font-size: 15.5px; }
}
@media (min-width: 760px) and (max-height: 680px) {
  .stack-iso { transform: scale(.68); margin-block: -96px; }
  .stack-list { gap: 6px; }
  .layer-head { min-height: 36px; font-size: 14px; }
}

/* ---------- AI team ---------- */
.handoff { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.handoff i { font-style: normal; color: var(--green); }

/* A: long cards */
.teamA { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mate { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); }
.mate:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(11, 59, 91, .09); }
.mate-top { position: relative; display: flex; align-items: center; gap: 20px; padding: 28px 26px 24px; background: var(--band); }
.mate-top img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.mate-partner { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mate-name { margin-top: 4px; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.mate-role { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.mate-tag { position: absolute; right: 16px; top: 13px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.mate-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 22px; }
.mate-benefit { font-size: 18px; font-weight: 600; line-height: 1.3; }
.mate-text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.mate .handoff { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.mate-status { font-size: 12.5px; color: var(--muted); }
/* a card without a status line keeps its hand-off row level with its neighbour in the two-column grid */
.mate-status:empty { display: none; }
@media (min-width: 961px) { .mate-status:empty { display: block; } .mate-status:empty::before { content: "\00a0"; } }
.callout { display: flex; gap: 18px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: var(--r); padding: 26px 30px; }
.callout svg { flex: none; margin-top: 5px; color: var(--mint); }
.callout strong { font-size: 19px; font-weight: 600; }
.callout p { margin-top: 4px; font-size: 15.5px; color: var(--b4); }

/* B: short cards */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.crew-card { background: #fff; border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .35s, transform .35s var(--ease); }
.crew-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 59, 91, .09); }
.crew-top { display: flex; align-items: center; gap: 14px; }
.crew-top img, .crew-ph { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.crew-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--green); }
.crew-name { font-size: 20px; font-weight: 600; line-height: 1.2; }
.crew-role { font-size: 14px; font-weight: 500; color: var(--green); }
.crew-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* C: blended cards */
.squad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sq { background: #fff; border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .35s, transform .35s var(--ease); }
.sq:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 59, 91, .10); }
.sq-top { display: flex; align-items: center; gap: 14px; }
.sq-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.sq-beside { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.sq-name { margin-top: 2px; font-size: 27px; line-height: 1.1; letter-spacing: -.03em; }
.sq-role { display: block; font-size: 13.5px; color: var(--muted); }
.sq-pilot { margin-left: auto; align-self: flex-start; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--band); padding: 4px 8px; border-radius: 6px; }
.sq > p { font-size: 15.5px; line-height: 1.55; }
.sq .handoff { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* C: film card */
.action { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); background: #fff; border-radius: 24px; overflow: hidden; }
.action-vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); cursor: pointer; overflow: hidden; }
.action-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease); }
.action-vid::after { content: ""; position: absolute; inset: 0; background: rgba(11, 59, 91, .30); transition: background .3s; }
.action-vid:hover::after { background: rgba(11, 59, 91, .16); }
.action-vid:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 80px; height: 80px; margin: -40px 0 0 -40px; padding-left: 4px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.action-vid:hover .play { transform: scale(1.08); }
.action-copy { padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.action-copy p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 30, 47, .86); }
.modal[hidden] { display: none; }
.modal-box { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.modal-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal-x { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-x:hover { background: rgba(255, 255, 255, .28); }

/* ---------- C: patients & families ---------- */
.between { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.between-vis { position: relative; padding-bottom: 48px; }
.between-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.3; background: var(--tint); }
.between-img img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.callcard { position: absolute; right: -22px; bottom: 0; width: 252px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.callcard-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green-b); animation: pulse 2s infinite; flex: none; }
.callcard-row { display: flex; align-items: center; gap: 12px; }
.callcard-row img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.callcard-row b { display: block; font-size: 16px; line-height: 1.2; }
.callcard-row span { font-size: 13px; color: var(--muted); }
.callcard p { font-size: 14.5px; line-height: 1.4; }
.callcard p b { display: block; }
.between-copy { display: flex; flex-direction: column; gap: 32px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair-card { background: var(--band); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pair-top { display: flex; align-items: center; gap: 12px; }
.pair-top img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.pair-top h3 { font-size: 25px; line-height: 1.1; }
.pair-top span { font-size: 13.5px; font-weight: 500; color: var(--green); }
.pair-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- care spectrum ---------- */
.spectrum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--band); border-radius: var(--r); overflow: hidden; }
.spectrum.white { background: #fff; }
.spec { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec-n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.spec p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.spec-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.spectrum-title { margin-bottom: 22px; }

/* ---------- human panel ---------- */
.human { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--green); color: #fff; }
.human-img { position: relative; min-height: 500px; }
.human-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.human-img .chip { left: 22px; top: auto; bottom: 22px; border-radius: 8px; background: #fff; }
.human-copy { padding: 56px 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; }
.human-copy .eyebrow { color: var(--mint); }
.human-lines { font-size: 19px; line-height: 1.55; }
.human-p { font-size: 15.5px; line-height: 1.6; color: var(--tint); }
.human-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.human-tag svg { color: var(--mint); }

/* ---------- workforce + integration ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.flowcol { display: flex; flex-direction: column; gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; line-height: 1.25; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 600; }
.steps b { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--green); font-variant-numeric: tabular-nums; }
.kpis { display: flex; flex-direction: column; gap: 30px; }
.kpi { border-left: 3px solid var(--green); padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.kpi b { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.kpi span { font-size: 14.5px; color: var(--muted); }
.kpis-cards { gap: 16px; }
.kpis-cards .kpi { border-left: 0; background: #fff; border-radius: var(--r); padding: 26px 30px; }
.kpis-cards .kpi b { color: var(--green); }

/* ---------- trust ---------- */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert { background: var(--band); border-radius: 16px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.cert-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--green); flex: none; }
.cert b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.cert div span { display: block; font-size: 13.5px; color: var(--muted); }
.certs.col .cert { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px; border-radius: var(--r); }
.certs.col .cert b { font-size: 18px; }
.trustC { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding-top: 64px; border-top: 1px solid var(--line); }
.trustC + .fine { margin-top: 24px; }
.trustC-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.trustC-copy p { font-size: 15px; color: var(--muted); }
.certchips { display: flex; flex-wrap: wrap; gap: 10px; }
.certchips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--band); font-size: 14.5px; font-weight: 600; }
.certchips svg { color: var(--green); }

/* ---------- closing ---------- */
.closing { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.closing h2 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1; }
.closing h2 em { display: block; font-style: italic; color: var(--green); }
.closing p { max-width: 560px; font-size: 18px; color: var(--muted); }
.closing .btns { justify-content: center; }
.closing .mail { font-size: 14px; color: var(--muted); text-underline-offset: 3px; }
.cta-green { background: var(--green); color: #fff; }
.cta-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cta-copy p { font-size: 18px; color: var(--tint); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--b4); padding: 56px 0 96px; }
.solo .ftr { padding-bottom: 56px; } /* no version switcher to clear */
.ftr-in { display: flex; flex-wrap: wrap; gap: 28px 32px; justify-content: space-between; align-items: flex-start; }
.ftr-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.ftr-links a { color: var(--b4); text-underline-offset: 3px; }
.ftr-links a:hover { color: #fff; }
.ftr-legal { width: 100%; font-size: 13px; }
.ftr-notes { width: 100%; font-size: 12.5px; line-height: 1.6; }
.ftr-notes summary { cursor: pointer; font-weight: 600; }
.ftr-notes p { margin-top: 10px; max-width: 900px; }
.ftr-light { background: transparent; color: var(--muted); border-top: 1px solid var(--line); }
.ftr-light .ftr-links a { color: var(--ink); }
.ftr-light .ftr-links a:hover { color: var(--green); }

/* ---------- version switcher (review only) ---------- */
.vswitch { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(8, 46, 72, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(11, 59, 91, .3); font-size: 13px; color: #fff; white-space: nowrap; }
.vswitch-label { padding: 0 10px 0 13px; font-weight: 600; letter-spacing: .04em; color: var(--b3); text-decoration: none; }
.vswitch-label:hover { color: #fff; }
.vswitch .v { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 38px; height: 34px; padding: 0 13px; border-radius: 999px; color: #fff; text-decoration: none; transition: background .2s, color .2s; }
.vswitch .v b { font-weight: 700; }
.vswitch .v small { font-size: 12.5px; font-weight: 500; opacity: .82; }
.vswitch .v:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.vswitch .v[aria-current="page"] { background: #fff; color: var(--ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in, .reveal-all .reveal { opacity: 1; transform: none; }

/* ---------- version A: editorial, narrower measure ---------- */
.v-a { --wrap: 1140px; }
.v-a .sec { padding: 92px 0; }
.v-a .sec-stack { padding-bottom: 40px; }
.v-a .sec-flush { padding-top: 0; }

/* ---------- overview page ---------- */
.idx { padding: 40px 0 96px; }
.idx-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.idx-head { max-width: 760px; margin-bottom: 56px; }
.idx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.idx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); }
.idx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(11, 59, 91, .12); }
.idx-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.idx-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 1.2s var(--ease); }
.idx-card:hover .idx-img img { transform: scale(1.04); }
.idx-letter { position: absolute; left: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; box-shadow: 0 8px 24px rgba(11, 59, 91, .2); }
.idx-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 26px; }
.idx-body .eyebrow { font-size: 11.5px; color: var(--green); letter-spacing: .1em; }
.idx-name { font-size: 27px; }
.idx-body > p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.idx-flow { counter-reset: f; display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 6px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.idx-flow li { counter-increment: f; display: flex; gap: 10px; }
.idx-flow li::before { content: counter(f, decimal-leading-zero); flex: none; width: 20px; font-size: 11.5px; font-weight: 700; line-height: 1.75; color: var(--green); font-variant-numeric: tabular-nums; }
.idx-body .btn { margin-top: auto; }
.idx-common { margin-top: 56px; padding: 30px 32px; border-radius: var(--r); background: var(--band); }
.idx-common ul { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; font-size: 15.5px; color: var(--muted); }
.idx-common li { position: relative; padding-left: 20px; }
.idx-common li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.idx-fine { margin-top: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hdr-nav { gap: 22px; }
  .heroA-grid, .heroC-grid { gap: 40px; }
  .between { gap: 48px; }
  .split { gap: 48px; }
  .callcard { right: -8px; }
}

@media (max-width: 960px) {
  .h1, .v-a .h1, .v-b .h1 { font-size: clamp(34px, 10.6vw, 60px); }
  .hdr-nav { display: none; }
  .heroA-grid, .heroC-grid { grid-template-columns: minmax(0, 1fr); }
  .heroA-vis { max-width: 680px; }
  .heroC-vis { min-height: 480px; max-width: 720px; }
  .split-head, .split-head.wide-left, .split, .outcome, .between, .trustC, .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split, .between { align-items: start; }
  .between-vis { max-width: 520px; }
  .between-img { aspect-ratio: 4 / 3.4; }
  .statcol { flex-direction: row; flex-wrap: wrap; }
  .statcol .statcard { flex: 1 1 240px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .squad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teamA { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stage { flex-direction: row; }
  .stage-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 210px; }
  .stage-body { flex: 1; justify-content: center; }
  .human { grid-template-columns: minmax(0, 1fr); }
  .human-img { min-height: 340px; }
  .human-copy { padding: 44px 36px; }
  .action { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .idx-common ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  :root { --gut: 20px; --pin-top: 0px; }
  .v-c { --pin-top: 62px; }
  body { font-size: 16px; }
  .sec, .v-a .sec { padding: 64px 0; }
  .sec-stack, .v-a .sec-stack { padding-bottom: 24px; }
  .sec-after-stack { padding-top: 32px; }
  .sec-flush, .v-a .sec-flush { padding-top: 0; }
  .sec-tight { padding-top: 0; padding-bottom: 56px; }
  .flow > * + * { margin-top: 36px; }
  .flow > .fine { margin-top: 20px; }
  .head { gap: 14px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .eyebrow.num { font-size: 12.5px; }
  .btn { min-height: 50px; padding: 0 22px; }
  .hdr-in { padding-top: 16px; padding-bottom: 10px; }
  .logo img { width: 98px; }
  .v-c .hdr-in { padding-top: 10px; padding-bottom: 10px; }

  .heroA { padding-top: 28px; }
  .heroA-copy, .heroC-copy, .heroB-copy { gap: 20px; }
  .heroA-vis { padding-bottom: 120px; }
  .heroA-img { aspect-ratio: 4 / 3.3; }
  .anna { left: 14px; width: min(310px, 88%); padding: 16px 18px; gap: 12px; }
  .heroC .anna { left: 0; }
  .wave { height: 36px; }
  .hero-strip { margin-top: 32px; flex-direction: column; }
  .heroB { padding: 28px 0 64px; }
  .heroB-grid { gap: 36px; }
  .heroB-vis { min-height: 0; flex-basis: 100%; display: flex; flex-direction: column; }
  .heroB-img { position: relative; inset: auto; aspect-ratio: 4 / 3.2; }
  .oslog { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: -56px 12px 0; padding: 16px; }
  .heroC { padding-top: 24px; }
  .heroC-vis { min-height: 430px; }
  .heroC-img { inset: 0 0 96px 0; border-radius: 24px; }
  .proof { margin-top: 44px; }
  .proof div { padding: 16px 12px 18px 0; }
  .proof div + div { padding-left: 14px; }
  .proof div:nth-child(3) { padding-left: 0; }
  .proof span { font-size: 13px; }

  .figure { padding: 20px; }
  .daybar { height: 56px; font-size: 13px; }
  .daybar i { padding: 0 10px; }
  .daybar .k-admin em, .daybar .k-idle em, .daybar .k-travel em { display: none; }
  .shift-vals { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
  .statcard { padding: 18px 22px; }
  .statcard b { font-size: 36px; }

  .stage { flex-direction: column; }
  .stage-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .stage-body { padding: 20px 20px 22px; }
  .stage h3 { font-size: 24px; }

  .shift { padding: 20px; gap: 22px; }
  .shift-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shift-big { flex-direction: row; align-items: baseline; gap: 12px; }
  .shift-big b { font-size: 46px; }
  .shift-bar { height: 46px; }
  .shift-bar i:not(.k-care) em { display: none; }
  .shift-bar i { padding: 0 10px; }
  .shift > .shift-legend { display: none; }
  .shift-pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .figure .shift-legend { display: none; }
  .outcome { gap: 28px; }

  .stat b { font-size: 46px; }
  .stat strong { font-size: 16px; margin-top: 6px; }
  .stat span { font-size: 14px; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .duo-card { padding: 22px; }

  .mate-top { padding: 22px 20px 20px; gap: 16px; }
  .mate-top.has-tag { padding-top: 30px; }
  .mate-top img { width: 72px; height: 72px; }
  .mate-name { font-size: 27px; }
  .mate-body { padding: 20px 20px 18px; }
  .callout { padding: 22px; gap: 14px; }
  .squad { grid-template-columns: minmax(0, 1fr); }
  .sq { padding: 20px; }
  .crew { grid-template-columns: minmax(0, 1fr); }
  .action-copy { padding: 26px 22px 28px; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

  .between-vis { padding-bottom: 64px; }
  .callcard { right: 12px; left: auto; }
  .pair { grid-template-columns: minmax(0, 1fr); }

  .spectrum { grid-template-columns: minmax(0, 1fr); }
  .spec { padding: 22px; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line); }
  .human-copy { padding: 36px 24px 40px; gap: 18px; }
  .human-img { min-height: 260px; }
  .human-lines { font-size: 17.5px; }
  .kpis-cards .kpi { padding: 22px; }
  .certs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .certs.col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs.col .cert { padding: 16px; }
  .certs.col .cert b { font-size: 15.5px; }
  .trustC { padding-top: 48px; }
  .closing p br { display: none; }
  .cta-in { gap: 28px; }
  .ftr { padding: 44px 0 96px; }
  .solo .ftr { padding-bottom: 44px; }

  /* stack: pinned stage with one card and prev/next */
  .stack { --step: max(240px, 36vh); --step: max(240px, 36svh); }
  .stack-inner { height: 100%; padding-top: 14px; padding-bottom: 76px; justify-content: space-between; align-items: center; gap: 10px; }
  .stack-progress-top { display: block; width: 120px; height: 8px; background: var(--b3); }
  .stack-row { flex: 1 1 auto; min-height: 0; width: 100%; justify-content: center; align-items: center; }
  .stack-list { display: none; }
  .stack-vis { flex: none; width: 100%; height: calc(560px * var(--k, .7)); align-items: flex-start; }
  .stack-iso { transform: scale(var(--k, .7)); transform-origin: 50% 4%; margin: 0; }
  .stack-mobile { display: flex; align-items: center; gap: 8px; width: 100%; flex: none; }
  .stack-nav { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--muted); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .stack-mcard { flex: 1 1 auto; min-width: 0; min-height: 138px; background: var(--ink); color: #fff; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
  .stack-mcard .layer-k { font-size: 12px; }
  .stack-mcard p { font-size: 14px; line-height: 1.5; }
  .stack-foot { display: none; }
  .solo .stack-inner { padding-bottom: 32px; }
  .stack.is-static .stack-inner { height: auto; padding-bottom: 8px; }

  .vswitch { bottom: 12px; }
  .vswitch .v small { display: none; }
  .vswitch .v { min-width: 40px; padding: 0 12px; }
  .idx { padding: 24px 0 96px; }
  .idx-head { margin-bottom: 36px; }
  .idx-common { padding: 22px; }
}

@media (max-width: 400px) {
  .stats { gap: 24px 16px; }
  .certs.col { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal .shift-bar, .js .reveal .daybar { clip-path: none; transition: none; }
  .wave i, .live, .oslog-run::before { animation: none; }
  .js .heroA-copy > *, .js .heroB-copy > *, .js .heroC-copy > *, .js .heroA-img, .js .heroB-img, .js .heroC-img, .js .anna, .js .oslog { animation: none; }
  .btn, .stage, .mate, .sq, .crew-card, .idx-card { transition: none; }
}

@media print {
  .vswitch, .modal { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
