:root {
  --navy: #16324f;
  --blue: #2e74b5;
  --pale: #eef5fb;
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #d8e2eb;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
a { color: #24629b; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid #ecb748;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 20px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.hero { padding: 72px 0 56px; color: var(--white); background: var(--navy); }
.eyebrow, .section-label, .card-number {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.eyebrow { margin: 0 0 12px; color: #b9d8f2; }
h1 { margin: 8px 0 22px; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { margin: 0 0 20px; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.12rem; line-height: 1.4; }
p { margin: 0 0 16px; }
.intro { max-width: 790px; font-size: 1.12rem; color: #e6eff7; }
.project-meta { margin: 26px 0 6px; font-weight: 600; }
.data-note { color: #c4d9eb; font-size: 0.95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 11px 17px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { opacity: 0.9; text-decoration: none; }
.button.secondary { color: var(--white); background: transparent; border-color: #8bb9df; }
.button.primary { color: var(--white); background: var(--blue); }
.button:disabled { cursor: wait; opacity: 0.75; }
[hidden] { display: none !important; }
main section { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-label { margin: 0 0 12px; color: #386084; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-heading > p { flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.about-grid, .method-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 40px; align-items: start; }
.about-grid > *, .method-grid > * { min-width: 0; }
.question-card, .definitions { padding: 26px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.question-card { margin-top: 32px; }
.question-card ul { margin: 0; padding-left: 20px; }
.question-card li { margin-bottom: 12px; }
.question-card li:last-child { margin-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 16px; }
.metric { padding: 22px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.metric-value { display: block; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metric-label { display: block; margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article { min-width: 0; padding: 24px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.cards article p:last-child { margin-bottom: 0; }
.card-number { margin: 0 0 15px; color: #386084; font-size: 0.7rem; }
.findings h3 { color: #24629b; }
.section-link { margin: 24px 0 0; }
.link-separator { padding: 0 12px; color: #718191; }
.dashboard-cards { margin: 28px 0 32px; }
.dashboard-cards article { padding: 0; overflow: hidden; background: var(--white); }
.preview-link { display: block; border-bottom: 1px solid var(--line); background: var(--white); }
.preview-link img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: contain; }
.dashboard-card-text { padding: 22px; }
.dashboard-card-text a { font-size: 0.9rem; }
.interactive-heading { margin: 32px 0 20px; }
.dashboard-frame { overflow-x: auto; background: var(--pale); border: 1px solid var(--line); border-radius: 12px; }
.dashboard-placeholder { padding: 36px 24px; text-align: center; }
.placeholder-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.dashboard-placeholder p { max-width: 580px; margin: 0 auto 18px; }
tableau-viz { display: block; width: 100%; min-width: 1220px; }
#dashboard-status:not(:empty) { margin: 12px 0 0; }
.dashboard-link { margin-top: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { padding: 16px 20px; background: var(--pale); text-align: left; font-weight: 600; }
th, td { padding: 14px 20px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead th { color: var(--navy); background: #f8fbfd; }
tbody th { font-weight: 500; }
.build-steps { margin: 0; padding-left: 24px; }
.build-steps li { padding-left: 4px; margin-bottom: 14px; }
.build-steps li::marker { font-weight: 700; color: var(--blue); }
.definitions { margin-top: 32px; }
dl { margin: 0; }
dt { margin-top: 16px; color: var(--navy); font-weight: 700; }
dt:first-child { margin-top: 0; }
dd { margin: 3px 0 0; font-size: 0.94rem; }
footer { padding: 32px 0; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .about-grid, .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .question-card, .definitions { margin-top: 0; }
  .preview-link img { max-height: 480px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 40px; }
  h1 { font-size: 2.3rem; }
  .intro { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  main section { padding: 36px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: -8px; }
  .metrics { gap: 12px; }
  .metric { padding: 18px 14px; }
  .metric-value { font-size: 1.6rem; }
  .metric-label { font-size: 0.88rem; }
  .question-card, .definitions, .cards article { padding: 22px; }
  .dashboard-cards article { padding: 0; }
  .dashboard-placeholder { padding: 28px 18px; }
  .link-separator { display: block; height: 10px; font-size: 0; padding: 0; }
  th, td { padding: 12px 16px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
