:root {
  --ink: #1b2a47;
  --ink-soft: #26395f;
  --ink-deep: #0f1830;
  --paper: #f7f5ee;
  --paper-dim: #edeadf;
  --gold: #f5c42a;
  --gold-deep: #c89a1e;
  --black: #151617;
  --charcoal: #20232b;
  --line: rgba(247, 245, 238, 0.14);
  --line-dark: rgba(16, 21, 40, 0.12);
  --max: 1140px;

  --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

::selection{
  background: var(--ink-soft);
  color: var(--paper);
}

::-webkit-scrollbar{
  width: 10px;
  background: var(--ink-deep);
}
::-webkit-scrollbar-thumb{
  background: var(--gold);
}


* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Archivo Black", sans-serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 21, 40, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-name {
  font-family: "Archivo Black";
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: "IBM Plex Mono";
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-top: 2px;
}
nav.links {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav.links a,
nav.links button.nav-link-btn {
  color: var(--paper);
  opacity: 0.78;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
}
nav.links a:hover,
nav.links button.nav-link-btn:hover {
  opacity: 1;
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  opacity: 1 !important;
  padding: 9px 3px !important;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem !important;
}
.nav-cta:hover {
  background: var(--paper) !important;
  transition: var(--transition);
}
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  padding: 4px 8px;
}
.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-left: 6px;
  border-left: 1px solid rgba(247, 245, 238, 0.2);
}
.nav-social a {
  color: rgba(247, 245, 238, 0.7);
  display: flex;
}
.nav-social a svg {
  width: 16px;
  height: 16px;
}
.nav-social a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 140% at 15% -10%,
    var(--ink-soft) 0%,
    var(--ink) 60%
  );
  color: var(--paper);
  padding: 120px 0 100px 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.hero-logo-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  max-width: 48vw;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--paper);
  margin-bottom: 26px;
}
.hero h1 .accent {
  color: var(--gold);
}
.hero p.lead {
  font-size: 1.5rem;
  /* max-width: 560px; */
  color: rgba(247, 245, 238, 0.82);
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 2px;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-ghost {
  border: 1px solid rgba(247, 245, 238, 0.35);
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--paper-dim);
}

/* ---------- Section shell ---------- */
section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head .eyebrow {
  color: var(--ink);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}
.section-head p {
  color: #4b4f57;
  font-size: 1.02rem;
  max-width: 560px;
}

/* ---------- Purpose / Vision / Mission ---------- */
.pvm {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.pvm-card {
  background: var(--paper);
  padding: 34px 30px;
}
.pvm-card .eyebrow {
  color: var(--ink);
  margin-bottom: 16px;
}
.pvm-card p {
  font-size: 1.02rem;
  color: var(--charcoal);
  font-weight: 500;
}
.pvm-card:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}
.pvm-card:nth-child(2) p {
  color: var(--paper);
}
.pvm-card:nth-child(2) .eyebrow {
  color: var(--gold);
}

/* ---------- Core values ---------- */
.values-section {
  background: var(--ink);
  color: var(--paper);
}
.values-section .section-head p {
  color: rgba(247, 245, 238, 0.72);
}
.values-section .eyebrow {
  color: var(--gold);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-node {
  background: var(--ink-soft);
  padding: 30px 26px;
  position: relative;
}
.value-node .node-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono";
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}
.value-node h3 {
  font-family: "Archivo";
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 10px;
}
.value-node p {
  font-size: 0.92rem;
  color: rgba(247, 245, 238, 0.68);
  margin: 0;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.pillar-card {
  background: var(--paper);
  padding: 38px 34px;
}
.pillar-card .eyebrow {
  color: var(--ink);
  margin-bottom: 18px;
}
.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.pillar-card p {
  color: #4b4f57;
  font-size: 0.96rem;
}
.course-tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.course-tags li {
  font-family: "IBM Plex Mono";
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1px solid var(--line-dark);
  padding: 6px 10px;
  border-radius: 2px;
}

/* ---------- On the ground ---------- */
.field-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.field-photo {
  position: relative;
  border: 6px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--gold);
}
.field-photo img {
  width: 100%;
  display: block;
}
.field-copy .eyebrow {
  color: var(--ink);
  margin-bottom: 14px;
}
.field-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}
.field-copy p {
  color: #4b4f57;
  font-size: 1rem;
  margin-bottom: 0;
}
.field-partners {
  margin-top: 26px;
  font-family: "IBM Plex Mono";
  font-size: 0.82rem;
  color: var(--charcoal);
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
}
.field-partners span {
  color: var(--gold-deep);
  font-weight: 600;
  margin-right: 8px;
}

/* ---------- IMPACT SECTION ---------- */
.impact-section {
  background: var(--ink);
  color: var(--paper);
}
.impact-section .section-head p {
  color: rgba(247, 245, 238, 0.72);
}
.impact-section .eyebrow {
  color: var(--gold);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact-stat {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 32px 20px;
  text-align: center;
}
.impact-stat .number {
  font-family: "Archivo Black", sans-serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.impact-stat .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: rgba(247, 245, 238, 0.7);
  text-transform: uppercase;
}

/* ---------- RESEARCH & PUBLICATIONS (NEW) ---------- */
.research-section {
  background: var(--paper-dim);
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.research-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.research-card .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: var(--gold-deep);
  background: var(--paper-dim);
  padding: 4px 12px;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
}
.research-card .date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: #6b6f78;
  margin-bottom: 10px;
}
.research-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.research-card p {
  font-size: 0.92rem;
  color: #4b4f57;
  flex-grow: 1;
  margin-bottom: 16px;
}
.research-card .read-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}

/* ---------- DONATE SECTION ---------- */
.donate-section {
  background: var(--paper);
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--paper-dim);
  border: 1px solid var(--line-dark);
  padding: 48px 40px;
}
.donate-method h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.donate-method .address-box {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  word-break: break-all;
  border: 1px solid var(--gold);
  display: inline-block;
}
.donate-method .address-box span {
  color: var(--gold);
  margin-right: 12px;
}
.copy-hint {
  font-size: 0.75rem;
  color: #6b6f78;
  margin-top: 8px;
}

/* ---------- Get involved ---------- */
.involve {
  background: var(--paper-dim);
}
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.involve-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.involve-card .eyebrow {
  color: var(--ink);
}
.involve-card h3 {
  font-size: 1.15rem;
}
.involve-card p {
  color: #4b4f57;
  font-size: 0.92rem;
  flex-grow: 1;
}
.involve-card a.link {
  font-family: "IBM Plex Mono";
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}

.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.newsletter p {
  color: rgba(247, 245, 238, 0.7);
  font-size: 0.92rem;
  margin: 0;
}
.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  padding: 13px 16px;
  border: 1px solid rgba(247, 245, 238, 0.3);
  background: transparent;
  color: var(--paper);
  border-radius: 2px;
  font-family: inherit;
  min-width: 220px;
}
.newsletter input::placeholder {
  color: rgba(247, 245, 238, 0.5);
}
.newsletter .btn-primary {
  border: none;
}
.form-note {
  font-family: "IBM Plex Mono";
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 10px;
  display: none;
}

/* ---------- TEAM MODAL ---------- */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 24, 48, 0.96);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-modal.active {
  display: block;
  opacity: 1;
}
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.close-modal {
  background: var(--gold);
  color: var(--ink);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.close-modal:hover {
  transform: scale(1.1);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}
.team-card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--paper-dim);
}
.team-card h3 {
  color: var(--paper);
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.team-card .role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.team-card .bio {
  color: rgba(247, 245, 238, 0.82);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
  width: 100%;
}
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.2s ease;
  margin-top: 4px;
  flex-shrink: 0;
}
.linkedin-btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.08);
  border-color: var(--gold);
}
.linkedin-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(247, 245, 238, 0.65);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-grid h4 {
  font-family: "IBM Plex Mono";
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-grid p,
.foot-grid a {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 245, 238, 0.65);
}
.foot-grid a:hover {
  color: var(--paper);
}
.foot-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-top: 16px;
  opacity: 0.9;
}
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 245, 238, 0.75);
  transition: all 0.2s ease;
}
.social-row a svg {
  width: 16px;
  height: 16px;
}
.social-row a:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .burger {
    display: block;
  }
  nav.links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 20px;
    background: #101528;
    padding: 24px 28px;
    border-radius: 4px;
    gap: 20px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--line);
    z-index: 60;
  }
  nav.links.mobile-open {
    display: flex !important;
  }
  nav.links .nav-social {
    border-left: none;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    width: 100%;
    justify-content: center;
  }
  .nav-cta {
    text-align: center;
  }
  .pvm {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-logo-mark {
    display: none;
  }
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .donate-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .involve-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
