:root {
  --forest: #123f36;
  --forest-dark: #092c26;
  --forest-soft: #2f665a;
  --cream: #f5efe4;
  --paper: #fffaf2;
  --coral: #e97955;
  --coral-dark: #a8432a;
  --peach: #f4c5ad;
  --yellow: #f3d596;
  --mint: #d9eee6;
  --ink: #153730;
  --muted: #59716b;
  --line: rgba(18, 63, 54, .18);
  --white-line: rgba(255, 250, 242, .22);
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --shadow: 0 28px 80px rgba(9, 44, 38, .15);
  --page: min(90rem, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
section[id] { scroll-margin-top: 8rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 4px;
}

.organizations :where(a, button, [tabindex]):focus-visible,
footer :where(a, button, [tabindex]):focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -6rem;
  left: 1rem;
  padding: .8rem 1rem;
  border-radius: .5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prototype-banner {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .35rem 1rem;
  background: var(--forest-dark);
  color: var(--mint);
  font-size: .74rem;
  letter-spacing: .035em;
  text-align: center;
}

.prototype-banner span {
  padding: .13rem .45rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--forest-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  padding: .75rem max(1.5rem, calc((100% - 90rem) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 228, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--forest);
  text-decoration: none;
}

.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: .98rem; letter-spacing: -.015em; }
.brand small { margin-top: .25rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

.brand-symbol {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: .85rem;
  background: var(--forest);
}

.brand-symbol i { position: absolute; display: block; border-radius: 50%; background: var(--coral); }
.brand-symbol i:nth-child(1) { width: .55rem; height: .55rem; top: .58rem; left: .55rem; }
.brand-symbol i:nth-child(2) { width: .42rem; height: .42rem; top: .62rem; right: .53rem; background: var(--yellow); }
.brand-symbol i:nth-child(3) { width: .65rem; height: .65rem; right: .58rem; bottom: .5rem; background: var(--mint); }
.brand-symbol::before,
.brand-symbol::after { content: ""; position: absolute; height: 1px; background: rgba(255,255,255,.72); transform-origin: left center; }
.brand-symbol::before { width: 1.2rem; top: 1rem; left: .96rem; transform: rotate(-9deg); }
.brand-symbol::after { width: 1.05rem; top: 1.15rem; left: .93rem; transform: rotate(40deg); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { position: relative; font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -.4rem; left: 0; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; }

.hero {
  display: grid;
  width: var(--page);
  min-height: calc(100vh - 7rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(28rem, .95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.eyebrow,
.section-kicker {
  color: var(--coral-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.25rem; }
.eyebrow > span { display: block; width: .6rem; height: .6rem; border: 2px solid var(--coral); border-radius: 50%; }

h1, h2, h3 { margin: 0; color: inherit; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: .99; letter-spacing: -.045em; }
h1 { max-width: 11ch; font-size: clamp(3.5rem, 6.8vw, 7rem); }
h2 { max-width: 16ch; font-size: clamp(2.7rem, 4.7vw, 5rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }

.hero-lead { max-width: 41rem; margin: 1.8rem 0 2.1rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button-primary { background: var(--forest); color: var(--paper); box-shadow: 0 12px 30px rgba(18, 63, 54, .2); }
.button-primary:hover,
.button-primary:focus-visible { background: var(--forest-dark); transform: translateY(-2px); }
.text-link { font-size: .92rem; font-weight: 750; text-underline-offset: .28rem; }
.text-link span { color: var(--coral-dark); }
.privacy-note { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 0; color: var(--muted); font-size: .82rem; }
.privacy-note span { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-weight: 900; }

.hero-visual {
  position: relative;
  display: grid;
  min-height: 36rem;
  place-items: center;
  overflow: hidden;
  border-radius: 48% 48% 2rem 48%;
  background: radial-gradient(circle at 15% 18%, rgba(243, 213, 150, .2), transparent 16rem), linear-gradient(155deg, var(--forest-soft), var(--forest-dark));
  box-shadow: var(--shadow);
}

.hero-visual::after { content: ""; position: absolute; inset: 1rem; border: 1px solid var(--white-line); border-radius: inherit; pointer-events: none; }
.network { position: relative; width: min(80%, 28rem); aspect-ratio: 1; }
.node { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: 50%; color: var(--forest-dark); font-weight: 850; box-shadow: 0 16px 40px rgba(0, 0, 0, .14); }
.node-main { inset: 26%; grid-template-rows: auto auto; align-content: center; background: var(--mint); font-family: Georgia, serif; font-size: 2.7rem; font-weight: 500; line-height: 1; }
.node-main small { margin-top: .4rem; font-family: "Segoe UI", sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.node-a { width: 4.9rem; height: 4.9rem; top: 2%; left: 8%; background: var(--coral); }
.node-b { width: 4rem; height: 4rem; top: 12%; right: 2%; background: var(--yellow); }
.node-c { width: 5.6rem; height: 5.6rem; right: 4%; bottom: 1%; background: var(--peach); }
.connection { position: absolute; z-index: 1; height: 2px; background: rgba(255, 250, 242, .55); transform-origin: left center; }
.connection-a { width: 36%; top: 27%; left: 22%; transform: rotate(31deg); }
.connection-b { width: 32%; top: 33%; right: 19%; transform: rotate(-36deg); }
.connection-c { width: 36%; right: 14%; bottom: 30%; transform: rotate(38deg); }
.visual-label { position: absolute; z-index: 3; padding: .55rem .8rem; border: 1px solid var(--white-line); border-radius: 999px; background: rgba(9, 44, 38, .7); color: var(--mint); font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; backdrop-filter: blur(10px); }
.label-top { top: 2rem; left: 50%; transform: translateX(-50%); }
.label-bottom { bottom: 2rem; left: 50%; transform: translateX(-50%); }

.section { padding: clamp(5.5rem, 9vw, 9rem) max(1.5rem, calc((100% - 90rem) / 2)); }
.section-kicker { display: flex; align-items: center; gap: 1rem; }
.section-kicker span { color: var(--muted); }
.section-kicker p { margin: 0; }
.section-kicker.light { color: var(--peach); }
.section-kicker.light span { color: var(--mint); }

.purpose { display: grid; grid-template-columns: minmax(12rem, .42fr) minmax(0, 1.58fr); gap: 3rem; background: var(--paper); }
.purpose-copy > p { max-width: 52rem; margin: 1.8rem 0 0; color: var(--muted); font-size: 1.1rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 4rem; }
.principles article { padding: 1.6rem 0 0; border-top: 1px solid var(--line); }
.principles article > span { display: grid; width: 2.3rem; height: 2.3rem; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: .72rem; font-weight: 900; }
.principles h3 { margin-bottom: .65rem; }
.principles p { margin: 0; color: var(--muted); font-size: .92rem; }

.organizations { background: var(--forest); color: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.section-heading h2 { margin-top: 1.15rem; }
.section-heading.compact { display: block; }
.section-intro { max-width: 34rem; margin: 0; color: var(--mint); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }

.organization-card { padding: 1.15rem; border: 1px solid var(--white-line); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 0 18px 45px rgba(0,0,0,.08); }
.featured-card { transform: translateY(2rem); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem .25rem 1rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.draft-badge { padding: .26rem .5rem; border-radius: 999px; background: #f8e5ba; color: #6b531f; letter-spacing: .035em; }
.card-avatar { position: relative; display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; border-radius: 1.3rem; }
.card-avatar::before,
.card-avatar::after { content: ""; position: absolute; border: 1px solid rgba(9, 44, 38, .25); border-radius: 50%; }
.card-avatar::before { width: 55%; aspect-ratio: 1; }
.card-avatar::after { width: 82%; aspect-ratio: 1; }
.card-avatar span { z-index: 1; display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; background: var(--paper); font-family: Georgia, serif; font-size: 1.45rem; box-shadow: 0 12px 30px rgba(18,63,54,.12); }
.avatar-one { background: var(--peach); }
.avatar-two { background: var(--mint); }
.avatar-three { background: var(--yellow); }
.card-meta { margin: 1.5rem 0 .55rem; color: var(--coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.organization-card h3 { font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.card-description { min-height: 5rem; margin: .9rem 0 1.2rem; color: var(--muted); font-size: .92rem; }
.need-box { padding: 1rem; border-left: 3px solid var(--coral); border-radius: .35rem var(--radius-md) var(--radius-md) .35rem; background: #f0eadf; }
.need-box span { color: var(--forest); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.need-box p { margin: .25rem 0 0; color: var(--muted); font-size: .86rem; }
.card-actions { display: grid; gap: .45rem; padding: 1.3rem .15rem .2rem; }
.action-link { display: flex; align-items: center; justify-content: space-between; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 800; }
.action-link b { color: var(--coral-dark); font-size: 1.2rem; }
.is-disabled { color: #61736e; cursor: not-allowed; }
.card-actions small { color: var(--muted); font-size: .7rem; }

.help-flow { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.steps li { min-height: 15rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 250, 242, .6); }
.steps li > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; margin-bottom: 3rem; border-radius: 50%; background: var(--forest); color: var(--paper); font-weight: 850; }
.steps h3 { margin-bottom: .65rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.safety-callout { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; max-width: 64rem; margin: 4rem auto 0; padding: 2rem; border-radius: var(--radius-lg); background: var(--forest); color: var(--paper); box-shadow: var(--shadow); }
.safety-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid var(--white-line); border-radius: 50%; color: var(--yellow); font-family: Georgia, serif; font-size: 1.4rem; }
.safety-callout .eyebrow { margin-bottom: .6rem; color: var(--peach); }
.safety-callout h3 { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.safety-callout p:last-child { max-width: 48rem; margin: .7rem 0 0; color: var(--mint); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; padding: 3rem max(1.5rem, calc((100% - 90rem) / 2)); background: var(--forest-dark); color: var(--paper); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-symbol { background: var(--paper); }
.footer-brand .brand-symbol::before,
.footer-brand .brand-symbol::after { background: rgba(9, 44, 38, .45); }
.footer-brand p { margin: .25rem 0 0; color: var(--mint); font-size: .78rem; }
.footer-links { display: flex; align-items: center; gap: 1.4rem; font-size: .82rem; }
.footer-links a { text-underline-offset: .3rem; }
.footer-status { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--white-line); color: var(--mint); font-size: .75rem; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(22rem, .8fr); gap: 3rem; }
  .hero-visual { min-height: 30rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { transform: none; }
  .organization-card:last-child { grid-column: 1 / -1; width: calc(50% - .5rem); justify-self: center; }
}

@media (max-width: 760px) {
  :root { --page: min(100% - 2rem, 42rem); }
  section[id] { scroll-margin-top: 6rem; }
  .prototype-banner { min-height: 2.6rem; flex-wrap: wrap; gap: .35rem .55rem; padding-block: .45rem; line-height: 1.2; }
  .site-header { min-height: 4.5rem; padding-inline: 1rem; }
  .brand small { display: none; }
  .brand-symbol { width: 2.2rem; height: 2.2rem; }
  .menu-button { display: grid; width: 2.7rem; height: 2.7rem; place-content: center; gap: .28rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-button span[aria-hidden] { display: block; width: 1rem; height: 2px; border-radius: 999px; background: var(--forest); }
  .site-nav { position: absolute; top: 4.5rem; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem 1rem; border-bottom: 1px solid var(--line); background: var(--cream); box-shadow: 0 18px 30px rgba(9,44,38,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3.2rem; padding: 4rem 0 5rem; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 25rem; border-radius: 42% 42% 1.5rem 42%; }
  .visual-label { font-size: .61rem; }
  .label-top { top: 1.4rem; }
  .label-bottom { bottom: 1.4rem; }
  .node-main { font-size: 2rem; }
  .node-a { width: 4rem; height: 4rem; }
  .node-b { width: 3.4rem; height: 3.4rem; }
  .node-c { width: 4.5rem; height: 4.5rem; }
  .section { padding: 5rem 1rem; }
  .purpose { grid-template-columns: 1fr; gap: 2rem; }
  .principles { grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
  .principles article { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .principles article > span { grid-row: 1 / 3; }
  .section-heading { display: block; }
  .section-intro { margin-top: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .organization-card:last-child { grid-column: auto; width: auto; }
  .card-description { min-height: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; }
  .steps li > span { margin-bottom: 2rem; }
  .safety-callout { grid-template-columns: 1fr; padding: 1.5rem; }
  .safety-callout h3 { font-size: 1.7rem; }
  footer { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: .85rem; }
}

@media (max-width: 380px) {
  .brand strong { font-size: .88rem; }
  .prototype-banner { font-size: .66rem; }
  .hero-visual { min-height: 22rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
