/* Esculy landing page
   Display type: Fraunces, the face used in the Esculy motion film and close to the serif wordmark.
   Text: Geist. Icons: Phosphor (MIT). One accent per theme: sage on dark, forest on light. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 900; font-display: swap; src: url(fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/geist-mono.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b1e18;
  --bg-2: #0e241d;
  --surface: #132d25;
  --surface-2: #19382e;
  --line: rgb(206 226 200 / 0.11);
  --line-2: rgb(206 226 200 / 0.2);
  --text: #edf2ea;
  --text-2: #b9c9bd;
  --text-3: #93a99b;
  --accent: #bcd9b1;
  --accent-ink: #0b1e18;
  --accent-soft: rgb(188 217 177 / 0.12);
  --focus: #e3f0dc;
  --error: #f4aea6;
  --paper: #f4f6f1;
  --paper-ink: #12271f;
  --paper-2: #5a6e64;
  --glass: rgb(16 38 31 / 0.62);
  --shadow: 0 40px 90px -40px rgb(1 10 7 / 0.85), 0 2px 8px -2px rgb(1 10 7 / 0.4);
  --glow: radial-gradient(60% 60% at 70% 30%, rgb(84 150 120 / 0.28), transparent 70%);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Radius system: pills for controls, 22px for media and panels, 12px for inputs. */
  --r-panel: 22px;
  --r-input: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f5f0;
    --bg-2: #e9efe6;
    --surface: #fbfcfa;
    --surface-2: #eef3eb;
    --line: rgb(16 40 31 / 0.1);
    --line-2: rgb(16 40 31 / 0.18);
    --text: #0f241d;
    --text-2: #3b5248;
    --text-3: #536a5f;
    --accent: #244d40;
    --accent-ink: #f4f7f2;
    --accent-soft: rgb(36 77 64 / 0.08);
    --focus: #244d40;
    --error: #a3352b;
    --glass: rgb(251 252 250 / 0.72);
    --shadow: 0 40px 80px -44px rgb(16 40 31 / 0.45), 0 2px 8px -3px rgb(16 40 31 / 0.18);
    --glow: radial-gradient(60% 60% at 70% 30%, rgb(140 190 160 / 0.35), transparent 70%);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 96px; }
/* Controls respond on tap without the double-tap delay and never select their label on long-press. */
a, button, summary, label, .seg span { touch-action: manipulation; }
button, .btn, summary, .seg span, .nav__toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.skip:focus { top: 16px; }

/* Grain, fixed and inert so it never repaints with scroll. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; max-width: 18ch; text-wrap: balance;
}
.film__head .section-lead { text-wrap: balance; }
.section-lead { margin-top: 20px; color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 56ch; text-wrap: pretty; }
em { font-style: italic; }

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 0.98rem; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn--primary .icon { transition: transform 200ms var(--ease-out); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn__disc { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.btn__disc .icon { width: 12px; height: 12px; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 30px -12px var(--accent); }
  .btn--primary:hover .icon { transform: translateX(3px); }
  .btn--ghost:hover { border-color: var(--text-3); background: var(--accent-soft); }
}

/* Navigation */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 24px; max-width: 1180px; height: 64px; margin-inline: auto; padding: 0 12px 0 18px;
  border-radius: 999px; border: 1px solid transparent; transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-solid .nav__bar {
  background: var(--glass); border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 18px 40px -24px rgb(1 10 7 / 0.6);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav__word { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.lang a { padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--text-2); transition: color 200ms ease, background-color 200ms ease; }
.lang a[aria-current='page'] { background: var(--accent-soft); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .lang a:not([aria-current]):hover { color: var(--text); } }
.nav__sheet .lang { align-self: flex-start; margin-top: 8px; }
.lang-offer { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.92rem; }
.lang-offer[hidden] { display: none; }
.lang-offer a { font-weight: 600; color: var(--text); }
.lang-offer button { border: 0; background: none; color: var(--text-2); font: inherit; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 0.95rem; transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); background: var(--accent-soft); } }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; place-items: center; cursor: pointer; }
.nav__sheet {
  pointer-events: auto; display: grid; gap: 4px; max-width: 1180px; margin: 8px auto 0; padding: 14px; border-radius: var(--r-panel);
  background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform-origin: top right; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.btn) { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-size: 1.05rem; }
.nav__sheet .btn { margin-top: 8px; }
@starting-style { .nav__sheet { opacity: 0; transform: scale(0.97) translateY(-6px); } }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__bar { height: 58px; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 72px; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; background: var(--glow); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--font-display); font-weight: 380; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1.04;
  letter-spacing: -0.03em; text-wrap: balance;
}
.hero__title em { display: inline-block; padding-bottom: 0.08em; line-height: 1.1; color: var(--accent); font-weight: 340; }
.hero__lead { margin-top: 26px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero__visual {
  position: relative;
  /* The stage is always dark, so its glass card keeps dark tokens in both themes. */
  --glass: rgb(16 38 31 / 0.66); --text: #edf2ea; --text-2: #b9c9bd; --text-3: #93a99b;
  --line-2: rgb(206 226 200 / 0.2); --accent: #bcd9b1; --accent-soft: rgb(188 217 177 / 0.12);
}
/* Hero stage: a live consult. Listening, then sources linking to the draft, then the doctor's approval. */
.hero__panel {
  position: relative; margin: 0 0 0 auto; width: min(100%, 520px); aspect-ratio: 4 / 5; border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 55% 45%, #2c6652, #0e241d 75%); border: 1px solid rgb(206 226 200 / 0.12); box-shadow: var(--shadow);
}
.hero__panel::before {
  content: ''; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 30% at 30% 70%, rgb(188 217 177 / 0.16), transparent 70%), radial-gradient(25% 25% at 75% 25%, rgb(120 190 160 / 0.18), transparent 70%);
}
.live__status {
  position: absolute; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgb(4 14 10 / 0.42); color: #d5e2d6; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
}
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: #f08b7e; box-shadow: 0 0 0 3px rgb(240 139 126 / 0.2); transition: background-color 300ms ease, box-shadow 300ms ease; }
.live__label-off { display: none; }
.live__time { color: #93a99b; }
.orb { position: absolute; top: 6%; right: 8%; width: 36%; aspect-ratio: 1; display: grid; place-items: center; }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(188 217 177 / 0.16); }
.orb__ring--2 { inset: 13%; border-color: rgb(188 217 177 / 0.24); background: rgb(188 217 177 / 0.06); }
.orb__core {
  position: relative; display: grid; place-items: center; width: 36%; aspect-ratio: 1; border-radius: 50%; background: #bcd9b1; color: #0b1e18;
  box-shadow: 0 0 0 10px rgb(188 217 177 / 0.12), 0 12px 40px -8px rgb(188 217 177 / 0.5);
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.orb__core .icon { position: absolute; width: 38%; height: 38%; transition: opacity 250ms ease, transform 350ms var(--ease-out); }
.orb__check { opacity: 0; transform: scale(0.6); }
.wave { position: absolute; left: 55%; right: 7%; top: 39%; height: 9%; display: flex; align-items: center; justify-content: space-between; }
.wave i:nth-child(n+19) { display: none; }
.wave i {
  display: block; width: 3.4%; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #d9ecd2, #8fbf9f);
  transform: scaleY(calc(var(--h) * 0.85)); opacity: calc(0.4 + var(--h) * 0.5); transition: transform 600ms var(--ease-out), opacity 400ms ease;
}
.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.threads path { fill: none; stroke: #bcd9b1; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.55; transition: opacity 250ms ease, stroke-width 250ms ease; }
.threads circle { fill: #bcd9b1; opacity: 0; transition: opacity 300ms ease; }
.threads path.is-lit { opacity: 1; stroke-width: 2; }
.demo { z-index: 2; }
[data-phase='linked'] .threads path, [data-phase='approved'] .threads path { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-in-out), opacity 250ms ease, stroke-width 250ms ease; }
[data-phase='linked'] .threads circle, [data-phase='approved'] .threads circle { opacity: 0.9; }
[data-phase='linked'] .wave i { transform: scaleY(calc(var(--h) * 0.3)); }
[data-phase='approved'] .wave i { transform: scaleY(0.08); opacity: 0.35; }
[data-phase='approved'] .threads path { opacity: 0.9; }
[data-phase='approved'] .live__dot { background: #bcd9b1; box-shadow: 0 0 0 3px rgb(188 217 177 / 0.2); }
[data-phase='approved'] .live__label-on, [data-phase='approved'] .live__time { display: none; }
[data-phase='approved'] .live__label-off { display: inline; }
[data-phase='approved'] .orb__core { background: #2e7a55; color: #f4f6f1; }
[data-phase='approved'] .orb__mic { opacity: 0; transform: scale(0.6); }
[data-phase='approved'] .orb__check { opacity: 1; transform: none; }
.btn--approve.is-hint { animation: hint 1.4s var(--ease-out) 2; }
@keyframes hint { 0% { box-shadow: 0 0 0 0 rgb(36 77 64 / 0.45); } 100% { box-shadow: 0 0 0 14px rgb(36 77 64 / 0); } }

/* Live mini demo */
.demo { position: absolute; inset: 0; pointer-events: none; }
.demo > * { pointer-events: auto; }
.card-glass {
  background: var(--glass); border: 1px solid var(--line-2); border-radius: 18px;
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--shadow);
}
.card-paper { background: var(--paper); color: var(--paper-ink); border-radius: 18px; box-shadow: var(--shadow); }
.demo__transcript { position: absolute; top: 9%; left: -6%; width: min(300px, 62%); padding: 14px 16px; }
.demo__label, .demo__title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.demo__label { color: var(--text-3); margin-bottom: 8px; }
.demo__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: l; font-size: 0.82rem; line-height: 1.4; }
.demo__lines li {
  counter-increment: l; display: grid; grid-template-columns: 18px 1fr; column-gap: 6px; padding: 5px 8px 5px 4px; border-radius: 8px; color: var(--text-2);
  transition: background-color 200ms ease, color 200ms ease;
}
.demo__lines li::before { content: counter(l); grid-row: span 2; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); padding-top: 2px; text-align: right; }
.demo__lines b { font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.demo__lines li.is-lit { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }

.demo__report { position: absolute; right: -4%; bottom: 7%; width: min(360px, 76%); padding: 16px 18px 14px; }
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo__title { color: var(--paper-2); }
.demo__status { position: relative; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f2e6c9; color: #6b4d12; transition: background-color 250ms ease, color 250ms ease; }
.demo__status-ok { display: none; }
.demo__report[data-state='approved'] .demo__status { background: #d8ead2; color: #1f4a37; }
.demo__report[data-state='approved'] .demo__status-ok { display: inline; }
.demo__report[data-state='approved'] .demo__status-draft { display: none; }
.demo__soep { margin: 0; display: grid; gap: 10px; }
.demo__row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.demo__row dt {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #244d40; color: #f4f6f1;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
}
.demo__row dd { margin: 0; font-size: 0.86rem; line-height: 1.5; padding-top: 2px; }
.demo__row--empty dd { color: var(--paper-2); font-style: italic; border: 1px dashed rgb(18 39 31 / 0.22); border-radius: 8px; padding: 3px 8px; }
.src {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin: 0 2px; padding: 0 5px; vertical-align: 1px;
  border-radius: 999px; border: 1px solid rgb(36 77 64 / 0.3); background: #e6efe2; color: #244d40;
  font-family: var(--font-mono); font-size: 0.68rem; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.src:active { transform: scale(0.94); }
.src.is-lit, .src:focus-visible { background: #244d40; color: #f4f6f1; }
@media (hover: hover) and (pointer: fine) { .src:hover { background: #244d40; color: #f4f6f1; } }
.demo__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgb(18 39 31 / 0.1); }
.btn--approve { --h: 38px; padding: 0 16px; font-size: 0.86rem; background: #244d40; color: #f4f6f1; position: relative; }
.approve__done { display: none; align-items: center; gap: 6px; }
.demo__report[data-state='approved'] .approve__idle { display: none; }
.demo__report[data-state='approved'] .approve__done { display: inline-flex; }
.demo__report[data-state='approved'] .btn--approve { background: #d8ead2; color: #1f4a37; pointer-events: none; }
.demo__reset { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--paper-2); cursor: pointer; opacity: 0; transition: opacity 200ms ease, background-color 200ms ease; }
.demo__report[data-state='approved'] .demo__reset { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .demo__reset:hover { background: rgb(18 39 31 / 0.06); } }
/* Approval stamp: a single, rare moment of delight. */
.demo__report::after {
  content: 'Goedgekeurd'; position: absolute; right: 64px; bottom: 18px; padding: 4px 12px; border: 2px solid #2e7a55; border-radius: 8px;
  color: #2e7a55; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  transform: rotate(-8deg) scale(1.25); opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 380ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.demo__report[data-state='approved']::after { opacity: 0.9; transform: rotate(-8deg) scale(1); }

/* Manifest */
.manifest { padding: var(--section) 0 calc(var(--section) * 0.8); text-align: center; }
.manifest__title { font-family: var(--font-display); font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 360; }
.manifest__title em { display: block; color: var(--accent); }
.manifest__title .w { display: inline-block; }
.manifest__body { margin: 36px auto 0; max-width: 46ch; color: var(--text-2); font-size: clamp(1.1rem, 1.6vw, 1.3rem); text-wrap: pretty; }

/* Steps: sticky stage with a scroll-tracked caption list */
.steps { padding: calc(var(--section) * 0.5) 0 var(--section); }
.steps__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); margin-top: 56px; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
/* Inactive steps recede by colour, not opacity, so text keeps readable contrast. */
.step h3, .step p { transition: color 400ms ease; }
.js .step:not(.is-active) h3, .js .step:not(.is-active) p { color: var(--text-3); }
.step__icon { transition: opacity 400ms ease; }
.js .step:not(.is-active) .step__icon { opacity: 0.5; }
.step__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.step__icon .icon { width: 22px; height: 22px; }
.step h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.12; }
.step p { margin-top: 12px; color: var(--text-2); max-width: 38ch; }
.step__media { display: none; }
.steps__stage { position: relative; }
.stage {
  position: sticky; top: max(112px, calc(50vh - 15vw)); aspect-ratio: 1400 / 612; border-radius: var(--r-panel); overflow: hidden;
  background: #0f2a21; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.03); filter: blur(6px);
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), filter 500ms var(--ease-out);
}
.stage__img--portrait { object-fit: contain; }
.stage__img.is-active { opacity: 1; transform: none; filter: none; }
.stage__rail { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 2px; border-radius: 2px; overflow: hidden; }
.stage__rail span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.2); transition: transform 600ms var(--ease-out); }

/* Film */
.film { padding: var(--section) 0; background: linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--bg)); }
.film__head { display: grid; justify-items: center; text-align: center; }
.film__head .section-title { max-width: 20ch; }
.film__frame {
  position: relative; margin-top: 56px; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: #071510;
  border: 1px solid var(--line-2); box-shadow: 0 60px 140px -50px rgb(1 10 7 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.film__video { width: 100%; height: 100%; object-fit: cover; background: #071510; }
.film__cover { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; transition: opacity 300ms var(--ease-out), visibility 300ms; }
.film__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.film__cover::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgb(4 14 10 / 0.5)); }
.film__play {
  position: relative; z-index: 2; display: grid; place-items: center; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: rgb(244 246 241 / 0.92); color: #12271f; box-shadow: 0 20px 50px -10px rgb(0 0 0 / 0.5);
  transition: transform 160ms var(--ease-out);
}
.film__play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgb(244 246 241 / 0.35); }
.film__play .icon { width: 30%; height: 30%; margin-left: 6%; }
.film__meta { position: absolute; z-index: 2; left: 24px; bottom: 20px; padding: 6px 12px; border-radius: 999px; background: rgb(4 14 10 / 0.55); color: #e6eee2; font-family: var(--font-mono); font-size: 0.78rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film__cover:active .film__play { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .film__cover:hover img { transform: scale(1.025); } }
.film__frame.is-playing .film__cover { opacity: 0; visibility: hidden; }

/* Modules: bento with real product frames */
.modules { padding: var(--section) 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 16px; margin-top: 56px; }
.tile {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-panel); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.tile__media { position: relative; aspect-ratio: 1400 / 612; overflow: hidden; background: #0f2a21; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__media img { transform: scale(1.03); } }
.tile__body { padding: 22px 24px 26px; }
.tile h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.2; }
.tile h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; max-width: 52ch; }
.tile--phone { grid-column: 1 / 3; }
.tile--triage { grid-column: 3 / 4; }
.tile--patient { grid-column: 4 / 5; grid-row: 1 / 3; min-height: 560px; justify-content: flex-end; background: #102820; }
.tile--letters { grid-column: 1 / 2; }
.tile--follow { grid-column: 2 / 4; }
.tile--triage .tile__media, .tile--letters .tile__media { aspect-ratio: 4 / 3; }
.tile--triage .tile__media img { object-position: 32% 50%; }
.tile--letters .tile__media img { object-position: 74% 50%; }
.tile--patient { background: radial-gradient(80% 60% at 50% 30%, #24503f, #0e241d 80%); }
.tile--patient::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 68%, rgb(6 20 15 / 0.9) 86%); }

/* Patient phone: a notification arrives, the summary reads in, then the doctor's check unlocks the PDF. */
.phone-scene { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 26px; }
.phone-scene p { margin: 0; color: inherit; font-size: inherit; max-width: none; }
.phone {
  position: relative; flex: none; height: min(68%, 460px); max-width: 88%; aspect-ratio: 212 / 430; padding: 9px; border-radius: 38px; background: #0a1712;
  border: 1px solid rgb(206 226 200 / 0.18); box-shadow: 0 30px 60px -20px rgb(0 8 5 / 0.8);
}
.phone__island { position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 9px; background: #0a1712; z-index: 1; }
.phone__screen {
  height: 100%; border-radius: 29px; background: #f4f6f1; color: #12271f; padding: 44px 15px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.phone-scene .ps__eyebrow { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5a6e64; }
.phone-scene .ps__title { color: #12271f; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.12; letter-spacing: -0.01em; }
.ps__lines { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 9px; }
.ps__lines li { padding-left: 9px; border-left: 2px solid rgb(36 77 64 / 0.3); font-size: 0.68rem; line-height: 1.45; }
.ps__badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 4px 9px; border-radius: 99px; background: #d8ead2; color: #1f4a37; font-size: 0.6rem; font-weight: 600; }
.ps__badge .icon { width: 11px; height: 11px; }
.ps__pdf { margin-top: auto; display: grid; place-items: center; height: 34px; border-radius: 99px; background: #244d40; color: #f4f6f1; font-size: 0.66rem; font-weight: 600; }
.ps__notif {
  position: absolute; top: 58px; left: 50%; width: min(250px, 84%); margin-left: max(-125px, -42%); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: rgb(244 246 241 / 0.96); color: #3b5248; font-size: 0.68rem; line-height: 1.35; box-shadow: 0 16px 34px -10px rgb(0 8 5 / 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ps__notif img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.ps__notif b { display: block; color: #12271f; font-size: 0.7rem; }
/* Cycle choreography. Each piece shows from its step onward; transitions keep it interruptible. */
.js [data-cycle='patient'] :is(.ps__title, .ps__eyebrow, .ps__lines li, .ps__badge, .ps__pdf, .ps__notif) {
  opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
}
.js [data-cycle='patient'] .ps__notif { transform: translateY(-24px) scale(0.96); }
.js [data-cycle='patient'].s0 .ps__notif { opacity: 1; transform: none; }
.js [data-cycle='patient'].s2 .ps__notif { opacity: 0; transform: translateY(-24px) scale(0.96); transition-duration: 300ms; }
.js [data-cycle='patient'].s1 :is(.ps__title, .ps__eyebrow),
.js [data-cycle='patient'].s2 .ps__l1, .js [data-cycle='patient'].s3 .ps__l2, .js [data-cycle='patient'].s4 .ps__l3,
.js [data-cycle='patient'].s5 .ps__badge, .js [data-cycle='patient'].s6 .ps__pdf { opacity: 1; transform: none; }
.js [data-cycle='patient'].is-resetting * { transition-duration: 400ms !important; opacity: 0 !important; }
.tile__body--over { position: relative; z-index: 2; color: #eef3eb; }
.tile__body--over p { color: #c6d4c9; }
.tile__body--over h3 .icon { color: #bcd9b1; }

/* Principles */
.principles { padding: var(--section) 0; background: var(--bg-2); }
.principles__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Principles: one document, three truths. Source, doubt, approval, in sync with the list. */
.trace {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-panel); overflow: hidden; isolation: isolate; box-shadow: var(--shadow);
  background: radial-gradient(rgb(188 217 177 / 0.13) 1px, transparent 1.2px) 0 0 / 24px 24px, radial-gradient(80% 70% at 40% 30%, #1d4235, #0e241d 80%);
  border: 1px solid rgb(206 226 200 / 0.12);
}
.trace__doc { position: absolute; top: 8%; left: 8%; right: 8%; padding: 22px 22px 18px; border-radius: 18px; background: #f4f6f1; color: #12271f; box-shadow: 0 30px 60px -30px rgb(0 8 5 / 0.8); }
.trace__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5a6e64; margin-bottom: 10px; }
.trace__s { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -10px; padding: 8px 10px; border-radius: 10px; font-size: 0.9rem; line-height: 1.45; transition: background-color 350ms ease; }
.trace__s b {
  flex: none; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; background: #e6efe2; color: #244d40;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; transition: background-color 300ms ease, color 300ms ease;
}
.trace__thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trace__thread path { fill: none; stroke: #bcd9b1; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 300ms ease; }
.trace__card {
  position: absolute; left: 22%; right: 8%; bottom: 10%; padding: 14px 16px; border-radius: 14px; display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; line-height: 1.45; opacity: 0; transform: translateY(10px); filter: blur(4px);
  transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out), filter 450ms var(--ease-out);
}
.trace__card .icon { width: 20px; height: 20px; margin-top: 1px; }
.trace__quote { display: block; background: rgb(16 38 31 / 0.92); border: 1px solid rgb(188 217 177 / 0.35); color: #edf2ea; }
.trace__quote .trace__label { color: #93a99b; margin-bottom: 6px; }
.trace__flag { background: #f2e6c9; color: #6b4d12; }
.trace__ok { left: auto; align-items: center; padding: 12px 18px; border-radius: 99px; background: #bcd9b1; color: #0b1e18; font-weight: 600; }
[data-cycle='trace'].s0:not(.s1) .trace__s--1 { background: rgb(36 77 64 / 0.1); }
[data-cycle='trace'].s0:not(.s1) .trace__s--1 b { background: #244d40; color: #f4f6f1; }
[data-cycle='trace'].s0:not(.s1) .trace__quote,
[data-cycle='trace'].s1:not(.s2) .trace__flag,
[data-cycle='trace'].s2 .trace__ok { opacity: 1; transform: none; filter: none; }
[data-cycle='trace'].s0:not(.s1) .trace__thread path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-in-out) 150ms; }
[data-cycle='trace'].s1:not(.s2) .trace__s--2 { background: #f2e6c9; }
[data-cycle='trace'].s2 .trace__s b { background: #d8ead2; color: #1f4a37; }
.principles__list li { transition: border-color 400ms ease; }
.principles__list li .icon { transition: color 400ms ease, transform 400ms var(--ease-out); }
.principles__list li h3 { transition: color 400ms ease; }
.principles__list[data-active] li:not(.is-current) h3 { color: var(--text-2); }
.principles__list li.is-current { border-top-color: var(--accent); }
.principles__list li.is-current .icon { transform: scale(1.12); }
.principles__list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.principles__list li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.principles__list .icon { width: 24px; height: 24px; color: var(--accent); }
.principles__list h3 { margin-top: 14px; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; }
.principles__list p { margin-top: 8px; color: var(--text-2); font-size: 0.98rem; }

/* Pilot timeline */
.pilot { padding: var(--section) 0; }
.timeline { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.timeline::before, .timeline::after { content: ''; position: absolute; top: 9px; left: 9px; right: 0; height: 2px; border-radius: 2px; }
.timeline::before { background: var(--line-2); }
.timeline::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.timeline__item { position: relative; padding-top: 44px; }
.timeline__node { position: absolute; top: 0; left: 0; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline__node::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.timeline h3 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.015em; }
.timeline p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; }

/* FAQ */
.faq { padding: var(--section) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-title { position: sticky; top: 120px; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer;
  font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 250ms var(--ease-out), background-color 200ms ease; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform 250ms var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--accent-soft); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__body { display: grid; grid-template-rows: 1fr; }
.qa__body > div { overflow: hidden; }
.qa__body p { padding: 0 56px 26px 0; color: var(--text-2); max-width: 62ch; }
.js .qa__body { grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.js .qa.is-open .qa__body { grid-template-rows: 1fr; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover .qa__icon { background: var(--accent-soft); } }

/* Contact */
.contact { padding: var(--section) 0; position: relative; isolation: isolate; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 20% 40%, rgb(84 150 120 / 0.16), transparent 70%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__panel { position: relative; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 550; font-size: 0.95rem; color: var(--text); padding: 0; }
.field legend { margin-bottom: 8px; }
.field__opt { font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: 0.85rem; }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: var(--error) !important; }
.field__help { font-size: 0.88rem; color: var(--text-3); }
.field__error { font-size: 0.88rem; color: var(--error); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.94rem; color: var(--text-2); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked) + span:hover { border-color: var(--text-3); color: var(--text); } }
.check { display: grid !important; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; color: var(--text-2) !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--accent-ink); transition: background-color 160ms ease, border-color 160ms ease; }
.check__box .icon { width: 15px; height: 15px; opacity: 0; transform: scale(0.8); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check input[aria-invalid='true'] + .check__box { border-color: var(--error); }
.form__submit { display: grid; gap: 12px; margin-top: 4px; }
.submit__busy { display: none; gap: 5px; }
.submit__busy i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: busy 900ms ease-in-out infinite; }
.submit__busy i:nth-child(2) { animation-delay: 120ms; }
.submit__busy i:nth-child(3) { animation-delay: 240ms; }
@keyframes busy { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.form.is-busy .submit__label { display: none; }
.form.is-busy .submit__busy { display: inline-flex; }
.form.is-busy [data-submit] { pointer-events: none; opacity: 0.85; }
.form__status { font-size: 0.92rem; color: var(--text-2); min-height: 1.4em; }
.form__status.is-error { color: var(--error); }
.form__status a { color: inherit; }

.sent { display: grid; justify-items: start; gap: 12px; padding: 24px 0; }
.sent:focus { outline: none; }
.sent h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.sent p { color: var(--text-2); margin-bottom: 12px; }
.sent__mark svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sent__mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 700ms var(--ease-out) forwards; }
.sent__mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 400ms var(--ease-out) 450ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Footer */
.footer { padding: 96px 0 40px; border-top: 1px solid var(--line); }
.footer__word {
  margin: 0 0 0 -0.04em; font-family: var(--font-display); font-weight: 360; font-size: clamp(5.5rem, 21vw, 19rem); line-height: 0.9;
  letter-spacing: -0.045em; color: var(--text); opacity: 0.94; padding-bottom: 0.12em; user-select: none;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__claim { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--text-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { text-decoration: none; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--text); } }
.footer__fine { margin-top: 24px; font-size: 0.88rem; color: var(--text-3); max-width: 80ch; }

/* Motion. Content is visible by default; the .js class opts into entrances. */
@media (prefers-reduced-motion: no-preference) {
  .js .enter { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: enter 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
  @keyframes enter { to { opacity: 1; transform: none; filter: none; } }
  .js .hero__title.enter { opacity: 1; animation-name: settle; }
  @keyframes settle { from { transform: translateY(14px); filter: blur(6px); } to { transform: none; filter: none; } }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .demo__row { opacity: 0; transform: translateY(6px); animation: enter 600ms var(--ease-out) forwards; animation-delay: calc(2500ms + var(--r) * 260ms); }
  .js .demo__transcript { animation: enter 800ms var(--ease-out) 650ms both; }
  .js .demo__report { animation: enter 800ms var(--ease-out) 500ms both; }

  .js [data-hero].is-visible:not([data-phase='approved']) .wave i { animation: talk 900ms ease-in-out var(--d) infinite alternate; }
  [data-phase='linked'] .wave i { animation-duration: 1600ms !important; }
  @keyframes talk { from { transform: scaleY(calc(var(--h) * 0.25)); } to { transform: scaleY(var(--h)); } }
  .js [data-hero].is-visible:not([data-phase='approved']) .orb__ring { animation: breathe 2.6s ease-in-out infinite alternate; }
  .js [data-hero].is-visible:not([data-phase='approved']) .orb__ring--2 { animation-delay: 400ms; }
  @keyframes breathe { from { transform: scale(0.94); opacity: 0.7; } to { transform: scale(1.06); opacity: 1; } }
  .hero__panel::before { animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(-4%, 3%, 0); } to { transform: translate3d(5%, -4%, 0); } }
  .js .demo__lines li { opacity: 0; transform: translateY(4px); animation: enter 500ms var(--ease-out) forwards; animation-delay: calc(900ms + var(--l, 0) * 380ms); }

  /* Manifest words brighten as they cross the viewport (scroll-driven, Chromium and Safari 26+). */
  @supports (animation-timeline: view()) {
    .js .manifest__title .w { animation: word linear both; animation-timeline: view(); animation-range: cover 10% cover 42%; }
    @keyframes word { from { opacity: 0.16; filter: blur(3px); } to { opacity: 1; filter: none; } }

    .film__frame { animation: frame linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes frame { from { transform: scale(0.92); border-radius: 36px; } to { transform: none; } }

    .timeline::after { animation: line linear both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
    @keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .threads path, .trace__thread path { transition: opacity 200ms ease !important; }
  [data-cycle] * { transform: none !important; filter: none !important; }
  .stage__img { transform: none !important; filter: none !important; transition: opacity 200ms ease; }
  .demo__report::after { transition: opacity 200ms ease; transform: rotate(-8deg); }
  .submit__busy i { animation: none; opacity: 0.8; }
  .sent__mark circle, .sent__mark path { animation: none; stroke-dashoffset: 0; }
  .js .qa__body { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid .nav__bar, .nav__sheet, .card-glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--phone { grid-column: 1 / 3; }
  .tile--triage { grid-column: 1 / 2; grid-row: auto; }
  .tile--patient { grid-column: 2 / 3; grid-row: auto; min-height: 0; }
  .tile--letters { grid-column: 1 / 2; }
  .tile--follow { grid-column: 2 / 3; }
  .tile--follow .tile__media { aspect-ratio: 4 / 3; }
  .tile--follow .tile__media img { object-position: 30% 50%; }
  .principles__grid { grid-template-columns: 1fr; }
  .trace { aspect-ratio: 4 / 3; max-width: 640px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 104px; min-height: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__panel { margin: 0 auto; width: min(100%, 560px); }
  .hero__visual { padding: 0 4% 0; max-width: 600px; width: 100%; margin: 12px auto 0; }
  .demo__transcript { left: 0; top: 6%; }
  .demo__report { right: 0; }
  .steps__grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .steps__stage { display: none; }
  .js .step:not(.is-active) h3 { color: var(--text); }
  .js .step:not(.is-active) p { color: var(--text-2); }
  .js .step:not(.is-active) .step__icon { opacity: 1; }
  .step { min-height: 0; padding: 36px 0; border-top: 1px solid var(--line); }
  .step__media { display: block; margin-top: 22px; border-radius: 16px; border: 1px solid var(--line); background: #0f2a21; }
  .step[data-step='4'] .step__media { width: 100%; max-width: 360px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline::before, .timeline::after { display: none; }
  .faq__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .faq .section-title { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .demo { position: relative; inset: auto; display: grid; gap: 12px; margin-top: -72px; padding: 0 12px; }
  .demo__transcript, .demo__report { position: relative; inset: auto; width: 100%; }
  .demo__transcript { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--phone, .tile--triage, .tile--patient, .tile--letters, .tile--follow { grid-column: 1 / -1; }
  .tile--patient { min-height: 600px; }
  .phone { height: min(70%, 440px); }
  /* Hero: on phones the stage is a compact square with the orb and voice centred above the draft. */
  .hero__panel { aspect-ratio: 1 / 1; }
  .orb { top: 13%; right: 30%; width: 40%; }
  .wave { left: 24%; right: 24%; top: 58%; height: 11%; }
  .wave i:nth-child(n+19) { display: none; }
  .demo { margin-top: -84px; }
  .nav__sheet a:not(.btn) { min-height: 48px; display: flex; align-items: center; }
  .section-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .manifest__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .threads { display: none; }
  .trace { aspect-ratio: 4 / 5; }
  .trace__doc { top: 6%; left: 6%; right: 6%; padding: 18px 16px 14px; }
  .trace__s { font-size: 0.84rem; }
  .trace__card { left: 6%; right: 6%; bottom: 6%; font-size: 0.84rem; }
  .trace__ok { left: auto; }
  .tile--triage .tile__media, .tile--letters .tile__media, .tile--follow .tile__media { aspect-ratio: 1400 / 612; }
  .principles__list { grid-template-columns: 1fr; gap: 28px; }
  .timeline { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .qa__body p { padding-right: 0; }
  .film__meta { left: 12px; bottom: 12px; }
}
@media (max-width: 520px) { .nav__lang { display: none; } }
