:root {
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #d7e0e8;
  --paper: #ffffff;
  --wash: #f1f5f9;
  --blue: #1f5e9e;
  --deep: #17212b;
  --violet: #174a7c;
  --orange: #547291;
}

.hero { background: #ffffff; }
.hero-grid { background-image: linear-gradient(rgba(31, 94, 158, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 94, 158, .045) 1px, transparent 1px); }
.pulse { background: #1f5e9e; box-shadow: 0 0 0 4px rgba(31, 94, 158, .12); }
.node-core { background: #eaf2fa; border-color: #d7e0e8; box-shadow: 0 0 0 14px rgba(31, 94, 158, .045), 0 18px 40px rgba(23, 74, 124, .1); }
.spark, .spark-a, .spark-c { background: #1f5e9e; box-shadow: 0 0 0 5px rgba(31, 94, 158, .12); }
.spark-b { background: #547291; }
.button-primary { background: #1f5e9e; }
.benchmark-section, .results-section { background: #f1f5f9; }
.stage-blue { --stage: #1f5e9e; --stage-glow: #eaf2fa; }
.stage-violet { --stage: #174a7c; --stage-glow: #eaf2fa; }
.stage-orange { --stage: #547291; --stage-glow: #eaf2fa; }
.framework-section { background: #f1f5f9; color: #17212b; }
.framework-section .section-kicker { color: #1f5e9e; }
.framework-section .section-heading h2 { color: #17212b; }
.framework-section .section-heading > p { color: #5d6b78; }
.framework-section .framework-heading {
  display: block;
  margin: 0 0 .8rem;
}
.framework-section .framework-heading .eyebrow {
  display: block;
  margin: 0 0 .4rem;
  color: #1f5e9e;
  font: 700 clamp(1.3rem, 1.35vw, 1.5rem)/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.framework-section .framework-heading h2 {
  margin: .2rem 0 0;
  color: #17212b;
  font: 700 clamp(1.6rem, 2.5vw, 2.5rem)/1.1 var(--display);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.framework-section .framework-heading > p:not(.eyebrow) {
  max-width: none;
  margin: .9rem 0 0;
  color: #5d6b78;
}
.framework-figure {
  margin-top: .8rem;
  border-color: #d7e0e8;
  background: #ffffff;
}
.framework-figure img {
  max-height: none;
  object-fit: initial;
}
.framework-figure figcaption {
  margin-top: .45rem;
}
.framework-modules { border-color: #d7e0e8; background: #ffffff; }
.framework-modules article { border-color: #d7e0e8; }
.framework-modules span { color: #1f5e9e; }
.framework-modules h3 { color: #17212b; }
.framework-modules p { color: #5d6b78; }
.highlight, .result-chip { color: #1f5e9e; }
.gain { color: #174a7c; }
.stack-new { background: #1f5e9e; }
.stack-external { background: #8da4bb; }
.new-dot { background: #1f5e9e; }
.external-dot { background: #8da4bb; }
.closing-cta { background: #eaf2fa; color: #17212b; }
.closing-cta .section-kicker { color: #1f5e9e; }
.closing-cta h2 { color: #17212b; }
.closing-cta p { color: #5d6b78; }
.cta-orbit { border-color: rgba(31, 94, 158, .12); box-shadow: 0 0 0 70px rgba(31, 94, 158, .025), 0 0 0 140px rgba(31, 94, 158, .018); }
.button-light { background: #1f5e9e; color: #ffffff; }

/* Centered paper masthead, matching the CellSecInspector project page. */
.hero {
  min-height: 0;
  padding: 6.2rem 0 5.3rem;
  border-bottom: 1px solid #d7e0e8;
  text-align: center;
}
.hero-inner {
  width: min(calc(100% - 3rem), 1500px);
  min-height: 0;
  align-items: center;
  margin: auto;
  padding: 0;
}
.hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  letter-spacing: -.055em;
}
.hero .subtitle {
  max-width: none;
  white-space: nowrap;
  margin: .85rem auto 0;
  color: #3e4e5e;
  font: clamp(1.15rem, 2vw, 1.62rem)/1.42 var(--display);
}
.hero .venue {
  margin: .95rem 0 0;
  color: #1f5e9e;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-actions {
  justify-content: center;
  margin: 1.8rem 0 0;
}
.button-disabled { cursor: default; }
.button-disabled:hover { transform: none; box-shadow: none; }
.button-primary.button-disabled { border-color: #174a7c; background: #174a7c; }
.button-disabled small {
  margin-left: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,.16);
  font-size: .64rem;
}
.hero-grid, .hero-art, .hero-copy, .authors, .hero-bottom { display: none; }

/* Match the reference site's compact Overview heading hierarchy. */
.overview-heading {
  display: block;
  max-width: none;
  margin: 0 0 1.8rem;
}
.overview-heading .eyebrow {
  margin: 0 0 .4rem;
  color: #1f5e9e;
  font: 700 clamp(1.3rem, 1.35vw, 1.5rem)/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.overview-heading h2 {
  margin: .2rem 0 0;
  color: #17212b;
  font: 700 clamp(1.6rem, 2.5vw, 2.5rem)/1.1 var(--display);
  letter-spacing: -.04em;
}
.overview-full-copy {
  max-width: none;
  width: 100%;
  margin: 2.1rem 0 0;
  color: #5d6b78;
  font-size: 1rem;
  line-height: 1.65;
}
.overview-section .stat-grid { margin-top: 2.1rem; }

@media (max-width: 700px) {
  .topbar nav { background: #ffffff; }
  .hero { padding: 4.15rem 0; }
  .hero-inner { width: min(calc(100% - 2rem), 1500px); }
  .hero .subtitle { max-width: 100%; white-space: normal; }
  .framework-section .framework-heading h2 { white-space: normal; }
  .hero h1 { font-size: 2.7rem; }
  .hero-actions { gap: 9px; }
}
