:root {
  color-scheme: light;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #17201f;
  --muted: #5d6866;
  --line: #d7dedb;
  --blue: #245c92;
  --blue-soft: #e7f0f7;
  --green: #236d57;
  --green-soft: #e3f2ec;
  --gold: #9f741f;
  --gold-soft: #fbf1dd;
  --yellow: #fff6cf;
  --yellow-line: #ecd070;
  --shadow: 0 16px 38px rgba(23, 32, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fbfcfc 0%, var(--paper) 58%, #eef3f2 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.46;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 222, 219, 0.94);
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(36, 92, 146, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 32, 31, 0.06);
}

.brand-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 13px;
  color: var(--ink);
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(23, 32, 31, 0.05);
}

.nav a:hover,
.nav a.is-active {
  border-color: rgba(36, 92, 146, 0.36);
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  padding: 44px 0 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 760px;
  margin-top: 16px;
  font-size: 18px;
}

.award-card,
.match-card,
.research-card,
.source-card,
.control-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.review-blurb {
  width: fit-content;
  max-width: 780px;
  border: 1px solid var(--yellow-line);
  border-radius: 8px;
  background: var(--yellow);
  padding: 10px 12px;
  color: #5b4914;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(159, 116, 31, 0.08);
}

.review-blurb strong {
  color: #3f330f;
  font-weight: 900;
}

.section {
  padding: 44px 0;
}

.compact-section {
  padding-top: 24px;
  padding-bottom: 28px;
}

.flow-section {
  padding: 28px 0 34px;
}

.section-head {
  max-width: 840px;
  margin-bottom: 20px;
}

.section-head p:not(.eyebrow) {
  margin-top: 10px;
  font-size: 16px;
}

.section-head .review-blurb {
  margin-top: 14px;
}

.flow-head {
  max-width: 820px;
  margin-bottom: 16px;
}

.flow-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}

.flow-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.flow-step {
  position: relative;
  min-height: 150px;
  border: 1px solid rgba(36, 92, 146, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
  padding: 18px;
  box-shadow: var(--shadow);
}

.flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.flow-step h3 {
  font-size: 19px;
}

.flow-step p {
  margin-top: 8px;
  font-size: 14px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.arrow-vertical {
  display: none;
}

.flow-note {
  margin-top: 14px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two,
.source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.award-card,
.match-card,
.research-card,
.source-card,
.control-card {
  padding: 18px;
}

.award-card p,
.match-card p,
.research-card p,
.source-card p,
.control-card p {
  margin-top: 8px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid rgba(36, 92, 146, 0.2);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
}

.pill.green {
  border-color: rgba(35, 109, 87, 0.22);
  background: var(--green-soft);
  color: var(--green);
}

.pill.gold {
  border-color: rgba(159, 116, 31, 0.24);
  background: var(--gold-soft);
  color: var(--gold);
}

.match-list {
  display: grid;
  gap: 10px;
}

.match-card {
  display: block;
}

.match-card h3 {
  margin-bottom: 6px;
}

.match-card h3 a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(36, 92, 146, 0.28);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.match-card h3 a:hover {
  color: #17456f;
  text-decoration-color: currentColor;
}

.compact-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.compact-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.compact-list li + li {
  margin-top: 6px;
}

.source-grid {
  display: grid;
  gap: 12px;
}

.source-card a,
.research-card a,
.award-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.source-card small,
.research-card small,
.award-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero,
  .card-grid.three,
  .card-grid.two,
  .source-grid,
  .flow-diagram {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    min-height: 22px;
  }

  .arrow-horizontal {
    display: none;
  }

  .arrow-vertical {
    display: inline;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    min-height: 36px;
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }
}
