/* ============================================================
Tokens
============================================================ */
:root {
  --ink: #14171a;
  --ink-2: #2a2e33;
  --muted: #565d66;
  --paper: #f2f3f0;
  --paper-2: #e8eae5;
  --white: #ffffff;
  --crimson: #a51417;
  --uab: #1a5632;
  --yellow: #ffe45c;
  --butter: #f7dfa2;
  --powder: #cadcef;
  --oat: #e1dec9;
  --line: rgba(20, 23, 26, 0.13);
  --line-soft: rgba(20, 23, 26, 0.08);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Archivo Black", "Arial Black", Impact, var(--sans);

  --container: 1080px;
  --measure: 33.5rem;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 132px);
  --header-h: calc(73px * var(--scale));

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Baseline reading size. 1.25 is what the old top A+ step used to give;
      it is now the starting point, and the control steps up from here. */
  --scale: 1.25; /* driven by the A+ text-size control */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  font-size: calc(100% * var(--scale));
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
Layout primitives
============================================================ */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper {
  background: var(--paper);
}
.section--white {
  background: var(--white);
}
.measure {
  max-width: var(--measure);
}

/* ============================================================
Type
============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
  transform: scale(0);
}
.no-js .eyebrow::before,
.reduced .eyebrow::before {
  transform: scale(1);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.012em;
}
h1 {
  /* The lower bound is held at its old pixel size so the authored line
      breaks still fit on narrow screens at the larger baseline. */
  font-size: clamp(1.88rem, 5.9vw, 3.95rem);
  line-height: 1.045;
  font-weight: 700;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(1.85rem, 3.7vw, 2.75rem);
  line-height: 1.13;
}
h3 {
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.005em;
}
p {
  margin: 0 0 1.05em;
}
p:last-child {
  margin-bottom: 0;
}
.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.68;
}
.body-copy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.72;
}
.body-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.h-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.h-mark > span {
  position: relative;
  z-index: 1;
}
.h-mark::before {
  content: "";
  position: absolute;
  left: -0.22em;
  right: -0.22em;
  top: 0.035em;
  bottom: 0.055em;
  background: var(--yellow);
  border-radius: 999px;
  z-index: 0;
  transform: scaleX(0);
  transform-origin: left center;
}
.no-js .h-mark::before,
.reduced .h-mark::before {
  transform: scaleX(1);
}

/* ============================================================
Buttons
============================================================ */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.72em 1.25em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.32s var(--ease),
    background-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
  will-change: transform;
}
.btn .arw {
  display: inline-block;
  transition: transform 0.38s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(20, 23, 26, 0.45);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn:hover .arw--down {
  transform: translateY(3px);
}
.btn:hover .arw--right {
  transform: translateX(4px);
}
.btn--yellow:hover {
  background: #ffdb2e;
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}
.btn--ink:hover {
  background: #000;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  --btn-bd: var(--ink);
  background: rgba(20, 23, 26, 0.03);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 600px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}

.btn--text {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  padding: 0.72em 0.5em;
}
.btn--text:hover {
  /* text-decoration: underline; */
  font-size: 0.925rem;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.link-plain {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4em;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 88%;
  transition: background-size 0.4s var(--ease);
}
.link-plain:hover {
  background-size: 100% 1px;
}

/* ============================================================
Header
============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 46px);
}
.brand {
  text-decoration: none;
  line-height: 1.06;
  flex: none;
  --brand-gap: clamp(0.6rem, 1.1vw, 0.8rem);
  display: flex;
  align-items: stretch;
  gap: var(--brand-gap);
}
.brand-site1 {
  align-self: center;
}

.brand-site1 b {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-site1 i {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--crimson);
}

.brand-site2 {
  display: flex;
  align-items: center;
  padding-left: var(--brand-gap);
  border-left: 1px solid var(--line);
}
.brand-site2 > span {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1;
  color: var(--uab);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: scaleX(1.15);
  transform-origin: left center;
  /* the stretch paints 15% outside the layout box, so give it back */
  margin-right: 0.55ch;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-right: auto;
}
.nav a {
  position: relative;
  isolation: isolate;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding: 0.45em 0.5em;
  border-radius: 6px;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 0.18em -0.1em 0.16em -0.1em;
  background: var(--yellow);
  border-radius: 999px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}
.nav a[aria-current="true"]::before {
  transform: scaleX(1);
}

.textsize {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  line-height: 1;
  padding-top: 0.35em;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.textsize:hover {
  border-color: var(--ink);
  background: rgba(20, 23, 26, 0.04);
}
.textsize i {
  font-style: normal;
  font-size: 0.66em;
  font-family: var(--sans);
  font-weight: 700;
}
.nav-toggle {
  display: none;
}

/* ============================================================
Hero
============================================================ */
.hero {
  background: var(--paper);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 86px));
  padding-bottom: clamp(56px, 7vw, 92px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 3;
}
/* bottom scrim: dissolves the figure into the section edge, whatever its height */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 14vw, 170px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--paper) 14%,
    rgba(242, 243, 240, 0) 100%
  );
}
.hero h1 {
  max-width: none;
}
.hero .lede {
  margin-top: 1.6rem;
  max-width: 28.5rem;
}
.hero .btn-row {
  margin-top: 2.1rem;
}

.hero-figure {
  position: absolute;
  z-index: 1;
  right: max(-4vw, -70px);
  bottom: 0;
  width: clamp(340px, 42vw, 560px);
  opacity: 0.92;
  pointer-events: none;
}
.hero-figure img {
  width: 100%;
  height: auto;
}

/* pain bloom — geometry ported from the reference prototype */
.bloom {
  position: absolute;
  left: 49%;
  top: 76%;
  width: 56%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 45, 45, 0.66) 0%,
    rgba(255, 45, 45, 0.36) 45%,
    rgba(255, 45, 45, 0) 78%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  pointer-events: none;
}
.bloom--halo {
  width: 96%;
  height: 70%;
  filter: blur(46px);
  mix-blend-mode: multiply;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 32, 38, 0.3) 0%,
    rgba(196, 32, 38, 0.13) 48%,
    rgba(196, 32, 38, 0) 76%
  );
}
.no-js .bloom,
.reduced .bloom {
  opacity: 0.72;
}
.reduced .bloom {
  animation: none;
}

.stat-bar {
  margin-top: clamp(34px, 5vw, 54px);
  max-width: 36rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(24px, 5vw, 62px);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ============================================================
Eligibility
============================================================ */
.eligibility .lede {
  margin-top: 1.25rem;
  max-width: 30rem;
}

.crit {
  list-style: none;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 0;
  max-width: 47rem;
  border-top: 1px solid var(--line);
}
.crit > li {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 0 0.3rem;
  padding: 1.35rem 0.6rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.crit > li:hover {
  background: rgba(20, 23, 26, 0.022);
}
.crit-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.28rem;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.crit > li:hover .crit-n {
  color: var(--crimson);
}
.crit h3 {
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 600;
}
.crit p {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.62;
  max-width: 34rem;
}

/* BMI card */
.bmi {
  margin-top: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 4vw, 1.15rem) clamp(16px, 4vw, 1.25rem)
    clamp(16px, 4vw, 1.2rem);
  max-width: 37rem;
}
.bmi-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(16px, 4vw, 1.4rem);
}
.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field-row {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 0.45rem);
  flex-wrap: wrap;
}
.bmi input {
  width: clamp(2.75rem, 15vw, 3.6rem);
  padding: 0.5rem 0.3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  -moz-appearance: textfield;
}
.bmi input::-webkit-outer-spin-button,
.bmi input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bmi input:hover {
  border-color: rgba(20, 23, 26, 0.28);
}
.bmi input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 23, 26, 0.08);
}
.bmi input:focus-visible {
  outline: 2.5px solid var(--crimson);
  outline-offset: 2px;
}
.unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.bmi-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 15rem;
  flex: 1 1 12rem;
}

.bmi-out {
  margin-top: 1.05rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--line);
}
.bmi-read {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}
.bmi-read em {
  font-style: normal;
  font-weight: 600;
}
.bmi-read .flag {
  display: inline-block;
  margin-left: 0.15em;
  padding: 0.06em 0.5em 0.12em;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--yellow);
}
.bmi-read .flag--out {
  background: var(--paper-2);
  color: var(--muted);
}
.gauge {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  margin: 1rem 0 0.55rem;
  max-width: 24rem;
  overflow: visible;
}
.gauge-band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--yellow);
}
.gauge-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.gauge-scale {
  position: relative;
  height: 1rem;
  max-width: 24rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.gauge-scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}
.gauge-scale span:first-child {
  transform: none;
}
.gauge-scale span:last-child {
  transform: translateX(-100%);
}
.is-hidden {
  display: none;
}

/* ============================================================
Timeline
============================================================ */
.timeline {
  --tl-gap: 20px;
  margin-top: clamp(34px, 5vw, 50px);
  position: relative;
}
/* the rule is absolutely placed so it threads exactly through the dot centres;
JS nudges it to the measured centre once fonts have settled */
.tl-track {
  position: absolute;
  left: 0;
  right: calc(20% - 0.8 * var(--tl-gap) - 5.5px);
  top: 1.82rem;
  height: 11px;
  z-index: 0;
}
.tl-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--line);
  transform: translateY(-50%);
  transform-origin: left center;
}
.tl-cols {
  --tl-gap: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--tl-gap);
  position: relative;
  z-index: 1;
}
.tl-month {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.tl-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}
.tl-dot--solid {
  background: var(--ink);
}
.tl-visit h3 {
  margin-bottom: 0.4rem;
}
.tl-visit p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.tl-dur {
  display: block;
  margin-top: 0.5rem;
  color: var(--crimson);
  font-weight: 500;
}
.tl-col:hover .tl-dot {
  transform: scale(1.35);
}

.two-cards {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(38px, 5vw, 58px);
  align-items: start;
}
.card {
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.card--paper {
  background: var(--paper);
}
.card--outline {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.card > h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.68;
}
.card--pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card--pay .pay-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  color: var(--ink);
}
.card--pay .pay-upto {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
  line-height: 1;
}
.card--pay .pay {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card.card--pay > h3 {
  margin-top: 0.9rem;
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.34;
}
.card--pay .pay-cond {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-2);
}
.card--pay .pay-req {
  align-self: stretch;
  margin-top: 1.25rem;
  background: var(--paper);
  border-radius: 12px;
  /* padding: 0.9rem 1rem 1rem; */
  padding: 1.25rem;
  border: 1px solid var(--line, #eef0f2);
}
.card--pay .pay-req-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 0.55rem;
}
.card--pay .pay-req ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card--pay .pay-req li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.card--pay .pay-req li + li {
  margin-top: 0.6rem;
}
/* a rule, not a tick: these are requirements still to be met */
.card--pay .pay-req li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 2px;
  background: var(--crimson);
  border-radius: 2px;
}
.card--pay .pay-note {
  margin: 0.9rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
Editorial (problem / rationale)
============================================================ */
.editorial + .editorial {
  margin-top: clamp(56px, 7vw, 88px);
}
.editorial h2 {
  max-width: 19ch;
  margin-bottom: 1.4rem;
}
.callout {
  margin-top: clamp(26px, 3.4vw, 38px);
  background: var(--white);
  border-radius: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  max-width: var(--measure);
}
.callout h3 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.q-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}
.q-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: 0.55rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.q-list li::before {
  counter-increment: q;
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--crimson);
}

/* ============================================================
Resources
============================================================ */
.res-head {
  text-align: center;
  max-width: 30rem;
  margin-inline: auto;
}
.res-head .eyebrow {
  justify-content: center;
}
.res-head h2 {
  max-width: 14ch;
  margin-inline: auto;
}
.res-head p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.res-list {
  margin-top: clamp(32px, 4vw, 46px);
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  max-width: 56rem;
  margin-inline: auto;
}
.res-card {
  display: grid;
  grid-template-columns: clamp(74px, 9vw, 104px) 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  will-change: transform;
}
.res-card--blue {
  background: var(--powder);
}
.res-card--butter {
  background: var(--butter);
}
.res-card--oat {
  background: var(--oat);
}
.res-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(20, 23, 26, 0.5);
}
.res-art {
  width: 100%;
  height: auto;
  overflow: visible;
  justify-self: center;
}
.res-art[data-art="spine"] {
  width: 66%;
}
.res-art[data-art="nutrition"] {
  width: 88%;
}
.res-art path {
  stroke: var(--ink);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.res-card h3 {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
}
.res-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 30rem;
}
.res-card .btn {
  margin-top: 1.05rem;
}
.res-card .res-meta {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 23, 26, 0.55);
}

/* ============================================================
Team
============================================================ */
.team-grid {
  margin-top: clamp(30px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  gap: clamp(16px, 2.4vw, 28px);
}
.person figure {
  margin: 0;
}
.portrait {
  aspect-ratio: 1/1.07;
  border-radius: 12px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 23, 26, 0.32);
  text-align: center;
  line-height: 1.8;
  overflow: hidden;
}
.person h3 {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.role {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
}
.affil {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.inst-row {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--line, #eef0f2);
}

.inst-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 600px) {
  .inst-group {
    flex-direction: row;
    gap: clamp(3rem, 8vw, 6rem);
  }
}

.inst {
  position: relative;
  padding-left: 1.15rem;
}

.inst::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.inst--wustl::before {
  background: var(--crimson);
}
.inst--uab::before {
  background: var(--uab);
}

.inst .inst-name {
  display: block;
  font-family: var(--serif, serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink, #111);
  line-height: 1.3;
}

.inst .inst-sub {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono, monospace);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #777);
  line-height: 1.4;
}

/* ============================================================
Contact
============================================================ */

.contact-wrap h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  max-width: 18ch;
  margin-bottom: 0.8rem;
}

/* --- title --- */
.contact-title {
  font-family: var(--serif, serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink, #111);
  margin: 0 0 1.25rem 0;
}

.contact h2,
.contact-wrap h2,
.contact-title {
  max-width: 100% !important;
  width: 100% !important;
}

/* --- descrption --- */
.contact-desc {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-2, #444);
  max-width: 40rem;
  margin: 0;
}

/* --- mobile --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* 手机端默认单列上下堆叠 */
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line, #eef0f2); /* 用一条极细的线做视觉分隔 */
}

@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}
/* --- Contact part --- */
.contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.contact-label {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2, #555);
  line-height: 1.4;
}

.contact-label strong {
  color: var(--ink, #111);
  font-weight: 600;
}
.mailto {
  /* color: var(--crimson); */
  text-decoration: none;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  /* background-image: linear-gradient(var(--crimson), var(--crimson)); */
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 92%;
  /* transition: background-size 0.45s var(--ease); */
  transition:
    background-size 0.45s var(--ease),
    opacity 0.3s ease;
  font-weight: 500;
}
.mailto:hover {
  background-size: 0% 1.5px;
  opacity: 0.8;
}
/* WashU Color */
.mailto--wustl {
  color: var(--crimson);
  background-image: linear-gradient(var(--crimson), var(--crimson));
}

/* UAB Color */
.mailto--uab {
  color: var(--uab);
  background-image: linear-gradient(var(--uab), var(--uab));
}
/* --- bottom --- */
.contact-footer {
  margin-top: 3.5rem;
}

.link-plain--qualify {
  color: var(--muted, #777);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-plain--qualify:hover {
  color: var(--ink, #111);
}

/* ============================================================
Footer
============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(44px, 5vw, 62px);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  max-width: 56rem;
}
.foot-h {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}
.site-footer p {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: 0;
}
.site-footer p + p {
  margin-top: 0.5rem;
  padding-bottom: 0;
}
.foot-base {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.55);
}
.foot-base a {
  color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 3px;
}
.foot-base a:hover {
  color: #fff;
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7em 1.1em;
  border-radius: 0 0 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}

/* ============================================================
Reveal defaults (only when JS is on and motion is allowed)
============================================================ */
.js:not(.reduced) [data-anim] {
  opacity: 0;
}
/* the headline's line breaks are authored, so they hold with or without JS */
[data-anim="line"] > span {
  display: block;
}

/* ============================================================
Responsive
============================================================ */
@media (max-width: 1080px) {
  .hero-figure {
    width: clamp(300px, 44vw, 470px);
    opacity: 0.86;
  }
}
@media (max-width: 900px) {
  .two-cards {
    grid-template-columns: 1fr;
  }
  .tl-track {
    display: none;
  }
  .tl-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tl-col {
    position: relative;
    padding: 0 0 1.6rem 1.6rem;
    border-left: 1.5px solid var(--line);
  }
  .tl-col:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }
  .tl-month {
    margin-bottom: 0.35rem;
  }
  .tl-dot {
    position: absolute;
    left: -6px;
    top: 0.3rem;
    margin-bottom: 0;
  }
  .inst-row {
    grid-template-columns: 1fr;
  }
}
/* The nav collapses earlier now: at the larger baseline the five links
    plus the controls stop fitting on one row below ~900px. */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.35rem;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85em 0.2em;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a::before {
    display: none;
  }
  .nav a[aria-current="true"] {
    color: var(--crimson);
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    order: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
    transition:
      transform 0.3s var(--ease),
      background-color 0.2s;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
  }
  .nav-toggle span::before {
    top: -5px;
  }
  .nav-toggle span::after {
    top: 5px;
  }
  .nav-toggle[aria-expanded="true"] span {
    background: transparent;
  }
  .nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-5px) rotate(-45deg);
  }
  .brand {
    margin-right: auto;
  }
  .header-inner {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-bottom: clamp(40px, 9vw, 72px);
  }
  .hero-figure {
    width: min(82vw, 360px);
    right: -24vw;
    bottom: 0;
    opacity: 0.26;
    -webkit-mask-image: linear-gradient(
      95deg,
      transparent 2%,
      rgba(0, 0, 0, 0.5) 30%,
      #000 62%
    );
    mask-image: linear-gradient(
      95deg,
      transparent 2%,
      rgba(0, 0, 0, 0.5) 30%,
      #000 62%
    );
  }
  .stat-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 14px;
  }
  .stat span {
    white-space: normal;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .res-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .res-art {
    width: 78px;
    justify-self: start;
  }
  .res-art[data-art="spine"] {
    width: 52px;
  }
  .res-art[data-art="nutrition"] {
    width: 66px;
  }
  .crit > li {
    grid-template-columns: 2.2rem 1fr;
  }
  .bmi-grid {
    gap: 1rem 1.2rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .brand-site > span {
    font-size: 1.16rem;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: space-between;
  }
  .contact h2 {
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  .site-header,
  .hero-figure,
  .nav-toggle {
    display: none;
  }
  body {
    background: #fff;
  }
}
