:root {
  --bg: #f3f2ee; --surface: #ffffff; --surface-soft: #f7f6f3; --text: #202830; --muted: #66707a;
  --line: #d8dde0; --brand: #5f7781; --brand-dark: #4e6670; --max: 1180px;
  --radius-lg: 12px; --radius-xl: 18px; --shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.95); border-bottom: 1px solid rgba(0,0,0,0.06); backdrop-filter: blur(8px); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 42px; height: 42px; border-radius: 10px; background: #dce3e5; display: grid; place-items: center; font-weight: 700; color: var(--brand-dark); }
.logo-text strong { display: block; font-size: 1rem; color: var(--brand-dark); }
.logo-text span { color: var(--muted); font-size: 0.9rem; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { font-size: 0.94rem; font-weight: 600; color: #2c353c; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--brand-dark); border-color: var(--brand-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #2c353c; margin: 4px 0; }

.hero { padding: 32px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; font-weight: 700; color: var(--brand); }
.hero h1, .section-head h2, .content-block h2, .page-title h1 { margin: 0 0 18px; line-height: 1.08; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.hero-text, .content-block p, .page-intro, .section-head p, .group-copy p, .card p, .panel p, .join-box p, .publication-item p, .media-body p, .video-caption p { color: #37424a; line-height: 1.75; }
.hero-card, .panel, .card, .join-box, .publication-item, .group-item, .logo-box, .media-card, .video-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card { min-height: 360px; border-radius: var(--radius-xl); overflow: hidden; }
.hero-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--brand-dark); color: white; }
.btn-secondary { border: 1px solid var(--line); background: white; }

.band { background: var(--brand); }
.crumb { display: inline-block; padding: 14px 34px; background: var(--brand-dark); color: white; font-weight: 600; border-radius: 0 0 12px 12px; }
.section { padding: 54px 0; }
.alt-bg { background: rgba(255,255,255,0.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.panel, .content-block, .card, .join-box, .publication-item, .group-item { border-radius: var(--radius-xl); }
.panel, .card, .join-box, .publication-item, .group-item { padding: 28px; }
.panel-title { margin: 0 0 18px; font-size: 1.2rem; }
.stack-list { display: grid; gap: 14px; }
.stack-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface-soft); }
.stack-item h3 { margin: 0 0 8px; font-size: 1rem; }

.stats-grid, .logo-grid, .cards-grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.stat-card { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 18px; }
.stat-card strong { display: block; color: var(--brand-dark); font-size: 1.6rem; margin-bottom: 6px; }
.logo-grid { grid-template-columns: repeat(4, 1fr); }
.logo-grid-partners { grid-template-columns: repeat(4, 1fr); }
.logo-box { min-height: 110px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head h2, .content-block h2, .page-title h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero { padding: 42px 0 24px; }
.page-title { max-width: 760px; }
.page-title p { margin: 0; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card h3, .join-box h3, .publication-item h3 { margin-top: 0; }

.group-list { display: grid; gap: 18px; }
.group-item { display: grid; grid-template-columns: 170px 1fr 120px; gap: 26px; align-items: start; scroll-margin-top: 110px; }
.person-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; background: #d9d9d9; }
.person-card h3 { margin: 0 0 4px; font-size: 1rem; }
.person-card p, .person-card a { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.group-copy h2 { margin: 0 0 10px; font-size: 1.8rem; }
.group-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 2px solid #1f2933; padding-bottom: 8px; margin-bottom: 14px; }
.group-meta span { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.group-logo { display: flex; justify-content: center; align-items: center; min-height: 90px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; padding: 12px; }

.about-hero { background: #07090b; padding: 40px 0 0; }
.about-top { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: center; }
.about-image-card { background: #0d1114; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.about-image-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.about-intro { color: white; padding: 8px 0 24px; }
.about-intro h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.about-intro p { color: rgba(255,255,255,0.9); line-height: 1.8; }
.about-intro .eyebrow { color: rgba(255,255,255,0.7); }
.about-banner { background: linear-gradient(90deg, #02202b 0%, #012538 50%, #032033 100%); color: white; }
.about-banner-inner { min-height: 180px; display: grid; place-items: center; text-align: center; padding: 30px 0; }
.about-banner-inner h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-banner-inner p { margin: 0; max-width: 720px; color: rgba(255,255,255,0.86); }
.narrow-content { max-width: 980px; }
.narrow-content h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3rem); }
.narrow-content p { max-width: 760px; line-height: 1.8; color: #2f3941; }

.media-grid, .video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.media-card, .video-card { border-radius: var(--radius-xl); overflow: hidden; }
.media-image { width: 100%; height: 320px; object-fit: cover; background: #d9d9d9; }
.media-body, .video-caption { padding: 24px; }
.media-body h3, .video-caption h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.media-meta { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.panorama { width: 100%; margin: 20px 0 30px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panorama img { width: 100%; height: 320px; object-fit: cover; }
.video-player { width: 100%; height: 260px; object-fit: cover; background: #000; }

.funding-banner { width: 100%; background: #ffffff; display: flex; justify-content: center; padding: 12px 0; border-top: 1px solid var(--line); }
.funding-banner img { max-width: 420px; height: auto; }
.funding-text { text-align: center; font-size: 0.85rem; color: #333; background: #ffffff; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); }
.footer-bottom { background: #f7f6f3; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .hero-grid, .two-col, .group-item, .about-top { grid-template-columns: 1fr; }
  .logo-grid, .logo-grid-partners, .cards-grid.two, .stats-grid, .media-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner, .section-head, .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: inline-block; align-self: flex-end; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 10px; padding-bottom: 16px; }
  .main-nav.is-open { display: flex; }
  .logo-grid, .logo-grid-partners, .cards-grid.two, .stats-grid, .media-grid, .video-grid { grid-template-columns: 1fr; }
  .panel, .card, .join-box, .publication-item, .group-item { padding: 22px; }
  .group-meta { flex-direction: column; align-items: flex-start; }
  .media-image, .panorama img, .video-player { height: 220px; }
  .funding-banner img { width: auto; max-width: 20px; height: auto; }
}
.funding-banner img {
  width: auto;
  max-width: 260px;
  height: auto;
}
.group-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  padding: 12px;
  background: #fff;
}

.logo-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.logo-link img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* ===== IMPACT PAGE REWORK ===== */

.impact-hero {
  padding: 42px 0 32px;
}

.impact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.impact-hero-copy {
  max-width: 700px;
}

.impact-intro {
  margin-bottom: 22px;
  line-height: 1.7;
}

.impact-outcomes {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
}

.impact-outcomes-lead {
  font-weight: 700;
  margin-bottom: 10px;
}

.impact-list {
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.impact-diagram-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.impact-diagram-image {
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
  background: #f4f4f4;
}

.impact-diagram-card figcaption {
  padding: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.impact-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.impact-process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.impact-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.impact-step-number {
  display: inline-block;
  font-weight: bold;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .impact-hero-grid,
  .impact-summary {
    grid-template-columns: 1fr;
  }

  .impact-process {
    grid-template-columns: 1fr;
  }
}
