/* SurgicalGuardian site styles. Plain CSS, no build step. Tokens documented in CLAUDE.md. */

:root {
  --navy-900: #0A1420;
  --navy-800: #0C1626;
  --navy-700: #11293c;
  --deep: #0D4553;
  --cyan: #1FC5D7;
  --mint: #5EEAD4;
  --mint-bright: #3CE0CB;
  --cyan-btn: #18B9CF;
  --btn-ink: #052A31;
  --ink: #182b38;
  --body: #43596a;
  /* --faint and --amber were darkened from #8098a8 and #c05f10 to pass 4.5:1 on --paper.
     Their -dark twins are the original values (or brighter) for use on navy. */
  --faint: #5c7384;
  --faint-dark: #8098a8;
  --paper: #f7f9fa;
  --line: #dde5e9;
  --line-dark: #24404f;
  --amber: #a4500c;
  --amber-dark: #e0782a;
  --white: #ffffff;
  --text-dark: #C2D0E0;

  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Plex Mono Fallback', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* Local fallbacks sized to match the web fonts, so the font swap does not shift layout */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  size-adjust: 107%;
  ascent-override: 90.5%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex Mono Fallback';
  src: local('Courier New'), local('CourierNewPSMT'), local('Menlo');
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: clamp(16px, 0.25vw + 15.2px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Focus: cyan on dark, deep on light (light sections set --focus) */
:focus-visible { outline: 2px solid var(--focus, var(--cyan)); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; --focus: var(--deep); }

.wordmark { white-space: nowrap; color: var(--white); line-height: 1; }
.wordmark .wm-a { font-weight: 500; }
.wordmark .wm-b { font-weight: 800; letter-spacing: 0.015em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mint-bright), var(--cyan-btn));
  color: var(--btn-ink);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-dark);
}
.notfound h1 { color: var(--white); font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.notfound .eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.notfound .btn { margin-top: 12px; }

.btn-lg { min-height: 50px; padding: 14px 27px; border-radius: 12px; }
.btn-ghost {
  background: transparent;
  color: #EAF1F8;
  border: 1.5px solid rgba(190, 208, 226, 0.42);
}
.btn-ghost:hover { border-color: rgba(190, 208, 226, 0.8); }

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 20, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand-badge { width: 36px; height: 36px; }
.brand .wordmark { font-size: 17px; }

.nav-toggle { display: none; }
.nav-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: #B7C6D8;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }

@media (max-width: 759px) {
  /* Collapsed menu by default; nojs.css (loaded in <noscript>) restores a wrapped row of links. */
  .nav-links { gap: 0 18px; }
  .primary-nav { position: static; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 16px 20px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { width: 100%; justify-content: flex-start; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  color: #EAF1F8;
  background:
    radial-gradient(1100px 560px at 80% -6%, rgba(45, 212, 191, 0.12), transparent 62%),
    radial-gradient(900px 520px at 6% 108%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, #0A101E 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  padding-top: clamp(28px, 7vh, 84px);
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 15px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.10);
  color: #8FEEDD;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #2DD4BF;
  animation: blip 1.8s ease-out infinite;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
  70% { box-shadow: 0 0 0 11px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.h1row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-bottom: 24px;
}
.hero-badge {
  width: 205px;
  height: 205px;
  flex: none;
  filter: drop-shadow(0 10px 30px rgba(31, 197, 215, 0.20));
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-align: left;
}
.grad { color: var(--mint); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(120deg, #7DF0E0, #2DD4BF 42%, #4CC6F5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero-sub {
  max-width: 600px;
  margin-bottom: 36px;
  color: var(--text-dark);
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 759px) {
  .h1row { flex-direction: column; gap: 18px; }
  .hero h1 { text-align: center; }
  .hero-badge { width: 150px; height: 150px; }
}

/* Hero monitor (heartbeat, component A) */
.monitor { margin-top: auto; padding: 44px 0 clamp(30px, 6vh, 64px); }
.ecg-wrap {
  max-width: 1920px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ecg { width: 100%; height: 118px; overflow: hidden; }
.ecg use { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(94, 234, 212, 0.22); stroke-width: 2; }
.ecg-trace {
  stroke: url(#ecg-grad);
  stroke-width: 3.2;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.85));
  stroke-dasharray: 90 1000;
  stroke-dashoffset: 1090;
  animation: ecg-sweep 3.4s linear infinite;
}
@keyframes ecg-sweep { to { stroke-dashoffset: 0; } }

/* Stat band */
.stats { background: var(--navy-800); color: var(--text-dark); padding: 56px 0 64px; border-top: 1px solid var(--line-dark); }
.stats-lead {
  max-width: 34ch;
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.stats-attr {
  margin-top: 10px;
  color: var(--faint-dark);
  font-family: var(--mono);
  font-size: 12px;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 36px;
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.stat-num {
  color: var(--white);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-plus { color: var(--mint); }
.stat-label { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.stat-src { margin-top: 8px; color: var(--faint-dark); font-family: var(--mono); font-size: 11.5px; }
@media (min-width: 600px) {
  .stat-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .stat { padding: 26px 20px 8px 0; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .stat:last-child { border-right: 0; }
}

/* Section scaffolding */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-light { background: var(--paper); color: var(--body); --focus: var(--deep); }
.section-dark { background: var(--navy-900); color: var(--text-dark); }
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-light .eyebrow { color: var(--deep); }
.section-dark .eyebrow { color: var(--mint); }
.section h2 {
  max-width: 24ch;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
}
.section-light h2 { color: var(--ink); }
.section-dark h2 { color: var(--white); }

/* Pulse rule (heartbeat, component B): static by default, draws once when JS reveals it */
.pulse-rule { width: 100%; max-width: 360px; height: auto; margin: 10px 0 20px; }
.pulse-rule use { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke: var(--deep); }
.section-dark .pulse-rule use { stroke: var(--cyan); }
.js .pulse-rule use { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.js .pulse-rule.is-drawn use { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(0.3, 0.1, 0.3, 1); }

/* Shared prose */
.prose { margin-top: 22px; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.section-light .prose strong { color: var(--ink); font-weight: 600; }
.section-dark .prose strong { color: var(--white); font-weight: 600; }

/* The problem */
.problem { border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .problem-grid { grid-template-columns: 9fr 15fr; gap: 56px; align-items: start; }
  .timeline { margin-top: 64px; }
}
.timeline-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.5;
}
.timeline-table caption {
  caption-side: top;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  background: var(--navy-900);
  color: var(--text-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.timeline-table th,
.timeline-table td { padding: 14px 12px; vertical-align: top; text-align: left; }
.timeline-table th {
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.timeline-table td { color: var(--body); }
.timeline-table thead th { width: 17.5%; }
.timeline-table thead th.is-gap { width: 30%; }
.timeline-table th + th,
.timeline-table td + td { border-left: 1px solid var(--line); }
.timeline-table .is-gap { background: #fdf6f0; color: var(--amber); }
.timeline-table td.is-gap { font-weight: 500; box-shadow: inset 0 -3px 0 var(--amber); }
.gap-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cell-stage { display: none; }
@media (max-width: 639px) {
  /* Restack into a vertical list. Explicit roles keep the table semantics in every browser. */
  .timeline-table, .timeline-table tbody, .timeline-table tr, .timeline-table td { display: block; width: 100%; }
  .timeline-table caption { display: block; }
  .timeline-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .timeline-table td { padding: 14px 18px; }
  .timeline-table td + td { border-left: 0; border-top: 1px solid var(--line); }
  .timeline-table td.is-gap { box-shadow: inset 4px 0 0 var(--amber); }
  .cell-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 4px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
  }
  .is-gap .cell-stage { color: var(--amber); }
  .cell-stage .gap-tag { margin-top: 0; }
}

/* The product */
.product-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .chart { margin-top: 64px; }
}
.chart {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--navy-800);
}
.chart-cap {
  margin-bottom: 16px;
  color: var(--faint-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}
.chart-ylabel { color: var(--faint-dark); font-family: var(--mono); font-size: 12px; margin-bottom: 4px; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-axis { stroke: var(--line-dark); stroke-width: 1.5; }
.chart-static { stroke: var(--faint-dark); stroke-width: 2.5; stroke-dasharray: 8 6; }
.chart-live { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.chart-flag { fill: var(--amber-dark); }
.chart-flag-stem { stroke: var(--amber-dark); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart-xlabels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--faint-dark);
  font-family: var(--mono);
  font-size: 12px;
}
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-family: var(--mono); font-size: 12px; }
.chart-legend li { display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.swatch { width: 20px; height: 0; flex: none; border-top: 3px solid; }
.swatch-static { border-top: 3px dashed var(--faint-dark); }
.swatch-live { border-color: var(--mint); }
.swatch-flag { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--amber-dark); }

.phase-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 64px);
}
@media (min-width: 900px) { .phase-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.phase-card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--navy-800);
}
.phase-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.phase-card h3 { margin-top: 14px; color: var(--white); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.phase-card p:not(.phase-tag) { margin-top: 10px; font-size: 15px; }
.phase-card strong { color: var(--white); font-weight: 600; }

.boundary {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 26px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-dark);
  border-left: 5px solid var(--amber-dark);
  border-radius: 10px;
  background: var(--navy-700);
}
.boundary-label {
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.boundary p { color: #E3EBF3; font-size: 16px; }

/* GUARDIAN acronym (client-supplied 2026-10-26) */
.acronym { display: grid; gap: 6px; max-width: 62ch; margin-top: 16px; }
.acronym-word { color: var(--mint); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; }
.acronym-def { color: var(--text-dark); font-size: 15px; line-height: 1.5; }
.acronym-def b { color: var(--white); font-weight: 700; }

/* Innovation and Table 1 (client-supplied 2026-10-26) */
.innovation { max-width: 880px; margin-top: clamp(48px, 6vw, 64px); padding-top: clamp(32px, 4vw, 40px); border-top: 1px solid var(--line-dark); }
.innovation-label { color: var(--mint); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.innovation-intro { margin-top: 14px; max-width: 70ch; color: #E3EBF3; font-size: 16.5px; line-height: 1.6; }
.compare-scroll { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 10px; background: var(--navy-800); }
.compare-scroll:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.compare-table caption { padding: 14px 18px; border-bottom: 1px solid var(--line-dark); color: var(--text-dark); font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.compare-table thead th { width: 15%; color: var(--faint-dark); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; border-bottom: 1px solid var(--line-dark); }
.compare-table thead th:first-child { width: 40%; }
.compare-table tbody th { color: #E3EBF3; font-weight: 500; }
.compare-table tbody tr + tr > * { border-top: 1px solid var(--line-dark); }
.compare-table td { color: var(--text-dark); }
.compare-table .is-guardian { background: var(--navy-700); }
.compare-table thead .is-guardian { color: var(--mint); }
.compare-table td.yes { color: var(--white); font-weight: 600; }
.compare-table td.yes::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--mint); vertical-align: 1px; }
.compare-table td.no { color: var(--faint-dark); }
@media (max-width: 639px) {
  /* Restack: one block per capability, the four tools in a 2x2 grid with their names. */
  .compare-table { min-width: 0; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table caption { display: block; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .compare-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0 0 1px; background: var(--line-dark); }
  .compare-table tbody tr + tr > * { border-top: 0; }
  .compare-table tbody tr + tr { margin-top: 0; }
  .compare-table tbody th { grid-column: 1 / -1; padding: 14px 16px 10px; background: var(--navy-800); }
  .compare-table td { padding: 8px 16px 10px; background: var(--navy-800); font-size: 14px; }
  .compare-table td.is-guardian { background: var(--navy-700); }
  .compare-table td::after { content: attr(data-label); display: block; order: -1; }
  .compare-table td { display: flex; flex-direction: column; align-items: flex-start; }
  .compare-table td::after { margin-bottom: 2px; color: var(--faint-dark); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; }
  .compare-table td.is-guardian::after { color: var(--mint); }
  .compare-table td.yes::before { display: none; }
}
.compare-note { margin-top: 10px; color: var(--faint-dark); font-family: var(--mono); font-size: 12px; }
.innovation-lead { margin-top: 32px; color: #E3EBF3; font-size: 16px; }
.innovation-list { display: grid; gap: 12px; margin-top: 16px; max-width: 76ch; }
.innovation-list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.6; }
.innovation-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.innovation-list strong { color: var(--white); font-weight: 600; }

.lede { margin-top: 22px; max-width: 64ch; font-size: clamp(17px, 0.4vw + 15.5px, 19px); }

/* Recognition */
.recognition { border-top: 1px solid var(--line-dark); }
/* .quote is unused until the Patterson pull quote returns (see HANDOFF.md) */
.quote { max-width: 66ch; margin-top: 40px; padding: 4px 0 4px 26px; border-left: 3px solid var(--cyan); }
.quote p { color: #E3EBF3; font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; line-height: 1.5; }
.quote figcaption { margin-top: 14px; color: var(--faint-dark); font-family: var(--mono); font-size: 12.5px; }
.program-name {
  margin-top: 48px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.recog-grid { display: grid; margin-top: 16px; border-top: 1px solid var(--line-dark); }
.recog-cell { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.recog-num { color: var(--white); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.recog-desc { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
@media (min-width: 600px) { .recog-grid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 1000px) {
  .recog-grid { grid-template-columns: repeat(4, 1fr); }
  .recog-cell { padding: 24px 20px 8px 0; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .recog-cell:last-child { border-right: 0; }
}

/* Team */
.team { border-top: 1px solid var(--line); }
.team-grid { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
@media (min-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .member-lead { grid-column: 1 / -1; }
}
.member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
@media (max-width: 479px) { .member { grid-template-columns: 1fr; } }
.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: var(--deep);
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.member-photo {
  width: 120px;
  height: auto;
  background: var(--line);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 20%;
}
.member h3 { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.member .creds { color: var(--faint); font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0; }
.member .role { margin-top: 4px; color: var(--deep); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.member-body p:not(.role) { margin-top: 12px; font-size: 15px; line-height: 1.62; }
.member-lead .member-body p:not(.role) { max-width: 80ch; }

/* Where we are */
.roadmap { max-width: 760px; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.roadmap-item {
  display: grid;
  gap: 4px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 640px) { .roadmap-item { grid-template-columns: 170px 1fr; align-items: baseline; } }
.roadmap-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--mint); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.roadmap-tag {
  padding: 1px 7px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roadmap-what { font-size: 16px; }
.roadmap-what strong { color: var(--white); font-weight: 600; }

/* Contact band */
.contact-band { padding: clamp(56px, 7vw, 80px) 0; background: #e9f3f4; border-top: 1px solid var(--line); color: var(--body); --focus: var(--deep); }
.contact-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .contact-inner { grid-template-columns: 1fr auto; gap: 40px; } }
.contact-band h2 { color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.contact-band .lede { margin-top: 12px; }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--deep); }
.contact-btn { justify-self: start; font-family: var(--mono); font-weight: 500; white-space: normal; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 56px 0 40px; background: var(--navy-900); color: var(--faint-dark); border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-lockup { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-lockup .wordmark { font-size: 22px; }
.footer-badge { width: 96px; height: 96px; }
.tagline { color: var(--mint); font-size: 17px; font-style: italic; font-weight: 500; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dark); text-decoration: none; }
.footer-meta li { display: inline-flex; align-items: center; min-height: 44px; }
.footer-meta a:hover { color: var(--white); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kicker-dot { animation: none; }
  .ecg-trace { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .pulse-rule use,
  .js .pulse-rule.is-drawn use { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .btn, .btn-primary:hover { transition: none; transform: none; }
}

/* Stronger borders for users who ask for more contrast */
@media (prefers-contrast: more) {
  :root { --line: #8a9ba6; --line-dark: #6f8a99; }
  .btn-ghost { border-color: rgba(190, 208, 226, 0.9); }
}

/* Print: white page, dark text, no navigation or decorative motion */
@media print {
  @page { margin: 16mm 14mm; }
  *, *::before, *::after { background: transparent !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; }
  body { font-size: 10pt; line-height: 1.45; }
  .skip-link, .site-header, .monitor, .pulse-rule, .sprite, .hero-cta, .kicker-dot, .nav-toggle, .monogram, .member-photo { display: none !important; }
  .section h2, .contact-band h2 { font-size: 17pt; max-width: none; }
  .hero h1 { font-size: 26pt; }
  .lede, .prose, .hero-sub { font-size: 10pt; max-width: none; margin-top: 8pt; }
  .eyebrow { margin-bottom: 2pt; }
  .contact-btn { min-height: 0; padding: 0; font-size: 11pt; }
  .hero { min-height: 0; display: block; }
  .hero-content { padding-top: 0; }
  .hero-badge { width: 90px; height: 90px; }
  .grad { -webkit-background-clip: border-box; background-clip: border-box; }
  .section, .stats, .contact-band { padding: 18pt 0; border: 0; }
  .kicker, .gap-tag, .roadmap-tag { border-color: #555 !important; }
  .stat-grid, .recog-grid, .roadmap, .roadmap-item, .stat, .recog-cell { border-color: #999 !important; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); column-gap: 12pt; }
  .stat { padding: 8pt 8pt 4pt 0; border-bottom: 0; border-right: 1px solid #999; }
  .timeline-table, .timeline-table th, .timeline-table td, .chart, .phase-card, .member, .boundary { border-color: #999 !important; }
  .timeline-table .is-gap, .timeline-table .is-gap .cell-stage, .boundary-label { color: #7a3b08 !important; }
  .boundary { border-left: 4pt solid #7a3b08 !important; }
  .chart-axis { stroke: #999; }
  .chart-static { stroke: #555; }
  .chart-live { stroke: #0D4553; }
  .chart-flag { fill: #7a3b08; }
  .chart-flag-stem { stroke: #7a3b08; }
  .swatch-static { border-top-color: #555 !important; }
  .swatch-live { border-color: #0D4553 !important; }
  .swatch-flag { width: 0; height: 0; border: 5px solid #7a3b08 !important; }
  html, body { height: auto; }
  .section, .stats, .contact-band { padding: 10pt 0; }
  .section h2, .contact-band h2 { font-size: 15pt; }
  .hero h1 { font-size: 22pt; }
  .hero-badge { width: 70px; height: 70px; }
  .h1row { margin-bottom: 8pt; gap: 16pt; }
  .kicker { margin-bottom: 10pt; }
  .stats-lead { font-size: 12pt; }
  .stat-grid, .recog-grid { margin-top: 8pt; }
  .stat-num, .recog-num { font-size: 16pt; }
  .stat-label, .recog-desc { font-size: 9pt; }
  .recog-grid { grid-template-columns: repeat(4, 1fr); column-gap: 10pt; }
  .recog-cell { padding: 6pt 6pt 0 0; border-bottom: 0; border-right: 1px solid #999; }
  .recog-cell:last-child { border-right: 0; }
  .quote { margin-top: 10pt; }
  .quote p { font-size: 12pt; }
  .program-name { margin-top: 12pt; }
  .phase-grid, .boundary { margin-top: 12pt; }
  .boundary { padding: 10pt 14pt; }
  .boundary p { font-size: 10pt; }
  .innovation { margin-top: 14pt; padding-top: 10pt; border-color: #999 !important; }
  .compare-scroll { overflow: visible; border-color: #999 !important; background: none !important; }
  .compare-table { min-width: 0; font-size: 9pt; }
  .compare-table .is-guardian { background: none !important; }
  .compare-table th, .compare-table td, .compare-table caption { border-color: #999 !important; color: #000 !important; }
  .acronym-word, .innovation-label, .compare-note { color: #333 !important; }
  .innovation-intro, .innovation-list li, .innovation-lead, .acronym-def { font-size: 10pt; color: #000 !important; }
  .roadmap { margin-top: 8pt; }
  .roadmap-item { grid-template-columns: 110pt 1fr; padding: 5pt 0; }
  .roadmap-what { font-size: 10pt; }
  .timeline-table { font-size: 9.5pt; }
  .timeline-table th, .timeline-table td { padding: 6pt; }
  .site-footer { padding-top: 8pt; }
  .footer-inner { gap: 6pt; }
  .footer-lockup { gap: 4pt; }
  .footer-meta li, .footer-meta a { min-height: 0; }
  .monogram { border: 1px solid #555; }
  .problem-grid { grid-template-columns: 1fr; gap: 8pt; }
  .timeline-table { overflow: visible; }
  .timeline-table caption { padding: 0 0 4pt; }
  .product-grid { grid-template-columns: 3fr 2fr; gap: 16pt; }
  .chart { padding: 8pt; }
  .chart-legend, .chart-xlabels, .chart-cap { font-size: 7.5pt; }
  .timeline, .chart { margin-top: 0; }
  .phase-grid { grid-template-columns: repeat(3, 1fr); gap: 8pt; }
  .team-grid { grid-template-columns: 1fr; gap: 8pt; margin-top: 12pt; }
  .member { display: block; padding: 0 0 8pt; border: 0 !important; border-bottom: 1px solid #999 !important; border-radius: 0; }
  .member-body p:not(.role) { margin-top: 4pt; font-size: 9.5pt; max-width: none; }
  .phase-card, .boundary, .chart, .timeline-table tr, .roadmap-item, .quote { break-inside: avoid; }
  .eyebrow { break-after: avoid; }
  .stat:last-child { border-right: 0; }
  .phase-card { padding: 10pt; }
  .phase-card p:not(.phase-tag) { font-size: 9pt; }
  .stats { padding-top: 0; }
  h2, h3 { break-after: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .footer-badge { width: 48px; height: 48px; }
  .site-footer { padding: 12pt 0 0; }
}
