/* ==========================================================================
   CellyXa Therapeutics — site styles
   Brand tokens follow the 2026 seed deck: ink, teal (therapeutics),
   violet (diagnostics), Outfit for display, Inter for text.
   Colour carries meaning: teal = therapeutics, violet = diagnostics.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #13202B;
  --ink-2: #1B2C3A;
  --paper: #F4F6F5;
  --surface: #FFFFFF;
  --line: #D8DFDD;
  --line-strong: #B4C0BD;
  --slate: #46525C;
  --muted: #5F6A72;
  --fog: #B7C6CB;
  --mist: #8FA2A9;
  --light: #F4F2EC;
  --teal: #1F7A74;
  --teal-deep: #19665F;
  --teal-tint: #E3EFEC;
  --mint: #8FD3C9;
  --violet: #6650C4;
  --violet-deep: #5641B0;
  --violet-tint: #F1EFFA;
  --lilac: #A99CF0;

  /* Type */
  --font-display: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;                                   /* 14 */
  --step-0: 1.0625rem;                                   /* 17 */
  --step-1: 1.25rem;                                     /* 20 */
  --step-2: 1.5rem;                                      /* 24 */
  --step-3: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);   /* 26–34 */
  --step-4: clamp(2rem, 1.35rem + 2.3vw, 3.125rem);      /* 32–50 */
  --step-5: clamp(2.5rem, 1.5rem + 3.8vw, 4.375rem);     /* 40–70 */
  --step-6: clamp(2.75rem, 1.4rem + 5.2vw, 5rem);        /* 44–80 */

  /* Space */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --col-gap: clamp(20px, 3vw, 40px);
  --space-section: clamp(80px, 10vw, 136px);
  --radius-s: 6px;
  --radius-m: 14px;

  /* Context (light by default) */
  --fg-heading: var(--ink);
  --fg-body: var(--slate);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--teal);
  --accent-dx: var(--violet);
  --focus: var(--teal);
  --btn-bg: var(--teal);
  --btn-fg: #FFFFFF;
  --btn-bg-hover: var(--teal-deep);
}

.on-ink {
  --fg-heading: var(--light);
  --fg-body: var(--fog);
  --fg-muted: var(--mist);
  --rule: rgba(183, 198, 203, 0.18);
  --rule-strong: rgba(183, 198, 203, 0.4);
  --accent: var(--mint);
  --accent-dx: var(--lilac);
  --focus: var(--mint);
  --btn-bg: var(--light);
  --btn-fg: var(--ink);
  --btn-bg-hover: #FFFFFF;
  background-color: var(--ink);
  color: var(--fg-body);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--fg-heading);
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--teal-tint); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--light);
  color: var(--ink);
  border-radius: var(--radius-s);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--white { background: var(--surface); }
.section--dx { background: var(--violet-tint); }
.section--flush-top { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__title { grid-column: 1 / span 6; }
.section-head__text { grid-column: 8 / span 5; }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
}
.split__main { grid-column: 1 / span 6; }
.split__side { grid-column: 8 / span 5; }
.split--wide-main .split__main { grid-column: 1 / span 7; }
.split--wide-main .split__side { grid-column: 9 / span 4; }

.stack > * + * { margin-top: var(--stack, 1.1em); }
.prose { max-width: 66ch; }

/* ---------- Type ---------- */
.display {
  font-size: var(--step-6);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.title {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h2 {
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.h4 {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-body);
}
.small { font-size: var(--step--1); line-height: 1.55; }
.muted { color: var(--fg-muted); }
.text-rx { color: var(--accent); }
.text-dx { color: var(--accent-dx); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--secondary {
  background: transparent;
  color: var(--fg-heading);
  border-color: var(--rule-strong);
}
.btn--secondary:hover { border-color: var(--fg-heading); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(183, 198, 203, 0.14); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--light);
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: auto; height: 42px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__name b { font-weight: 500; }
.brand__name span { font-weight: 300; color: var(--fog); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: var(--fog);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--light); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--mint);
}
.site-nav .site-nav__cta {
  padding: 11px 18px;
  border: 1px solid rgba(244, 242, 236, 0.32);
  border-radius: var(--radius-s);
  color: var(--light);
}
.site-nav .site-nav__cta:hover { border-color: var(--light); }
.site-nav .site-nav__cta[aria-current="page"]::after { display: none; }
.site-nav .site-nav__cta[aria-current="page"] { border-color: var(--mint); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(244, 242, 236, 0.32);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--light);
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 16px; height: 10px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__icon::before { top: 1px; }
.nav-toggle__icon::after { top: 7px; }
.nav-open .nav-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 22px; padding-bottom: 14px; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 24px;
  }
  .js .site-nav li { border-top: 1px solid rgba(183, 198, 203, 0.14); }
  .js .site-nav a { display: block; padding: 16px 0; font-size: 1.125rem; }
  .js .site-nav a[aria-current="page"]::after { left: -12px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .js .site-nav .site-nav__cta { margin-top: 16px; text-align: center; padding: 14px 18px; }
  .js .site-nav li:last-child { border-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero--home {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(calc(100vh - 76px), 900px);
  min-height: min(calc(100svh - 76px), 900px);
  padding-block: clamp(64px, 10vh, 140px) clamp(32px, 5vh, 56px);
}
.hero--home .display { max-width: 11.5em; }
.hero__lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fog);
}
.hero__actions { margin-top: 40px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(56px, 9vh, 112px);
  border-top: 1px solid var(--rule);
}
.hero__facts div { padding-top: 18px; }
.hero__facts dt { font-size: var(--step--1); color: var(--fg-muted); }
.hero__facts dd { margin-top: 6px; color: var(--light); font-size: 1rem; line-height: 1.45; max-width: 26em; }

.hero--page { padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); }
.hero--page .title { max-width: 13em; }
.hero--page .hero__lede { max-width: 36em; }

/* ---------- EMT figure ---------- */
.emt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 48px);
  row-gap: 28px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.emt__state { display: grid; align-content: start; gap: 6px; }
.emt__art { width: 100%; max-width: 280px; height: auto; margin-bottom: 18px; }
.emt__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; color: var(--ink); line-height: 1.2; }
.emt__kind { color: var(--muted); font-size: var(--step--1); }
.emt__list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.emt__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}
.emt__list li span { color: var(--muted); }
.emt__list .up { color: var(--ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.emt__switch {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding-top: 40px;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}
.emt__switch svg { width: 120px; height: auto; }
.emt__switch-label { font-weight: 500; color: var(--ink); }
.emt__switch-label--back { font-weight: 400; color: var(--muted); }
.emt__caption {
  grid-column: 1 / -1;
  padding-top: 8px;
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 76ch;
}

/* ---------- Platform: detect / treat / monitor ---------- */
.platform {
  --node: 52px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
}
.platform__step { position: relative; }
.platform__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: calc(var(--node) + 12px);
  width: calc(100% + var(--col-gap) - var(--node) - 24px);
  height: 2px;
  background: linear-gradient(to right, var(--line-strong) 60%, transparent 0) 0 0 / 8px 2px repeat-x;
}
.platform__node {
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--violet);
}
.platform__step--rx .platform__node { background: var(--teal); }
.platform__name { margin-top: 22px; font-size: var(--step-3); font-weight: 400; letter-spacing: -0.015em; }
.platform__arm { margin-top: 4px; font-size: var(--step--1); font-weight: 500; color: var(--violet); }
.platform__step--rx .platform__arm { color: var(--teal); }
.platform__text { margin-top: 14px; max-width: 32ch; }

.platform-loop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.9375rem;
}
.platform-loop svg { flex-shrink: 0; width: 28px; height: 28px; color: var(--violet); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step--1); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend .dx { background: var(--violet); }
.legend .rx { background: var(--teal); }

/* ---------- Spec list ---------- */
.spec {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 2fr);
  border-top: 1px solid var(--rule);
}
.spec dt, .spec dd {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt { padding-right: 20px; font-size: var(--step--1); color: var(--fg-muted); line-height: 1.6; }
.spec dd { color: var(--fg-heading); font-size: 1rem; line-height: 1.55; }

/* ---------- Pipeline ---------- */
.pipeline-block + .pipeline-block { margin-top: 64px; }
.pipeline-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.pipeline-block__title { font-size: var(--step-2); font-weight: 400; }
.pipeline-block--rx .pipeline-block__title { color: var(--teal); }
.pipeline-block--dx .pipeline-block__title { color: var(--violet); }

.pipeline {
  --bar: var(--teal);
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.pipeline-block--dx .pipeline { --bar: var(--violet); }
.pipeline .c-prog { width: 14%; }
.pipeline .c-mod { width: 25%; }
.pipeline .c-ind { width: 17%; }
.pipeline .c-stage { width: 11%; }

.pipeline th, .pipeline td {
  padding: 18px 16px 18px 0;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.pipeline thead th {
  padding: 0 12px 12px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}
.pipeline thead .stage-col { padding-left: 12px; }
.pipeline thead .stage-col:nth-child(4),
.pipeline thead .stage-col:nth-child(6) { background: rgba(19, 32, 43, 0.035); }
.pipeline tbody th { font-weight: 400; }
.pipeline__prog {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
}
.pipeline__flag { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--bar); }
.pipeline__mod { color: var(--ink); }
.pipeline .pipeline__track {
  position: relative;
  padding: 0;
  height: 64px;
  background-image:
    linear-gradient(to right,
      rgba(19, 32, 43, 0.035) 0 25%,
      transparent 25% 50%,
      rgba(19, 32, 43, 0.035) 50% 75%,
      transparent 75% 100%);
}
.pipeline__rail { position: absolute; inset: 0; }
.pipeline__bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(var(--progress, 0.5) / 4 * 100%);
  height: 14px;
  transform: translateY(-50%);
  border-radius: 0 7px 7px 0;
  background: var(--bar);
}
.pipeline__ticks { display: none; }
.pipeline-note { margin-top: 20px; font-size: var(--step--1); color: var(--muted); max-width: 80ch; }

@media (max-width: 820px) {
  .pipeline, .pipeline tbody, .pipeline tr, .pipeline th, .pipeline td { display: block; width: 100%; }
  .pipeline colgroup, .pipeline thead { display: none; }
  .pipeline tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .pipeline tr:first-child { border-top: 1px solid var(--ink); }
  .pipeline th, .pipeline td { padding: 0; border: 0; }
  .pipeline td + td { margin-top: 4px; }
  .pipeline .pipeline__track { height: auto; margin-top: 16px; background: none; }
  .pipeline__rail { position: relative; display: block; height: 14px; border-radius: 7px; background: rgba(19, 32, 43, 0.07); }
  .pipeline__bar { top: 0; height: 100%; transform: none; border-radius: 7px; }
  .pipeline__ticks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--muted);
  }
}

/* ---------- Publications ---------- */
.pubs { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.pub {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.pub__year { font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; line-height: 1.1; color: var(--fg-heading); }
.pub__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 400; line-height: 1.4; color: var(--fg-heading); }
.pub__title a { color: inherit; text-decoration: none; }
.pub__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pub__meta { margin-top: 6px; font-size: var(--step--1); color: var(--fg-muted); }
.pub__meta em { font-style: italic; }

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px var(--col-gap);
}
.person {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.person__photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}
.person__name { font-size: var(--step-2); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.person__role { margin-top: 4px; font-size: 0.9375rem; font-weight: 500; color: var(--teal); }
.person__bio { margin-top: 14px; }
.person__bio p + p { margin-top: 0.8em; }

.advisors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--col-gap);
}
.advisors__region { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.advisors ul { list-style: none; padding: 0; }
.advisor { padding: 18px 0; border-top: 1px solid var(--line); }
.advisor__name { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.advisor__cred { font-family: var(--font-body); font-size: 0.9375rem; color: var(--muted); }
.advisor__role { margin-top: 2px; font-size: 0.9375rem; color: var(--slate); }

.team-teaser {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  align-items: start;
}
.team-teaser__people { grid-column: 1 / span 6; display: grid; gap: 32px; }
.team-teaser__aside { grid-column: 8 / span 5; }
.mini-person { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 20px; align-items: center; }
.mini-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.mini-person__name { font-family: var(--font-display); font-size: 1.3125rem; color: var(--ink); line-height: 1.25; }
.mini-person__role { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Mission statement ---------- */
.statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 48px;
}
.statement__item { grid-column: span 6; }
.statement__label { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.statement__text { font-family: var(--font-display); font-size: var(--step-3); font-weight: 300; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }

/* ---------- Lab ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.lab-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-s);
}
.lab-grid figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); line-height: 1.45; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--col-gap);
}
.capability { padding-top: 20px; border-top: 2px solid var(--ink); }
.capability__name { font-size: var(--step-1); font-weight: 500; }
.capability__text { margin-top: 10px; font-size: 0.9375rem; }

/* ---------- Science: chain, cascade, notch ---------- */
.chain {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}
.chain li {
  position: relative;
  padding: 24px 28px 8px 0;
}
.chain li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.chain__step { font-size: var(--step--1); color: var(--muted); }
.chain__name { margin-top: 10px; font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.chain__text { margin-top: 10px; font-size: 0.9375rem; }

.cascade {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.cascade li { position: relative; padding-right: 14px; }
.cascade li::before {
  content: "";
  position: absolute;
  top: 18px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.cascade li:last-child::before { right: auto; width: 18px; }
.cascade__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.cascade__end .cascade__n { background: var(--ink); color: var(--light); }
.cascade__label { display: block; margin-top: 14px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.cascade__sub { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

.drivers {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: 32px;
}
.driver { padding: 14px 16px 0 0; border-top: 3px solid var(--ink); margin-right: 14px; }
.driver--emt { grid-column: 2 / span 2; }
.driver--immune { grid-column: 4 / span 4; border-top-color: var(--mist); }
.driver__steps { font-size: 0.8125rem; color: var(--muted); }
.driver__name { margin-top: 4px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.driver__text { margin-top: 6px; font-size: 0.9375rem; }

.notch {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px var(--col-gap);
}
.notch li { padding-top: 18px; border-top: 1px solid var(--ink); }
.notch__n { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.notch__name { margin-top: 8px; font-size: var(--step-1); font-weight: 500; }
.notch__text { margin-top: 8px; font-size: 0.9375rem; }

.evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px var(--col-gap);
}
.evidence__title { font-size: var(--step-2); font-weight: 400; margin-bottom: 8px; }
.evidence ul { list-style: none; padding: 0; }
.evidence li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.evidence li:first-child { border-top: 1px solid var(--line); }
.evidence__point { font-weight: 500; color: var(--ink); }
.evidence__detail { margin-top: 4px; font-size: 0.9375rem; }
.cite { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.cite a { color: inherit; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td {
  padding: 16px 20px 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  padding-top: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.compare thead .is-ours { color: var(--teal); }
.compare tbody th { width: 22%; font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.compare td { width: 39%; color: var(--slate); }
.compare td.is-ours { color: var(--ink); }
.signature td { width: auto; color: var(--ink); }
.signature th { width: 38%; }
.signature tr:first-child th, .signature tr:first-child td { border-top: 1px solid var(--ink); }

/* ---------- Diagnostics uses ---------- */
.uses {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--col-gap);
}
.uses li { padding-top: 18px; border-top: 2px solid var(--violet); }
.uses__name { font-size: var(--step-1); font-weight: 500; }
.uses__text { margin-top: 8px; font-size: 0.9375rem; }

.benefits {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--col-gap);
  border-top: 1px solid var(--line);
}
.benefits li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.benefits b { display: block; font-weight: 500; color: var(--ink); }
.benefits span { display: block; margin-top: 2px; font-size: 0.9375rem; }

/* ---------- Points (why CellyXa, partnering) ---------- */
.points {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--col-gap);
}
.points li { padding-top: 20px; border-top: 1px solid var(--ink); }
.points__name { font-size: var(--step-2); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.points__text { margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(80px, 9vw, 128px); }
.cta-band__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 32px;
  align-items: end;
}
.cta-band__copy { grid-column: 1 / span 7; }
.cta-band__copy .lede { margin-top: 20px; max-width: 36em; }
.cta-band__actions { grid-column: 8 / span 5; justify-content: flex-end; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--step--1); font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: #B3261E; }
.textarea { min-height: 150px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313202B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step--1); color: var(--slate); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.form__honeypot { display: none; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: 0.9375rem; color: var(--slate); }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--teal-deep); font-weight: 500; }
.form__status.is-error { color: #A3302B; font-weight: 500; }

.contact-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.contact-list { display: grid; gap: 28px; }
.contact-list__label { font-size: var(--step--1); color: var(--muted); }
.contact-list__value { margin-top: 4px; font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; color: var(--ink); line-height: 1.3; }
.contact-list__value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list__value a:hover { border-bottom-color: var(--ink); }

/* ---------- Disclaimer ---------- */
.disclaimer {
  padding: 18px 22px;
  border-left: 2px solid var(--line-strong);
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 80ch;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(64px, 7vw, 96px) 36px;
  border-top: 1px solid rgba(183, 198, 203, 0.14);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px var(--col-gap);
}
.site-footer__logo { width: 168px; height: auto; }
.site-footer__tagline { margin-top: 18px; color: var(--fog); font-size: 0.9375rem; }
.site-footer__heading { font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--mist); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--light); text-decoration: none; font-size: 0.9375rem; }
.site-footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--mist);
}
.site-footer__legal p { max-width: 70ch; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cascade { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .cascade li:nth-child(4n)::before { right: auto; width: 18px; }
  .drivers { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .driver--emt, .driver--immune { grid-column: auto; }
  .notch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .section-head__title, .section-head__text,
  .split__main, .split__side,
  .split--wide-main .split__main, .split--wide-main .split__side,
  .team-teaser__people, .team-teaser__aside,
  .cta-band__copy, .cta-band__actions,
  .statement__item { grid-column: 1 / -1; }
  .cta-band__actions { justify-content: flex-start; }

  .hero__facts { grid-template-columns: minmax(0, 1fr); }
  .hero__facts div { padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .hero__facts div:last-child { border-bottom: 0; }

  .emt { grid-template-columns: minmax(0, 1fr); }
  .emt__switch { padding-top: 0; grid-auto-flow: column; justify-content: start; gap: 16px; }
  .emt__switch svg { width: 64px; transform: rotate(90deg); }
  .emt__art { max-width: 220px; }

  .platform { grid-template-columns: minmax(0, 1fr); }
  .platform__step { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 20px; }
  .platform__step > :not(.platform__node) { grid-column: 2; }
  .platform__node { grid-row: 1 / span 3; }
  .platform__name { margin-top: 8px; }
  .platform__step:not(:last-child)::after {
    top: calc(var(--node) + 10px);
    left: calc(var(--node) / 2 - 1px);
    width: 2px;
    height: calc(100% - var(--node) + 20px);
    background: linear-gradient(to bottom, var(--line-strong) 60%, transparent 0) 0 0 / 2px 8px repeat-y;
  }

  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain li:nth-child(3) { padding-left: 0; border-left: 0; }
  .chain li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .people, .advisors, .evidence, .benefits { grid-template-columns: minmax(0, 1fr); }
  .points, .uses, .capabilities { grid-template-columns: minmax(0, 1fr); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 1.125rem; }
  .brand__mark { height: 36px; }
  .person { grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; align-items: center; }
  .person > div { display: contents; }
  .person__photo { width: 84px; height: 84px; grid-row: 1 / span 2; }
  .person__name { grid-column: 2; align-self: end; }
  .person__role { grid-column: 2; align-self: start; }
  .person__bio { grid-column: 1 / -1; margin-top: 18px; }
  .signature tr:first-child th, .signature tr:first-child td { border-top: 0; }
  .signature tr:first-child { border-top: 1px solid var(--ink); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain li, .chain li + li { padding: 20px 0 4px; border-left: 0; }
  .chain li + li { border-top: 1px solid var(--line); }
  .cascade { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cascade li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding: 0 0 22px; }
  .cascade li::before, .cascade li:nth-child(4n)::before { top: 36px; bottom: 0; left: 18px; right: auto; width: 1px; height: auto; }
  .cascade li:last-child::before { display: none; }
  .cascade__label { margin-top: 6px; }
  .cascade__label, .cascade__sub { grid-column: 2; }
  .notch { grid-template-columns: minmax(0, 1fr); }
  .compare tbody th { width: auto; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { padding: 4px 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--muted); }
  .pub { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .pub__year { font-size: 1.25rem; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .hero__canvas, .cta-band, .nav-toggle { display: none !important; }
  .on-ink { background: #fff; --fg-heading: #000; --fg-body: #222; }
}

/* ---------- Rows (partnering) ---------- */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.rows li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 8px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rows__name { grid-column: 1 / span 6; font-size: var(--step-3); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; }
.rows__text { grid-column: 8 / span 5; }
.mk { white-space: nowrap; }

@media (max-width: 900px) {
  .rows__name, .rows__text { grid-column: 1 / -1; }
}

/* ---------- Home: statement, compact pipeline, link rows ---------- */
.section--statement { padding-block: clamp(72px, 8vw, 112px); }
.section-head--flush { margin-bottom: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pipeline-block--compact .pipeline .c-prog { width: 19%; }
.pipeline-block--compact .pipeline .c-mod { width: 37%; }
.pipeline-block--compact .pipeline thead .stage-col:nth-child(4),
.pipeline-block--compact .pipeline thead .stage-col:nth-child(6) { background: none; }
.pipeline-block--compact .pipeline thead .stage-col:nth-child(3),
.pipeline-block--compact .pipeline thead .stage-col:nth-child(5) { background: rgba(19, 32, 43, 0.035); }
