/* ============================================================
   Zero State — Editorial Theme
   Design system: warm paper, Spectral serif display, IBM Plex Sans
   body, IBM Plex Mono labels, a single restrained green accent,
   hairline rules, evidence-as-tables. Light editorial-journal look.
   ============================================================ */

/* ---- Fonts (real fonts the brand uses) ---- */
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* Paper / surfaces */
  --paper:   #F5F2EC;
  --paper-2: #EFEBE2;
  --card:    #FBF9F4;

  /* Ink / text */
  --ink:   #1A1815;
  --ink-2: #3C382F;
  --muted: #6E6656;
  --faint: #9A9384;

  /* Lines */
  --line:   #DAD4C7;
  --line-2: #C7C0B0;

  /* Accent (green — the single brand accent) */
  --accent:      #436444;
  --accent-2:    #5A8555;
  --accent-soft: #E7EDE3;

  /* Footer green heading */
  --footer-green: #9DBE96;

  /* Type families */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --container: 1140px;
  --gutter: 48px;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--container); margin: 0 auto; padding:0 var(--gutter); }
.serif { font-family: var(--font-serif); }
.mono  { font-family: var(--font-mono); }
.rule    { height: 1px; background: var(--line); border: 0; }
.rule-ink{ height: 1px; background: var(--ink); border: 0; }
.band-2  { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background:#17140F; color:var(--ink); border-top:1px solid #2a251d; border-bottom:1px solid #2a251d;
  --paper:#1b1712; --paper-2:#1b1712; --card:#252017; --ink:#F3EEE4; --ink-2:#D8D2C4; --muted:#A7A090; --faint:#9A9384;
  --line:#3A352A; --line-2:#4A4436; --accent:#8CB183; --accent-2:#9DBE96; --accent-soft:#2B3325; }
.band-dark .kicker { color:var(--accent); }
.band-dark.alt { background:#0F1C16; --card:#17271F; --line:#2C3D33; --line-2:#374A3D; --accent-soft:#20302A; }

/* Mono uppercase kicker / eyebrow */
.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label-accent { color: var(--accent); }
.kicker { /* label with a leading accent dash */
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap:12px;
}
.kicker::before { content: none; }

/* Serif numeral for numbered stages */
.num { font-family: var(--font-serif); font-size: 15px; color: var(--accent); font-weight: 600; }

/* Green inline link underline (e.g. Food Vector™) */
.lk { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom:1px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding:12px 20px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: opacity .18s var(--ease-out), background .18s var(--ease-out), color .18s var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap:8px;
  line-height: 1;
}
.btn:hover { opacity: .82; color: var(--paper); }
.btn-o { background: transparent; color: var(--ink); }
.btn-o:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); opacity: 1; }

/* ============================================================
   Masthead / header
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap:10px; font-family: var(--font-serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.logo img { width: 26px; height: 26px; object-fit: contain; }
.nav { display: flex; gap:20px; align-items: center; }
.nav a { font-size: 15px; color: var(--ink-2); transition: color .18s var(--ease-out); }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap:12px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .25s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 3px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 19px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Sections / generic
   ============================================================ */
.section { padding:37px 0; }
.section-lg { padding:46px 0; }
.eyebrow-block { margin-bottom: 14px; }
.section h2 { font-size: 38px; margin: 14px 0 8px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 660px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap:0 64px; }
.grid-hero { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap:44px; align-items: start; }

/* Method / numbered steps */
.step { border-top: 1px solid var(--line); padding:22px 0; display: flex; gap:14px; }
.step h3 { font-size: 20px; margin: 0 0 5px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Cards */
.panel { background: var(--card); border: 1px solid var(--line); padding:25px 34px; }
.card {
  background: var(--card); border: 1px solid var(--line); padding:30px;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,24,21,.05); }
.card h3 { font-size: 21px; margin: 0 0 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.card-icon { color: var(--accent); margin-bottom: 16px; display: inline-flex; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap:16px; }

/* Team avatar */
.team-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; display: block; border: 1px solid var(--line-2); background: var(--paper-2); }
.team-avatar--mono { display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); border: 1.5px solid var(--accent); }

/* Stat strip */
.stats { display: flex; gap:24px; flex-wrap: wrap; align-items: center; }
.stat .fig { font-family: var(--font-serif); font-size: 30px; line-height: 1; }
.stat .label { letter-spacing: .14em; margin-top: 6px; }

/* Evidence / data table */
table.evidence { border-collapse: collapse; width: 100%; }
table.evidence caption { caption-side: top; text-align: left; padding-bottom:12px; }
table.evidence th {
  text-align: left; padding:11px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
table.evidence thead tr { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); }
table.evidence tbody tr { border-bottom: 1px solid var(--line); font-size: 15px; }
table.evidence td { padding:14px 12px; }
table.evidence .src { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
table.evidence .find { color: var(--ink-2); }
table.evidence .ref { text-align: right; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

/* Spec table (key/value) */
table.spec { border-collapse: collapse; width: 100%; }
table.spec tr { border-bottom: 1px solid var(--line); }
table.spec tr:first-child { border-top: 1px solid var(--ink); }
table.spec td { padding:15px 12px; font-size: 15px; vertical-align: top; }
table.spec td:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); width: 34%; }
table.spec td:last-child { color: var(--ink-2); }

/* Timeline (applications / milestones) */
.timeline { position: relative; margin-top: 10px; }
.tl-item { position: relative; padding:0 0 27px 34px; border-left: 1px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; padding-bottom:0; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.tl-item .tl-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 20px; margin: 6px 0 6px; }
.tl-item p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Pull quote */
.pullquote { text-align: center; }
.pullquote p { font-family: var(--font-serif); font-size: 34px; line-height: 1.32; max-width: 820px; margin: 0 auto; color: var(--ink); }

/* Feature list with tick */
.feature-list { list-style: none; margin: 18px 0 0; padding:0; }
.feature-list li { position: relative; padding:9px 0 9px 26px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }

/* Badge */
.badge { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-2); padding:5px 10px; border-radius: 2px; }

/* Partner logo row */
.partners { display: flex; align-items: center; gap:29px; flex-wrap: wrap; }
.partners img { height: 38px; width: auto; object-fit: contain; opacity: .78; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.partners img:hover { opacity: 1; filter: grayscale(0); }

/* ============================================================
   Decision Engine home — exact reproduction of the Home Page handoff
   (Home.dc.html). Real animated scenes embedded from assets/decision-engine/.
   ============================================================ */
.de-root {
  min-height: calc(100vh - 75px);
  background: #f6f3ee;
  display: flex; flex-direction: column;
  overflow-x: hidden; /* safety guard against any child bleed on narrow viewports */
}
/* Hero — ~43vh, two columns */
.de-hero {
  flex: 0 0 auto; overflow: hidden; background: #f6f3ee;
  display: grid; grid-template-columns: 0.98fr 1.02fr; align-items: stretch;
  height: 43vh; min-height: 360px;
  border-bottom: 1px solid rgba(43,39,33,0.12);
}
/* Copy block: pulled toward the animation, but text left-aligned for readability. */
.de-hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding:0 30px 0 48px; }
.de-hero-inner { max-width: 470px; text-align: left; }
.de-h1, .de-sub { overflow-wrap: break-word; }
.de-hero-copy .de-modalities { justify-content: flex-start; }
.de-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.26em; color: var(--accent); margin-bottom: 18px; }
.de-h1 { font-family: var(--font-serif); font-weight: 500; font-size: 60px; line-height: 1.0; letter-spacing: -0.022em; color: #211D17; margin: 0; }
.de-sub { font-family: var(--font-body); font-size: 19px; line-height: 1.5; color: #4B453A; margin: 22px 0 0; max-width: 500px; }
.de-modalities { display: flex; align-items: center; gap:12px 20px; margin-top: 26px; flex-wrap: wrap; }
.de-mod-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: #8B8270; }
.de-mod { display: flex; align-items: center; gap:8px; }
.de-mod svg { flex-shrink: 0; width: 20px; height: 20px; }
.de-mod span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; color: #211D17; white-space: nowrap; }
.de-hero-viz { position: relative; overflow: hidden; }
/* Zoom the scene so the structure reads larger; the extra area is empty paper, safely cropped. */
.de-hero-viz iframe { position: absolute; top: -16%; left: -28%; width: 144%; height: 132%; border: 0; display: block; background: #f6f3ee; }

/* Inside the Platform */
.de-inside { flex: 1; min-height: 0; background: #f6f3ee; padding:10px 56px 14px; display: flex; flex-direction: column; overflow-x: hidden; }
.de-inside-head { display: flex; flex-direction: column; align-items: center; justify-content: center; gap:6px; margin-bottom: 12px; text-align: center; }
.de-inside-head .de-eyebrow { font-size: 12.5px; letter-spacing: 0.22em; margin-bottom: 0; }
.de-h2 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.04; letter-spacing: -0.01em; color: #211D17; margin: 0; }

.de-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap:2px; border-bottom: 1px solid rgba(43,39,33,0.14); margin-bottom: 12px; }
.de-tab { display: flex; align-items: center; gap:10px; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.03em; cursor: pointer; padding:10px 16px; border: 0; background: transparent; margin-bottom: -1px; border-bottom: 2px solid transparent; transition: color .15s; color: #746C5C; }
.de-tab:hover { color: #211D17; }
.de-tab .de-tab-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; letter-spacing: 0.02em; color: #5F584A; background: rgba(43,39,33,0.08); transition: background .15s, color .15s; }
.de-tab.is-active { color: #211D17; border-bottom: 2px solid var(--accent); }
.de-tab.is-active .de-tab-num { color: #fff; background: var(--accent); }

.de-frames { position: relative; flex: 1; min-height: 360px; background: #f6f3ee; overflow: hidden; margin: 2px -56px 0; }
.de-frame { position: absolute; top: -16%; left: -13%; width: 126%; height: 126%; border: 0; display: block; background: #f6f3ee; opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1; }
.de-frame.is-active { opacity: 1; pointer-events: auto; z-index: 2; }

/* ============================================================
   Animation primitives — quiet, editorial
   ============================================================ */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
.js .draw { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); transition: stroke-dashoffset 1.1s var(--ease-out); }
.in .draw { stroke-dashoffset: 0; }
.js .fv-node { opacity: 0; transition: opacity .5s ease; }
.in .fv-node { opacity: 1; }
@keyframes fvbeam    { 0%{offset-distance:0%;opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{offset-distance:100%;opacity:0} }
@keyframes fvbeamrev { 0%{offset-distance:100%;opacity:0} 12%{opacity:1} 88%{opacity:1} 100%{offset-distance:0%;opacity:0} }
.in #beamA { animation: fvbeam 2.6s var(--ease-out) infinite; }
.in #beamB { animation: fvbeamrev 2.6s var(--ease-out) 1.3s infinite; }

/* ============================================================
   Home add-on sections (Client Case Study, Featured Use Case,
   Scientific Validation) — editorial styling, verbatim content.
   ============================================================ */
.placeholder-panel { border: 1px dashed var(--line-2); border-radius: 4px; background: var(--card); padding:26px 34px; }

/* Featured use case — outcomes list */
.outcomes { display: flex; flex-direction: column; gap:10px; }
.outcome { display: flex; align-items: center; gap:14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding:15px 18px; }
.outcome .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.outcome span:last-child { font-size: 15px; font-weight: 500; color: var(--ink); }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap:12px; }
.sv-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding:16px 18px; border-left: 3px solid var(--accent); }
.sv-item h3 { font-size: 15px; margin: 0 0 6px; letter-spacing: -.01em; }
.sv-item p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.fuc-compact { }
.fuc-compact h2 { font-size: 26px !important; margin-bottom: 10px !important; }
.fuc-compact > div > p { font-size: 15px !important; margin-bottom: 16px !important; }
.fuc-compact .outcomes { gap:7px; }
.fuc-compact .outcome { padding:9px 14px; border-radius: 9px; }
.fuc-compact .outcome span:last-child { font-size: 13.5px; }
.fuc-compact .cards-2 { gap:14px; }
.fuc-compact .card { padding:16px 18px; }
.fuc-compact .card h3 { font-size: 16px !important; margin-bottom: 5px !important; }
.fuc-compact .card p { font-size: 13.5px !important; line-height: 1.5 !important; }

/* Scientific validation — evidence trail card */
.evidence-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding:21px 26px 22px; }
.ec-head { display: flex; align-items: center; justify-content: space-between; gap:12px; margin-bottom: 16px; }
.ec-id { font-size: 12px; color: var(--muted); }
.ec-claim { font-family: var(--font-serif); font-size: 20px; line-height: 1.35; color: var(--ink); margin: 0 0 18px; }
.ec-conf { display: flex; align-items: center; gap:12px; margin-bottom: 18px; }
.ec-conf .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ec-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.ec-bar-fill { width: 82%; height: 100%; background: var(--accent); border-radius: 4px; }
.ec-high { color: var(--accent) !important; }
.ec-trail { display: flex; flex-direction: column; gap:0; border-top: 1px solid var(--line); }
.ec-row { display: flex; gap:11px; padding:14px 0; border-bottom: 1px solid var(--line); }
.ec-type { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); width: 84px; flex: none; padding-top:2px; }
.ec-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ec-ref { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.ec-foot { font-size: 13px; color: var(--muted); margin-top: 16px; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr !important; gap:24px !important; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap:40px; padding:26px 0 0; align-items:start; }
.footer-brand .logo { color: var(--paper); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #B7B0A0; margin: 16px 0 0; max-width: 300px; }
.footer-col .label { color: var(--footer-green); margin-bottom: 14px; }
.footer-col .links { display: flex; flex-direction: column; gap:10px; font-size: 14px; }
.footer-col .links a { color: #CFC8B8; transition: color .18s var(--ease-out); }
.footer-col .links a:hover { color: var(--footer-green); }
.footer-social { display: flex; gap:14px; margin-top: 20px; }
.footer-social a { color: #B7B0A0; display: inline-flex; transition: color .18s var(--ease-out); }
.footer-social a:hover { color: var(--footer-green); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap:10px; font-size: 13px; color: #9A9384; padding:16px 0 20px; }
.footer-bottom .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.footer-hr { height: 1px; background: rgba(255,255,255,.14); margin: 28px 0 18px; border: 0; }

/* ============================================================
   Forms / briefing modal
   ============================================================ */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 2px; padding:11px 13px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.modal-overlay { position: fixed; inset: 0; background: rgba(26,24,21,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding:24px; }
.modal-overlay.is-active { display: flex; }
.modal { background: var(--paper); border: 1px solid var(--line-2); max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding:40px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal h3 { font-size: 26px; margin: 0 0 6px; }
.form-status { font-size: 14px; margin-top: 12px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #A5432F; }

/* Legal modal (footer) shares modal styles */
.legal-modal-overlay { position: fixed; inset: 0; background: rgba(26,24,21,.55); display: none; align-items: center; justify-content: center; z-index: 1000; padding:24px; }
.legal-modal-overlay.is-active { display: flex; }
.legal-modal { background: var(--paper); border: 1px solid var(--line-2); max-width: 640px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; }
.legal-modal-head { display: flex; justify-content: space-between; align-items: center; padding:21px 32px; border-bottom: 1px solid var(--line); }
.legal-modal-head h3 { font-size: 24px; }
.legal-modal-close { background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; }
.legal-modal-body { padding:22px 32px; overflow: auto; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal-modal-body h4 { font-family: var(--font-serif); font-size: 18px; color: var(--ink); margin: 20px 0 8px; }

/* ============================================================
   Article / blog (research posts, single, archive)
   ============================================================ */
.article { max-width: 720px; margin: 0 auto; }
.article-header { margin-bottom: 40px; }
.article-header h1 { font-size: 46px; line-height: 1.1; margin: 16px 0 12px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-body { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article-body h2 { font-size: 30px; margin: 40px 0 14px; }
.article-body h3 { font-size: 23px; margin: 32px 0 10px; }
.article-body a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.article-body blockquote { border-left: 2px solid var(--accent); margin: 24px 0; padding:4px 0 4px 22px; font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.post-card { border-top: 1px solid var(--line); padding:21px 0; }
.post-card h3 { font-size: 24px; margin: 8px 0 8px; }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  :root { --gutter: 30px; }
  .grid-hero { grid-template-columns: 1fr; gap:27px; }
  .grid-2 { grid-template-columns: 1fr; gap:0; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr !important; }
  /* Decision Engine — stack on small screens; allow height to grow */
  .de-root { height: auto; min-height: 0; overflow: visible; }
  .de-hero { grid-template-columns: 1fr; height: auto; }
  .de-hero-copy { padding:27px 30px; align-items: flex-start; }
  .de-hero-inner { max-width: none; }
  .de-h1 { font-size: 40px; }
  .de-hero-viz { min-height: 340px; border-top: 1px solid rgba(43,39,33,0.12); }
  .de-hero-viz iframe { top: -8%; left: -8%; width: 116%; height: 116%; }
  .de-inside { padding:19px 30px 25px; }
  /* Neutralize the desktop full-bleed negative side margins so the stage
     never exceeds the mobile section padding (root cause of the overflow). */
  .de-frames { min-height: 460px; margin: 2px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap:22px; }
  .section h2 { font-size: 32px; }
  .nav, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .masthead.menu-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding:20px var(--gutter) 22px; gap:12px;
  }
  .masthead.menu-open .nav-actions .btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 34px; }
  .pullquote p { font-size: 26px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { transition: none; opacity: 1; transform: none; }
  .draw { transition: none; stroke-dashoffset: 0; }
  .fv-node { opacity: 1; }
  #beamA, #beamB { animation: none; opacity: 1; }
}

/* ============================================================
   S1 compounding-loop hero animation
   ============================================================ */
.hv2b-hero .hv2b-viz { display:flex; align-items:center; justify-content:center; min-height:760px; }
.cloop-frame { width:100%; height:100%; min-height:760px; border:0; display:block; background:#f6f3ee; transform:scale(1.5); transform-origin:center center; }
.cloop-ring { position:absolute; z-index:1; left:50%; top:50%; width:71.4%; height:71.4%; transform:translate(-50%,-50%); border:1.5px dashed #cfc9ba; border-radius:50%; }
.cloop-protein-wrap { position:absolute; z-index:0; left:50%; top:50%; width:58%; transform:translate(-50%,-50%); perspective:900px; pointer-events:none; }
.cloop-protein { width:100%; display:block; opacity:.82; transform-style:preserve-3d; animation:cloopspin 22s linear infinite; will-change:transform; }
@keyframes cloopspin { from { transform:rotateY(0deg); } to { transform:rotateY(360deg); } }
.cloop-center { position:absolute; z-index:3; left:50%; top:50%; transform:translate(-50%,-50%); width:46%; text-align:center; }
.cloop-eyebrow { font-family:var(--font-mono); font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.cloop-line { font-family:var(--font-serif); font-weight:500; font-size:19px; line-height:1.32; color:var(--ink); text-shadow:0 1px 10px var(--paper), 0 0 14px var(--paper); }
.cloop-node { position:absolute; z-index:4; transform:translate(-50%,-50%); font-family:var(--font-mono); font-size:13px; letter-spacing:.01em; color:#4b453a; background:#fbfaf6; border:1px solid var(--hp-line); border-radius:999px; padding:10px 16px; white-space:nowrap; box-shadow:0 2px 10px rgba(43,39,33,.06); transition:background .9s var(--ease-out), color .9s var(--ease-out), border-color .9s var(--ease-out), box-shadow .9s var(--ease-out); }
.cloop-node.is-on { background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 8px 20px rgba(67,100,68,.28); }

/* ============================================================
   S2 stage explorer — real per-stage panels
   ============================================================ */
.hv2b-detail.sx-detail { min-height:340px; }
.sx-panel { display:none; }
.sx-panel.is-on { display:block; animation:sxfade .35s var(--ease-out); }
@keyframes sxfade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.sx-eyebrow { font-weight:600; font-family:var(--font-mono); font-size:12.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); margin:0 0 10px; }
.sx-eyebrow-sub { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:-4px 0 16px; }
.sx-title { font-family:var(--font-serif); font-weight:500; font-size:31px; line-height:1.14; letter-spacing:-.005em; color:var(--ink); margin:0 0 14px; text-wrap:pretty; }
.sx-sub { font-family:var(--font-body); font-size:16px; line-height:1.55; color:var(--ink-2); margin:0; max-width:540px; }
.sx-cards { display:flex; flex-direction:column; gap:11px; margin-top:20px; }
.sx-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px 22px; }
.sx-card h3 { font-family:var(--font-mono); font-size:15px; letter-spacing:.06em; color:var(--ink); margin:0 0 8px; font-weight:500; }
.sx-card p { font-size:14.5px; line-height:1.55; color:var(--muted); margin:0 0 10px; }
.sx-panel[data-panel="0"] .sx-cards { gap:9px; margin-top:16px; }
.sx-panel[data-panel="0"] .sx-card { padding:12px 15px; border-radius:10px; }
.sx-panel[data-panel="0"] .sx-card h3 { font-size:15px; margin:0 0 4px; }
.sx-panel[data-panel="0"] .sx-card p { font-size:13px; line-height:1.45; margin:0; }
.sx-arrow { font-family:var(--font-mono); font-size:12.5px; color:var(--accent); }
.sx-bars { display:flex; flex-direction:column; gap:15px; margin:16px 0 30px; max-width:560px; }
.sx-bar-lab { display:flex; justify-content:space-between; font-family:var(--font-body); font-size:14px; color:var(--ink-2); margin-bottom:7px; }
.sx-bar-lab .hero { font-weight:600; color:var(--ink); }
.sx-bar-track { height:6px; border-radius:6px; background:#eee8dd; overflow:hidden; }
.sx-bar-fill { height:100%; border-radius:6px; background:#5a5348; }
.sx-bar-fill.is-hero { background:var(--accent); }
.sx-ev { background:#fffdf9; border:1px solid var(--line); border-radius:12px; padding:15px 17px; margin-top:18px; box-shadow:0 6px 18px rgba(43,39,33,.05); }
.sx-ev-h { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin:0 0 10px; }
.sx-chip { display:flex; justify-content:space-between; align-items:center; gap:10px; font-family:var(--font-mono); font-size:11.5px; color:var(--ink-2); background:#f3efe6; border-radius:7px; padding:8px 11px; margin-bottom:6px; }
.sx-chip.is-assay { background:var(--accent-soft); color:var(--accent); }
.sx-chip .run { font-size:9.5px; letter-spacing:.1em; color:var(--accent); white-space:nowrap; }
.sx-ex-h { font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:12px 0 8px; }
.sx-ex { display:flex; gap:9px; align-items:flex-start; margin-bottom:9px; }
.sx-ex .dot { width:8px; height:8px; border-radius:50%; margin-top:5px; flex:none; }
.sx-ex b { font-size:12.5px; color:var(--ink); font-weight:600; }
.sx-ex span { display:block; font-family:var(--font-mono); font-size:11px; color:var(--muted); margin-top:2px; }
.sx-warn { font-family:var(--font-mono); font-size:11px; color:var(--muted); border-top:1px solid var(--line); padding-top:10px; margin-top:2px; }
.sx-vcards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:22px 0 16px; }
.sx-vcard { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
.sx-vcard.is-hero { background:var(--accent-soft); border-color:#c2d0bd; }
.sx-vcard .n { font-family:var(--font-mono); font-size:11px; color:var(--muted); }
.sx-vcard h3 { font-size:15px; color:var(--ink); margin:8px 0 6px; font-family:var(--font-body); font-weight:600; }
.sx-vcard p { font-size:13px; line-height:1.45; color:var(--muted); margin:0; }
.sx-decision { background:var(--accent-deep, #2f4a31); border-radius:12px; padding:18px 20px; }
.sx-decision .k { font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; color:rgba(255,255,255,.76); margin:0 0 7px; }
.sx-decision p { font-size:15.5px; font-weight:600; color:#fff; line-height:1.4; margin:0; }
@media (max-width: 1000px) {
  .hv2b-hero .hv2b-viz { min-height:380px; }
  .sx-vcards { grid-template-columns:1fr; }
  .hv2b-detail.sx-detail { min-height:0; }
}




.hv2b { --hp-paper:#f6f3ee; --hp-card:#f7f5ef; --hp-panel:#fbfaf6; --hp-line:#e4e0d5;
  --hp-ink:#17191b; --hp-body:#5b5f58; --hp-green:#436444; --hp-mut:#6a665c;
  background:var(--hp-paper); color:var(--hp-ink); }
.hv2b .wrapx { max-width:1280px; margin:0 auto; padding:0 48px; }
.hv2b .eyebrow { font-weight:600; font-family:var(--font-mono); font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--hp-green); }

/* S1 — HERO */
.hv2b-hero { position:relative; overflow:hidden; border-bottom:1px solid var(--hp-line); }
.hv2b-hero .inner { display:grid; grid-template-columns:0.86fr 1.14fr; gap:27px; align-items:center; padding:10px 48px 12px; position:relative; }
.hv2b-hero h1 { font-family:var(--font-serif); font-weight:500; font-size:72px; line-height:.98; letter-spacing:-.015em; color:var(--hp-ink); margin:6px 0 16px; text-wrap:pretty; }
.hv2b-hero .sub { font-size:20px; line-height:1.5; color:var(--hp-body); max-width:500px; margin:0 0 22px; }
.hv2b-hero .cta-row { display:flex; gap:12px; flex-wrap:wrap; }
.hv2b-hero .hero-promise { display:flex; flex-wrap:wrap; gap:8px 10px; margin:0 0 24px; }
.hv2b-hero .hero-promise span { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.04em; color:var(--hp-ink); background:var(--hp-panel); border:1px solid var(--hp-line); border-radius:999px; padding:6px 13px; display:inline-flex; align-items:center; gap:8px; }
.hv2b-hero .hero-promise span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--hp-green); flex:none; }
.hv2b-viz { position:relative; overflow:hidden; align-self:stretch; }
.hv2b-viz iframe.cloop-frame { position:static; top:auto; left:auto; width:100%; height:100%; min-height:700px; }
.hv2b-viz iframe { position:absolute; top:-30%; left:-24%; width:156%; height:162%; border:0; display:block; background:var(--hp-paper); }


/* S2 — HOW IT WORKS */
.hv2b-how { padding:10px 0 16px; }
.hv2b-how .how-head { margin-bottom:10px; }
.hv2b-how h2 { font-family:var(--font-serif); font-weight:500; font-size:46px; line-height:1.04; letter-spacing:-.01em; color:var(--hp-ink); margin:16px 0 0; max-width:640px; text-wrap:pretty; }
.hv2b-explorer { background:var(--hp-card); border:1px solid var(--hp-line); border-radius:22px; overflow:hidden; }
.hv2b-exgrid { display:grid; grid-template-columns:.82fr 1.18fr; }
.hv2b-index { padding:27px 40px 25px; }
.hv2b-index .eyebrow { margin-bottom:26px; display:block; }
.hv2b-steps { display:flex; flex-direction:column; gap:4px; }
.hv2b-step { display:flex; align-items:center; gap:11px; padding:15px 18px; border-radius:10px; cursor:pointer; border:0; border-left:3px solid transparent; background:transparent; transition:background .2s var(--ease-out); text-align:left; width:100%; font-family:inherit; }
.hv2b-step:hover { background:#efece2; }
.hv2b-step .num { font-family:var(--font-mono); font-size:12.5px; width:27px; height:27px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; background:transparent; color:#6E6656; border:1px solid #cfccc0; transition:all .2s var(--ease-out); }
.hv2b-step .lbl { font-family:var(--font-mono); font-size:15px; letter-spacing:.01em; color:#6E6656; }
.hv2b-step.is-active { background:#e6ebe4; border-left-color:var(--hp-green); }
.hv2b-step.is-active .num { background:#2b3130; color:#fff; border-color:transparent; }
.hv2b-step.is-active .lbl { color:#1c1f1d; font-weight:500; }

.hv2b-detail { padding:27px 44px 25px; border-left:1px solid var(--hp-line); background:var(--hp-panel); position:relative; }
.hv2b-detail .d-top { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; }
.hv2b-detail .d-counter { font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; color:#a7a89d; }
.hv2b-detail h3 { font-family:var(--font-serif); font-weight:500; font-size:31px; line-height:1.18; letter-spacing:-.005em; color:var(--hp-ink); margin:0 0 14px; text-wrap:pretty; min-height:110px; }
/* Card headings must not inherit the panel-title min-height (fixes tab whitespace) */
.sx-card h3, .sx-vcard h3 { min-height: 0; }
/* Card titles must use the card-heading style, not the 31px panel-title style
   that .hv2b-detail h3 would otherwise leak in (e.g. Ligand-First / Receptor-First). */
.hv2b-detail .sx-card h3 { font-family:var(--font-mono); font-weight:500; font-size:15px; line-height:1.3; letter-spacing:.06em; }

.hv2b-detail .d-sub { font-size:16px; line-height:1.55; color:var(--hp-body); margin:0 0 28px; max-width:460px; }
.hv2b-fig { position:relative; width:100%; max-width:520px; aspect-ratio:1.6/1; background:#efece2; border:1px solid var(--hp-line); border-radius:16px; overflow:hidden; }
.hv2b-fig svg { position:absolute; inset:0; width:100%; height:100%; }
.hv2b-prog-row { display:flex; align-items:center; gap:11px; margin-top:16px; }
.hv2b-prog-track { flex:1; height:2px; background:var(--hp-line); border-radius:2px; overflow:hidden; }
.hv2b-prog-fill { height:100%; background:var(--hp-green); border-radius:2px; width:20%; transition:width .3s var(--ease-out); }
.hv2b-detail .d-caption { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:#9a9c92; white-space:nowrap; }

.hv2b-modstrip { border-top:1px solid var(--hp-line); padding:22px 40px; display:flex; align-items:center; gap:26px; flex-wrap:wrap; background:var(--hp-paper); }
.hv2b-modstrip .m-lab { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--hp-mut); }
.hv2b-modstrip .m-item { display:flex; align-items:center; gap:11px; }
.hv2b-modstrip .m-item .d { width:11px; height:11px; border-radius:50%; }
.hv2b-modstrip .m-item span { font-family:var(--font-mono); font-size:14px; color:#3a3d38; }

/* S3 — FOOD VECTOR band */
.hv2b-fv { background:#0A0F1E; color:#fff; position:relative; overflow:hidden; }
.hv2b-fv .glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(620px 440px at 88% 26%, rgba(39,108,99,.32), transparent 70%), radial-gradient(520px 420px at 96% 82%, rgba(90,133,85,.16), transparent 72%); }
.hv2b-fv .fv-inner { display:grid; grid-template-columns:1.15fr .85fr; gap:41px; align-items:center; padding:42px 48px; position:relative; }
.hv2b-fv .fv-badge { display:inline-block; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:#9DBE96; border:1px solid rgba(157,190,150,.35); border-radius:3px; padding:5px 10px; }
.hv2b-fv h2 { font-family:var(--font-serif); font-weight:500; font-size:44px; line-height:1.08; letter-spacing:-.012em; margin:22px 0 18px; color:#fff; text-wrap:pretty; }
.hv2b-fv .fv-p1 { font-size:18px; line-height:1.55; color:#AEB6C8; max-width:520px; margin:0 0 12px; }
.hv2b-fv .fv-p2 { font-size:16px; line-height:1.55; color:#8b93a6; max-width:520px; margin:0 0 30px; }
.hv2b-fv .fv-viz { display:flex; justify-content:center; align-items:center; }
.hv2b-fv .fv-viz svg { width:280px; height:280px; }

/* S4 — PROOF strip */
.hv2b-proof { border-bottom:1px solid var(--hp-line); }
.hv2b-proof .proof-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; padding:35px 48px; }
.hv2b-proof .p-col { padding:0 40px; }
.hv2b-proof .p-col + .p-col { border-left:1px solid var(--hp-line); }
.hv2b-proof .p-col:first-child { padding-left:0; }
.hv2b-proof .p-num { font-family:var(--font-serif); font-weight:500; font-size:46px; letter-spacing:-.01em; color:var(--hp-ink); line-height:1; }
.hv2b-proof .p-lab { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--hp-mut); margin:12px 0 8px; }
.hv2b-proof .p-col p { font-size:14.5px; line-height:1.5; color:var(--hp-body); margin:0; }

/* S5 — CTA band */
.hv2b-cta .cta-inner { max-width:820px; margin:0 auto; padding:46px 48px; text-align:center; }
.hv2b-cta h2 { font-family:var(--font-serif); font-weight:500; font-size:52px; line-height:1.05; letter-spacing:-.012em; color:var(--hp-ink); margin:16px 0 18px; text-wrap:pretty; }
.hv2b-cta .cta-inner p { font-size:18px; line-height:1.55; color:var(--hp-body); max-width:520px; margin:0 auto 30px; }

@media (max-width: 1000px) {
  .hv2b-hero .inner { grid-template-columns:1fr; gap:22px; padding:35px 30px 22px; }
  .hv2b-hero h1 { font-size:44px; }
  .hv2b-viz { min-height:340px; }
  .hv2b .wrapx { padding:0 30px; }
  .hv2b-how { padding:22px 0 26px; }
  .hv2b-how h2 { font-size:34px; }
  .hv2b-exgrid { grid-template-columns:1fr; }
  .hv2b-detail { border-left:0; border-top:1px solid var(--hp-line); }
  .hv2b-detail h3 { min-height:0; }
  .hv2b-modstrip { gap:14px 26px; }
  .hv2b-fv .fv-inner { grid-template-columns:1fr; gap:24px; padding:35px 30px; }
  .hv2b-fv h2 { font-size:34px; }
  .hv2b-proof .proof-grid { grid-template-columns:1fr; gap:22px; padding:30px 30px; }
  .hv2b-proof .p-col { padding:0; }
  .hv2b-proof .p-col + .p-col { border-left:0; border-top:1px solid var(--hp-line); padding-top:22px; }
  .hv2b-cta .cta-inner { padding:37px 30px; }
  .hv2b-cta h2 { font-size:38px; }
}
