/* =====================================================================
   JOHN WILLIAM FOSTER — Horton-in-Ribblesdale Dole Charities
   Charity 219863 · Brutalist Editorial · Powder Sky & Deep Ink
   ===================================================================== */

:root {
  --ink: #0D1A2A;
  --soft: #DCE6EC;
  --accent: #2F5C7A;
  --accent-2: #163E58;
  --charcoal: #0A1422;
  --grey: #56646E;
  --hairline: #C2CDD5;
  --cream: #F4EEDC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover, a:focus-visible { color: var(--accent-2); }

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

/* ---------- Type utilities ---------- */
.font-display { font-family: 'EB Garamond', Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.005em; }
.font-mono { font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace; }

.text-balance { text-wrap: balance; }

/* ---------- Brutalist 12-col grid (visible hairlines) ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  position: relative;
}
.grid-12.hairlines > *:not(:first-child) { border-left: 1px solid var(--hairline); }

@media (max-width: 768px) {
  .grid-12 { grid-template-columns: repeat(4, 1fr); }
  .grid-12.hairlines > *:not(:first-child) { border-left: none; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-dark { color: var(--soft); }
.eyebrow.on-dark::before { background: var(--soft); }

/* ---------- Buttons (sharp, no rounding) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  font-weight: 500;
}
.btn-primary { background: var(--ink); color: var(--soft); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); color: var(--soft); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: var(--soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-2); }
.btn-ghost-light { background: transparent; color: var(--soft); border: 1px solid rgba(220,230,236,0.6); }
.btn-ghost-light:hover { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  background: transparent;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
  color: var(--soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: var(--soft);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.site-header .nav-link {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: inherit;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.site-header .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
}
.site-header .brand-mark {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.site-header .brand-mark .small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}
.site-header.solid-default {
  background: var(--soft);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

/* Hamburger */
.hamburger {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
}
@media (max-width: 900px) {
  .hamburger { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--soft);
    color: var(--ink);
    padding: 24px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    gap: 12px;
  }
  .site-nav.is-open .nav-link { color: var(--ink) !important; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 620px;
  overflow: hidden;
  color: var(--soft);
}
.hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,26,42,0.20) 0%, rgba(13,26,42,0.05) 35%, rgba(13,26,42,0.65) 100%);
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  max-width: 1400px;
  margin: 0 auto;
}
.hero h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin: 18px 0 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: 18px;
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.55;
  color: rgba(244,238,220,0.92);
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}
.hero .scroll-indicator i { font-size: 14px; }

/* Inner page hero (shorter) */
.hero.hero-inner { height: 60vh; min-height: 420px; }
.hero.hero-inner h1 { font-size: clamp(36px, 5vw, 58px); }

/* ---------- Floating glass / flat cards over hero ---------- */
.hero-floats {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: -100px auto 0;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}
.hero-float-card {
  /* Brutalist pack prohibits glass; flat hairline-bordered cards on soft */
  background: var(--soft);
  border: 1px solid var(--ink);
  padding: 28px;
  grid-column: span 5;
}
.hero-float-card:nth-child(2) {
  grid-column: 8 / span 5;
  background: var(--ink);
  color: var(--soft);
  border-color: var(--ink);
}
@media (max-width: 900px) {
  .hero-floats { grid-template-columns: 1fr; margin-top: -50px; }
  .hero-float-card, .hero-float-card:nth-child(2) { grid-column: 1 / -1; }
}
.stat-display {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

/* ---------- Section wrappers ---------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section.tight { padding: 64px 0; }
.section.dark { background: var(--charcoal); color: var(--soft); }
.section.ink { background: var(--ink); color: var(--soft); }
.section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw;
}
.section-head { margin-bottom: 56px; }
.section-head .display {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 14px 0 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.section-head .standfirst {
  font-size: 18px;
  max-width: 60ch;
  margin-top: 18px;
  color: var(--grey);
}
.section.dark .section-head .standfirst { color: rgba(220,230,236,0.74); }

/* ---------- Value cards (Mission overview) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.value-card {
  grid-column: span 4;
  padding: 36px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--soft);
}
.value-card.feature {
  background: var(--ink);
  color: var(--soft);
}
.value-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  margin: 16px 0 14px;
  line-height: 1.1;
  font-weight: 500;
}
.value-card p { margin: 0; color: var(--grey); font-size: 15px; }
.value-card.feature p { color: rgba(244,238,220,0.82); }
@media (max-width: 900px) { .value-card { grid-column: 1 / -1; } }

/* ---------- Initiative cards ---------- */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.initiative-card {
  grid-column: span 4;
  background: var(--soft);
  display: flex;
  flex-direction: column;
}
.initiative-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
.initiative-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.initiative-card:hover .img-wrap img { transform: scale(1.03); }
.initiative-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.initiative-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  margin: 14px 0 12px;
  font-weight: 500;
  line-height: 1.1;
}
.initiative-card p { margin: 0 0 18px; color: var(--grey); font-size: 15px; flex: 1; }
.initiative-card .read-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.initiative-card .read-more:hover { color: var(--accent-2); }
@media (max-width: 900px) { .initiative-card { grid-column: 1 / -1; } }

/* ---------- Story cards ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
.story-card { grid-column: span 4; }
.story-card .portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 22px;
}
.story-card .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(85%) contrast(1.05); }
.story-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin: 12px 0 12px;
  max-width: 20ch;
}
.story-card p { color: var(--grey); font-size: 15px; margin: 0 0 14px; }
.story-card .read-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
@media (max-width: 900px) { .story-card { grid-column: 1 / -1; } }

/* ---------- CSS Bar chart ---------- */
.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
  align-items: end;
  height: 320px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0;
  margin: 28px 0 16px;
}
.bar-chart .bar {
  position: relative;
  background: var(--accent);
  width: 100%;
  height: 0;
  transition: height 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-chart .bar .val {
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.bar-chart .bar .yr {
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.06em;
}
.bar-chart-wrap { padding-bottom: 36px; }
@media (max-width: 600px) {
  .bar-chart { gap: 12px; height: 240px; }
  .bar-chart .bar .val, .bar-chart .bar .yr { font-size: 9px; }
}

/* ---------- Events row ---------- */
.events-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
.event-card { display: flex; padding: 24px; border-right: 1px solid var(--ink); }
.event-card:last-child { border-right: none; }
.event-card .date-block {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  line-height: 1.35;
  width: 110px;
  padding-right: 18px;
  border-right: 1px solid var(--hairline);
  flex-shrink: 0;
  color: var(--accent);
}
.event-card .date-block .day {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 36px;
  display: block;
  margin: 2px 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.event-card .body { padding-left: 18px; }
.event-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.15;
}
.event-card p { margin: 0; color: var(--grey); font-size: 14px; }
.event-card .venue { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 6px; display: block; }
@media (max-width: 900px) {
  .events-row { grid-template-columns: 1fr; }
  .event-card { border-right: none; border-bottom: 1px solid var(--ink); }
  .event-card:last-child { border-bottom: none; }
}

/* ---------- Partners marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 32px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.marquee-track {
  display: flex;
  align-items: center;
  animation: scroll-left 28s linear infinite;
  width: max-content;
}
/* margin-right on every img (including the last) — keeps the spacing uniform so translateX(-50%) lands exactly on the start of the duplicated set and the loop is seamless. Using `gap` here would leave the last image with no trailing space, causing a ~40px snap on each cycle. */
.marquee-track img { height: 56px; width: auto; opacity: 0.78; filter: grayscale(100%); margin-right: 80px; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Newsletter card (flat brutalist) ---------- */
.newsletter-card {
  background: var(--ink);
  color: var(--soft);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter-card h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.08;
  margin: 14px 0 16px;
  max-width: 16ch;
}
.newsletter-card p { color: rgba(220,230,236,0.78); margin: 0; }
.newsletter-form { display: flex; gap: 0; border: 1px solid var(--soft); }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--soft);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(220,230,236,0.45); }
.newsletter-form button {
  background: var(--soft);
  color: var(--ink);
  border: none;
  padding: 16px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent); color: var(--soft); }
@media (max-width: 900px) {
  .newsletter-card { grid-template-columns: 1fr; padding: 36px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--soft);
  padding: 80px 0 28px;
}
.site-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220,230,236,0.6);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--soft); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand .name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
}
.footer-brand .reg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(220,230,236,0.55);
  display: block;
  margin-top: 14px;
}
.footer-brand p { color: rgba(220,230,236,0.74); font-size: 14px; margin: 14px 0 0; max-width: 36ch; }
.footer-brand address {
  font-style: normal;
  color: rgba(220,230,236,0.74);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.6;
}
.social-row { display: flex; gap: 16px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(220,230,236,0.3);
  color: var(--soft);
}
.social-row a:hover { background: var(--soft); color: var(--ink); border-color: var(--soft); }
.footer-bar {
  border-top: 1px solid rgba(220,230,236,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(220,230,236,0.55);
}
.footer-bar a { color: rgba(220,230,236,0.7); text-decoration: none; }
.footer-bar a:hover { color: var(--soft); }
.footer-bar .left, .footer-bar .right { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 24px 6vw 0;
  max-width: 1400px;
  margin: 0 auto;
}
.breadcrumbs a { color: var(--grey); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Page title block ---------- */
.page-title {
  padding: 56px 6vw;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--hairline);
}
.page-title h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  margin: 18px 0 22px;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.page-title .standfirst {
  font-size: 19px;
  max-width: 60ch;
  color: var(--grey);
  line-height: 1.55;
}

/* ---------- Prose ---------- */
.prose { max-width: 64ch; font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-family: 'EB Garamond', Georgia, serif; font-size: 32px; font-weight: 500; line-height: 1.1; margin: 48px 0 18px; }
.prose h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; margin: 36px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose blockquote {
  margin: 36px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  font-style: italic;
}
.prose a { color: var(--accent); }

/* ---------- Drop cap ---------- */
.drop-cap::first-letter {
  font-family: 'EB Garamond', Georgia, serif;
  float: left;
  font-size: 4em;
  line-height: 0.85;
  margin: 6px 6px 0 0;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
  margin: 56px 0;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
  max-width: 28ch;
  font-weight: 400;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--grey);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.timeline li:last-child { border-bottom: 1px solid var(--hairline); }
.timeline .yr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}
.timeline .body h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
  line-height: 1.2;
}
.timeline .body p { color: var(--grey); margin: 0; font-size: 15px; }
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Trustees grid ---------- */
.trustees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trustee .portrait { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 14px; }
.trustee .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(85%) contrast(1.05); }
.trustee h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 20px; font-weight: 500; margin: 4px 0 4px; line-height: 1.15; }
.trustee .role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.trustee p { font-size: 14px; color: var(--grey); margin: 10px 0 0; }
@media (max-width: 900px) { .trustees { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trustees { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item {
  border-bottom: 1px solid var(--ink);
  background: var(--soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  position: relative;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\002B";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 220ms ease;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .answer { padding: 0 56px 24px 0; color: var(--grey); font-size: 16px; line-height: 1.65; }
.faq-item .answer p { margin: 0 0 14px; }
.faq-item .answer p:last-child { margin: 0; }

/* ---------- Donate tiles ---------- */
.donate-form {
  background: var(--soft);
  border: 1px solid var(--ink);
  padding: 36px;
}
.donate-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); margin-bottom: 24px; }
.donate-tile {
  padding: 22px;
  text-align: center;
  border-right: 1px solid var(--ink);
  cursor: pointer;
  background: var(--soft);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  position: relative;
  transition: background 180ms ease, color 180ms ease;
}
.donate-tile:last-child { border-right: none; }
.donate-tile:hover { background: var(--ink); color: var(--soft); }
.donate-tile.is-selected { background: var(--ink); color: var(--soft); }
.donate-tile.is-selected::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 32px; height: 3px; background: var(--accent); }
.donate-tile small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; color: var(--grey); font-weight: 400; }
.donate-tile.is-selected small { color: rgba(220,230,236,0.7); }
@media (max-width: 600px) { .donate-tiles { grid-template-columns: repeat(2, 1fr); } .donate-tile:nth-child(2) { border-right: none; } .donate-tile:nth-child(1), .donate-tile:nth-child(2) { border-bottom: 1px solid var(--ink); } }

.toggle-row { display: flex; border: 1px solid var(--ink); margin-bottom: 20px; }
.toggle-row label { flex: 1; padding: 14px; text-align: center; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.toggle-row input[type="radio"] { display: none; }
.toggle-row input[type="radio"]:checked + label { background: var(--ink); color: var(--soft); }

label.field { display: block; margin-bottom: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
label.field input, label.field textarea, label.field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
}
label.field input:focus, label.field textarea:focus, label.field select:focus { border-color: var(--accent); }
label.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; color: var(--grey); }
.checkbox-row input { margin-top: 4px; }
.amount-summary { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 12px 0 18px; padding: 12px; border-top: 1px solid var(--hairline); }

@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Progress rail ---------- */
.progress-rail {
  width: 100%;
  height: 6px;
  background: var(--hairline);
  position: relative;
  margin: 12px 0;
}
.progress-rail .progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,26,42,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  max-width: 560px;
  width: 100%;
  padding: 40px 40px 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 280ms ease;
  border-radius: 0;
}
.modal-backdrop.is-open .modal-card { transform: translateY(0); }
.modal-card .close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  width: 36px; height: 36px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-card .close:hover { color: var(--accent); }
.modal-card .eyebrow { margin-bottom: 14px; }
.modal-card h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
}
.modal-card .body { color: var(--ink); font-size: 16px; line-height: 1.6; }
.modal-card .body p { margin: 0 0 14px; }
.modal-card .body .receipt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 12px 14px;
  margin: 14px 0;
  color: var(--grey);
}
.modal-card .cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 18px; left: 18px; right: 18px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--soft);
  padding: 22px 24px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 18px;
  border-left: 4px solid var(--accent);
}
.cookie-banner.is-visible { display: flex; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: 14px; flex: 1; min-width: 260px; }
.cookie-banner .cta { display: flex; gap: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Map ---------- */
.map-embed { display: block; margin: 2rem 0; }
.map-embed iframe { width: 100%; height: 480px; border: 1px solid var(--hairline); display: block; }
.map-embed figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px; color: var(--grey); }
.skip-map { /* uses .skip-link rules */ }
@media (max-width: 640px) { .map-embed iframe { height: 320px; } }

/* ---------- Generic helpers ---------- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 6vw; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 56px 0; }
.eyebrow-block { margin-bottom: 16px; }

.cta-strip {
  padding: 72px 0;
  background: var(--ink);
  color: var(--soft);
  text-align: center;
}
.cta-strip h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  margin: 16px auto 22px;
  max-width: 22ch;
}
.cta-strip .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.in-short {
  background: var(--ink);
  color: var(--soft);
  padding: 28px 32px;
  margin: 0 0 36px;
  border-left: 4px solid var(--accent);
}
.in-short h2 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; color: rgba(220,230,236,0.7); font-weight: 500; }
.in-short ul { margin: 0; padding-left: 22px; }
.in-short li { margin-bottom: 6px; font-size: 15px; }

.theory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0;
  border: 1px solid var(--ink);
}
.theory-block { padding: 28px; border-right: 1px solid var(--ink); position: relative; }
.theory-block:last-child { border-right: none; }
.theory-block .step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.theory-block h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; font-weight: 500; margin: 8px 0 10px; line-height: 1.15; }
.theory-block p { color: var(--grey); font-size: 14px; margin: 0; }
.theory-block:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--soft);
  color: var(--accent);
  padding: 2px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}
@media (max-width: 700px) {
  .theory-grid { grid-template-columns: 1fr; }
  .theory-block { border-right: none; border-bottom: 1px solid var(--ink); }
  .theory-block:last-child { border-bottom: none; }
  .theory-block:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -10px; transform: translateX(-50%); }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin: 36px 0;
}
.kpi {
  padding: 28px;
  border-right: 1px solid var(--ink);
}
.kpi:last-child { border-right: none; }
.kpi .num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}
.kpi .lbl { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2n) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--ink); }
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin: 32px 0;
}
.partner-list .item {
  padding: 32px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--soft);
}
.partner-list .item:nth-child(4n) { border-right: none; }
.partner-list .item img { height: 48px; margin: 0 auto 18px; filter: grayscale(100%); }
.partner-list .item h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 20px; font-weight: 500; margin: 0 0 8px; }
.partner-list .item p { font-size: 13px; color: var(--grey); margin: 0; }
@media (max-width: 900px) { .partner-list { grid-template-columns: repeat(2, 1fr); } .partner-list .item:nth-child(2n) { border-right: none; } }
@media (max-width: 500px) { .partner-list { grid-template-columns: 1fr; } .partner-list .item { border-right: none !important; } }

.report-list { border-top: 1px solid var(--ink); }
.report-list .row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.report-list .row .yr { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.report-list .row .title { font-family: 'EB Garamond', Georgia, serif; font-size: 20px; font-weight: 500; }
.report-list .row .meta { font-size: 13px; color: var(--grey); display: block; margin-top: 4px; font-family: 'IBM Plex Sans', sans-serif; }
@media (max-width: 600px) {
  .report-list .row { grid-template-columns: 1fr; gap: 8px; }
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
.resource-list .row {
  padding: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.resource-list .row:nth-child(2n) { border-right: none; }
.resource-list .row .yr { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.resource-list .row .title { font-family: 'EB Garamond', Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.15; margin: 4px 0; }
.resource-list .row p { color: var(--grey); font-size: 14px; margin: 0 0 12px; }
.resource-list .row a.cta { align-self: flex-start; }
@media (max-width: 700px) { .resource-list { grid-template-columns: 1fr; } .resource-list .row { border-right: none; } }

/* ---------- Testimonials carousel + listing ---------- */
.testimonial-track {
  display: flex;
  gap: 32px;
  overflow: hidden;
  position: relative;
}
.testimonial-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: center;
}
.testimonial-card .portrait { aspect-ratio: 1 / 1; overflow: hidden; }
.testimonial-card .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(85%) contrast(1.05); }
.testimonial-card blockquote { margin: 0; font-family: 'EB Garamond', Georgia, serif; font-size: 26px; line-height: 1.3; font-style: italic; font-weight: 400; }
.testimonial-card cite { display: block; margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); font-style: normal; }

.testimonial-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 32px; }
.testimonial-list .item { background: var(--soft); border: 1px solid var(--hairline); padding: 36px; }
.testimonial-list .item .portrait { width: 88px; height: 88px; overflow: hidden; margin-bottom: 18px; }
.testimonial-list .item .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(85%) contrast(1.05); }
.testimonial-list .item blockquote { font-family: 'EB Garamond', Georgia, serif; font-size: 19px; line-height: 1.4; margin: 0 0 14px; font-style: italic; }
.testimonial-list .item cite { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); font-style: normal; }
@media (max-width: 800px) {
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-list { grid-template-columns: 1fr; }
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.news-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.news-card:hover .img-wrap img { transform: scale(1.03); }
.news-card h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; margin: 8px 0 10px; }
.news-card .meta { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.news-card p { color: var(--grey); font-size: 15px; margin: 0 0 12px; }
.news-card a.read-more { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.article-meta {
  display: flex;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 36px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}

.event-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.event-side { background: var(--soft); border: 1px solid var(--ink); padding: 28px; align-self: start; position: sticky; top: 100px; }
.event-side h4 { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 6px; color: var(--accent); }
.event-side .fact { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.event-side .fact:last-child { border-bottom: none; }
@media (max-width: 900px) { .event-detail { grid-template-columns: 1fr; } .event-side { position: static; } }

.volunteer-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--ink); }
.role-item { padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.role-item:nth-child(2n) { border-right: none; }
.role-item h3 { font-family: 'EB Garamond', Georgia, serif; font-size: 24px; font-weight: 500; margin: 6px 0 10px; line-height: 1.15; }
.role-item .meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.role-item p { color: var(--grey); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 700px) { .volunteer-roles { grid-template-columns: 1fr; } .role-item { border-right: none; } }

.notice {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink);
  margin: 24px 0;
}

.tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  color: var(--accent);
  margin-right: 6px;
}

/* small util */
.text-grey { color: var(--grey); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.uppercase-mono { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
