:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --coral: #e35951;
  --coral-dark: #b83e38;
  --coral-soft: rgba(227, 89, 81, 0.12);
  --paper: #f7f3f2;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #526174;
  --line: #e5e7eb;
  --radius: 16px;
  --header-h: 72px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--coral-dark);
}

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: #e4ebf3;
  color: var(--navy);
  border-bottom: 1px solid #c5d0dc;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.brand-mark {
  height: 52px;
  width: auto;
  display: block;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  margin-top: 0.45rem;
  gap: 0.08rem;
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #3d4a59;
  text-align: left;
}

.brand-line {
  display: block;
}

.brand-tagline strong {
  font-weight: 700;
  color: var(--navy);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.nav a {
  color: var(--navy-soft);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.08);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(227, 89, 81, 0.65);
  color: var(--coral-dark);
}

body.is-calculator {
  background: #eef0f4;
  height: 100vh;
  overflow: hidden;
}

body.is-calculator .site-header {
  position: relative;
}

.calc-gate {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(900px 420px at 50% 8%, rgba(227, 89, 81, 0.16), transparent 58%),
    #eef0f4;
}

.calc-gate h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.calc-lede {
  margin: 1.05rem auto 1.85rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.open-calc {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.95rem 1.9rem 1.05rem 2.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef6d66 0%, var(--coral) 55%, #d24b44 100%);
  color: var(--white);
  font-family: Comfortaa, Inter, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 10px 0 #9c2f2a,
    0 18px 32px rgba(15, 23, 42, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.open-calc:hover {
  filter: brightness(1.04);
  transform: translateY(2px);
  box-shadow:
    0 8px 0 #9c2f2a,
    0 14px 26px rgba(15, 23, 42, 0.2);
}

.open-calc:active,
.open-calc.is-starting {
  transform: translateY(8px);
  box-shadow:
    0 2px 0 #9c2f2a,
    0 8px 16px rgba(15, 23, 42, 0.16);
}

.open-calc-arrow {
  width: 1.2rem;
  height: 1.2rem;
}

.calc-stage[hidden],
.calc-gate[hidden] {
  display: none !important;
}

body.is-calculator-open .calc-gate {
  display: none;
}

.calculator-frame {
  height: calc(100vh - var(--header-h));
  border: 0;
  width: 100%;
  background: var(--white);
}

.calculator-fallback {
  max-width: 40rem;
  margin: 3rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.page {
  padding: 2.75rem 1.25rem 4rem;
}

.page-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--coral);
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section {
  margin: 2.75rem 0 0;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
}

.section h2 + .resource-list {
  margin-top: 1.15rem;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.mission-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .mission-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.prose p {
  margin: 0 0 1rem;
  color: var(--navy-soft);
}

.sidp-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.sidp-card img {
  width: 120px;
  justify-self: center;
}

.sidp-card p {
  margin: 0 0 0.7rem;
  font-weight: 600;
  color: var(--navy);
}

.sidp-card a {
  font-weight: 600;
  text-decoration: none;
}

.team-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.person-card,
.steer-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 1.4rem 1.15rem 1.25rem;
  text-align: center;
  font-family: "Geist Sans", Inter, "Segoe UI", sans-serif;
}

.avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: block;
}

.person-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
}

.steer-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
  color: #0f172a;
}

.role,
.person-card .role,
.steer-card .role {
  margin: 0 0 0.75rem;
  color: var(--coral);
  font-weight: 700;
  font-size: 1rem;
}

.person-card p {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.625;
}

.steer-card p {
  margin: 0;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.steer-card .role {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.875rem;
}

.orgs {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

.orgs p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
}

.steer-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .steer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .steer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steer-card {
  text-align: left;
  padding: 1rem 1.1rem;
}

.impact-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 1.6rem 1.3rem 1.4rem;
  margin-bottom: 2.5rem;
}

.impact-band h2 {
  margin: 0 0 0.35rem;
  color: var(--white);
}

.impact-band .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

.impact-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.impact-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.05rem 1.05rem 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.impact-card:hover {
  background: rgba(227, 89, 81, 0.16);
  transform: translateY(-2px);
  color: inherit;
}

.impact-icon {
  width: 36px;
  height: 36px;
  color: var(--coral);
}

.impact-stat {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.impact-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.impact-source {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.resource-list {
  display: grid;
  gap: 0.9rem;
}

.resource-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.9rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  border-color: rgba(227, 89, 81, 0.45);
  color: inherit;
}

.resource-card.soon {
  cursor: default;
  background: #f8fafc;
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  display: grid;
  place-items: center;
}

.resource-icon svg {
  width: 24px;
  height: 24px;
}

.resource-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.resource-from {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.resource-go {
  align-self: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coral-dark);
  white-space: nowrap;
}

.refs {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.refs ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.refs a {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

body.is-calculator .site-footer {
  display: none;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.is-calculator {
    height: auto;
    overflow: auto;
  }

  .calc-gate {
    min-height: calc(100vh - 132px);
  }

  .calculator-frame {
    height: calc(100vh - 132px);
    min-height: 640px;
  }

  .sidp-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .resource-card {
    grid-template-columns: 48px 1fr;
  }

  .resource-go {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .impact-card,
  .open-calc {
    transition: none;
  }
}
