/* POPOLOGY — pixel-faithful rebuild.
   Typography, colors & spacing mirror the compiled tokens of the original build. */

:root {
  /* HSL design system from original :root */
  --background: 221 67% 34%;      /* #1d4290 — body canvas */
  --foreground: 0 0% 100%;
  --card: 221 60% 40%;
  --primary: 221 100% 65%;        /* #4d87ff */
  --secondary: 221 55% 30%;
  --muted: 221 50% 38%;
  --muted-fg: 210 30% 80%;
  --accent: 221 100% 65%;

  /* Section panel colors (85% alpha overlays) */
  --section-light: rgba(48,96,176,.85);
  --section-mid:   rgba(42,85,163,.85);
  --section-depth: rgba(45,91,171,.85);
  --section-cta:   rgba(30,74,143,.85);

  /* Card chrome */
  --card-bg:      rgba(255,255,255,.06);
  --card-border:  rgba(255,255,255,.08);
  --card-border-hover: rgba(255,255,255,.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: hsl(var(--background));
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: inherit;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
img { max-width: 100%; height: auto; display: block; }

/* Global background decoration (spiral SVG behind everything) */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .7;
  overflow: hidden;
}
.site-bg svg { width: 100%; height: 100%; }
body > *:not(.site-bg) { position: relative; z-index: 1; }

/* -------- Containers -------- */
.section-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .section-container { padding-left: 3rem; padding-right: 3rem; }
}

.section-spacing { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) {
  .section-spacing { padding-top: 8rem; padding-bottom: 8rem; }
}

/* Section backgrounds */
.section-light { background-color: var(--section-light); color: #fff; }
.section-mid   { background-color: var(--section-mid);   color: #fff; }
.section-depth { background-color: var(--section-depth); color: #fff; }
.section-cta   { background-color: var(--section-cta);   color: #fff; }

/* -------- Section headlines & sublines (exact tokens) -------- */
.section-headline {
  margin: 0 0 2rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.005em;
}
@media (min-width: 768px)  { .section-headline { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .section-headline { font-size: 3rem;    line-height: 1;     } }

.section-subline {
  max-width: 48rem;
  margin: 0 0 3.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
}
@media (min-width: 1024px) { .section-subline { font-size: 1.5rem; } }

.eyebrow {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(221 67% 34% / .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .nav-row {
  height: 96px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 1024px) { .site-header .nav-row { padding: 0 3rem; } }

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;      /* 18px */
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}
.brand-logo:hover { color: #fff; }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  transition: opacity .15s;
  opacity: .85;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: inline-flex;
  padding: .5rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 28px; height: 28px; stroke: #fff; }

/* Bootstrap navbar overrides (legal, research, publications, 404 pages) */
.site-header .navbar-brand {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus { color: #fff; }
.site-header .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus { color: #fff; }
.site-header .navbar-toggler {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
}
.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile dropdown */
.nav-mobile { display: none; border-top: 1px solid rgba(255,255,255,.08); }
.nav-mobile.open { display: block; }
.nav-mobile .section-container { padding-top: 1rem; padding-bottom: 1rem; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile li a { display: block; padding: .75rem 0; color: #fff; opacity: .85; }

/* -------- Hero -------- */
.hero {
  position: relative;
  background: transparent;
  padding: 5rem 0 8rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: 8rem 0 10rem; } }

.hero .watermark {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 110px;
  max-width: 18%;
  opacity: .18;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-title {
  margin: 0 0 3rem;
  color: #fff;
  letter-spacing: .02em;
}
.hero-title .line {
  display: block;
  font-size: 1.875rem;   /* text-3xl */
  line-height: 1.2;
  font-weight: 400;
  color: #fff;
  letter-spacing: .02em;
}
.hero-title .line-bold {
  display: block;
  font-size: 1.875rem;   /* text-3xl */
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  margin-top: 2rem;      /* mt-8 */
}
@media (min-width: 768px) {
  .hero-title .line      { font-size: 3.75rem; }       /* md:text-6xl = 60px */
  .hero-title .line-bold { font-size: 4.5rem;  }       /* md:text-7xl = 72px */
  .hero-title .line-bold { margin-top: 3.5rem; white-space: nowrap; }
}
@media (min-width: 1024px) {
  .hero-title .line      { font-size: 4rem;    }       /* lg:text-[4rem] */
  .hero-title .line-bold { font-size: 4.5rem;  }       /* lg:text-[4.5rem] */
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  max-width: 48rem;
  margin: 0 0 3rem;
}
@media (min-width: 1024px) { .hero-lead { font-size: 1.5rem; } }

/* CTA text-link with arrow */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
  padding: .25rem 0;
  transition: gap .2s, opacity .15s;
}
.cta-link:hover { opacity: .75; gap: .9rem; color: #fff; }
.cta-link .arr { display: inline-block; transition: transform .2s; }

/* -------- Pillar grid (4 cards) -------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: background .2s, border-color .2s;
}
.pillar:hover { background: rgba(255,255,255,.08); border-color: var(--card-border-hover); }
.pillar h3 {
  font-size: 1rem;          /* 16px */
  font-weight: 600;
  letter-spacing: .1em;     /* 1.6px ≈ 0.1em */
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}
.pillar p {
  color: rgba(255,255,255,.75);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* -------- Flow row -------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 2rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  margin-bottom: 3rem;
}
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } .flow .arr { display: none; } }
.flow .step {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}
.flow .arr {
  color: rgba(255,255,255,.5);
  font-size: 1.75rem;
  text-align: center;
  line-height: 1;
}

.value-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 700px) { .value-bullets { grid-template-columns: 1fr; } }
.value-bullets li {
  padding: 2rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: rgba(255,255,255,.85);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* -------- Status cards -------- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 820px) { .status-grid { grid-template-columns: 1fr; } }
.status-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 2.5rem;
}
.status-card h3 {
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.75rem;
  color: #fff;
}
.status-card ul { list-style: none; padding: 0; margin: 0; }
.status-card li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.status-card li:last-child { border-bottom: 0; }
.status-card .state {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  white-space: nowrap;
}

/* -------- Partner logo grid -------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: center;
  justify-items: center;
  padding: 4rem 2rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
@media (max-width: 640px) { .partner-grid { grid-template-columns: repeat(2, 1fr); padding: 2rem; } }
.partner-grid img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .2s;
}
.partner-grid img:hover { opacity: 1; }
.partner-footnote {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  text-align: center;
  margin: 1.5rem 0 0;
}

/* -------- Leadership -------- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .leaders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .leaders-grid { grid-template-columns: 1fr; } }
.leader {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.leader .bio { flex: 1 0 auto; }
.leader:hover { background: rgba(255,255,255,.08); border-color: var(--card-border-hover); }
.leader img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255,255,255,.18);
}
.leader h3 { font-size: 1.25rem; margin: 0 0 .35rem; font-weight: 600; color: #fff; letter-spacing: 0; }
.leader .role {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
  font-weight: 500;
}
.leader .bio {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.leader .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  transition: background .15s, border-color .15s, color .15s;
}
.leader .social:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.leader .social svg { width: 16px; height: 16px; fill: currentColor; }

.leader-exp-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
.leader-exp-strip img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  opacity: .6;
  filter: brightness(1.1);
  transition: opacity .2s;
}
.leader-exp-strip img:hover { opacity: 1; }

.leader-strip-caption {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  line-height: 1.6;
  margin: 1.5rem 0 0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* -------- Contact -------- */
.contact-card {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-email { color: rgba(255,255,255,.75); font-size: 1rem; margin: 1.5rem 0 0; }
.contact-email a { color: #fff; }
.contact-email a:hover { opacity: .75; }

/* -------- Footer -------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: hsl(221 67% 29%);
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}
.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .site-footer .footer-inner { padding: 0 3rem; } }
.site-footer .brand {
  color: #fff;
  font-weight: 500;
  letter-spacing: .25em;
  font-size: 1rem;
  text-transform: uppercase;
}
.site-footer .footer-links a { color: rgba(255,255,255,.75); margin-right: 2rem; font-size: .95rem; }
.site-footer .footer-links a:last-child { margin-right: 0; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .copy { color: rgba(255,255,255,.55); font-size: .85rem; }

/* -------- Article / Research page -------- */
.article-hero {
  background: transparent;
  padding: 5rem 0 3rem;
}
@media (min-width: 1024px) { .article-hero { padding: 7rem 0 4rem; } }
.article-hero .tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.22);
  padding: .5rem 1.1rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  border-radius: 0;
  margin-bottom: 1.75rem;
}
.article-hero h1 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -.005em;
  color: #fff;
}
@media (min-width: 1024px) { .article-hero h1 { font-size: 3rem; } }
.article-hero .subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 72ch;
  color: rgba(255,255,255,.85);
}
@media (min-width: 1024px) { .article-hero .subtitle { font-size: 1.25rem; } }

.article {
  background: var(--section-mid);
  padding: 4rem 0 8rem;
  color: rgba(255,255,255,.9);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.article h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 3.5rem 0 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.article h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.article h3 { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 2rem 0 .6rem; }
.article p { margin: 0 0 1.2rem; }
.article ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.article li { margin-bottom: .5rem; }
.article a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}
.article a:hover { opacity: .75; }

.disclaimer {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1.75rem 2rem;
  border-radius: 0;
  margin: 0 0 3rem;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
}
.disclaimer strong { color: #fff; font-weight: 600; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 4rem;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.article-nav a { color: rgba(255,255,255,.85); }
.article-nav a:hover { color: #fff; }
.article-nav .next { margin-left: auto; }

/* -------- Docs layout (legal, publications) -------- */
.docs-intro {
  background: transparent;
  padding: 5rem 0 3rem;
}
@media (min-width: 1024px) { .docs-intro { padding: 7rem 0 4rem; } }
.docs-intro h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -.005em;
}
@media (min-width: 1024px) { .docs-intro h1 { font-size: 3rem; } }
.docs-intro p {
  color: rgba(255,255,255,.85);
  max-width: 60ch;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.7;
}
@media (min-width: 1024px) { .docs-intro p { font-size: 1.25rem; } }

.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 820px) { .docs-layout { grid-template-columns: 1fr; gap: 2rem; } }

.docs-sidebar {
  position: sticky;
  top: 120px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 1.25rem 1rem;
}
@media (max-width: 820px) {
  .docs-sidebar { position: static; top: auto; }
}
.docs-sidebar .sidebar-title {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 .75rem 1rem;
  font-weight: 600;
}
.docs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.docs-sidebar li a {
  display: block;
  padding: .7rem .85rem;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.docs-sidebar li a:hover { background: rgba(255,255,255,.05); color: #fff; }
.docs-sidebar li a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: #fff;
}

/* Publications cards grid */
.pub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 820px) { .pub-cards { grid-template-columns: 1fr; } }
.pub-card {
  display: block;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 2rem;
  color: inherit;
  transition: background .2s, border-color .2s;
}
.pub-card:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--card-border-hover);
  color: inherit;
}
.pub-card .meta {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
  font-weight: 600;
}
.pub-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 .75rem;
  color: #fff;
  letter-spacing: .005em;
}
.pub-card p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; line-height: 1.6; }

/* -------- Back-link -------- */
.back-link {
  display: inline-block;
  margin: 0 0 2rem;
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}
.back-link:hover { color: #fff; }
