:root {
  --night: #0C2439;
  --deep-blue: #143755;
  --gold: #C08A4E;
  --sand: #D9B98C;
  --cream: #F6F2EA;
  --paper: #EFE8DC;
  --slate: #4A5A6B;
  --linen: #DCD3C4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body {
  background-image:
    linear-gradient(rgba(246,242,234,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,242,234,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: inherit; }
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}
@media (min-width: 640px) { .page { padding: 40px 56px; } }
@media (min-width: 1000px) { .page { padding: 48px 88px; } }
.top-bar { display: flex; justify-content: flex-end; }
.lang-switch {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.lang-switch:hover, .lang-switch:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.lang-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  padding: 48px 0;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.seal { width: min(46vw, 240px); height: auto; }
.status {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 20ch;
  margin: 0;
}
.sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 42ch;
  margin: 0 auto;
}
footer {
  border-top: 1px solid var(--gold);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ================= Site-wide additions (multi-page build) ================= */

body.site {
  display: block;
  background: var(--cream);
  color: var(--night);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 640px) { .container { padding: 0 56px; } }
@media (min-width: 1000px) { .container { padding: 0 88px; } }

/* ---------- site header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--linen);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--night);
}
.brand img { width: 32px; height: 32px; flex: none; }
.site-header .brand img { width: 44px; height: 35px; }
.site-header .brand span { font-size: 23px; }
.brand span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--night);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.nav-links a.active { border-bottom-color: var(--gold); }

.header-right { display: flex; align-items: center; gap: 28px; }

.site-header .lang-switch { color: var(--gold); border-bottom-color: var(--gold); }
.site-header .lang-switch:hover, .site-header .lang-switch:focus-visible { color: var(--night); border-bottom-color: var(--night); }

@media (max-width: 760px) {
  .site-header .nav-links { gap: 18px 20px; order: 3; flex-basis: 100%; width: 100%; }
  .site-header .header-right { order: 2; margin-left: auto; }
  .site-footer .nav-links { width: 100%; flex-wrap: wrap; gap: 12px 24px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: #cf9c62; }
.btn-primary:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; }

.btn-outline { background: transparent; border-color: var(--night); color: var(--night); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-outline-cream { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline-cream:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-cream:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- dark cover sections (hero / cta) ---------- */

.cover {
  background: var(--night);
  color: var(--cream);
  background-image:
    linear-gradient(rgba(246,242,234,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,242,234,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero {
  padding: 96px 0;
}
.hero .eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 16ch;
  margin: 0 0 28px;
}
.hero .lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--sand);
  max-width: 56ch;
  margin: 0 0 40px;
}

.cta-band { padding: 72px 0; text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto 32px;
  text-wrap: balance;
}
.cta-band .btn-row { justify-content: center; }

/* ---------- section header (gold number + rule) ---------- */

.section { padding: 96px 0; }
.section.tight { padding: 56px 0; }
.section.on-paper { background: var(--paper); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}
.section-head .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  color: var(--night);
  margin: 0;
}
.section-rule { height: 1px; background: var(--linen); margin-bottom: 48px; }
.section-sub {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate);
  max-width: 62ch;
  margin: 0 0 40px;
}

/* ---------- grid + cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--linen);
  padding: 28px 26px;
}
.card.on-cream { background: var(--cream); }
.card h3, .card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--night);
  margin: 0 0 10px;
}
.card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}
.card-accent { border-top: 2px solid var(--gold); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--night);
  text-decoration: none;
  border-bottom: 1px solid var(--linen);
  padding-bottom: 2px;
}
.card-link:hover, .card-link:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- generic prose ---------- */

.prose { max-width: 62ch; margin: 0 auto; text-align: center; }
.prose p { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--slate); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- light footer (multi-page) ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--linen);
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}
.site-footer .brand span { color: var(--night); }
.site-footer .nav-links a { color: var(--slate); }
.site-footer .legal {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

@media (max-width: 760px) {
  .site-footer .row { flex-direction: column; align-items: flex-start; }
}

/* ---------- photo band (duotone) ---------- */

.photo-band {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.photo-band img {
  display: block;
  width: 100%;
  height: min(64vh, 520px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--night) 0%, var(--sand) 100%);
  mix-blend-mode: color;
  opacity: 0.85;
  pointer-events: none;
}
.photo-band .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 32px;
  padding-bottom: 32px;
}
.photo-band .caption p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
  max-width: 18ch;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  margin: 0;
}


/* ---------- world map (Where we work) ---------- */

.world-map {
  max-width: 760px;
  margin: 0 auto;
}
.world-map img { width: 100%; height: auto; display: block; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 20px 0 48px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
}
.map-legend li { display: flex; align-items: center; gap: 8px; list-style: none; }
.map-legend .swatch { width: 11px; height: 11px; flex: none; }
.map-legend .swatch.primary { background: var(--gold); }
.map-legend .swatch.emerging { background: var(--sand); }
.map-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--night); flex: none; }


/* ---------- hero seal watermark (Home) ---------- */

.hero-watermark-wrap { position: relative; overflow: hidden; }
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 440px;
  max-width: 45vw;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark-wrap .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .hero-watermark { width: 300px; opacity: 0.06; }
}

/* ---------- partner cards (logo plate + body) ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
@media (max-width: 640px) { .partners-grid { grid-template-columns: 1fr; } }

.partner-card {
  background: var(--cream);
  border: 1px solid var(--linen);
  display: flex;
  flex-direction: column;
}
.partner-logo-plate {
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  padding: 24px 32px;
}
.partner-logo-plate img {
  max-width: 200px;
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}
.partner-body { padding: 30px 26px 28px; }
.partner-body p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0;
}
.partner-body .card-link { margin-top: 18px; }

.aigesis-mark {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  line-height: 1;
}
.aigesis-mark .lt { font-weight: 300; }
.aigesis-mark .idot { position: relative; display: inline-block; }
.aigesis-mark .idot .dot {
  position: absolute;
  left: 50%;
  top: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

/* ---------- team cards (Our team) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; max-width: 320px; } }

.team-card {
  background: var(--cream);
  border: 1px solid var(--linen);
  text-align: center;
}
.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--linen);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-body { padding: 24px 22px 28px; }
.team-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--night);
  margin: 0 0 4px;
}
.team-role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}
.team-body .card-link { margin-top: 16px; }
