/* ============================================================
   EQUILIBRIUM DIAGNOSTICS — Design System & Styles
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── DESIGN TOKENS ── */
:root {
  /* Colours */
  --color-navy:       #1D3557;
  --color-deep-red:   #8B1A1A;
  --color-coral:      #C86C6C;
  --color-mauve:      #9A8AA0;
  --color-steel:      #6B8CAE;
  --color-bg:         #FAFAFA;
  --color-bg-alt:     #F4F4F5;
  --color-text:       #1A1A1A;
  --color-text-muted: #8A8A8A;
  --color-border:     #E5E5E5;
  /* Brand bar */
  --color-bb1: #8B1A1A;
  --color-bb2: #C86C6C;
  --color-bb3: #9A8AA0;
  --color-bb4: #6B8CAE;
  --color-bb5: #1D3557;
  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --space-40: 160px;
  --space-48: 192px;
  /* Layout */
  --max-width: 1200px;
  --reading-width: 68ch;
  --section-pad-desktop: var(--space-40);
  --section-pad-tablet:  var(--space-24);
  --section-pad-mobile:  72px;
}

/* ── BASE ── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: var(--section-pad-desktop) 0;
}

section.alt-bg {
  background: var(--color-bg-alt);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.875rem;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-navy);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-navy);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--color-navy);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-navy);
}

p {
  max-width: var(--reading-width);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 860px;
}

.caption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: var(--space-3);
}

.big-stat {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--color-deep-red);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.15s ease;
  min-height: 44px;
}
.btn-primary:hover { background: var(--color-deep-red); }
.btn-primary:focus-visible { outline: 2px solid var(--color-coral); outline-offset: 2px; }

/* ============================================================
   BRAND BAR
   ============================================================ */

.brand-bar {
  display: flex;
  height: 6px;
}
.brand-bar.compact { height: 4px; }
.brand-bar span {
  flex: 1;
}
.brand-bar span:nth-child(1) { background: var(--color-bb1); }
.brand-bar span:nth-child(2) { background: var(--color-bb2); }
.brand-bar span:nth-child(3) { background: var(--color-bb3); }
.brand-bar span:nth-child(4) { background: var(--color-bb4); }
.brand-bar span:nth-child(5) { background: var(--color-bb5); }

/* ============================================================
   HEADER / NAV
   ============================================================ */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  transition: border-bottom 0.2s ease, box-shadow 0.2s ease;
}
#site-header.scrolled {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-logo img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.header-nav a:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-coral);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover { color: var(--color-deep-red); }
.mobile-menu .btn-primary { font-size: 1rem; }

/* Push content below fixed header */
main { padding-top: 72px; }

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
  margin-bottom: var(--space-12);
  max-width: 860px;
}
.section-header h2 { margin-top: var(--space-3); margin-bottom: var(--space-6); }
.section-header .lead { color: var(--color-text); }

/* ============================================================
   HERO  (#hero)
   ============================================================ */

#hero {
  padding-top: calc(var(--space-48) + 72px);
  padding-bottom: var(--space-40);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content { max-width: 640px; }
.hero-content .subhead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-coral);
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
  max-width: 540px;
  line-height: 1.5;
}
.hero-content p {
  margin-bottom: var(--space-8);
  max-width: 580px;
  line-height: 1.65;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.5;
  border-left: 3px solid var(--color-coral);
  padding-left: var(--space-4);
  max-width: 480px;
}

.hero-visual {
  position: relative;
}

.hero-ap-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.challenge-heatmap {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.challenge-heatmap-img {
  width: auto;
  max-width: 700px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.hero-img-caption {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.hero-visual .brand-bar.compact {
  margin-top: var(--space-4);
}

.asset-placeholder {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-family: monospace;
  text-align: center;
  padding: var(--space-4);
}
.asset-placeholder.ratio-4-3 { aspect-ratio: 4 / 3; }
.asset-placeholder.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ============================================================
   CHALLENGE  (#challenge)
   ============================================================ */

.numbered-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.numbered-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-8);
}

.numbered-card .card-number {
  font-size: 64px;
  font-weight: 400;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.numbered-card h4 {
  margin-bottom: var(--space-4);
}

.numbered-card p {
  font-size: 1rem;
  color: var(--color-text);
  max-width: none;
}

.numbered-card .card-citation,
p.card-citation {
  margin-top: var(--space-6);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-text-muted);
  max-width: none;
}
p.card-citation a {
  color: var(--color-steel);
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}
p.card-citation a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.card-benefits {
  margin-top: var(--space-4);
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card-benefits li {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}

.card-evidence {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.card-evidence a {
  font-size: 0.8125rem;
  color: var(--color-steel);
  text-decoration: none;
  font-weight: 600;
}
.card-evidence a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* ============================================================
   SOLUTION  (#solution)
   ============================================================ */

.three-dimension {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-12);
  position: relative;
}

.connector-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

.three-dimension-callouts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dimension-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.dimension-row:first-child { border-top: 1px solid var(--color-border); }

.dimension-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.dimension-marker.filtration { background: #6B8CAE; }
.dimension-marker.barrier    { background: #9A8AA0; }
.dimension-marker.tubular    { background: var(--color-deep-red); }

/* Nephron diagram overlay boxes */
.nephron-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.nephron-box {
  position: absolute;
  border-width: 1.5px;
  border-style: solid;
  border-radius: 2px;
  pointer-events: none;
}
/* Filtration — left glomerulus (top-left) */
.filtration-box {
  border-color: #6B8CAE;
  left: 19%;  top: 13%;
  width: 11%; height: 8%;
}
/* Barrier — right glomerulus (middle-right) */
.barrier-box {
  border-color: #9A8AA0;
  left: 64%; top: 27%;
  width: 11%; height: 8%;
}
/* Tubular — tall descending section (left) */
.tubular-box {
  border-color: #8B1A1A;
  left: 18%; top: 26%;
  width: 35%; height: 72%;
}

.dimension-label strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
}
.dimension-label span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.new-badge,
.dimension-label .new-badge {
  display: inline-block;
  background: var(--color-deep-red);
  color: #FADADD;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* How it works — workflow pipeline */
.how-it-works {
  margin-top: var(--space-16);
}

.how-it-works-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-12);
}

.how-it-works-header h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin-top: var(--space-3);
}

.how-it-works-header p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  max-width: none;
  padding-top: 2.25rem; /* align with h3 baseline */
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  padding-top: var(--space-4);
}

/* Connecting line */
.workflow-steps::before {
  content: '';
  position: absolute;
  top: calc(var(--space-4) + 40px); /* top padding + half circle height */
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.workflow-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  flex-shrink: 0;
}

section.alt-bg .workflow-icon-wrap {
  background: var(--color-bg-alt);
}

.workflow-icon {
  width: 28px;
  height: 28px;
  color: var(--color-navy);
}

.workflow-step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  display: block;
}

.workflow-step-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* Metrics Panel */
.metrics-panel {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-16);
  padding-top: 0;
}

.stat-block {
  flex: 1;
  text-align: center;
}

.stat-block .big-stat {
  display: block;
  margin-bottom: var(--space-2);
}

.stat-block .stat-label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}

.stat-block .stat-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCT  (#product)
   ============================================================ */

.product-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-12);
}

.product-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-12);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
}
.product-block:last-of-type { border-bottom: 1px solid var(--color-border); }

.product-block-number {
  font-size: 80px;
  font-weight: 400;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.02em;
  padding-top: 4px;
}

.product-block-content h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-4);
}
.product-block-content p {
  margin-bottom: var(--space-6);
  max-width: none;
}

.product-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.product-bullets li {
  font-size: 0.9375rem;
  padding-left: var(--space-6);
  position: relative;
  color: var(--color-text);
  max-width: 60ch;
}
.product-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-mauve);
  font-weight: 400;
}

/* Specifications table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: var(--space-12);
}
.specs-table caption {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-coral);
  padding-bottom: var(--space-4);
}
.specs-table th,
.specs-table td {
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.specs-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-navy);
  width: 32%;
}
.specs-table td {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ============================================================
   SCIENCE  (#science)
   ============================================================ */

.science-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.science-stat {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}
.science-stat:first-child { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }

.science-stat .big-stat { display: block; white-space: nowrap; }
.science-stat .stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-top: var(--space-2);
}
.science-stat p {
  margin-top: var(--space-3);
  max-width: none;
  font-size: 1rem;
}

/* Patient comparison table */
.comparison-wrap {
  margin-top: var(--space-12);
}
.comparison-wrap h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}
.comparison-table thead th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-navy);
}
.comparison-table tbody tr:nth-child(even) td { background: var(--color-bg-alt); }
.comparison-table tr.ap-row td { background: #EEF3F8; }
.comparison-table tr.ap-row td:first-child { font-weight: 600; color: var(--color-navy); }
.comparison-table tr.risk-row td { font-weight: 700; }
.comparison-table .low-risk  { color: #2D6A4F; }
.comparison-table .high-risk { color: var(--color-deep-red); }

.evidence-note {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border-left: 3px solid var(--color-steel);
  background: var(--color-bg-alt);
}
.evidence-note p {
  font-size: 1rem;
  color: var(--color-text);
  max-width: none;
}

/* ============================================================
   IMPACT  (#impact)
   ============================================================ */

.impact-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-12);
}

.impact-stat { text-align: center; }
.impact-stat .big-stat {
  font-size: clamp(4rem, 8vw, 6.5rem);
  display: block;
  margin-bottom: var(--space-4);
}
.impact-stat .stat-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.impact-stat p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 auto;
  max-width: 320px;
}

.impact-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
  margin: var(--space-4) 0;
}

.source-note {
  margin-top: var(--space-8);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================
   PRINCIPLES  (#principles)
   ============================================================ */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.principle-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.principle-item h4 {
  margin-top: var(--space-2);
}

.principle-item p {
  max-width: none;
  font-size: 1rem;
  color: var(--color-text);
}

/* ============================================================
   EDUCATION / ACCORDION  (#education)
   ============================================================ */

.accordion {
  margin-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.accordion-num {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-coral);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 36px;
}

.accordion-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease-out;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}
.accordion-panel.open { max-height: 600px; }

.accordion-body {
  padding: 0 0 var(--space-8) calc(36px + var(--space-6));
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  max-width: 72ch;
}

/* ============================================================
   TEAM  (#team)
   ============================================================ */

.supported-by {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.support-badge strong {
  color: var(--color-navy);
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.team-portrait-wrapper {
  width: 100%;
  max-width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: 2px;
  filter: grayscale(100%);
  flex-shrink: 0;
}
.team-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-portrait {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  border-radius: 2px;
  display: block;
}

.team-portrait-placeholder {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
}

.team-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.team-card h4 { margin: 0; }

.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-navy);
  transition: color 0.15s;
  flex-shrink: 0;
}
.team-linkedin:hover { color: var(--color-deep-red); }
.team-linkedin svg { width: 18px; height: 18px; }

.team-role {
  font-style: italic;
  color: var(--color-deep-red);
  font-size: 0.9375rem;
  display: block;
  margin-top: -10px;
}

.team-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.team-bullets li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.team-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-mauve);
}

/* ============================================================
   SUPPORTED BY  (#supported-by)
   ============================================================ */

#supported-by {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.supported-by-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.supported-by-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-coral);
}

.supported-by-logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.supported-by-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

a.supported-by-name {
  transition: color 0.15s;
}
a.supported-by-name:hover { color: var(--color-deep-red); }

.supported-by-divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ============================================================
   CTA FOOTER  (#contact)
   ============================================================ */

#contact {
  text-align: center;
  background: var(--color-bg-alt);
}

#contact h2 { margin: var(--space-4) 0; }
#contact p  { margin: 0 auto var(--space-8); max-width: 54ch; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  background: var(--color-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-logo img {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand-bar {
  margin-bottom: var(--space-6);
  width: 252px;
}
.footer-brand-bar.brand-bar { height: 3px; }

.footer-address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.footer-address p { max-width: none; }

.footer-nav-heading,
.footer-contact-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav a {
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color 0.15s;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--color-navy); }

.footer-contact {
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-contact a {
  color: var(--color-text);
  transition: color 0.15s;
}
.footer-contact a:hover { color: var(--color-navy); }

.footer-legal {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
  section { padding: var(--section-pad-tablet) 0; }
  .container { padding: 0 48px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  #hero { min-height: auto; align-items: flex-start; }

  .science-stat { grid-template-columns: 160px 1fr; }
  .impact-stats { grid-template-columns: 1fr; gap: var(--space-12); }
  .impact-divider { display: none; }
  .product-block { grid-template-columns: 120px 1fr; gap: var(--space-8); }
  .product-block-number { font-size: 60px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-1 { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  section { padding: var(--section-pad-mobile) 0; }
  .container { padding: 0 24px; }

  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }

  .numbered-cards { grid-template-columns: 1fr; }
  .three-dimension { grid-template-columns: 1fr; }
  .three-dimension-visual { order: 2; }
  .three-dimension-callouts { order: 1; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps::before { display: none; }
  .how-it-works-header { grid-template-columns: 1fr; }
  .how-it-works-header p { padding-top: 0; }
  .metrics-panel { flex-direction: column; gap: var(--space-8); }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step { flex-direction: row; text-align: left; align-items: flex-start; gap: var(--space-4); }
  .workflow-step-desc { margin: 0; }
  .product-block { grid-template-columns: 1fr; }
  .product-block-number { font-size: 48px; }
  .science-stat { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-col-1 { grid-column: auto; }
  .impact-stats { grid-template-columns: 1fr; }
  .specs-table th, .specs-table td { padding: var(--space-3) var(--space-4); font-size: 0.875rem; }
  .comparison-table th, .comparison-table td { padding: var(--space-2) var(--space-3); font-size: 0.875rem; }
}

/* ── PIPELINE TABLE ── */
.pipeline-wrap {
  overflow-x: auto;
  margin-top: var(--space-8);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Base hidden state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

/* Slide from left variant */
.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

/* Visible state */
.reveal.visible,
.reveal-left.visible {
  opacity: 1;
  transform: none;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
  /* Make everything immediately visible if motion reduced */
  .reveal, .reveal-left {
    opacity: 1;
    transform: none;
  }
}
