/* Self-hosted subset: IBM Plex Sans, variable 400-600. One family, no external requests. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/IBMPlexSans-cyrillic-ext-400.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/IBMPlexSans-cyrillic-400.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/IBMPlexSans-latin-ext-400.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/IBMPlexSans-latin-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* =========================================================================
   Tereshchenko Foundation - design system

   Direction: institutional restraint. The page speaks to a grant manager and
   an institutional partner as readily as to a private donor, so nothing here
   raises its voice: one neutral typeface, hierarchy carried by size and space
   rather than weight, a single warm accent reserved for actions, photography
   used as evidence rather than as drama.

   One typeface (IBM Plex Sans, variable 400-600), self-hosted. No external
   requests anywhere in this file.
   ========================================================================= */

:root {
  /* Surfaces ------------------------------------------------------------- */
  --bg:         #f7f8fa;   /* page */
  --surface:    #ffffff;   /* panels lifted off the page */
  --surface-2:  #edf0f4;   /* alternating section, still light */

  /* Ink ------------------------------------------------------------------ */
  --ink:        #14181f;
  --ink-2:      #47505e;   /* 7.6:1 on --bg */
  --muted:      #626b78;   /* 5.0:1 on --bg - the lightest text allowed */

  /* Institutional navy: the dark half of the page ------------------------ */
  --navy:       #1e3a5f;
  --navy-deep:  #16293f;
  --on-dark:    #e8ecf2;
  --on-dark-2:  #a9b6c7;   /* 5.6:1 on --navy */

  /* Accent - actions only. Never decoration, never whole surfaces. -------- */
  --accent:      #a16207;
  --accent-hi:   #8a5406;
  --accent-dark: #d9a441;  /* the accent, legible on navy */

  /* Hairlines ------------------------------------------------------------ */
  --line:       rgba(20, 24, 31, 0.14);
  --line-soft:  rgba(20, 24, 31, 0.08);
  --line-dark:  rgba(232, 236, 242, 0.22);

  /* Type ----------------------------------------------------------------- */
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: clamp(1rem, 0.975rem + 0.13vw, 1.0625rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --t-h3:   clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --t-h2:   clamp(1.625rem, 1.36rem + 1.05vw, 2.25rem);
  --t-h1:   clamp(2.125rem, 1.56rem + 2.3vw, 3.25rem);
  --t-num:  clamp(1.75rem, 1.32rem + 1.6vw, 2.5rem);

  /* Metrics -------------------------------------------------------------- */
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --block-y: clamp(72px, 9vw, 152px);
  --bar-h: 72px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.28, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

/* Photography is documentary evidence here, not a mood board: slightly
   desaturated so it sits inside the palette instead of competing with it. */
figure img { filter: saturate(0.84) contrast(1.02); }

figure { margin: 0; }
figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--muted);
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: var(--t-sm);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   Buttons - the only place the accent appears as a filled surface
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-hi); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--ink); }

.band-dark .btn-line, .band-coal .btn-line {
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.band-dark .btn-line:hover, .band-coal .btn-line:hover { border-color: var(--on-dark); }

.btn-sm { min-height: 38px; padding: 8px 18px; font-size: var(--t-sm); }
.btn-lg { min-height: 54px; padding: 15px 34px; width: 100%; }

/* =========================================================================
   Header
   ========================================================================= */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.top-bar.is-scrolled { border-bottom-color: var(--line); }

.bar-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Typographic wordmark. Two lines, no colour, no weight theatrics - the
   institution's name set in the same face as everything else. */
.logo {
  text-decoration: none;
  display: inline-block;
  line-height: 1.05;
  flex: none;
}
.logo-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.6875rem;
  font-weight: 450;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--accent); }

.bar-actions { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  color: var(--muted);
}
.lang { text-decoration: none; letter-spacing: 0.06em; }
.lang.is-current { color: var(--ink); font-weight: 500; }
.lang-sep { opacity: 0.5; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 24, 31, 0.4);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.nav-overlay.is-active { opacity: 1; }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(370px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--bar-h) + 28px) 32px 32px;
    background: var(--surface);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link:hover { border-bottom-color: var(--line-soft); }
  .bar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
  }
  .lang-switch { justify-content: flex-start; }
}

/* =========================================================================
   Section furniture
   ========================================================================= */

.block {
  padding-block: var(--block-y);
  position: relative;
}

.band-dark { background: var(--navy); color: var(--on-dark); }
.band-coal { background: var(--navy-deep); color: var(--on-dark); }

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.band-dark .eyebrow, .band-coal .eyebrow { color: var(--on-dark-2); }
/* The single stroke of accent in the section furniture. */
.eyebrow-sep { color: var(--accent); margin-inline: 7px; }
.band-dark .eyebrow-sep, .band-coal .eyebrow-sep { color: var(--accent-dark); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 5.5vw, 76px);
}
.section-title { font-size: var(--t-h2); }
.section-sub {
  margin-top: 22px;
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 40rem;
  font-weight: 400;
}
.band-dark .section-sub, .band-coal .section-sub { color: var(--on-dark-2); }

.rule {
  height: 0;
  margin: clamp(32px, 4vw, 52px) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* =========================================================================
   Hero - text-led. The photograph is contained and captioned, never a
   full-bleed dramatic plate.
   ========================================================================= */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(56px, 7.5vw, 116px) var(--gutter) clamp(56px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

/* With no photograph the grid would leave an empty half, so it collapses to
   one column and the text takes a measure that is still comfortable to read. */
.hero-grid-solo {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(64px, 9vw, 140px);
}
.hero-grid-solo .hero-body { max-width: 46rem; }
.hero-grid-solo .hero-title { max-width: 20ch; }

.hero-eyebrow { margin-bottom: 24px; }

.hero-title {
  font-size: var(--t-h1);
  font-weight: 450;
  line-height: 1.13;
  letter-spacing: -0.017em;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 26px;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 3.5vw, 42px);
}

.hero-note {
  margin-top: clamp(30px, 3.5vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 34rem;
}

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { max-width: none; }
}

/* =========================================================================
   Facts - the scale of the problem, stated on navy
   ========================================================================= */

.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.fact {
  background: var(--navy);
  padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px);
}
.fact-number {
  font-size: var(--t-num);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.fact-unit {
  font-size: 0.4em;
  font-weight: 450;
  letter-spacing: 0.04em;
  margin-left: 8px;
  color: var(--on-dark-2);
  vertical-align: 0.35em;
}
.fact-label {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark);
}
.fact-source {
  margin-top: 14px;
  font-size: var(--t-xs);
  line-height: 1.45;
  color: var(--on-dark-2);
}
.facts-note {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52rem;
}
.band-dark .facts-note, .band-coal .facts-note { color: var(--on-dark-2); }

/* =========================================================================
   Cards - the programmes
   ========================================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 2.6vw, 36px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 2.8vw, 36px);
  transition: border-color 0.25s var(--ease);
}
.card:hover { border-color: var(--line); }
.card-index {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.card-title { font-size: var(--t-h3); }
.card-text {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.62;
}
.card-points {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.card-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--muted);
}
.card-points li:last-child { margin-bottom: 0; }
.card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* =========================================================================
   Geography
   ========================================================================= */

.geo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.geo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.geo-item.is-base {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark);
}
.geo-tag {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* =========================================================================
   Project - the flagship block
   ========================================================================= */

.project-block { background: var(--surface-2); border-block: 1px solid var(--line); }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.project-lead {
  margin-top: 22px;
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-2);
}
.project-text {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.project-status {
  margin-top: clamp(28px, 3.2vw, 40px);
  border-top: 1px solid var(--line);
}
.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.status-row dt { font-size: var(--t-sm); color: var(--muted); }
.status-row dd {
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec { background: var(--surface); padding: 22px; }
.spec-title { font-size: 0.9375rem; font-weight: 500; }
.spec-text {
  margin-top: 8px;
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--muted);
}
.project-figure { margin-top: clamp(24px, 3vw, 36px); }
.project-figure img { border-radius: var(--radius); }

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

/* =========================================================================
   Steps
   ========================================================================= */

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 36px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.step-index {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding-top: 0.3em;
}
.step-body {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 44px);
  align-items: baseline;
}
.step-title { font-size: var(--t-h3); }
.step-text { color: var(--ink-2); font-size: 0.9375rem; }

@media (max-width: 760px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); }
  .step-body { grid-template-columns: 1fr; gap: 8px; }
}

/* =========================================================================
   Principles - the stated philosophy, and beside it the stated limits.
   The limits column carries the trust, so it gets the one solid rule on
   the page.
   ========================================================================= */

.principles-block { background: var(--surface-2); border-block: 1px solid var(--line); }

.credo {
  margin: 0 0 clamp(44px, 5.5vw, 76px);
  padding-left: clamp(20px, 2.6vw, 34px);
  border-left: 2px solid var(--accent);
  max-width: 46rem;
}
.credo p {
  font-size: clamp(1.1875rem, 1.03rem + 0.78vw, 1.625rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.011em;
  margin: 0;
}
.credo p + p { margin-top: 0.7em; color: var(--ink-2); }

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.principle-index {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  padding-top: 0.3em;
}
.principle-title { font-size: var(--t-h3); }
.principle-text {
  margin-top: 11px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 38rem;
}

.limits {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(26px, 2.8vw, 34px);
  position: sticky;
  top: calc(var(--bar-h) + 28px);
}
.limits-title { font-size: var(--t-h3); }
.limits-list { margin-top: 22px; }
.limits-list li {
  position: relative;
  padding: 0 0 14px 24px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.58;
}
.limits-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.limits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 11px;
  height: 1px;
  background: var(--accent);
}
.limits-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.58;
}

@media (max-width: 940px) {
  .principles-grid { grid-template-columns: 1fr; }
  .limits { position: static; }
}
@media (max-width: 560px) {
  .principle { grid-template-columns: 34px minmax(0, 1fr); }
}

/* =========================================================================
   Donate - the darkest surface on the page, and the only filled accent
   ========================================================================= */

.donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.66fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: start;
}
.donate-text {
  margin-top: 22px;
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--on-dark-2);
  max-width: 34rem;
}
.allocation {
  margin-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line-dark);
}
.allocation li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
}
.allocation-amount {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #fff;
}
.allocation-text { font-size: var(--t-sm); color: var(--on-dark-2); line-height: 1.55; }

.donate-panel {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
}
.donate-panel-label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.donate-note {
  margin-top: 18px;
  font-size: var(--t-xs);
  line-height: 1.55;
  color: var(--muted);
}
.donate-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.donate-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: var(--t-sm);
}
.donate-meta-label { color: var(--muted); }
.donate-meta-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.donate-hotline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}
.donate-hotline a {
  color: var(--accent);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.donate-hotline a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .donate-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Team
   ========================================================================= */

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.team-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.team-role {
  margin-top: 10px;
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-text {
  margin-top: 20px;
  color: var(--ink-2);
  line-height: 1.68;
  max-width: 38rem;
}
.priorities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line);
}
.priorities li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-figure { max-width: 340px; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.contact-list { border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row dt { font-size: var(--t-sm); color: var(--muted); }
.contact-row dd { font-size: 0.9375rem; line-height: 1.55; }
.contact-row a { color: var(--accent); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================================
   Prose (offer, 404)
   ========================================================================= */

.prose { max-width: 44rem; }
.prose-lead {
  margin-top: 22px;
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: clamp(36px, 4vw, 54px);
  font-size: var(--t-h3);
}
.prose h3 {
  margin-top: clamp(26px, 3vw, 36px);
  font-size: 1.0625rem;
}
.prose p { margin-top: 16px; color: var(--ink-2); }
.prose ul, .prose ol { margin-top: 16px; }
.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-2);
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.prose a { color: var(--accent); }

.block-404 { padding-block: clamp(88px, 12vw, 168px); }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding-block: clamp(52px, 6vw, 84px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-name { font-weight: 500; }
.footer-meta { margin-top: 6px; font-size: var(--t-sm); color: var(--on-dark-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.footer-nav a {
  font-size: var(--t-sm);
  color: var(--on-dark-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--on-dark); border-bottom-color: var(--accent-dark); }
.footer-credit {
  margin-top: clamp(24px, 3vw, 34px);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--on-dark-2);
  max-width: 46rem;
}
.footer-legal { margin-top: 14px; font-size: var(--t-xs); color: var(--on-dark-2); }

/* =========================================================================
   Reveal on scroll - a short, quiet fade. Nothing slides in from the side.
   ========================================================================= */

.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible, .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(n + 6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
  .top-bar, .nav-overlay, .cta-row, .donate-panel { display: none; }
  .band-dark, .band-coal, .site-footer, .fact { background: #fff; color: #000; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  body { background: #fff; }
}
