/* ============================================================
   GutRecover Therapeutics — institutional site styles
   Tokens first; component styles follow document order.
   ============================================================ */

:root {
  /* Neutrals — brand kit mist / paper */
  --bg: #F1F3EC;               /* mist */
  --bg-deep: #E6E9DD;          /* mist-soft */
  --surface: #FAFBF6;          /* paper */
  --ink: #14201A;              /* charcoal */
  --ink-soft: #1E2C24;         /* charcoal-soft */
  --ink-faint: rgba(20,32,26,0.55);
  --line: #D6DBC8;             /* mist-deep */

  /* Brand — chlorophylle family (brand kit default) */
  --brand-900: #14201A;        /* charcoal — dark sections */
  --brand-600: #5B8C3E;        /* chloro — primary signature */
  --brand-100: #D8E8CA;        /* light chloro wash */
  --brand-050: #EBF5E3;        /* very light chloro wash */

  /* Full brand kit palette */
  --chloro: #5B8C3E;
  --chloro-deep: #436A2C;
  --chloro-bright: #6FA64C;
  --lumen: #2B9C8A;
  --lumen-deep: #1E7869;
  --spore: #D89A3C;
  --cyan: #4A93C4;
  --deep-gut: #0C140F;

  /* Accent aliases (used by component styles) */
  --accent-orange: #D89A3C;    /* spore */
  --accent-green:  #5B8C3E;    /* chloro */
  --accent-blue:   #2B9C8A;    /* lumen */

  /* Type — brand kit */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-serif: "Newsreader", "Times New Roman", serif;

  /* Rhythm */
  --radius-card: 8px;
  --radius-pill: 4px;
  --maxw: 1200px;
  --section-pad: clamp(72px, 9vw, 128px);
}

:root[data-theme="navy"] {
  --brand-900: #0A1F2E;
  --brand-600: #2B9C8A;        /* lumen teal */
  --brand-100: #CCE9E4;
  --brand-050: #E5F4F2;
  --accent-green: #2B9C8A;
  --accent-blue: #4A93C4;
}
:root[data-theme="forest"] {
  --brand-900: #243D2B;
  --brand-600: #436A2C;        /* chloro-deep */
  --brand-100: #D4E5C4;
  --brand-050: #E8F2DF;
}

/* Serif editorial toggle — swaps display to Newsreader italic */
:root[data-type="serif"] {
  --font-display: "Newsreader", "Times New Roman", serif;
}
:root[data-type="serif"] .h-display,
:root[data-type="serif"] h1, :root[data-type="serif"] h2 {
  letter-spacing: -0.01em;
  font-weight: 300;
  font-style: italic;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Subtle grain texture — brand kit atmosphere */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  opacity: 0.40;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; text-wrap: balance; }
.h-display { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.015em; }
.h-section { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.h-card { font-size: 22px; line-height: 1.25; font-weight: 580; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; max-width: 56ch; }
.body-soft { color: var(--ink-soft); text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 32px; height: 1px;
  background: var(--brand-600);
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15.5px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn .arr { transition: transform 0.18s ease; font-family: var(--font-body); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--brand-900); color: #FCFBF8; }
.btn-primary:hover { background: var(--brand-600); }
.btn-quiet { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--brand-600); color: var(--brand-600); }
.btn-ondark { background: #FCFBF8; color: var(--brand-900); }
.btn-ondark:hover { background: var(--brand-100); }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--brand-600);
}
.link-more .arr { transition: transform 0.18s ease; }
.link-more:hover .arr { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 16px; }
/* GR monogram — brand kit logo mark */
.brand-mark {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}
.brand-mark .bm-g { color: var(--chloro, #5B8C3E); }
.brand-mark .bm-r { color: var(--ink); margin-left: -0.04em; }
.brand-mark .bm-dots {
  display: flex; flex-direction: column; gap: 4px;
  margin-left: 9px; margin-top: 4px; flex-shrink: 0;
}
.brand-mark .bm-dots i {
  width: 7px; height: 7px; border-radius: 50%; display: block;
}
.brand-mark .bm-dots i:nth-child(1) { background: var(--chloro, #5B8C3E); }
.brand-mark .bm-dots i:nth-child(2) { background: var(--lumen, #2B9C8A); }
.brand-mark .bm-dots i:nth-child(3) { background: var(--spore, #D89A3C); }
.brand-mark .bm-dots i:nth-child(4) { background: var(--cyan, #4A93C4); }
.brand-name { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-deep); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 20px; font-size: 14.5px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 88px) 0 var(--section-pad); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero-news {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.18s ease;
}
.hero-news:hover { border-color: var(--brand-600); }
.hero-news .tag {
  background: var(--brand-100);
  color: var(--brand-900);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.hero-visual {
  position: relative;
  border-radius: 24px;
  background: var(--brand-050);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 5 / 5.6;
}
.hero-visual canvas { width: 100%; height: 100%; }
.hero-visual .visual-caption {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 5px 10px;
  border-radius: 8px;
}

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section-pad) 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head.center .eyebrow::before { display: none; }
.on-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Statement band ---------- */
.statement { padding: var(--section-pad) 0; }
.statement-inner { max-width: 880px; display: flex; flex-direction: column; gap: 24px; }
.statement .h-section { font-size: clamp(28px, 3.2vw, 42px); }
.statement .h-section em { font-style: italic; color: var(--brand-600); }

/* ---------- Card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-100);
  box-shadow: 0 18px 40px -22px rgba(20, 40, 35, 0.25);
}
.card .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.card p { font-size: 15.5px; color: var(--ink-soft); text-wrap: pretty; }
.card .link-more { margin-top: auto; padding-top: 8px; }

/* Strain-dot motif on platform cards — brand kit 4-color system */
.dot-motif { display: flex; gap: 6px; margin-bottom: 6px; }
.dot-motif i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--brand-100);
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot-motif i:nth-child(1) { background: var(--chloro, #5B8C3E); }
.dot-motif i:nth-child(2) { background: var(--lumen, #2B9C8A); }
.dot-motif i:nth-child(3) { background: var(--spore, #D89A3C); }
.dot-motif i:nth-child(4) { background: var(--cyan, #4A93C4); }
.dot-motif i:nth-child(5) { background: var(--chloro, #5B8C3E); opacity: 0.35; }
.card:hover .dot-motif i { transform: none; }
.card:hover .dot-motif i:nth-child(odd) { transform: translateY(-3px); }

/* Focus area cards — tinted variant */
.card.tinted { background: var(--brand-050); border-color: var(--brand-100); }
.card.tinted:hover { border-color: var(--brand-600); }

/* ---------- Pipeline ---------- */
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 40px);
  overflow-x: auto;
}
.pipeline-table { min-width: 720px; }
.pl-row {
  display: grid;
  grid-template-columns: 200px 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 6px;
}
.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-row.head {
  padding: 0 6px 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pl-program { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pl-program small { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--ink-faint); margin-top: 2px; }
.pl-ind { font-size: 15px; color: var(--ink-soft); }
.pl-phases { position: relative; }
.pl-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 14px;
}
.pl-track i { background: var(--bg-deep); border-radius: 4px; }
.pl-bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  height: 14px;
  width: var(--w);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.revealed .pl-bar { transform: scaleX(1); }
.pl-phase-labels {
  display: grid;
  grid-template-columns: 200px 220px repeat(4, 1fr);
  gap: 20px 4px;
  padding: 0 6px 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pipeline-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- Evidence / rationale ---------- */
.evidence-list { display: flex; flex-direction: column; }
.evidence-row {
  display: grid;
  grid-template-columns: 64px 1fr 2fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.evidence-row:last-child { border-bottom: 1px solid var(--line); }
.evidence-row .idx { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.evidence-row h3 { font-size: 21px; }
.evidence-row p { font-size: 15.5px; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .portrait {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.person h3 { font-size: 18px; font-family: var(--font-body); font-weight: 650; }
.person .role { font-size: 13.5px; color: var(--ink-soft); }

/* Placeholder imagery — striped, labeled */
.ph {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--brand-050) 0 14px, var(--bg-deep) 14px 28px);
  display: grid; place-items: center;
}
.ph span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  padding: 5px 10px;
  border-radius: 8px;
}

/* ---------- Partner band ---------- */
.partner-band { background: var(--brand-900); color: #F4F3EE; }
.partner-inner {
  padding: var(--section-pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.partner-inner .eyebrow { color: var(--brand-100); }
.partner-inner .eyebrow::before { background: var(--brand-100); }
.partner-inner .h-section { color: #FCFBF8; }
.partner-inner .body-soft { color: color-mix(in srgb, #FCFBF8 72%, var(--brand-900)); }
.partner-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.partner-aside { display: flex; flex-direction: column; gap: 14px; }
.partner-aside .channel {
  border: 1px solid color-mix(in srgb, #FCFBF8 22%, transparent);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.partner-aside .channel:hover { border-color: #FCFBF8; background: color-mix(in srgb, #FCFBF8 6%, transparent); }
.partner-aside .channel b { font-size: 15.5px; }
.partner-aside .channel span { font-size: 13.5px; color: color-mix(in srgb, #FCFBF8 65%, var(--brand-900)); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(20, 40, 35, 0.25); }
.news-card time { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.news-card h3 { font-size: 19px; line-height: 1.3; }
.news-card .kind { font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-600); }

/* ---------- Footer CTA strip ---------- */
.footer-cta-strip {
  background: linear-gradient(135deg, var(--chloro-deep, #436A2C) 0%, var(--lumen-deep, #1E7869) 100%);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.footer-cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.fcta-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.fcta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.fcta-visual img {
  height: clamp(220px, 26vw, 320px);
  width: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(8, 26, 20, 0.35));
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .fcta-visual img { animation: fctaFloat 7s ease-in-out infinite; }
}
@keyframes fctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fcta-copy .eyebrow { color: rgba(241,243,236,0.60); }
.fcta-copy .eyebrow::before { background: rgba(241,243,236,0.60); }
.fcta-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #F1F3EC;
  margin: 18px 0 20px;
}
.fcta-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(241,243,236,0.72);
  max-width: 46ch;
}
.fcta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  flex-shrink: 0;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(241,243,236,0.40);
  color: rgba(241,243,236,0.80);
  padding: 12px 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: #F1F3EC;
  color: #F1F3EC;
  background: rgba(241,243,236,0.08);
}
@media (max-width: 820px) {
  .fcta-inner { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .fcta-visual { order: -1; align-self: center; }
  .fcta-visual img { height: clamp(200px, 48vw, 260px); }
  .fcta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-brand address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}
.footer-addr-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-addr-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  line-height: 1.6;
}
.footer-addr-contact {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--brand-600);
  text-decoration: none;
  margin-top: 6px;
  transition: opacity 0.2s;
}
.footer-addr-contact:hover { opacity: 0.72; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--brand-600); }
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-motion="on"] [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }
  :root[data-motion="on"] [data-reveal].revealed { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    font-size: 18px;
  }
  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 0 18px;
    gap: 2px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 8px; font-weight: 550; color: var(--ink-soft); border-radius: 10px; }
  .hero-grid, .partner-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .card-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .evidence-row { grid-template-columns: 40px 1fr; }
  .evidence-row p { grid-column: 2; }
  .evidence-row .link-more { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid, .team-grid { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}
@media (min-width: 1021px) { .mobile-nav { display: none !important; } }
