/* 21c Care — site styles.
   Light, clinical base with a full dark mode. One action colour (#0a6cbc, 5.41:1 with white),
   used only for primary actions and links. Geist carries the brand in headlines; body copy
   uses the system face for legibility. Motion is reserved for moments that explain a feature. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;          /* 16.8:1 on bg */
  --ink-2: #6e6e73;        /* 5.07:1 on bg, 4.66:1 on bg-alt */
  --line: #d2d2d7;
  --field: #86868b;        /* 3.62:1, meets 3:1 for control borders */
  --accent: #0a6cbc;       /* actions and links only */
  --accent-hover: #075a9e;
  --accent-soft: rgba(10, 108, 188, .1);
  --signal: #27aae1;       /* the logo cyan: decorative lines only, never text */
  --ok: #1d8348;
  --warn: #b25000;
  --danger: #c4314b;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1120px;
  --wide: 1280px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 52px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --ink: #f5f5f7;        /* 19.3:1 */
    --ink-2: #a1a1a6;      /* 8.2:1 on bg, 6.6:1 on #1c1c1e */
    --line: #2c2c2e;
    --field: #6e6e73;
    --accent: #4aa8ff;     /* 8.3:1 on bg; black text on it 8.3:1 */
    --accent-hover: #74bcff;
    --accent-soft: rgba(74, 168, 255, .14);
    --ok: #34c759;
    --warn: #ff9f0a;
    --danger: #ff6b81;
    --card: #1c1c1e;
    --shadow: 0 0 0 1px #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ type */
.t-hero, .t-1, .t-2 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
.t-hero { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.04; letter-spacing: -.035em; }
.t-1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
.t-2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.t-3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.sub { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; max-width: 40ch; }
.eyebrow { display: block; font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.head { margin-bottom: clamp(40px, 6vw, 64px); }
.head .sub { margin-top: 16px; }

/* ------------------------------------------------------------ buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; line-height: 1.2; transition: background .2s var(--ease), transform .1s var(--ease); }
@media (prefers-color-scheme: dark) { .btn { color: #000; } }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 18px; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--accent); font-size: 17px; }
.link::after { content: '\203A'; font-size: 1.25em; line-height: 1; transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 32px; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--line); }
.nav .wrap-wide { height: 100%; display: flex; align-items: center; gap: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.logo img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-2); border-radius: 8px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 21px; padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ------------------------------------------------------------ sections */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-sm { padding: clamp(56px, 7vw, 88px) 0; }
.alt { background: var(--bg-alt); }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head .sub { margin-top: 16px; }

/* reveal: content settles in once, quickly; never blocks reading */
[data-reveal] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }

/* ------------------------------------------------------------ hero */

/* ------------------------------------------------------------ story: a day with Systolic */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 clamp(32px, 6vw, 96px); }
.steps { padding: 18vh 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step time { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 600; color: var(--accent); }
.step h3 { margin: 8px 0 12px; }
.step p { color: var(--ink-2); max-width: 36ch; }
.stage { position: sticky; top: calc(var(--nav-h) + 8vh); height: min(68vh, 540px); align-self: start; margin-top: 12vh; }
.device { position: relative; height: 100%; border-radius: 28px; background: var(--card); box-shadow: var(--shadow), 0 30px 80px -30px rgba(10, 60, 110, .25); overflow: hidden; }
.device-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.device-bar span { margin-left: 8px; }
.scene { position: absolute; inset: 44px 0 0; padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.scene.on { opacity: 1; visibility: visible; }
.scene-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; }
.scene-title small { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-alt); color: var(--ink-2); }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.chip.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip.ai { background: var(--accent-soft); color: var(--accent); }
/* every scene element waits for its cue; cues only run while the scene is on screen */
.scene .cue { opacity: 0; transform: translateY(8px); }
.scene.on .cue { animation: cue .5s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes cue { to { opacity: 1; transform: none; } }

/* scene 1: the call. The waveform is the caller's voice; it stops when the booking lands. */
.wave { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 4px; }
.wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 3px; background: var(--signal); transform: scaleY(.15); }
.scene.on .wave i { animation: talk 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); animation-iteration-count: 4; }
@keyframes talk { 0% { transform: scaleY(.15); } 100% { transform: scaleY(var(--h, .8)); } }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.bubble.them { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 6px; }
.bubble.ai { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
@media (prefers-color-scheme: dark) { .bubble.ai { color: #000; } }
.booked { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; }
.booked b { display: block; }
.tick { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 16px; }
.takeover { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.takeover b { color: var(--accent); font-weight: 600; }

/* scene 2: the ward round. Dictation becomes a SOAP note, line by line; one drug is flagged, not guessed. */
.soap { display: grid; gap: 10px; font-size: 15px; }
.soap div { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: baseline; }
.soap b { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.soap span { clip-path: inset(0 100% 0 0); }
.scene.on .soap span { animation: type .9s steps(28, end) forwards; animation-delay: calc(var(--d) * 1s); }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.flag { margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); font-size: 14px; }
.flag b { color: var(--warn); }
.flag .opts { display: flex; gap: 8px; margin-top: 8px; }
.flag .opts span { padding: 4px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }

/* scene 3: the lab. A barcode is read, results arrive, one value stands out, the report goes out. */
.barcode { position: relative; height: 54px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .85; }
.barcode::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; left: -4px; background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.scene.on .barcode::after { animation: scan 1s .3s var(--ease) forwards; }
@keyframes scan { to { left: 100%; } }
.results { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.results td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.results td:last-child { text-align: right; color: var(--ink-2); }
.results .hi td:nth-child(2) { color: var(--danger); font-weight: 600; }

/* scene 4: the report. A plain question becomes rows; the bars grow from the data, not for show. */
.ask { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.ask span { clip-path: inset(0 100% 0 0); display: inline-block; }
.scene.on .ask span { animation: type 1.2s steps(40, end) .2s forwards; }
.bars { display: grid; gap: 10px; font-size: 14px; }
.bars div { display: grid; grid-template-columns: 9em 1fr 3em; gap: 10px; align-items: center; }
.bars i { height: 10px; border-radius: 5px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.scene.on .bars i { animation: grow .8s var(--ease-out) forwards; animation-delay: calc(1.5s + var(--i) * .12s); }
@keyframes grow { to { transform: scaleX(var(--v)); } }
.bars em { font-style: normal; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  /* phones: a compact panel pinned at the top; the active step reads just below it */
  .stage { order: -1; top: calc(var(--nav-h) + 8px); height: 384px; margin-top: 0; z-index: 2; }
  .device { border-radius: 22px; }
  .scene { gap: 8px; padding: 14px 16px; }
  .wave { height: 36px; }
  .bubble { font-size: 13px; padding: 8px 12px; }
  .booked { padding: 10px; font-size: 13px; }
  .takeover, .scene .note { display: none; }
  .soap, .ask { font-size: 13px; }
  .barcode { height: 40px; }
  .results td { padding: 6px 4px; font-size: 13px; }
  .bars { gap: 7px; font-size: 12px; }
  .steps { padding: 24px 0 30vh; }
  .step { min-height: 58vh; justify-content: flex-start; padding-top: 8px; }
}

/* ------------------------------------------------------------ product tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 18px 40px -18px rgba(0, 40, 80, .25); }
.tile small { font-size: 14px; color: var(--ink-2); }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile .link { margin-top: auto; padding-top: 8px; font-size: 16px; }
.tile .link::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.tile .ai { position: absolute; top: 24px; right: 24px; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ proof */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 24px; align-items: center; }
.logos img { width: 100%; height: 64px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .logos img { mix-blend-mode: normal; filter: grayscale(1) invert(1); opacity: .6; } .logos img:hover { filter: grayscale(1) invert(1); opacity: .9; } }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--ink-2); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ map */
.map { width: 100%; height: auto; }
.map .land { opacity: .55; }
.map .arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.js .map .arc { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.map.in .arc { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d); }
.map .pin { fill: var(--accent); }
.map .hq { fill: var(--ink); }
.map text { fill: var(--ink); font: 600 18px var(--text); }
.map text.sub { fill: var(--ink-2); font-weight: 400; font-size: 14px; }
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; font-size: 15px; color: var(--ink-2); }
.offices h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.offices a { color: var(--accent); }
.offices p + p { margin-top: 2px; }
@media (max-width: 860px) { .offices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .offices { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ quote */
.quote { font-family: var(--display); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.cite { margin-top: 20px; color: var(--ink-2); }
.cite b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ products page */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--bg); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product .sub { margin-top: 12px; }
.product .callout { margin-top: 24px; }
.checks { display: grid; gap: 12px; align-content: start; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.checks li::before { content: ''; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%230a6cbc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.checks li ul { grid-column: 2; display: grid; gap: 6px; margin-top: 6px; color: var(--ink-2); }
.checks li ul li { grid-template-columns: 12px 1fr; }
.checks li ul li::before { width: 5px; height: 5px; margin-top: 9px; background: var(--ink-2); }
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); font-size: 16px; }
.callout b { color: var(--accent); flex: none; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ about */
.statements { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.statement { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.statement p { margin-top: 12px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.facts li b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.facts li { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .statements, .facts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ team */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--accent); background: var(--accent-soft); }
.person h3 { font-size: 21px; letter-spacing: -.01em; }
.person .role { color: var(--accent); font-size: 15px; font-weight: 500; margin-top: 2px; }
.person p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dev { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.dev header { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.dev .avatar { width: 52px; height: 52px; font-size: 18px; }
.dev h3 { font-size: 19px; }
.dev .role { font-size: 14px; color: var(--ink-2); }
.dev ul { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.dev ul li { padding-left: 14px; position: relative; }
.dev ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .devs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .devs, .leaders { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ careers */
.roles { display: grid; gap: 12px; }
.role { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
:root { interpolate-size: allow-keywords; }
.role::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.role[open]::details-content { block-size: auto; }
.role summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 24px 28px; min-height: 44px; }
.role summary::-webkit-details-marker { display: none; }
.role summary h3 { font-size: 21px; letter-spacing: -.01em; }
.role summary p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.role .plus { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; transition: transform .3s var(--ease); }
.role .plus::before { content: '+'; font-size: 20px; line-height: 1; color: var(--ink-2); }
.role[open] .plus { transform: rotate(45deg); }
.role-body { padding: 0 28px 28px; display: grid; gap: 24px; }
.role-body > p { color: var(--ink-2); max-width: 70ch; }
.role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.role-cols h4 { font-size: 17px; margin-bottom: 14px; }
.role-cols .checks li { font-size: 15px; }
.role-body .actions { justify-content: flex-start; margin-top: 0; }
@media (max-width: 760px) { .role-cols { grid-template-columns: 1fr; } .role summary { padding: 20px; } .role-body { padding: 0 20px 22px; } }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perks b { display: block; font-size: 17px; margin-bottom: 4px; }
.perks li { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ forms: custom fields */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
/* floating-label field: the label sits in the field as a hint, then moves up out of the way as you type */
.field { position: relative; }
.field input, .field textarea { width: 100%; min-height: 56px; padding: 24px 16px 8px; border-radius: var(--radius-sm); border: 1px solid var(--field); background: var(--card); font-size: 17px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 132px; resize: vertical; padding-top: 28px; line-height: 1.45; field-sizing: content; max-height: 360px; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 17px; color: var(--ink-2); pointer-events: none; transform-origin: left top; transition: transform .18s var(--ease), color .18s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); }
.field input:focus + label, .field textarea:focus + label { color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field .opt { font-weight: 400; }
.field .msg { display: block; min-height: 0; font-size: 14px; margin: 6px 4px 0; }
.field.bad input, .field.bad textarea { border-color: var(--danger); }
.field.bad .msg { color: var(--danger); }
.field.good input { border-color: color-mix(in srgb, var(--ok) 70%, var(--field)); }
.field.good::after { content: ''; position: absolute; right: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
/* choice chips: a radio group styled as pills; replaces a select so every option is visible at once */
.chips legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips .set { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--field); font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:checked + span::before { content: '\2713'; font-size: 13px; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-status { font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status a { color: var(--accent); }
.direct { display: grid; gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--bg-alt); }
.direct h3 { font-size: 15px; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.direct a, .direct address { font-size: 19px; font-weight: 600; }
.direct a:hover { color: var(--accent); }
.direct p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* ------------------------------------------------------------ prose (privacy) */
.prose { max-width: 68ch; display: grid; gap: 16px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 21px; margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }

/* ------------------------------------------------------------ footer */
.foot { background: var(--bg-alt); padding: 48px 0 32px; font-size: 13px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot li + li { margin-top: 8px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .logo { font-size: 16px; }
.foot .logo img { height: 22px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ reduced motion: final states, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .step { opacity: 1; }
}

/* ------------------------------------------------------------ loader: the logo locks together on a heartbeat
   Shown once per visit, about 1.5 s, skippable with any click or key. The pieces arrive as the
   trace draws, and the mark pulses exactly on the R peak: Systolic, literally. */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
html.loading .loader { display: grid; }
html.loading body { overflow: hidden; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.mark-stack { position: relative; width: 84px; aspect-ratio: 317 / 365; animation: beat .5s .95s var(--ease-out); }
.mark-stack img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.m-g { --from: translate(-26px, -20px) rotate(-32deg); animation: piece .7s .05s var(--ease-out) forwards; }
.m-b1 { --from: translate(28px, -12px) rotate(26deg); animation: piece .7s .2s var(--ease-out) forwards; }
.m-b2 { --from: translate(8px, 28px) rotate(18deg); animation: piece .7s .35s var(--ease-out) forwards; }
@keyframes piece { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.09); } }
.loader-ecg { width: 220px; height: 40px; }
.loader-ecg path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .1s var(--ease) forwards; }

/* ------------------------------------------------------------ page transitions: native, cross-document
   The nav holds still while the page beneath it changes, so you always know where you are. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }


@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hud { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ hero: the heartbeat becomes data */
.hero { position: relative; isolation: isolate; min-height: min(94vh, 880px); padding: clamp(72px, 11vw, 132px) 0 clamp(120px, 16vh, 180px); text-align: center; overflow: hidden; }
.hero .sub { margin: 20px auto 0; max-width: 42ch; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* event cards: each one fires on a heartbeat, showing what the AI just did */
.hud { position: absolute; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; text-align: left; font-size: 14px; line-height: 1.3; white-space: nowrap;
  background: color-mix(in srgb, var(--card) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow), 0 16px 40px -18px rgba(10, 60, 110, .3); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.hud.on { opacity: 1; transform: none; }
.hud small { display: block; font-size: 12px; color: var(--ink-2); }
.hud .ico { position: relative; flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hud .ico svg { width: 18px; height: 18px; }
.hud .ico::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; box-shadow: 0 0 0 0 var(--signal); opacity: 0; }
.hud.fire .ico::after { animation: ring .9s var(--ease-out); }
@keyframes ring { 0% { opacity: .8; box-shadow: 0 0 0 0 var(--signal); } 100% { opacity: 0; box-shadow: 0 0 0 10px var(--signal); } }
.hud.fire { animation: nudge .5s var(--ease-out); }
@keyframes nudge { 30% { transform: translateY(-3px); } }
.hud-1 { left: 4%; top: 47%; }
.hud-2 { right: 4%; top: 33%; }
.hud-3 { right: 9%; top: 60%; }
@media (max-width: 1180px) { .hud { display: none; } }

/* ------------------------------------------------------------ team: six teams, one system */
.team-map { width: 100%; max-width: 900px; margin: 0 auto; display: block; }
.team-map .link-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.team-map .flow { fill: var(--signal); opacity: 0; }
.team-map.in .flow { opacity: 1; transition: opacity .4s 1.6s; }
.js .team-map .link-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.team-map.in .link-line { animation: draw 1s var(--ease) forwards; animation-delay: calc(var(--i) * .12s); }
.team-map .hub circle { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.team-map .node circle { fill: var(--card); stroke: var(--line); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.team-map .node text, .team-map .hub text { fill: var(--ink); font: 600 15px var(--text); text-anchor: middle; }
.team-map .node .ic { color: var(--accent); }
.js .team-map .node { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.85); }
.team-map.in .node { animation: node-in .5s var(--ease-out) forwards; animation-delay: calc(.5s + var(--i) * .12s); }
@keyframes node-in { to { opacity: 1; transform: none; } }
.team-map .node.lit circle { stroke: var(--accent); fill: var(--accent-soft); }
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.team:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 18px 40px -18px rgba(0, 40, 80, .25); }
.team .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.team .ic svg { width: 22px; height: 22px; }
.team h3 { font-size: 21px; letter-spacing: -.01em; margin-top: 4px; }
.team > p { color: var(--ink-2); font-size: 16px; }
.team ul { display: grid; gap: 6px; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.team ul li { padding-left: 14px; position: relative; }
.team ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .teams { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .teams { grid-template-columns: 1fr; } }
