/* Layout: alternating full-width bands. Reading text sits at 42rem; grids (facts, cards,
   timeline, journey) open out to 72rem. Palette: forest greens taken from Ian's laurel-wreath
   firm mark and the green of organ-donation awareness. Gold is used only on dark bands. */

:root {
  --paper: #F3F5F1;
  --surface: #FFFFFF;
  --mist: #E4EEE8;
  --ink: #13261F;
  --muted: #4A5E56;
  --line: #CFDCD4;
  --forest: #123A2C;
  --forest-2: #1B4D3B;
  --forest-deep: #0B241B;
  --leaf: #23704C;
  --leaf-hover: #1A5A3C;
  --gold: #D8B25A;
  --gold-hover: #E6C371;
  --on-dark: #F3F5F1;
  --on-dark-muted: #B9CCC2;
  --rust: #A2481F;
  --focus: #23704C;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wide: 72rem;
  --read: 42rem;
  --radius: 18px;

  color-scheme: light;

  /* Background art (inline SVG data URIs) */
  --tex-leaf-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23123A2C' stroke-opacity='.06' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M22 66c8-22 32-32 54-28-6 22-30 34-54 28z'/%3E%3Cpath d='M22 66 76 38'/%3E%3Cpath d='M96 134c10-20 34-28 52-22-8 20-32 30-52 22z'/%3E%3Cpath d='M96 134l52-22'/%3E%3Cpath d='M112 34c4-12 16-18 28-16-2 12-16 20-28 16z'/%3E%3Cpath d='M112 34l28-16'/%3E%3Cpath d='M30 132c2-10 10-16 20-16-1 10-10 16-20 16z'/%3E%3Cpath d='M30 132l20-16'/%3E%3C/g%3E%3C/svg%3E");
  --tex-leaf-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23D8B25A' stroke-opacity='.1' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M22 66c8-22 32-32 54-28-6 22-30 34-54 28z'/%3E%3Cpath d='M22 66 76 38'/%3E%3Cpath d='M96 134c10-20 34-28 52-22-8 20-32 30-52 22z'/%3E%3Cpath d='M96 134l52-22'/%3E%3Cpath d='M112 34c4-12 16-18 28-16-2 12-16 20-28 16z'/%3E%3Cpath d='M112 34l28-16'/%3E%3Cpath d='M30 132c2-10 10-16 20-16-1 10-10 16-20 16z'/%3E%3Cpath d='M30 132l20-16'/%3E%3C/g%3E%3C/svg%3E");
  --tex-leaf-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23A9C3EA' stroke-opacity='.09' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M22 66c8-22 32-32 54-28-6 22-30 34-54 28z'/%3E%3Cpath d='M22 66 76 38'/%3E%3Cpath d='M96 134c10-20 34-28 52-22-8 20-32 30-52 22z'/%3E%3Cpath d='M96 134l52-22'/%3E%3Cpath d='M112 34c4-12 16-18 28-16-2 12-16 20-28 16z'/%3E%3Cpath d='M112 34l28-16'/%3E%3Cpath d='M30 132c2-10 10-16 20-16-1 10-10 16-20 16z'/%3E%3Cpath d='M30 132l20-16'/%3E%3C/g%3E%3C/svg%3E");
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
  --sprig-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 60 148'%3E%3Cg opacity='.085' fill='%2323704C'%3E%3Cpath d='M44 136C22 110 14 72 28 8' fill='none' stroke='%2323704C' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='31' cy='120' rx='4.4' ry='9.5' transform='rotate(-42 31 120)'/%3E%3Cellipse cx='45' cy='120' rx='4.4' ry='9.5' transform='rotate(40 45 120)'/%3E%3Cellipse cx='23.5' cy='106' rx='4.4' ry='9.5' transform='rotate(-38 23.5 106)'/%3E%3Cellipse cx='37.5' cy='106' rx='4.4' ry='9.5' transform='rotate(38 37.5 106)'/%3E%3Cellipse cx='18' cy='90' rx='4.4' ry='9.5' transform='rotate(-32 18 90)'/%3E%3Cellipse cx='32' cy='90' rx='4.4' ry='9.5' transform='rotate(34 32 90)'/%3E%3Cellipse cx='15' cy='72' rx='4.4' ry='9.5' transform='rotate(-26 15 72)'/%3E%3Cellipse cx='28.5' cy='72' rx='4.4' ry='9.5' transform='rotate(30 28.5 72)'/%3E%3Cellipse cx='14.5' cy='51' rx='4.2' ry='9' transform='rotate(-20 14.5 51)'/%3E%3Cellipse cx='28' cy='51' rx='4.2' ry='9' transform='rotate(26 28 51)'/%3E%3Cellipse cx='17' cy='28' rx='4' ry='8.5' transform='rotate(-16 17 28)'/%3E%3Cellipse cx='30' cy='28' rx='4' ry='8.5' transform='rotate(22 30 28)'/%3E%3Cellipse cx='28.5' cy='1' rx='3.8' ry='8' transform='rotate(8 28.5 1)'/%3E%3C/g%3E%3C/svg%3E");
  --sprig-light-flip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 60 148'%3E%3Cg opacity='.085' fill='%2323704C' transform='translate(60 0) scale(-1 1)'%3E%3Cpath d='M44 136C22 110 14 72 28 8' fill='none' stroke='%2323704C' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='31' cy='120' rx='4.4' ry='9.5' transform='rotate(-42 31 120)'/%3E%3Cellipse cx='45' cy='120' rx='4.4' ry='9.5' transform='rotate(40 45 120)'/%3E%3Cellipse cx='23.5' cy='106' rx='4.4' ry='9.5' transform='rotate(-38 23.5 106)'/%3E%3Cellipse cx='37.5' cy='106' rx='4.4' ry='9.5' transform='rotate(38 37.5 106)'/%3E%3Cellipse cx='18' cy='90' rx='4.4' ry='9.5' transform='rotate(-32 18 90)'/%3E%3Cellipse cx='32' cy='90' rx='4.4' ry='9.5' transform='rotate(34 32 90)'/%3E%3Cellipse cx='15' cy='72' rx='4.4' ry='9.5' transform='rotate(-26 15 72)'/%3E%3Cellipse cx='28.5' cy='72' rx='4.4' ry='9.5' transform='rotate(30 28.5 72)'/%3E%3Cellipse cx='14.5' cy='51' rx='4.2' ry='9' transform='rotate(-20 14.5 51)'/%3E%3Cellipse cx='28' cy='51' rx='4.2' ry='9' transform='rotate(26 28 51)'/%3E%3Cellipse cx='17' cy='28' rx='4' ry='8.5' transform='rotate(-16 17 28)'/%3E%3Cellipse cx='30' cy='28' rx='4' ry='8.5' transform='rotate(22 30 28)'/%3E%3Cellipse cx='28.5' cy='1' rx='3.8' ry='8' transform='rotate(8 28.5 1)'/%3E%3C/g%3E%3C/svg%3E");
  --sprig-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 60 148'%3E%3Cg opacity='.09' fill='%23D8B25A'%3E%3Cpath d='M44 136C22 110 14 72 28 8' fill='none' stroke='%23D8B25A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='31' cy='120' rx='4.4' ry='9.5' transform='rotate(-42 31 120)'/%3E%3Cellipse cx='45' cy='120' rx='4.4' ry='9.5' transform='rotate(40 45 120)'/%3E%3Cellipse cx='23.5' cy='106' rx='4.4' ry='9.5' transform='rotate(-38 23.5 106)'/%3E%3Cellipse cx='37.5' cy='106' rx='4.4' ry='9.5' transform='rotate(38 37.5 106)'/%3E%3Cellipse cx='18' cy='90' rx='4.4' ry='9.5' transform='rotate(-32 18 90)'/%3E%3Cellipse cx='32' cy='90' rx='4.4' ry='9.5' transform='rotate(34 32 90)'/%3E%3Cellipse cx='15' cy='72' rx='4.4' ry='9.5' transform='rotate(-26 15 72)'/%3E%3Cellipse cx='28.5' cy='72' rx='4.4' ry='9.5' transform='rotate(30 28.5 72)'/%3E%3Cellipse cx='14.5' cy='51' rx='4.2' ry='9' transform='rotate(-20 14.5 51)'/%3E%3Cellipse cx='28' cy='51' rx='4.2' ry='9' transform='rotate(26 28 51)'/%3E%3Cellipse cx='17' cy='28' rx='4' ry='8.5' transform='rotate(-16 17 28)'/%3E%3Cellipse cx='30' cy='28' rx='4' ry='8.5' transform='rotate(22 30 28)'/%3E%3Cellipse cx='28.5' cy='1' rx='3.8' ry='8' transform='rotate(8 28.5 1)'/%3E%3C/g%3E%3C/svg%3E");
  --sprig-dark-flip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 60 148'%3E%3Cg opacity='.09' fill='%23D8B25A' transform='translate(60 0) scale(-1 1)'%3E%3Cpath d='M44 136C22 110 14 72 28 8' fill='none' stroke='%23D8B25A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='31' cy='120' rx='4.4' ry='9.5' transform='rotate(-42 31 120)'/%3E%3Cellipse cx='45' cy='120' rx='4.4' ry='9.5' transform='rotate(40 45 120)'/%3E%3Cellipse cx='23.5' cy='106' rx='4.4' ry='9.5' transform='rotate(-38 23.5 106)'/%3E%3Cellipse cx='37.5' cy='106' rx='4.4' ry='9.5' transform='rotate(38 37.5 106)'/%3E%3Cellipse cx='18' cy='90' rx='4.4' ry='9.5' transform='rotate(-32 18 90)'/%3E%3Cellipse cx='32' cy='90' rx='4.4' ry='9.5' transform='rotate(34 32 90)'/%3E%3Cellipse cx='15' cy='72' rx='4.4' ry='9.5' transform='rotate(-26 15 72)'/%3E%3Cellipse cx='28.5' cy='72' rx='4.4' ry='9.5' transform='rotate(30 28.5 72)'/%3E%3Cellipse cx='14.5' cy='51' rx='4.2' ry='9' transform='rotate(-20 14.5 51)'/%3E%3Cellipse cx='28' cy='51' rx='4.2' ry='9' transform='rotate(26 28 51)'/%3E%3Cellipse cx='17' cy='28' rx='4' ry='8.5' transform='rotate(-16 17 28)'/%3E%3Cellipse cx='30' cy='28' rx='4' ry='8.5' transform='rotate(22 30 28)'/%3E%3Cellipse cx='28.5' cy='1' rx='3.8' ry='8' transform='rotate(8 28.5 1)'/%3E%3C/g%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--leaf);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--leaf-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

[hidden] {
  display: none !important;
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

h1,
h2,
.marker-value,
.journey li::before,
.panel .step-num {
  font-variant-numeric: lining-nums;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.read {
  max-width: var(--read);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.eyebrow svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

.on-dark .eyebrow {
  color: var(--gold);
}

.lede {
  max-width: 36rem;
  font-size: 1.2rem;
}

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

/* Bands. Light bands get soft gold/green washes and, on some, a laurel watermark. Mist bands
   get a faint leaf pattern. Dark bands get glows, leaves and fine grain. Everything sits behind
   the text at low opacity; a section can add one more art layer through --section-art. */

.section {
  padding-block: clamp(3.75rem, 8vw, 6.5rem);
  background:
    var(--section-art, none),
    radial-gradient(52rem 26rem at 100% 22%, rgba(216, 178, 90, 0.13), transparent 65%),
    radial-gradient(46rem 28rem at 0% 100%, rgba(35, 112, 76, 0.08), transparent 65%),
    linear-gradient(180deg, var(--paper), #EBF0E9);
}

.section.mist {
  background:
    var(--section-art, none),
    var(--tex-leaf-light),
    radial-gradient(56rem 30rem at 0% 0%, rgba(255, 255, 255, 0.6), transparent 62%),
    radial-gradient(50rem 30rem at 100% 100%, rgba(216, 178, 90, 0.17), transparent 62%),
    linear-gradient(180deg, #E5EFE9, #DCE9E1);
}

.on-dark {
  background: var(--forest);
  color: var(--on-dark);
}

.section.on-dark {
  background:
    var(--section-art, none),
    var(--tex-grain),
    var(--tex-leaf-dark),
    radial-gradient(50rem 30rem at 100% 0%, rgba(216, 178, 90, 0.15), transparent 62%),
    radial-gradient(46rem 32rem at 0% 100%, rgba(35, 112, 76, 0.55), transparent 62%),
    var(--forest);
}

#story {
  --section-art: var(--sprig-light) no-repeat left -4.5rem bottom -7rem / 14rem auto;
}

#how {
  --section-art: var(--sprig-light-flip) no-repeat right -4rem top -3rem / 12rem auto;
}

#journey {
  --section-art: var(--sprig-light) no-repeat left -5rem bottom -8rem / 13rem auto;
}

#faq {
  --section-art: var(--sprig-light-flip) no-repeat right 3% center / 17rem auto;
}

/* Jefferson band is navy blue rather than forest green, to set the hospital's part of the
   story apart. Inside it, "leaf" (links, buttons, checklist dots) becomes a matching blue. */

#jefferson {
  --navy: #0E2546;
  --leaf: #1D4E89;
  --leaf-hover: #163D6C;
  --focus: #1D4E89;
  --on-dark-muted: #BFCDE2;
  background:
    var(--sprig-dark-flip) no-repeat right -3rem bottom -6rem / 14rem auto,
    var(--tex-grain),
    var(--tex-leaf-blue),
    radial-gradient(50rem 30rem at 100% 0%, rgba(216, 178, 90, 0.13), transparent 62%),
    radial-gradient(46rem 32rem at 0% 100%, rgba(44, 96, 168, 0.5), transparent 62%),
    radial-gradient(40rem 26rem at 0% 0%, rgba(28, 64, 120, 0.4), transparent 62%),
    var(--navy);
}

#jefferson .jeff-help li {
  border-color: rgba(191, 205, 226, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

#jefferson .jeff-stats div {
  background: rgba(255, 255, 255, 0.07);
}

#contact {
  --section-art: var(--sprig-dark) no-repeat left -4rem top -5rem / 15rem auto;
}

.on-dark a {
  color: var(--on-dark);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head > p {
  font-size: 1.12rem;
  color: var(--muted);
}

.on-dark .section-head > p {
  color: var(--on-dark-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--leaf);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--leaf-hover);
  color: #FFFFFF;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: var(--forest);
}

.btn-ghost,
.btn-secondary {
  border-color: var(--leaf);
  background: transparent;
  color: var(--leaf);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: var(--leaf);
  color: #FFFFFF;
}

.on-dark .btn-ghost {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.on-dark .btn-ghost:hover {
  background: var(--on-dark);
  color: var(--forest);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(243, 245, 241, 0.1);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--gold);
}

.brand:hover {
  color: var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(6rem, 11vw, 8.5rem);
  background: var(--forest);
  color: var(--on-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--tex-grain),
    var(--tex-leaf-dark),
    radial-gradient(48rem 26rem at 88% 18%, rgba(216, 178, 90, 0.16), transparent 62%),
    radial-gradient(44rem 28rem at 0% 100%, rgba(35, 112, 76, 0.5), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .lede {
  margin: 1.6rem 0 0;
  color: var(--on-dark);
}

.hero .lede + .lede {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--on-dark-muted);
}

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 23rem);
  margin: 0;
}

.arch {
  position: relative;
  aspect-ratio: 4 / 5;
}

.arch-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 20px 20px;
  background: #0C2A20;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.35);
}

.arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.arch::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(216, 178, 90, 0.55);
  border-radius: 999px 999px 28px 28px;
  pointer-events: none;
}

.laurel {
  position: absolute;
  bottom: -1.4rem;
  width: 5.2rem;
  height: auto;
  color: var(--gold);
}

.laurel-left {
  left: -2.6rem;
}

.laurel-right {
  right: -2.6rem;
  transform: scaleX(-1);
}

.portrait figcaption {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--on-dark);
}

/* Key facts strip, pulled up over the hero */

.facts {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(4rem, 8vw, 5.5rem));
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(19, 38, 31, 0.13);
}

.fact {
  min-width: 0;
  padding: 1.5rem 1.6rem;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
}

.fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
  font-variant-numeric: lining-nums tabular-nums;
}

.fact-label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.fact-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Ian's story */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.pullquote {
  margin: 2.2rem 0 0;
  padding: 0;
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.22;
  color: var(--forest);
}

.pullquote blockquote::before {
  content: "\201C";
  display: block;
  height: 2.4rem;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--leaf);
}

.pullquote figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.photo-card {
  margin: 0;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.credit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.firm-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background:
    var(--tex-leaf-dark),
    radial-gradient(24rem 12rem at 100% 0%, rgba(216, 178, 90, 0.16), transparent 65%),
    var(--forest);
  color: var(--on-dark);
}

.firm-card img {
  width: min(15rem, 100%);
}

.firm-card a {
  color: var(--on-dark);
  font-weight: 700;
}

.firm-card a:hover {
  color: var(--gold);
}

/* Timeline */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  min-width: 0;
  padding: 2rem 1.1rem 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--leaf);
  border-radius: 50%;
  background: var(--surface);
}

.timeline li.is-medical::before {
  border-color: var(--rust);
}

.timeline li.is-next::before {
  border-color: var(--forest);
  background: var(--gold);
}

.timeline .when {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
}

.timeline .is-medical .when {
  color: var(--rust);
}

.timeline .is-next .when {
  color: var(--forest);
}

.timeline h3 {
  margin: 0.3rem 0 0.25rem;
  font-size: 1.02rem;
}

.timeline p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* MELD */

.meld-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.meld-card {
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.meld-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.meld-big .then {
  font-size: 3rem;
  color: var(--muted);
}

.meld-big .arrow {
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--muted);
}

.meld-big .now {
  font-size: 5.4rem;
  color: var(--forest);
}

.meld-big .unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.meld-track {
  position: relative;
  height: 14px;
  margin-top: 4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #A9D3BE 0%, #E6CF94 55%, #C9764A 100%);
}

.marker {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
}

.marker::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(19, 38, 31, 0.3);
}

.marker-now::before {
  background: var(--leaf);
}

.marker-value {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.marker-now .marker-value {
  color: var(--leaf);
}

.marker-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--muted);
}

.meld-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.meld-card figcaption {
  margin-top: 1.2rem;
}

/* How it works */

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel svg {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.panel .step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--leaf);
}

.panel h3 {
  margin: 0.15rem 0 0.4rem;
}

.panel p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
}

.swatch-original {
  background: #B4583B;
}

.swatch-portion {
  background: #D8B25A;
}

.swatch-regrown {
  background: #EBC3B2;
}

.how-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Who can donate */

.criteria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.criterion {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.criterion svg {
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  color: var(--leaf);
}

.criterion h3 {
  margin-bottom: 0.3rem;
}

.criterion p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.criteria-note {
  max-width: 46rem;
  color: var(--muted);
}

.quiz-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: 2rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 22px;
  background:
    var(--tex-grain),
    var(--tex-leaf-dark),
    radial-gradient(34rem 16rem at 100% 0%, rgba(216, 178, 90, 0.2), transparent 65%),
    radial-gradient(30rem 16rem at 0% 100%, rgba(35, 112, 76, 0.55), transparent 65%),
    var(--forest);
  box-shadow: 0 24px 50px rgba(11, 36, 27, 0.25);
  color: var(--on-dark);
}

.quiz-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.quiz-cta p {
  margin: 0.4rem 0 0;
  color: var(--on-dark-muted);
}

/* Donor journey */

.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.journey {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.journey li {
  position: relative;
  padding: 0 0 2rem 3.8rem;
  counter-increment: step;
}

.journey li::before {
  content: counter(step);
  position: absolute;
  top: -0.2rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.journey li::after {
  content: "";
  position: absolute;
  top: 2.7rem;
  bottom: 0.3rem;
  left: 1.25rem;
  width: 2px;
  background: var(--line);
}

.journey li:last-child {
  padding-bottom: 0;
}

.journey li:last-child::after {
  display: none;
}

.journey h3 {
  margin-bottom: 0.25rem;
}

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

.journey-photo {
  position: sticky;
  top: 6rem;
  margin: 0;
}

.journey-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% 50%;
  border-radius: var(--radius);
}

/* Jefferson Health */

.jefferson-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.jefferson .lede {
  max-width: 38rem;
  color: var(--on-dark);
}

.jeff-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 0;
}

.jeff-stats div {
  min-width: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-top: 2px solid var(--gold);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.jeff-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  color: var(--gold);
}

.jeff-stats dd {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.jefferson-photo {
  margin: 0;
}

.jefferson-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
  outline: 1px solid rgba(216, 178, 90, 0.5);
  outline-offset: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.jefferson-photo figcaption {
  margin-top: 1.2rem;
}

.on-dark figcaption {
  color: var(--on-dark-muted);
}

.jefferson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.jeff-help {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jeff-help li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(243, 245, 241, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.jeff-help svg {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--gold);
}

.jeff-help h3 {
  margin-bottom: 0.25rem;
}

.jeff-help p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--on-dark-muted);
}

.jeff-card {
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.jeff-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.jeff-card-note {
  margin: 0.55rem 0 1.2rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--leaf) var(--icon-check) center / 0.8rem no-repeat;
}

.jeff-card .actions {
  margin-top: 1.6rem;
}

.on-dark .jeff-card a {
  color: var(--leaf);
}

.on-dark .jeff-card a:hover {
  color: var(--leaf-hover);
}

.on-dark .jeff-card .btn-primary,
.on-dark .jeff-card .btn-primary:hover,
.on-dark .jeff-card .btn-secondary:hover {
  color: #FFFFFF;
}

.jeff-card :focus-visible {
  outline-color: var(--focus);
}

.jeff-card-links {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.jeff-card-links a {
  font-weight: 700;
}

.jeff-disclaimer {
  max-width: 48rem;
  margin: 2.4rem 0 0;
  font-size: 0.93rem;
  color: var(--on-dark-muted);
}

.jeff-disclaimer a {
  font-weight: 700;
}

/* Before you decide */

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

.protect li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.protect svg {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--leaf);
}

.protect .is-risk svg {
  color: var(--rust);
}

.protect h3 {
  margin-bottom: 0.25rem;
}

.protect p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* FAQ */

.faq {
  max-width: 50rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--leaf);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--leaf);
}

.faq .answer {
  padding: 0 0 1.3rem;
  color: var(--muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.faq .source {
  font-size: 0.86rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.contact-grid p {
  color: var(--on-dark);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Contact bubbles: pill cards with a gold icon. The whole bubble is the link's hit area. */

.contact-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.8rem 1.1rem 1.1rem;
  border: 1px solid rgba(216, 178, 90, 0.4);
  border-radius: 999px;
  background-color: var(--forest-2);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 62%);
  box-shadow: 0 18px 40px rgba(4, 18, 13, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-bubble:hover {
  border-color: var(--gold);
  background-color: var(--forest);
}

.contact-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  transition: transform 0.2s ease;
}

.contact-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.contact-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.contact-bubble:hover .contact-icon {
  transform: scale(1.07);
}

.contact-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0D58E;
}

.on-dark .contact-value {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: #FFFFFF;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.on-dark .is-email .contact-value {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: 0;
}

.contact-value::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.on-dark .contact-value:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

@supports selector(:has(*)) {
  .contact-value:focus-visible {
    outline: none;
  }

  .contact-bubble:has(.contact-value:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
  }
}

/* Rise-in, added by the script only when IntersectionObserver exists and motion is allowed. */

.reveal-ready .contact-bubble {
  opacity: 0;
  transform: translateY(1.75rem) scale(0.9);
}

.reveal-ready.is-in .contact-bubble {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.34, 1.5, 0.64, 1),
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.reveal-ready.is-in .contact-bubble:nth-child(2) {
  transition-delay: 0.16s, 0.16s, 0s, 0s;
}

.reveal-ready.is-in .contact-icon {
  animation: icon-pop 0.6s cubic-bezier(0.34, 1.6, 0.64, 1) 0.3s backwards;
}

.reveal-ready.is-in .contact-bubble:nth-child(2) .contact-icon {
  animation-delay: 0.46s;
}

.reveal-ready.is-in .is-phone .contact-icon::after {
  animation: icon-ring 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.9s 2;
}

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
  }
}

@keyframes icon-ring {
  from {
    opacity: 0.85;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.75);
  }
}

.status {
  min-height: 1.5em;
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

/* Footer */

.site-footer {
  padding-block: 2.8rem;
  background: var(--tex-grain), var(--tex-leaf-dark), var(--forest-deep);
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.site-footer p {
  max-width: 62ch;
  margin: 0 0 0.7rem;
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer .footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
}

.site-footer .footer-credit a {
  display: inline-block;
  line-height: 0;
}

.site-footer .footer-credit img {
  width: 144px;
  height: auto;
}

/* Eligibility quiz (dialog) */

.quiz {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(11, 36, 27, 0.35);
}

.quiz::backdrop {
  background: rgba(11, 36, 27, 0.6);
}

.quiz-inner {
  padding: 1.7rem 1.7rem 1.9rem;
}

.quiz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-head h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.quiz-close {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.quiz-close:hover {
  border-color: var(--leaf);
}

.quiz-intro {
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.quiz-progress progress {
  display: block;
  width: 100%;
  height: 0.55rem;
  margin: 0;
  accent-color: var(--leaf);
}

.quiz-counter {
  margin: 0.45rem 0 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.quiz-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step legend {
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--ink);
}

.quiz-step legend:focus {
  outline: none;
}

.quiz-options {
  display: grid;
  gap: 0.6rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.quiz-option:hover {
  border-color: var(--leaf);
}

.quiz-option:has(input:checked) {
  border-color: var(--leaf);
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--leaf);
}

.quiz-option:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.quiz-option input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--leaf);
}

.quiz-message {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: var(--rust);
}

.quiz-nav {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.quiz-nav #quiz-next {
  margin-left: auto;
}

.quiz-result-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--ink);
}

.quiz-result-title:focus {
  outline: none;
}

.quiz-result[data-outcome="met"] .quiz-result-title {
  color: var(--leaf);
}

.quiz-result[data-outcome="review"] .quiz-result-title {
  color: var(--rust);
}

.quiz-reasons {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.quiz-result .actions {
  margin-top: 0;
}

.quiz-disclaimer {
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 960px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 0.5rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline li {
    padding: 0 0 0 2.3rem;
  }

  .timeline li::before {
    top: 0.2rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .story-grid,
  .meld-grid,
  .how-detail,
  .journey-grid,
  .jefferson-intro,
  .jefferson-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jefferson-photo {
    max-width: 36rem;
  }

  .portrait {
    width: min(100%, 19rem);
  }

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

  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-photo {
    position: static;
  }

  .journey-photo img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 980px) {
  .site-nav .nav-link {
    display: none;
  }
}

@media (max-width: 720px) {
  .protect {
    grid-template-columns: minmax(0, 1fr);
  }

  .laurel {
    width: 4rem;
  }

  .laurel-left {
    left: -1.6rem;
  }

  .laurel-right {
    right: -1.6rem;
  }
}

@media (max-width: 520px) {
  .facts-grid,
  .criteria {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .quiz-inner {
    padding: 1.3rem 1.1rem 1.4rem;
  }

  .jeff-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .jeff-help li {
    padding: 1.15rem 1.1rem;
  }

  .contact-bubble {
    gap: 0.8rem;
    padding: 0.85rem 1.3rem 0.85rem 0.85rem;
  }

  .contact-icon {
    width: 2.8rem;
    height: 2.8rem;
  }

  .contact-icon svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .on-dark .is-email .contact-value {
    font-size: 1.08rem;
  }

  #faq {
    --section-art: none;
  }

  .quiz-step legend {
    font-size: 1.35rem;
  }

  .meld-big .now {
    font-size: 4.4rem;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Printing: show the contact bubbles even if the reader never scrolled to them. */
@media print {
  .reveal-ready .contact-bubble,
  .reveal-ready .contact-icon {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
