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

:root {
  --forest: #053827;
  --emerald: #0F5C46;
  --teal: #1F7A63;
  --gray-darkest: #1C1F1D;
  --gray-dark: #2E3330;
  --gray-mid: #4A4F4C;
  --gray-light: #F2F3F2;
  --gray-border: #D6D9D7;
  --slate: #6B706D;
  --white: #FFFFFF;
  --accent: #C9862E;
  --accent-soft: #F5E6D3;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--gray-dark);
  background: var(--gray-border);
}

.site-wrap {
  max-width: 1500px;
  margin: 0 auto;
  background: var(--white);
  border-left: 1px solid var(--gray-mid);
  border-right: 1px solid var(--gray-mid);
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  background: var(--forest);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 102px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 33px;
  font-weight: normal;
  font-family: Georgia, serif;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-glyph {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 15px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-active { color: var(--accent); }

/* ── PAGE SYSTEM ──────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--forest);
  padding: 3.5rem 2.5rem 3rem;
  color: white;
  border-bottom: 2px solid var(--emerald);
}
.hero-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
  font-family: Arial, sans-serif;
}
.hero h1 {
  font-size: 34.5px;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  max-width: 760px;
  font-family: Georgia, serif;
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.75rem;
  max-width: 700px;
  font-family: Arial, sans-serif;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: white;
  color: var(--forest);
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); color: rgba(255,255,255,0.85); }

/* ── SECTION SYSTEM ───────────────────────────────── */
.section {
  padding: 2.5rem 2.5rem;
  background: var(--white);
}
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--gray-dark); color: white; }

.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
  font-family: Arial, sans-serif;
  display: block;
}
.section-dark .section-label { color: rgba(255,255,255,0.3); }

h2 {
  font-size: 23px;
  font-weight: normal;
  font-family: Georgia, serif;
  color: var(--gray-dark);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.section-dark h2 { color: white; }

.section-sub {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 700px;
  font-family: Arial, sans-serif;
}
.section-dark .section-sub { color: rgba(255,255,255,0.45); }

.divider { height: 1px; background: var(--gray-border); }

/* ── SERVICES ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
}
.service-card {
  background: white;
  padding: 1.1rem 1.1rem;
  border-right: 1px solid var(--gray-border);
}
.service-card:last-child { border-right: none; }
.service-num {
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: monospace;
  letter-spacing: 0.04em;
}
.service-card h3 {
  font-size: 16px;
  font-weight: normal;
  font-family: Georgia, serif;
  color: var(--gray-dark);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
  font-family: Arial, sans-serif;
}

/* ── MISSION ──────────────────────────────────────── */
.mission-quote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.1rem;
  margin-bottom: 1.25rem;
}
.mission-quote p {
  font-size: 18.5px;
  font-style: italic;
  color: var(--gray-dark);
  line-height: 1.5;
  font-family: Georgia, serif;
}
.body-copy {
  font-size: 15.5px;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 700px;
  font-family: Arial, sans-serif;
}

/* ── PHOTO PLACEHOLDERS ───────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}
.photo-slot {
  border-radius: 4px;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.photo-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  font-size: 12.5px;
  color: var(--slate);
  font-family: Arial, sans-serif;
  font-style: italic;
  margin-top: 6px;
  text-align: center;
}

/* ── WHO WE SERVE ─────────────────────────────────── */
.who-list { list-style: none; border: 1px solid var(--gray-border); border-radius: 4px; overflow: hidden; }
.who-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--gray-border);
  background: white;
}
.who-item:last-child { border-bottom: none; }
.who-label {
  font-size: 15px;
  font-family: Georgia, serif;
  color: var(--gray-dark);
  min-width: 180px;
}
.who-desc {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.55;
  font-family: Arial, sans-serif;
}

/* ── TEAM ─────────────────────────────────────────── */
.team-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 840px;
}
.team-photo {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.team-name {
  font-size: 18.5px;
  font-family: Georgia, serif;
  color: var(--gray-dark);
  font-weight: normal;
  margin-bottom: 3px;
}
.team-title {
  font-size: 14px;
  color: var(--slate);
  font-family: Arial, sans-serif;
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}
.team-bio {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.65;
  font-family: Arial, sans-serif;
  max-width: 700px;
}
.team-tag {
  display: inline-block;
  background: white;
  color: var(--gray-mid);
  border: 1px solid var(--gray-border);
  font-size: 12px;
  font-family: Arial, sans-serif;
  padding: 2px 9px;
  border-radius: 2px;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ── FUNDERS & PARTNERS ───────────────────────────── */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.partner-tag {
  display: inline-block;
  background: white;
  color: var(--gray-dark);
  border: 1px solid var(--gray-border);
  font-size: 13px;
  font-family: Arial, sans-serif;
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: 0.01em;
}

/* ── CTA ──────────────────────────────────────────── */
.cta-section {
  background: var(--gray-dark);
  padding: 2.75rem 2.5rem;
  color: white;
}
.cta-section h2 { font-size: 25.5px; font-family: Georgia, serif; margin-bottom: 0.5rem; color: white; font-weight: normal; }
.cta-section p { font-size: 15px; color: rgba(255,255,255,0.45); margin-bottom: 1.5rem; max-width: 700px; line-height: 1.65; font-family: Arial, sans-serif; }
.cta-note {
  margin-top: 1rem;
  font-size: 14px;
  color: rgba(255,255,255,0.28);
  font-family: Arial, sans-serif;
  font-style: italic;
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--gray-darkest);
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-logo { font-size: 15px; font-family: Georgia, serif; color: rgba(255,255,255,0.45); }
footer p { font-size: 12.5px; color: rgba(255,255,255,0.2); font-family: Arial, sans-serif; }

/* ── PUBLICATIONS PAGE ────────────────────────────── */
.pub-intro {
  font-size: 15.5px;
  color: var(--gray-mid);
  line-height: 1.7;
  max-width: 700px;
  font-family: Arial, sans-serif;
  margin-bottom: 2rem;
}
.pub-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 14px;
  font-family: Arial, sans-serif;
  padding: 5px 14px;
  border-radius: 2px;
  border: 1px solid var(--gray-border);
  background: white;
  color: var(--gray-mid);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.filter-btn:hover { background: var(--gray-light); }
.filter-btn.active {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}

.pub-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--gray-border); border-radius: 4px; overflow: hidden; }
.pub-item {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gray-border);
  background: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.pub-item:last-child { border-bottom: none; }
.pub-item.placeholder {
  background: var(--gray-light);
  border-style: dashed;
}
.pub-type-tag {
  display: inline-block;
  font-size: 11.5px;
  font-family: monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  border: 1px solid var(--forest);
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}
.pub-type-tag.project { color: var(--teal); border-color: var(--teal); }
.pub-type-tag.report { color: var(--gray-mid); border-color: var(--gray-border); }
.pub-type-tag.placeholder-tag { color: var(--gray-border); border-color: var(--gray-border); }
.pub-title {
  font-size: 16.5px;
  font-family: Georgia, serif;
  color: var(--gray-dark);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}
a.pub-title {
  display: block;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.pub-title:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}
.pub-item.placeholder .pub-title { color: var(--slate); font-style: italic; }
.pub-meta {
  font-size: 14px;
  color: var(--slate);
  font-family: Arial, sans-serif;
  margin-bottom: 0.5rem;
}
.pub-desc {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.55;
  font-family: Arial, sans-serif;
  max-width: 700px;
}
.pub-item.placeholder .pub-desc { color: var(--gray-border); }
.pub-year {
  font-size: 14px;
  font-family: monospace;
  color: var(--slate);
  white-space: nowrap;
  margin-top: 3px;
}
.pub-item.placeholder .pub-year { color: var(--gray-border); }

.pub-section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.pub-section-head:first-of-type { margin-top: 0; }
.pub-section-head h3 {
  font-size: 16px;
  font-family: Georgia, serif;
  font-weight: normal;
  color: var(--gray-dark);
}
.pub-section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--gray-border);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.85rem 1.25rem;
    gap: 0.6rem 1.25rem;
    justify-content: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .hero, .section, .cta-section, footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--gray-border);
  }
  .service-card:last-child { border-bottom: none; }

  .who-item {
    flex-direction: column;
    gap: 0.35rem;
  }
  .who-label { min-width: 0; }

  .team-layout {
    grid-template-columns: 1fr;
  }
  .team-photo {
    width: 90px;
    height: 106px;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .pub-year { margin-top: 0; }
}

