@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --blue: #2c56c1;
  --blue-dark: #1f429b;
  --deep: #08142e;
  --deep-2: #10265a;
  --soft: #eef3ff;
  --surface: #f6f8fc;
  --ink: #0b1220;
  --text: #172033;
  --muted: #5d687c;
  --line: #cbd5e1;
  --white: #fff;
  --lime: #c8f000;
  --orange: #f89828;
  --success: #147a42;
  --error: #c62828;
  --max: 75rem;
  --reading: 68ch;
  --pad: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 8rem);
  --display: "Syne", "Avenir Next", sans-serif;
  --body: "Sora", "Avenir Next", sans-serif;
}

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

html {
  color-scheme: light;
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font: 400 1rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--lime);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: var(--deep);
  background: var(--lime);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.shell { width: min(100% - (2 * var(--pad)), var(--max)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.surface { background: var(--surface); }
.blue-surface { color: var(--white); background: var(--blue); }
.deep-surface { color: var(--white); background: var(--deep); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 1.8rem; height: 3px; background: currentColor; content: ""; }
.deep-surface .eyebrow, .hero .eyebrow, .blue-surface .eyebrow { color: var(--lime); }

h1, h2, h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.deep-surface h1, .deep-surface h2, .deep-surface h3,
.blue-surface h1, .blue-surface h2, .blue-surface h3 { color: var(--white); }
h1 { max-width: 15ch; font-size: clamp(2.75rem, 9vw, 6rem); }
h2 { max-width: 18ch; font-size: clamp(2rem, 5.8vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 1.15; }
p { margin: 0 0 1rem; }
.lede { max-width: 62ch; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.muted { color: var(--muted); }
.kicker { color: var(--blue); font-weight: 700; }
.mega { font-family: var(--display); font-size: clamp(3rem, 13vw, 9rem); font-weight: 800; line-height: .8; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(203, 213, 225, .75);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: clamp(11.25rem, 22vw, 13.75rem); height: auto; }
.nav-toggle {
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}
.site-nav {
  position: fixed;
  inset: 4.5rem 0 0;
  display: none;
  padding: 2rem var(--pad);
  overflow: auto;
  color: var(--white);
  background: var(--deep);
}
.site-nav.open { display: block; }
.site-nav ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: flex; align-items: center; min-height: 3.2rem; padding: .4rem 0; text-decoration: none; font-weight: 650; }
.site-nav a[aria-current="page"] { color: var(--lime); }
.site-nav .nav-cta { margin-top: 1.25rem; padding-inline: 1rem; color: var(--deep); background: var(--lime); border-radius: .55rem; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 83% 15%, rgba(200,240,0,.16) 0 8%, transparent 8.2%),
    radial-gradient(circle at 85% 22%, transparent 0 20%, rgba(200,240,0,.9) 20.2% 21.2%, transparent 21.5%),
    linear-gradient(132deg, var(--deep) 0 45%, var(--deep-2) 45% 68%, var(--blue) 68%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  width: min(55vw, 38rem);
  aspect-ratio: 1;
  right: -15%;
  bottom: -25%;
  border: clamp(2rem, 6vw, 5rem) solid rgba(255,255,255,.09);
  border-radius: 50%;
  content: "";
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to right, transparent, black);
  content: "";
}
.hero-content { padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1 { color: var(--white); text-wrap: balance; }
.hero .lede { color: #e8eefc; }
.hero-signature { margin-top: 2rem; color: var(--lime); font-weight: 650; }
.hero-mark { margin-bottom: clamp(2rem, 7vw, 5rem); font-family: var(--display); font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  color: var(--white);
  background: var(--deep);
}
.page-hero::after {
  position: absolute;
  width: 24rem;
  aspect-ratio: 1;
  right: -10rem;
  top: -12rem;
  border: 3rem solid var(--blue);
  border-radius: 50%;
  opacity: .65;
  content: "";
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #d9e2fa; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .72rem 1.05rem;
  border: 2px solid transparent;
  border-radius: .55rem;
  color: var(--white);
  background: var(--blue);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.button.lime { color: var(--deep); background: var(--lime); }
.button.lime:hover { background: #dbff39; }
.button.ghost { color: inherit; border-color: currentColor; background: transparent; }
.button.dark { background: var(--deep); }
.button.small { min-height: 2.75rem; padding: .55rem .85rem; font-size: .9rem; }

.door-grid, .card-grid, .project-grid, .leaders-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}
.door, .card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}
.door { padding: clamp(1.4rem, 4vw, 2.25rem); }
.door::before { display: block; margin-bottom: 2rem; color: var(--blue); font: 800 2.3rem/1 var(--display); content: attr(data-index); }
.door a::after, .card > a:last-child::after { position: absolute; inset: 0; content: ""; }
.door:hover, .card:hover { border-color: var(--blue); transform: translateY(-2px); }
.door-link, .text-link { color: var(--blue); font-weight: 700; }

.editorial-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.index-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.index-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.index-list strong { color: var(--blue); font-family: var(--display); }

.network-band { overflow: hidden; }
.regions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-block: 2rem; color: var(--lime); font-family: var(--display); font-weight: 700; }

.card { display: flex; flex-direction: column; padding: 1.35rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: 1rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.card p { flex: 1; }
.card .text-link { margin-top: 1rem; }
.campaign-card { color: var(--deep); border: 0; background: var(--lime); }
.campaign-card .meta, .campaign-card .text-link { color: var(--deep); }

.finder-layout { display: grid; gap: 2rem; align-items: start; }
.finder-controls { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label, legend { color: var(--ink); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem .85rem;
  border: 2px solid #94a3b8;
  border-radius: .55rem;
  color: var(--ink);
  background: var(--white);
}
textarea { min-height: 9rem; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.chip {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-weight: 650;
  cursor: pointer;
}
.chip[aria-pressed="true"] { color: var(--white); background: var(--blue); }
.status { margin-block: 1rem; font-weight: 700; }
.notice { padding: 1rem; border-left: 5px solid var(--blue); background: var(--soft); }
.notice.warning { border-color: var(--orange); background: #fff4d6; }
.results { display: grid; gap: .8rem; }
.juba-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; }
.juba-card h3 { margin-bottom: .25rem; font-size: 1.35rem; }
.juba-card .sigla { color: var(--blue); font-weight: 700; }
.juba-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }

.resource-toolbar { display: grid; gap: 1rem; margin: 2rem 0; }
.resource-card[hidden] { display: none; }

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.values { display: grid; gap: 1.5rem; margin-top: 2rem; }
.value { padding-top: 1.25rem; border-top: 3px solid var(--blue); }
.leader-group { margin-top: 3rem; }
.leader { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.leader strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; }

.prefs { display: grid; gap: 1rem; max-width: 45rem; }
.pref-row { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.pref-row label { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; font-weight: 700; }
.pref-row input[type="checkbox"] { width: 1.4rem; min-height: 1.4rem; accent-color: var(--blue); }

.contact-grid { display: grid; gap: 1rem; }
.contact-method { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 1rem; }
.form-help { color: var(--muted); font-size: .86rem; }

.site-footer { padding-block: 4rem 6rem; color: #e8eeff; background: var(--deep); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand { width: min(100%, 17rem); filter: brightness(0) invert(1); }
.footer-title { color: var(--lime); font-family: var(--display); font-weight: 700; }
.footer-links { margin: .75rem 0 0; padding: 0; list-style: none; }
.footer-links li { margin: .4rem 0; }
.footer-links a { color: #e8eeff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .85rem; }

[data-reveal] { opacity: 0; transform: translateY(12px); }
[data-reveal].revealed { opacity: 1; transform: none; transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.8,.2,1); }

html[data-contrast="more"] {
  --blue: #fff;
  --blue-dark: #fff;
  --deep: #000;
  --deep-2: #000;
  --soft: #000;
  --surface: #000;
  --ink: #fff;
  --text: #fff;
  --muted: #fff;
  --line: #fff;
  --white: #000;
}
html[data-contrast="more"] body { color: #fff; background: #000; }
html[data-contrast="more"] .site-header { background: #000; }
html[data-contrast="more"] .brand img { filter: grayscale(1) brightness(0) invert(1); }
html[data-contrast="more"] .hero { background: #000; }
html[data-contrast="more"] .button { color: #000; background: #fff; border-color: #fff; }
html[data-contrast="more"] .button.ghost { color: #fff; background: #000; }
html[data-contrast="more"] a:not(.button) { color: var(--lime); }

html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }

@media (prefers-contrast: more) {
  :root { --line: #63718b; }
}

@media (min-width: 48rem) {
  .door-grid, .card-grid, .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editorial-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .finder-layout { grid-template-columns: minmax(15rem, .65fr) minmax(0, 1.35fr); }
  .finder-controls { position: sticky; top: 6rem; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-toolbar { grid-template-columns: minmax(16rem, 1fr) auto; align-items: end; }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; padding: 0; overflow: visible; color: var(--ink); background: transparent; }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; }
  .site-nav a { min-height: 2.75rem; padding: .45rem .65rem; font-size: .88rem; }
  .site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px var(--blue); }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; color: var(--white); background: var(--blue); }
  .hero-content { width: 72%; }
  .leaders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
html[data-motion="reduce"] [data-reveal] { opacity: 1; transform: none; }
