:root {
  --ink: #211f1c;
  --panel: #f5f3ed;
  --paper: #dddbd5;
  --muted: #514f4a;
  --line: #c3c0b9;
  --gold: #d8b63f;
  --yellow: #ffff1a;
  --blue: #234b70;
  --coral: #f16133;
  --mint: #6f9e8a;
  --black: #000000;
}

.case-title {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--yellow);
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  white-space: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

main .content-section a {
  color: var(--blue);
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.wrap {
  width: 95%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label {
  display: inline-block;
  position: relative;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 3px;
  background: var(--coral);
  content: "";
}

.accent-title {
  width: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--yellow);
  color: var(--ink);
  font-size: 2rem;
}

main .content-section li {
  color: var(--black);
  font-weight: 700;
}

.tools-label {
  color: var(--coral);
}

.tools-label::after {
  background: var(--coral);
}

#work .section-label,
#work .section-label a {
  color: var(--coral);
}

.muted {
  color: var(--muted);
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--coral);
}

nav .wrap {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

nav .eyebrow {
  margin: 0;
  color: var(--yellow);
}

.brand {
  color: var(--yellow);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.25rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--yellow);
}

.nav-links a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.hero {
  padding-block: clamp(64px, 10vw, 112px) 80px;
  background: var(--coral);
}

.hero#top {
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
}

.hero-copy {
  max-width: none;
  color: var(--black);
  font-size: 1.05rem;
}

.hero-copy strong {
  color: var(--black);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--coral);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.impact {
  padding: 24px;
  border-top: 3px solid var(--coral);
  background: var(--paper);
}

.impact h2 {
  width: fit-content;
  margin-bottom: 20px;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--yellow);
  color: var(--coral);
  font-size: 1.25rem;
}

.impact-item {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.impact-item .mono {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
}

.impact-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

section.content-section {
  padding-block: 76px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: block;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: none;
  margin-top: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.project-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.project-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-type {
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
}

#work .project-links a {
  color: var(--blue);
}

.case-list {
  display: grid;
  gap: 0;
}

.case-list-results,
.figure-grid-spaced {
  margin-top: 32px;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.figure-grid-zscore {
  max-width: 900px;
  margin-inline: auto;
}

.figure-grid.even {
  align-items: stretch;
}

.figure {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.figure-chart-wide {
  max-width: 900px;
  margin: 0 auto 20px;
}

.figure-chart-wide img {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.chart-summary {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 12px;
}

.chart-stat {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.chart-stat strong {
  color: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.5rem;
}

.chart-note {
  margin: 0;
  color: var(--muted);
}

.chart-track,
.range-axis,
.distribution-axis,
.trimmed-axis {
  position: relative;
  display: flex;
  min-height: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.chart-track span {
  min-width: 3px;
  background: var(--coral);
}

.range-axis {
  overflow: visible;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
}

.range-band {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 66.666%;
  height: 14px;
  background: var(--coral);
}

.range-threshold {
  position: absolute;
  bottom: -7px;
  left: 66.666%;
  height: 24px;
  border-left: 2px solid var(--blue);
}

.distribution-axis span,
.trimmed-axis span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  color: var(--ink);
  font-size: 0.76rem;
  text-align: center;
}

.usage-range-major,
.trimmed-range {
  flex: 3;
  background: rgb(241 97 51 / 22%);
}

.usage-range-minor,
.trimmed-rest {
  flex: 2;
  border-left: 1px solid var(--line);
}

.usage-range-tail {
  flex: 1;
  border-left: 1px dashed var(--coral);
  background: rgb(216 182 63 / 25%);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 32px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.case-study h3 {
  margin: 8px 0;
  font-size: 1.35rem;
}

.case-study p {
  max-width: 70ch;
  margin-bottom: 12px;
  color: var(--muted);
}

.case-study .back-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.about-copy {
  max-width: 68ch;
  color: var(--muted);
}

.about-copy strong {
  color: var(--ink);
  font-weight: 500;
}

.education {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.education h2 {
  margin-bottom: 16px;
}

.education-list {
  max-width: 68ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-list li {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.education-list strong,
.education-list span {
  display: block;
}

.education-list strong {
  color: var(--ink);
  font-weight: 600;
}

.education-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.capabilities {
  grid-column: 2;
}

.capabilities .capability-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
}

.capabilities h2,
.skills > h2 {
  margin-bottom: 20px;
}

.skills {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.skill-group {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.skill-group h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding-block: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.capability-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

footer {
  padding-block: 44px;
  background: var(--coral);
  color: var(--blue);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  color: var(--blue);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--blue);
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .capabilities {
    grid-column: 1;
  }

  .impact {
    max-width: 620px;
  }
}

@media (max-width: 600px) {
  nav .wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 12px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.84rem;
  }

  .capabilities .capability-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  section.content-section {
    padding-block: 56px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .project-card h3 {
    white-space: normal;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid {
    animation: enter 600ms ease-out both;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.healthcare-page header.hero {
  padding-block: 64px 56px;
  color: var(--black);
}

.healthcare-page header.hero .back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: 0.9rem;
}

.healthcare-page header.hero .kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.healthcare-page header.hero h1 {
  margin-bottom: 20px;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--yellow);
  color: var(--black);
  font-size: clamp(2rem, 5vw, 3.25rem);
  white-space: normal;
}

.healthcare-page header.hero p.lede {
  margin-bottom: 28px;
  color: var(--black);
  font-size: 1.05rem;
}

.healthcare-page .hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.healthcare-page .hero-meta-table {
  width: 100%;
  margin: 0;
  border: 1px solid rgb(0 0 0 / 25%);
  border-collapse: collapse;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
}

.healthcare-page .hero-meta-table th,
.healthcare-page .hero-meta-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
}

.healthcare-page .hero-meta-table tr:last-child th,
.healthcare-page .hero-meta-table tr:last-child td {
  border-bottom: 0;
}

.healthcare-page .hero-meta-table th {
  width: 72px;
  background: transparent;
  color: var(--coral);
  font-weight: 700;
}

.healthcare-page main {
  padding-bottom: 40px;
}

.healthcare-page section.content-section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.healthcare-page .section-heading {
  margin-bottom: 28px;
}

.healthcare-page .section-heading h2 {
  width: fit-content;
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--yellow);
  color: var(--coral);
  font-size: 2rem;
}

.healthcare-page main .content-section p,
.healthcare-page main .content-section li {
  color: var(--black);
}

.healthcare-page main .content-section li {
  font-weight: 700;
}

.healthcare-page .content-section h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.healthcare-page ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.healthcare-page li {
  margin-bottom: 8px;
}

.healthcare-page .stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 26px 0 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.healthcare-page .stat {
  min-width: 0;
  padding: 20px 18px;
  background: var(--panel);
}

.healthcare-page .stat .n {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.healthcare-page .stat .l {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.healthcare-page .charts {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  gap: 28px;
  margin: 8px 0;
}

.healthcare-page .chart-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--panel);
}

.healthcare-page .chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.healthcare-page .chart-card figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.healthcare-page .table-scroll {
  overflow-x: auto;
  margin: 14px 0 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.healthcare-page table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.healthcare-page .table-scroll table {
  width: max-content;
  min-width: 540px;
}

.healthcare-page .table-scroll-fit {
  width: fit-content;
  max-width: 100%;
}

.healthcare-page caption {
  padding: 12px 12px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
  caption-side: top;
}

.healthcare-page .table-highlight {
  background: var(--gold);
  color: var(--yellow);
  font-weight: 600;
}

.healthcare-page th,
.healthcare-page td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.healthcare-page th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.healthcare-page td.num,
.healthcare-page th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.healthcare-page tr td.flag {
  color: #8f3522;
  font-weight: 700;
}

.healthcare-page .rec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.healthcare-page .rec-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.healthcare-page .rec-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.healthcare-page .rec-list .region {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.healthcare-page .reflection {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  background: var(--panel);
}

.healthcare-page .reflection p {
  margin-bottom: 0;
}

.healthcare-page .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.healthcare-page .tools span {
  border: 1px solid var(--line);
  padding: 6px 11px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
}

.healthcare-page .source-list {
  max-width: 80ch;
}

.healthcare-page .source-list li {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .healthcare-page .charts {
    grid-template-columns: 1fr;
  }

  .healthcare-page .stat-strip {
    grid-template-columns: 1fr;
  }

  .healthcare-page header.hero {
    padding-block: 52px 40px;
  }

  .healthcare-page .hero-summary {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .healthcare-page section.content-section {
    padding-block: 48px;
  }
}

@media (max-width: 560px) {
  .healthcare-page .rec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .healthcare-page .section-heading h2 {
    font-size: 1.65rem;
  }
}
