/* Berkeley Holiday Fund — site.css
   Design tokens and shared components. Edit values here, not in page files. */

:root {
  --ink: #16202E;
  --ink-soft: #3A4655;
  --muted: #5C6470;
  --paper: #F2F1EC;
  --paper-warm: #FAF9F5;
  --check: #DFE7DD;
  --rule: #C6C7BF;
  --rule-soft: #DEDED8;
  --stamp: #A63A2E;
  --stamp-dark: #7E2A20;

  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --wide: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--display);
  font-size: 0.9375rem;
}

.skip:focus {
  left: 0;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--measure);
}

.wide-text p {
  max-width: 46rem;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: block;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}

.small {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--tint {
  background: var(--paper-warm);
  border-block: 1px solid var(--rule-soft);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.section--ink a {
  color: var(--paper);
}

.section--ink .eyebrow {
  color: #9AA4B2;
}

.cols {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 48rem) {
  .cols--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cols--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cols--side {
    grid-template-columns: 15rem 1fr;
    align-items: start;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--give {
  background: var(--stamp);
  border-color: var(--stamp);
  color: #fff;
}

.btn--give:hover {
  background: var(--stamp-dark);
  border-color: var(--stamp-dark);
  color: #fff;
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
}

.btn--quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .btn--quiet {
  color: var(--paper);
  border-color: var(--paper);
}

.section--ink .btn--quiet:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Header ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.masthead__logo img {
  height: 46px;
  width: auto;
}

.masthead__logo {
  display: inline-flex;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}

.nav__list a {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav__list a:hover {
  border-bottom-color: var(--stamp);
}

.nav__list a[aria-current="page"] {
  border-bottom-color: var(--ink);
  font-weight: 600;
}

@media (max-width: 61.9375rem) {
  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .nav[data-open="true"] .nav__list {
    display: flex;
  }

  .nav__list li {
    border-bottom: 1px solid var(--rule-soft);
  }

  .nav__list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: none;
  }

  .nav__list .btn {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (min-width: 62rem) {
  .nav__toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}

.hero h1 {
  max-width: 18ch;
}

.hero .lede {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }

  .rise:nth-child(2) {
    animation-delay: 0.08s;
  }

  .rise:nth-child(3) {
    animation-delay: 0.16s;
  }

  .rise:nth-child(4) {
    animation-delay: 0.24s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- THE LEDGER (signature element) ---------- */
.ledger {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-block: 0.5rem;
  max-width: 44rem;
}

.ledger__caption {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.9rem 0.6rem;
}

.ledger__row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--rule-soft);
}

.ledger__row:first-of-type {
  border-top: none;
}

.ledger__label {
  font-family: var(--body);
  font-size: 1.0625rem;
}

.ledger__leader {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--rule);
  transform: translateY(-0.25rem);
  min-width: 1.5rem;
}

.ledger__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ledger__row--total .ledger__label {
  font-weight: 600;
}

.ledger__row--total {
  border-top: 1px solid var(--ink);
}

.ledger__row--zero .ledger__value {
  color: var(--stamp);
}

.ledger__note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 40rem;
}

.section--ink .ledger {
  border-color: var(--paper);
}

.section--ink .ledger__row {
  border-top-color: #2F3A49;
}

.section--ink .ledger__leader {
  border-bottom-color: #3E4959;
}

.section--ink .ledger__caption {
  color: #9AA4B2;
}

.section--ink .ledger__row--zero .ledger__value {
  color: #E08C7F;
}

.section--ink .ledger__note {
  color: #C3C9D2;
}

.section--ink .ledger__note a {
  color: #fff;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps>li {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem;
  display: grid;
  gap: 0.35rem 1.5rem;
}

@media (min-width: 40rem) {
  .steps>li {
    grid-template-columns: 4rem 1fr;
  }
}

.steps>li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--stamp);
  letter-spacing: -0.02em;
}

.steps h3,
.steps h4 {
  margin-bottom: 0.35rem;
}

.steps h4.step-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
  text-transform: none;
}

.steps p {
  margin-bottom: 0;
}

/* ---------- Voice / pull quote ---------- */
.voice {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0;
}

.voice+p {
  margin-top: 1.5rem;
}

blockquote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--stamp);
}

blockquote p {
  font-size: 1.125rem;
}

blockquote cite {
  font-family: var(--display);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  display: block;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: clamp(1.25rem, 3vw, 1.9rem);
}

.card h3 {
  margin-bottom: 0.5rem;
}

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

.card--check {
  background: var(--check);
  border-color: #C3D0C0;
}

/* ---------- Partner grid ---------- */
.partners {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.partner {
  background: var(--paper-warm);
  box-shadow: 0 0 0 1px var(--rule-soft);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  min-height: 9rem;
}

.partner__mark {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner__mark img {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.partner__mark--text {
  height: auto;
  min-height: 5rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--check);
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.partner__name {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.partner__name a {
  text-decoration: none;
}

.partner__name a:hover {
  text-decoration: underline;
}

/* ---------- Giving options ---------- */
.give {
  border-top: 1px solid var(--rule);
}

.give>details {
  border-bottom: 1px solid var(--rule);
}

.give>details>summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.give>details>summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--stamp);
}

.give>details[open]>summary::after {
  content: "\2212";
}

.give__body {
  padding-bottom: 1.75rem;
}

.give__body> :last-child {
  margin-bottom: 0;
}

.stripe-slot {
  border: 2px dashed var(--rule);
  border-radius: 2px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: var(--paper-warm);
}

/* ---------- Press list ---------- */
.press {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 46rem;
}

.press li {
  border-top: 1px solid var(--rule-soft);
  padding-block: 1.15rem;
  display: grid;
  gap: 0.2rem 1.5rem;
}

@media (min-width: 40rem) {
  .press li {
    grid-template-columns: 7rem 1fr;
  }
}

.press__date {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.press__title {
  font-size: 1.0625rem;
  margin: 0;
}

/* ---------- Roster ---------- */
.roster {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
  max-width: 40rem;
}

.roster li {
  break-inside: avoid;
  padding-block: 0.4rem;
  font-size: 1rem;
}

.roster strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  display: block;
}

.roster span {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.9375rem;
}

.colophon a {
  color: var(--paper);
  text-decoration-color: #5A6675;
}

.colophon a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.colophon h4,
.colophon__head {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9AA4B2;
  margin-bottom: 0.9rem;
}

.colophon ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.colophon li {
  padding-block: 0.3rem;
}

.colophon p {
  max-width: 24rem;
  color: #C3C9D2;
}

.colophon__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2F3A49;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: #9AA4B2;
  font-variant-numeric: tabular-nums;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.todo {
  background: #FFF4D6;
  border: 1px solid #E3C97A;
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  font-family: var(--display);
  font-size: 0.875rem;
  color: #6B4E06;
  margin-bottom: 1.5rem;
  max-width: 46rem;
}

.todo strong {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- Testimonial rotator ---------- */
.rotator {
  max-width: 46rem;
  margin-top: 2rem;
}

.rotator__viewport {
  display: grid;
}

.rotator__item {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--stamp);
}

.rotator__item[data-active] {
  visibility: visible;
  opacity: 1;
}

.rotator__item p {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  max-width: none;
  margin-bottom: 0.85rem;
}

.rotator__item cite {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.rotator__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.rotator__arrow {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rotator__arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.rotator__dots {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 auto;
  justify-content: center;
}

.rotator__dot {
  width: 2rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rotator__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.15s ease, transform 0.15s ease;
}

.rotator__dot:hover::before {
  background: var(--ink-soft);
}

.rotator__dot[aria-current="true"]::before {
  background: var(--stamp);
  transform: scale(1.4);
}

.rotator__count {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

@media (max-width: 30rem) {
  .rotator__count {
    display: none;
  }
}

/* ---------- Explore cards ---------- */
.explore {
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.explore .card p {
  flex: 1 1 auto;
}

.explore .card__go {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.explore .card__go a {
  text-decoration: none;
  border-bottom: 2px solid var(--stamp);
  padding-bottom: 2px;
}

.explore .card__go a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- Donation tiers ---------- */
.tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.tier {
  display: flex;
  flex-direction: column;
}

.tier__link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem 1.25rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tier__link:hover {
  background: var(--check);
  border-color: var(--ink);
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .tier__link:hover {
    transform: translateY(-2px);
  }
}

.tier__amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tier__name {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier__blurb {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0.85rem 0 0;
  max-width: none;
}

.tiers__note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Donate page: close the gap between the hero and the amount buttons so the
   giving options sit within reach on a laptop. */
.hero--tight {
  padding-block: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.section--tight {
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(3rem, 7vw, 5.5rem);
}

/* ============================================================
   APPEND THIS TO THE END OF assets/site.css
   (after the timeline styles you already pasted)

   Full-bleed hero with the copy overlaid on the photograph,
   using the diagonal scrim from the movement explorations.
   ============================================================ */

.hero-photo {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 24rem;
  overflow: hidden;
  background: var(--paper-deep, #eae6dd);
  margin-bottom: 0;
}

.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark at the left, clearing to the right, so the copy has a reliable
   background regardless of which photograph comes up. */
.hero-photo__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(20, 17, 14, 0.78) 0%,
      rgba(20, 17, 14, 0.62) 38%,
      rgba(20, 17, 14, 0.18) 74%,
      rgba(20, 17, 14, 0.06) 100%);
}

.hero-photo__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo__copy {
  width: min(56%, 34rem);
}

.hero-photo__copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero-photo__copy h1 {
  color: #fff;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.hero-photo__copy .lede {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  max-width: 38ch;
}

.hero-photo__copy .btn-row {
  margin-top: 1.75rem;
}

/* The quiet button needs a light outline to stay visible over a photograph. */
.hero-photo__copy .btn--quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.hero-photo__copy .btn--quiet:hover,
.hero-photo__copy .btn--quiet:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* Below roughly tablet width a 56% column is too narrow to read, and the
   diagonal scrim stops covering the text. Go full width and darken evenly. */
@media (max-width: 46em) {
  .hero-photo {
    aspect-ratio: auto;
    min-height: 0;
  }

  .hero-photo__img {
    position: absolute;
  }

  .hero-photo__scrim {
    background: linear-gradient(180deg,
        rgba(20, 17, 14, 0.55) 0%,
        rgba(20, 17, 14, 0.78) 100%);
  }

  .hero-photo__overlay {
    padding-block: clamp(3rem, 12vw, 5rem);
  }

  .hero-photo__copy {
    width: 100%;
  }
}

/* ============================================================
   BHF — STAT BLOCK, TIMELINE, ICONS, REVEAL
   Append to the END of assets/site.css.

   This is the block that never landed. It uses the tokens
   already declared in :root — no new custom properties.

   Does NOT touch .ledger. The ledger and its drawing leaders
   are working; leave that section alone.
   ============================================================ */

/* ---------- Stat block ----------
   Headline figures at display size, label centred beneath.
   Distinct from the ledger on purpose: stat block carries the
   argument, ledger does itemised accounting. */

.stat-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 44rem;
  margin: 0 0 2.75rem;
}

@media (min-width: 40rem) {
  .stat-block {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.stat {
  text-align: center;
}

.stat__fig {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  /* tabular figures keep the count-up from reflowing the label */
}

.stat__lab {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.section--ink .stat__fig {
  color: var(--paper);
}

.section--ink .stat__lab {
  color: #9AA4B2;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 46rem;
  border-left: 2px solid var(--rule);
}

.timeline__entry {
  position: relative;
  padding: 0 0 2.25rem 2rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline__entry:last-child {
  padding-bottom: 0;
}

.timeline__entry::before {
  content: "";
  position: absolute;
  left: -0.4375rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--stamp);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline__year {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.timeline__entry p {
  margin: 0;
  max-width: 40rem;
}

.section--ink .timeline {
  border-left-color: #3E4959;
}

.section--ink .timeline__year {
  color: var(--paper);
}

.section--ink .timeline__entry::before {
  box-shadow: 0 0 0 4px var(--ink);
}

/* ---------- Line icons ----------
   The SVGs have no intrinsic sizing rule, which is why they are
   rendering at full width. This constrains them. */

[data-icon] {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  max-width: 100%;
  flex: 0 0 auto;
}

[data-icon] svg,
svg[data-icon] {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

[data-icon] path,
[data-icon] line,
[data-icon] circle,
[data-icon] polyline,
svg[data-icon] path,
svg[data-icon] line,
svg[data-icon] circle,
svg[data-icon] polyline {
  fill: none;
  stroke: var(--stamp);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.section--ink [data-icon] path,
.section--ink [data-icon] line,
.section--ink [data-icon] circle,
.section--ink [data-icon] polyline {
  stroke: var(--paper);
}

/* Icons sitting alongside step text rather than above it */
.steps [data-icon] {
  width: 2.25rem;
  height: 2.25rem;
}

/* ---------- Scroll reveal ----------
   site.js sets [data-pending] on load and swaps to [data-shown]
   when the element enters view. These are the rules behind it. */

[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal][data-pending] {
  opacity: 0;
  transform: translateY(1rem);
}

[data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

.timeline__entry[data-pending] {
  opacity: 0;
  transform: translateY(0.75rem);
}

/* ---------- Reduced motion ----------
   Belt and braces. site.js already short-circuits, but if it
   fails to run, nothing should be left invisible. */

@media (prefers-reduced-motion: reduce) {

  [data-reveal],
  [data-reveal][data-pending],
  .timeline__entry,
  .timeline__entry[data-pending] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- No-JS fallback ----------
   If site.js never loads, [data-pending] is never set, so nothing
   here hides. Included as a note rather than a rule: the hiding
   is opt-in via the attribute, which is the correct direction. */



[data-icon] path {
  transition: none;
}

/* More air between the hero buttons and the line below them */
.hero-photo__copy .btn-row {
  margin-bottom: 2.5rem;
}

/* ---------- Icon line-draw ----------
   site.js stores each shape's length in --len and adds [data-drawn]
   to the [data-icon] span when it scrolls into view.

   Without JavaScript --len is never set, so the fallbacks leave every
   icon fully drawn. The transition sits only on the drawn state, so the
   initial hide is instant and only the draw-in animates. */

[data-icon] svg * {
  vector-effect: none;
  stroke-dasharray: var(--len, none);
  stroke-dashoffset: var(--len, 0);
}

[data-icon][data-drawn] svg * {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s ease;
}

[data-icon][data-drawn] svg *:nth-child(2) {
  transition-delay: 0.14s;
}

[data-icon][data-drawn] svg *:nth-child(3) {
  transition-delay: 0.28s;
}

[data-icon][data-drawn] svg *:nth-child(4) {
  transition-delay: 0.42s;
}

@media (prefers-reduced-motion: reduce) {
  [data-icon] svg * {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* ---------- Steps that carry an icon instead of a numeral ---------- */
.steps--icon>li::before {
  content: none;
}

.steps--icon>li>.icon {
  grid-column: 1;
}

/* ---------- Highlighted cards (Where the money goes) ---------- */
.card--highlight {
  border-top: 4px solid var(--stamp);
}

.card--highlight h3 {
  color: var(--stamp);
}