/* ============================================================
   aroo lab — autonomous robotic ultrasound site
   Clean clinical design system. No decorative gradients.
   Themes driven by [data-theme] on <html>; accent + heading
   font driven by inline custom props set from the Tweaks island.
   ============================================================ */

:root {
  /* Clinical (light) — default */
  --paper:    oklch(0.986 0.003 250);
  --surface:  #ffffff;
  --surface-2:oklch(0.965 0.004 250);
  --ink:      oklch(0.255 0.02 255);
  --ink-2:    oklch(0.42 0.018 255);
  --muted:    oklch(0.51 0.016 255);
  --line:     oklch(0.905 0.006 255);
  --line-2:   oklch(0.85 0.008 255);
  --accent:   #2f6fb0;
  --on-accent:#ffffff;

  --accent-soft: color-mix(in oklab, var(--accent) 10%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 28%, var(--line));

  --font-head: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,30,50,.04), 0 8px 30px -12px rgba(20,30,50,.12);
  --shadow-lg: 0 2px 6px rgba(20,30,50,.05), 0 24px 60px -20px rgba(20,30,50,.22);
}

:root[data-theme="navy"] {
  --paper:    oklch(0.205 0.028 256);
  --surface:  oklch(0.245 0.03 256);
  --surface-2:oklch(0.275 0.032 256);
  --ink:      oklch(0.965 0.004 250);
  --ink-2:    oklch(0.82 0.012 250);
  --muted:    oklch(0.68 0.018 250);
  --line:     oklch(0.34 0.03 256);
  --line-2:   oklch(0.4 0.032 256);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 34%, var(--line));
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.35), 0 28px 64px -22px rgba(0,0,0,.7);
}

:root[data-theme="warm"] {
  --paper:    oklch(0.982 0.006 75);
  --surface:  oklch(0.995 0.004 75);
  --surface-2:oklch(0.96 0.009 72);
  --ink:      oklch(0.26 0.014 60);
  --ink-2:    oklch(0.42 0.014 60);
  --muted:    oklch(0.5 0.014 62);
  --line:     oklch(0.9 0.01 70);
  --line-2:   oklch(0.84 0.013 70);
  --accent:   #2f6fb0;
  --on-accent:#ffffff;
  --accent-soft: color-mix(in oklab, var(--accent) 9%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 26%, var(--line));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
:root[data-head="serif"] h1,
:root[data-head="serif"] h2,
:root[data-head="serif"] h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 128px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  padding: 13px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 0;
}
/* soft-edged header backing: the pseudo carries both a subtle backdrop blur and a
   tint, then a vertical mask fades the whole thing (blur + tint together) out
   toward the bottom — so the frosted nav dissolves into the hero with no hard edge. */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0 0 -60px 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--paper) 92%, transparent) 0%,
    color-mix(in oklab, var(--paper) 84%, transparent) 54%,
    color-mix(in oklab, var(--paper) 30%, transparent) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, transparent 100%);
  transition: background .25s ease;
}
.nav {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  height: 70px;
}
.brand { display: flex; align-items: baseline; gap: 11px; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
/* brand mark: logo bitmap used as a mask filled with currentColor, so it
   adapts to the white-over-hero / ink-on-paper header states like text does */
.brand .mark {
  flex-shrink: 0;
  align-self: center;
  width: 24px;
  height: 21px;
  background: currentColor;
  -webkit-mask: url("logo-mark.png") center / contain no-repeat;
  mask: url("logo-mark.png") center / contain no-repeat;
}
.brand-name {
  white-space: nowrap;
  font-family: "Michroma", var(--font-head);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Continuous macron bar across the whole "oo" in the wordmark.
   Kept light and thin so it reads as a subtle diacritic, not a heavy underscore. */
.brand-name .oo-bar {
  position: relative;
  white-space: nowrap;
}
.brand-name .oo-bar::before {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  top: 0.06em;
  height: 0.04em;
  background: currentColor;
  opacity: 0.9;
  border-radius: 1px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* nav CTAs duplicate the hero pair — hidden over the hero, slow fade-in once
   the visitor reaches the "watch it scan" part (header leaves the hero) */
.nav-cta > a.btn { transition: opacity .5s ease .3s, transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.site-head.over-hero .nav-cta > a.btn { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s .25s, transform .15s ease; }
/* the hidden CTA layer sits on top of the links — let clicks pass through it */
.site-head.over-hero .nav-cta { pointer-events: none; }
.site-head.over-hero .nav-cta .nav-toggle { pointer-events: auto; }
/* swap-in-place: links & CTAs share the right-hand slot — links slide out to
   the left and the CTA pair appears exactly where they stood (and back) */
.nav-links, .nav-cta { grid-column: 2; grid-row: 1; justify-self: end; }
.nav-links { transition: opacity .5s ease .3s, transform .5s ease .3s, visibility 0s; }
.site-head:not(.over-hero) .nav-links { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-22px); transition: opacity .28s ease, transform .28s ease, visibility 0s .28s; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* hero styles live in the cinematic rework section below */

/* ---------- image placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--surface-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 11px,
    color-mix(in oklab, var(--ink) 5%, transparent) 11px,
    color-mix(in oklab, var(--ink) 5%, transparent) 12px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
  min-height: 220px;
}
.ph .ph-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 7px 12px;
  text-align: center;
}

/* ---------- technology / features ---------- */
.tech { background: var(--surface); border-block: 1px solid var(--line); }
:root[data-theme="navy"] .tech { background: var(--surface-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature {
  background: var(--surface);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
:root[data-theme="navy"] .feature { background: var(--surface-2); }
.feature .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ---------- use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.case:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.case .ic { color: var(--accent); }
.case .ic svg { width: 26px; height: 26px; }
.case h3 { font-size: 1.1rem; margin-top: 4px; }
.case p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- why band — deep clinical panel, accent used sparingly ---------- */
.why {
  position: relative;
  overflow: hidden;
  background: oklch(0.205 0.03 256);
  color: #eaf1f8;
}
:root[data-theme="navy"] .why { background: var(--surface-2); }
.why::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); opacity: .8;
}
.why .eyebrow { color: color-mix(in oklab, var(--accent) 42%, #ffffff); }
.why .eyebrow::before { background: color-mix(in oklab, var(--accent) 42%, #ffffff); }
.why h2 { color: #ffffff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.why-sub {
  color: rgba(234,241,248,0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 44ch;
}
.why-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.why-points { display: flex; flex-direction: column; }
.why-point {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.why-point:first-child { border-top: 0; padding-top: 4px; }
.why-point .num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: color-mix(in oklab, var(--accent) 48%, #ffffff); padding-top: 5px; letter-spacing: .08em; }
.why-point h3 { color: #ffffff; font-size: 1.16rem; margin-bottom: 7px; }
.why-point p { color: rgba(234,241,248,0.72); font-size: 15.5px; line-height: 1.55; }

/* ---------- technology: "under the hood" hardware platform ---------- */
.platform { margin-top: clamp(40px, 6vw, 76px); }
.platform-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 44px); }
.platform-kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.platform-head h3 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
.platform-head p { color: var(--ink-2); margin-top: 13px; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55; }
.platform-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow);
}
.pc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pc-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-model { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.pc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; margin: 22px 0 0; }
.pc-specs > div { display: flex; flex-direction: column; gap: 5px; }
.pc-specs dd {
  margin: 0; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
:root[data-head="serif"] .pc-specs dd { font-family: "Source Serif 4", serif; }
.pc-specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pc-note { margin-top: 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.company-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.stat .n { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1; }
:root[data-head="serif"] .stat .n { font-family: "Source Serif 4", serif; }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 8px; font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
:root[data-theme="navy"] .contact { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ic { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-row .v { color: var(--ink); font-size: 15.5px; }

.form { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
:root[data-theme="navy"] .form { background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); font-family: var(--font-mono); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
:root[data-theme="navy"] .field input, :root[data-theme="navy"] .field select, :root[data-theme="navy"] .field textarea { background: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 96px; }
/* inline validation state (novalidate: no browser bubbles) */
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: oklch(0.55 0.18 26); box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.55 0.18 26) 14%, transparent); }
.field-err { font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; color: oklch(0.5 0.17 26); }
.form .btn-primary { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  text-align: center; padding: 28px 20px;
}
.form-success .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ic svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-2); }
.form.sent .form-grid, .form.sent .form-note, .form.sent > .btn-primary { display: none; }
.form.sent .form-success { display: block; }

/* ---------- footer ---------- */
.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--ink-2); font-size: 14.5px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom p { color: var(--muted); font-size: 13px; }
.foot-bottom .legal { display: flex; gap: 20px; }

/* ---------- floating "Request a demo" (tablet + mobile) ---------- */
.demo-fab { display: none; }
@media (max-width: 980px) {
  .demo-fab {
    display: inline-flex;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    border-radius: 999px;
    padding: 15px 24px;
    box-shadow: 0 8px 28px -8px color-mix(in oklab, var(--accent) 60%, rgba(5,15,30,.5)), 0 2px 10px rgba(10,20,35,.28);
    transition: opacity .3s ease, visibility 0s, transform .15s ease;
  }
  .demo-fab.off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s .3s; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid, .cases, .form-grid, .platform-cards { grid-template-columns: 1fr; }
  .company-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav { height: 62px; }
  .site-head .mobile-menu { display: flex; }
}

/* ---------- mobile menu: dark glass sheet ---------- */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--pad) 22px;
  background: rgba(7,11,18,0.58);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility 0s .28s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .34s ease, transform .34s cubic-bezier(.2,.7,.2,1), visibility 0s;
}
.mobile-menu a { padding: 14px 8px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.88); border-bottom: 1px solid rgba(255,255,255,0.10); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------- how-it-works: pinned scroll-through 3D cobot ----------
   The section is a tall scroll TRACK; the visible content is sticky-pinned
   full-viewport, so the page "stops" while scroll scrubs the sequence, then
   releases. The left panel crossfades intro + steps in place. */
.cobot-showcase {
  position: relative;
  height: 420svh;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
:root[data-theme="navy"] .cobot-showcase { background: var(--surface-2); }
.cobot-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cobot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  width: 100%;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.cobot-steps { position: relative; height: min(60svh, 520px); }
.cobot-steps > * {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(calc(-50% + 16px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, visibility 0s .4s;
}
.cobot-steps > .on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: opacity .55s ease .1s, transform .55s ease .1s, visibility 0s;
}
.cobot-intro { max-width: 32ch; }
.cobot-intro h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin-top: 4px; }
.cobot-intro .lede { margin-top: 16px; }
.cstep { max-width: 34ch; border-left: 2px solid var(--accent); padding-left: 28px; }
.cstep-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; display: inline-block; }
.cstep h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cstep p { color: var(--ink-2); font-size: 16px; margin-top: 12px; }
.cobot-stage { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cobot-canvas-wrap { position: relative; width: 100%; height: min(74svh, 700px); pointer-events: none; }
#cobot-canvas { width: 100%; height: 100%; display: block; }
html:not(.js) .cobot-showcase { height: auto; }
html:not(.js) .cobot-pin { position: static; height: auto; }
html:not(.js) .cobot-steps { height: auto; }
html:not(.js) .cobot-steps > * { position: static; opacity: 1; visibility: visible; transform: none; }

@media (max-width: 980px) {
  .cobot-pin { align-items: stretch; }
  .cobot-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 76px;
    padding-bottom: 16px;
  }
  .cobot-stage { order: -1; margin-inline: calc(-1 * var(--pad)); }
  .cobot-canvas-wrap { height: 44svh; }
  .cobot-steps { flex: 1; width: 100%; height: auto; min-height: 0; }
  .cobot-steps > * { top: 12svh; bottom: auto; transform: translateY(16px); }
  .cobot-steps > .on { transform: translateY(0); }
  .cobot-intro, .cstep { max-width: none; }
  .cstep { padding-left: 20px; }
  .cobot-intro h2 { font-size: clamp(1.5rem, 5.4vw, 2.2rem); }
  .cobot-intro .lede { font-size: 1rem; }
  .cstep h3 { font-size: 1.35rem; }
  .cstep p { font-size: 15px; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Premium animated hero — cursor-reactive ultrasound sonar field,
   parallax depth, live-scan panel, headline reveal, magnetic CTAs.
   ============================================================ */
.hero-inner { position: relative; z-index: 2; width: 100%; }
/* --- headline + content reveal (CSS-driven; JS only sets --d stagger) --- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-reveal { opacity: 0; animation: heroUp .78s cubic-bezier(.2,.7,.15,1) both; animation-delay: var(--d, .34s); }
  .js .hero-title .word { display: inline-block; opacity: 0; animation: heroUp .78s cubic-bezier(.2,.75,.15,1) both; animation-delay: var(--d, 0s); }
  @keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* --- magnetic + hover micro-interactions --- */
[data-magnetic] { will-change: transform; }
.btn-primary svg { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }

.feature { transition: background .2s ease; position: relative; }
.feature::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.feature:hover { background: color-mix(in oklab, var(--accent) 4%, var(--surface)); }
:root[data-theme="navy"] .feature:hover { background: color-mix(in oklab, var(--accent) 12%, var(--surface-2)); }
.feature:hover::after { transform: scaleX(1); }
.feature .ic { transition: transform .24s cubic-bezier(.2,.7,.2,1), background .2s ease; }
.feature:hover .ic { transform: translateY(-2px) scale(1.06); }

.case { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.case:hover { transform: translateY(-3px); }
.case .ic { transition: transform .24s cubic-bezier(.2,.7,.2,1); }
.case:hover .ic { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .feature:hover .ic, .case:hover, .case:hover .ic { transform: none; }
}

/* ============================================================
   REWORK — liver-ultrasound cinematic hero
   The site sits on a fixed, boomeranging liver clip (cropped to the
   sector, no machine chrome). Hero + statement band float over it as a
   dark cinematic zone; everything below scrolls up on solid paper.
   ============================================================ */

/* ---- fixed video background ---- */
.liver-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05080e;
  pointer-events: none;
  /* keep this full-viewport layer on the GPU so scrolling the page over it
     never triggers a repaint of the fixed layer */
  contain: strict;
  transform: translateZ(0);
}
.liver-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* replaced by the pre-decoded canvas; shown only in fallback */
}
.liver-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform: translateZ(0);
}
.liver-bg.fallback .liver-vid {
  display: block;
  transform: scale(1.5);
  transform-origin: 52% 42%;
  filter: contrast(1.12) brightness(0.95) saturate(0.9);
}
.liver-bg.fallback .liver-canvas { display: none; }
.liver-tint {
  position: absolute;
  inset: 0;
  background: rgba(5,9,16,0.20);
}
/* faint accent wash so the tissue reads cool/cinematic, tracks --accent */
.liver-tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 70% 42%,
    color-mix(in oklab, var(--accent) 26%, transparent), transparent 72%);
  opacity: 0.42;
}

/* ---- stacking: content sits above the fixed video ---- */
main { position: relative; z-index: 1; }
.site-foot { position: relative; z-index: 2; }
.site-body {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

/* ---- header adapts: transparent/light over the hero, glass below ---- */
.site-head.over-hero { background: transparent; }
.site-head.over-hero::before {
  background: linear-gradient(to bottom, rgba(5,8,14,0.46), rgba(5,8,14,0.06));
}
.site-head.over-hero .brand,
.site-head.over-hero .brand-name { color: #fff; }
.site-head.over-hero .nav-links a { color: rgba(255,255,255,0.82); }
.site-head.over-hero .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.site-head.over-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.40); }
.site-head.over-hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.10); }
.site-head.over-hero .nav-toggle { color: #fff; }

/* ---- one continuous scrim across hero + statement (no seam between them) ---- */
.cine { position: relative; }
.cine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5,9,16,0.86) 0%, rgba(5,9,16,0.58) 38%,
      rgba(5,9,16,0.22) 66%, rgba(5,9,16,0.40) 100%),
    linear-gradient(to bottom, rgba(5,9,16,0.34) 0%, rgba(5,9,16,0.04) 14%,
      rgba(5,9,16,0.04) 45%, rgba(5,9,16,0.34) 58%, rgba(5,9,16,0.60) 72%,
      rgba(5,9,16,0.74) 100%);
}

/* ---- hero (dark cinematic, single column, over video) ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: visible;
  isolation: auto;
  background: transparent;
  color: #eef4fb;
  padding-top: clamp(104px, 15vh, 168px);
  padding-bottom: clamp(72px, 11vh, 128px);
}
.hero-content { max-width: 40rem; }
.hero-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 18px; }
.hero .eyebrow { color: color-mix(in oklab, var(--accent) 55%, #ffffff); }
.hero .eyebrow::before { background: currentColor; opacity: 0.9; }
.hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  line-height: 1.02;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero .lede {
  margin-top: 24px;
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.1rem, 1.65vw, 1.32rem);
}
.hero-sub {
  margin-top: 16px;
  max-width: 32ch;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-hero-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.34);
}
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.14); transform: translateY(-1px); }


/* ---- statement / positioning band (also over the video) ---- */
.statement {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #eef4fb;
  padding-block: clamp(88px, 13vw, 168px) clamp(180px, 20vw, 264px);
}
.statement::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(210px, 23vw, 312px);
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in oklab, var(--paper) 18%, transparent) 30%,
    color-mix(in oklab, var(--paper) 48%, transparent) 50%,
    color-mix(in oklab, var(--paper) 80%, transparent) 70%,
    var(--paper) 86%,
    var(--paper) 100%);
  pointer-events: none;
}
.statement .wrap { position: relative; z-index: 1; text-align: center; }
/* neutral wrappers on desktop; become the pinned crossfade head on mobile */
.statement-intro, .statement-head { display: contents; }
.statement .eyebrow { display: inline-flex; justify-content: center; }
.statement-lead { margin-inline: auto; }
.statement-grid { text-align: left; }
.statement .eyebrow { color: color-mix(in oklab, var(--accent) 55%, #ffffff); }
.statement-lead {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  max-width: 20ch;
  color: #fff;
  text-wrap: balance;
}
:root[data-head="serif"] .statement-lead { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; }
.statement-lead .hl { color: color-mix(in oklab, var(--accent) 62%, #fff); }
.statement-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.statement-item h3 {
  color: #fff; font-size: 1.12rem; margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.statement-item h3 .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: color-mix(in oklab, var(--accent) 60%, #fff);
}
.statement-item p { color: rgba(255,255,255,0.78); font-size: 15px; }

/* ---- density: cobot step meta caption ---- */
.cstep-meta {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.cstep-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cstep-meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* section intro tighten for the cobot band */
.cobot-intro .lede { max-width: 36ch; }

/* zero-specificity link hover fallback (explicit rules still win — :hover must
   sit INSIDE :where or it adds specificity and repaints button text) */
:where(a:hover) { color: var(--accent); }

/* ---- responsive for the reworked pieces ---- */
@media (max-width: 980px) {
  .statement-grid { grid-template-columns: 1fr; gap: 22px; }
}
/* tablet + mobile (≤980): pinned hero crossfade, floating CTA, touch-first forms */
@media (max-width: 980px) {
  .hero { min-height: 100svh; position: sticky; top: 0; }
  .hero-inner { margin-bottom: 18svh; }
  .cine { position: relative; }
  .statement { position: relative; z-index: 2; padding-block: 0 150px; }
  .statement-intro { display: block; height: 165svh; }
  .statement-head {
    display: flex;
    position: sticky;
    top: 0;
    height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
  }
  .statement-grid { margin-top: -34svh; }
  .statement-item { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .statement-item.si-in { opacity: 1; transform: none; }
  .field input, .field select, .field textarea { font-size: 16px; }
  /* nav: the CTA pair lives in the floating pill instead; links stay put */
  .nav-cta > a.btn { display: none; }
  .site-head:not(.over-hero) .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .hero { padding-top: 108px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .statement::after { height: 180px; }
  .cobot-steps > * { top: 6px; }
}
@media (max-width: 480px) {
  .hero-actions .btn, .form > .btn-primary { width: 100%; justify-content: center; }
}

/* ---------- accessibility: skip link + keyboard focus ---------- */
.skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 300;
  transform: translateY(calc(-100% - 24px));
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 9px;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* light focus ring over the dark cinematic zones + navy band */
.site-head.over-hero a:focus-visible,
.site-head.over-hero button:focus-visible,
.hero a:focus-visible,
.statement a:focus-visible,
.why a:focus-visible { outline-color: #fff; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
