:root {
  --header-offset: 92px;
  --pine: #087044;
  --pine-dark: #113b2b;
  --ink: #183127;
  --muted: #5e7068;
  --mint: #e9f4ed;
  --mist: #f5f8f4;
  --paper: #fffef9;
  --white: #ffffff;
  --line: #d5dfd8;
  --yellow: #f0c54d;
  --blue: #346b83;
  --clay: #a85843;
  --shadow: 0 18px 46px rgba(17, 59, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Avenir, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(213, 223, 216, 0.9);
  background: rgba(255, 254, 249, 0.95);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 220px; color: var(--pine-dark); }
.brand-logo { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.brand-text { display: grid; gap: 1px; line-height: 1.1; }
.brand-text span:first-child { font-size: 0.95rem; font-weight: 850; }
.brand-text span:last-child { color: var(--muted); font-size: 0.66rem; font-weight: 760; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 0.88rem; font-weight: 760; }
.nav-toggle { display: none; }
.nav-sections { display: flex; align-items: center; gap: 3px; }
.nav-sections a { padding: 8px 10px; border-bottom: 2px solid transparent; }
.nav-sections a:hover, .nav-sections a:focus-visible { color: var(--pine-dark); border-bottom-color: var(--pine); background: var(--mist); outline: none; }
.nav-links .nav-cta { flex: 0 0 auto; }
.text-link:hover, .text-button:hover, .footer a:hover { color: var(--pine-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.button.primary { color: var(--white); background: var(--pine); }
.button.primary:hover { background: var(--pine-dark); }
.button.secondary { color: var(--pine-dark); border-color: rgba(8, 112, 68, 0.3); background: var(--white); }
.nav-cta { min-height: 42px; padding-inline: 17px; color: var(--white) !important; }

.hero { border-bottom: 1px solid var(--line); background: var(--mist); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: 64px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 58px;
}
.hero-content { max-width: 750px; }
.kicker { margin: 0 0 12px; color: var(--pine); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }
.kicker.light { color: #d9eee3; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--pine-dark); font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.6rem, 5.2vw, 4.7rem); line-height: 1; }
h2 { margin-bottom: 0; font-size: clamp(1.78rem, 3vw, 2.75rem); line-height: 1.08; }
h3 { margin-bottom: 8px; color: var(--pine-dark); font-size: 1.08rem; line-height: 1.28; letter-spacing: 0; }
.hero-copy { max-width: 720px; margin-bottom: 0; color: #385046; font-size: clamp(0.98rem, 1.15vw, 1.06rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-logo { display: grid; place-items: center; aspect-ratio: 1; padding: 24px; border: 1px solid rgba(8, 112, 68, 0.18); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.hero-logo img { width: min(94%, 350px); border-radius: 50%; }
.hero-content > .kicker { animation: rise-in 480ms 60ms ease-out both; }
.hero-content > h1 { animation: rise-in 560ms 120ms ease-out both; }
.hero-content > .hero-copy { animation: rise-in 560ms 190ms ease-out both; }
.hero-content > .hero-actions { animation: rise-in 560ms 260ms ease-out both; }
.hero-logo { animation: logo-in 640ms 180ms ease-out both; }
.founding-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 17px 0 19px; border-top: 1px solid rgba(8, 112, 68, 0.18); }
.founding-bar > div { display: flex; align-items: baseline; gap: 12px; }
.founding-label { color: var(--pine); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.founding-bar strong { color: var(--pine-dark); font-size: 0.94rem; }
.founding-bar p { max-width: 580px; margin: 0; color: var(--muted); font-size: 0.88rem; }

.statement { background: var(--pine-dark); }
.statement-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr); gap: 58px; align-items: center; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0; color: var(--white); }
.statement h2 { color: var(--white); }
.argument-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.argument-list li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.argument-list li:last-child { border-bottom: 0; }
.argument-list span { color: var(--yellow); font-size: 0.76rem; font-weight: 900; }
.argument-list p { margin: 0; color: #eef9f2; font-size: 0.96rem; }

.section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.section-header { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.68fr); gap: 46px; align-items: end; margin-bottom: 30px; }
.section-header > p, .lead { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; }
.compact-header { margin-bottom: 24px; }
.band { border-block: 1px solid var(--line); background: #eef6f0; }
.mission-grid, .team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mission-card, .team-card, .partner, .form-panel, .chapter-card, .directory-item { border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.mission-card { min-height: 220px; padding: 22px; }
.mission-card:nth-child(2) { border-left: 4px solid var(--yellow); }
.mission-card:nth-child(3) { border-left: 4px solid var(--blue); }
.mission-number { display: block; margin-bottom: 18px; color: var(--pine); font-size: 0.75rem; font-weight: 900; }
.mission-card p, .team-card p, .partner p, .roadmap-item p, .chapter-card p, .directory-item p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }

.tracks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.track { min-height: 220px; padding: 21px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.track:nth-child(2) { background: #fff9e7; }
.track:nth-child(3) { background: #edf5f7; }
.track:nth-child(4) { background: #f7eeeb; }
.track > span { display: block; margin-bottom: 28px; color: var(--pine); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.track p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.chapter-layout { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.chapter-card { padding: 26px; color: var(--white); background: var(--pine-dark); }
.chapter-card h3 { color: var(--white); }
.chapter-card p { color: #d8e9df; }
.chapter-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.chapter-list li { display: flex; gap: 11px; color: #f4fbf6; font-size: 0.92rem; }
.check { display: inline-grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--pine-dark); background: var(--yellow); font-size: 0.75rem; font-weight: 900; }
.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.roadmap-item { min-height: 174px; padding: 21px; border-left: 4px solid var(--pine); border-radius: 6px; background: var(--mist); }
.roadmap-item:nth-child(2) { border-left-color: var(--yellow); }
.roadmap-item:nth-child(3) { border-left-color: var(--blue); }
.roadmap-item:nth-child(4) { border-left-color: var(--clay); }
.roadmap-item > span { display: block; margin-bottom: 11px; color: var(--pine); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }

.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.partners-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.directory-item { padding: 21px; }
.directory-item > span { display: block; margin-bottom: 13px; color: var(--pine); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.directory-item p + p { margin-top: 8px; }
.directory-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.directory-actions .button { min-height: 38px; padding-inline: 13px; font-size: 0.84rem; }
.partner { display: grid; grid-template-columns: 108px 1fr; gap: 20px; align-items: center; min-height: 148px; padding: 21px; }
.partner-mark, .partner-logo { width: 108px; height: 82px; border: 1px solid var(--line); border-radius: 6px; object-fit: contain; }
.partner-logo { padding: 5px; background: var(--white); }
.partner-mark { display: grid; place-items: center; color: var(--pine-dark); background: var(--mint); font-size: 1rem; font-weight: 900; }
.text-link { display: inline-flex; margin-top: 13px; color: var(--pine); font-size: 0.88rem; font-weight: 850; }
.text-button { display: inline-flex; margin-top: 13px; padding: 0; border: 0; cursor: pointer; color: var(--pine); background: transparent; font: inherit; font-size: 0.88rem; font-weight: 850; }

.team-card { padding: 26px; }
.avatar { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 50%; color: var(--white); background: var(--pine); font-size: 1.5rem; font-weight: 900; }
.avatar.photo { object-fit: cover; object-position: center; }
.role { display: block; margin-bottom: 10px; color: var(--clay); font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.join-team-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); background: var(--white); }
.join-team-strip strong { color: var(--pine-dark); }
.join-team-strip p { margin: 3px 0 0; color: var(--muted); font-size: 0.91rem; }

.join-layout { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr); gap: 38px; align-items: start; }
.join-copy { padding-top: 8px; }
.join-copy .lead { margin-top: 20px; line-height: 1.68; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.contact-panel a { color: var(--pine); font-weight: 850; }
.contact-panel .text-button { margin-top: 0; }
.form-panel { padding: 24px; box-shadow: var(--shadow); }
.form-panel h3 { margin-bottom: 6px; font-size: 1.18rem; }
.form-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
label { color: var(--pine-dark); font-size: 0.84rem; font-weight: 820; }
label span { color: var(--muted); font-weight: 600; }
input, textarea, select { width: 100%; border: 1px solid #c5d4cb; border-radius: 6px; padding: 10px 12px; color: var(--ink); background: var(--white); }
textarea { min-height: 98px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--pine); outline: 3px solid rgba(8, 112, 68, 0.12); }
.form-actions { margin-top: 17px; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--pine); font-size: 0.88rem; font-weight: 760; }
.form-status a { text-decoration: underline; }
.message-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.contact-dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px rgba(17, 59, 43, 0.28); }
.contact-dialog::backdrop { background: rgba(17, 49, 39, 0.6); }
.contact-dialog-panel { padding: 26px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.dialog-header h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
.dialog-close { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; color: var(--pine-dark); background: var(--mist); font-size: 1.35rem; line-height: 1; }
.dialog-context { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
.contact-dialog[open] .contact-dialog-panel { animation: dialog-in 220ms ease-out both; }

.reveal-item { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (hover: hover) {
  .mission-card:hover, .track:hover, .partner:hover, .team-card:hover, .directory-item:hover { border-color: rgba(8, 112, 68, 0.34); box-shadow: 0 12px 28px rgba(17, 59, 43, 0.09); transform: translateY(-3px); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes menu-item-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer { border-top: 1px solid var(--line); background: var(--pine-dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0; color: #d8e9df; font-size: 0.82rem; }
.footer-inner > div { display: grid; gap: 2px; }
.footer strong { color: var(--white); }
.footer a { color: #d8e9df; font-weight: 800; }

@media (max-width: 1060px) {
  :root { --header-offset: 82px; }
  .nav { gap: 20px; width: min(100% - 36px, 1160px); min-height: 68px; }
  .brand { min-width: 0; }
  .nav-toggle {
    display: grid;
    flex: 0 0 42px;
    gap: 5px;
    place-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    background: var(--white);
  }
  .nav-toggle span { width: 19px; height: 2px; border-radius: 2px; background: var(--pine-dark); transition: transform 160ms ease, opacity 160ms ease; }
  .nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--pine); outline: 3px solid rgba(8, 112, 68, 0.1); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 7px 7px;
    background: var(--paper);
    box-shadow: 0 18px 34px rgba(17, 59, 43, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-9px) scale(0.99);
    transform-origin: top;
    visibility: hidden;
    transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); visibility: visible; transition-delay: 0s; }
  .nav-links.is-open .nav-sections a, .nav-links.is-open .nav-cta { animation: menu-item-in 240ms ease-out both; }
  .nav-links.is-open .nav-sections a:nth-child(2) { animation-delay: 25ms; }
  .nav-links.is-open .nav-sections a:nth-child(3) { animation-delay: 50ms; }
  .nav-links.is-open .nav-sections a:nth-child(4) { animation-delay: 75ms; }
  .nav-links.is-open .nav-sections a:nth-child(5) { animation-delay: 100ms; }
  .nav-links.is-open .nav-cta { animation-delay: 125ms; }
  .nav-sections { align-items: stretch; flex-direction: column; gap: 2px; width: 100%; }
  .nav-sections a { width: 100%; padding: 10px 12px; border-bottom-color: transparent; border-radius: 4px; }
  .nav-cta { width: 100%; }
  .hero-inner, .statement-inner, .section-header, .chapter-layout, .join-layout { grid-template-columns: 1fr; }
  .hero-inner { gap: 38px; padding: 54px 0 42px; }
  .hero-logo { justify-self: center; width: min(380px, 72vw); max-width: none; padding: 18px; }
  .section-header { gap: 18px; }
  .tracks-grid, .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --header-offset: 74px; }
  .nav, .hero-inner, .founding-bar, .statement-inner, .section, .footer-inner { width: min(100% - 28px, 1160px); }
  .nav { min-height: 62px; }
  .brand { gap: 9px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text span:last-child { display: none; }
  .nav-links { font-size: 0.84rem; }
  h1 { font-size: 2.45rem; line-height: 1.04; }
  .hero-inner { gap: 32px; padding: 46px 0 36px; }
  .hero-logo { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .argument-list { padding-inline: 10px; }
  .founding-bar, .founding-bar > div, .join-team-strip, .contact-panel { align-items: flex-start; flex-direction: column; gap: 7px; }
  .statement-inner, .section { padding: 54px 0; }
  .mission-grid, .team-grid, .tracks-grid, .partners-grid, .directory-grid, .roadmap, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .partner { grid-template-columns: 78px 1fr; gap: 15px; min-height: 126px; padding: 17px; }
  .partner-mark, .partner-logo { width: 78px; height: 64px; }
  .avatar { width: 92px; height: 92px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .contact-dialog-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}
