:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #edf5f0;
  --text: #16201f;
  --muted: #5f6d69;
  --line: rgba(22, 32, 31, 0.12);
  --teal: #007f86;
  --coral: #e65f4d;
  --green: #4b9b55;
  --ink: #111817;
  --shadow: 0 24px 70px rgba(18, 40, 35, 0.16);
  --font-main: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #101817;
  --surface: #17211f;
  --surface-2: #1e2b28;
  --text: #f3f8f4;
  --muted: #afbbb6;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionGlow {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.975);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(230, 95, 77, 0.25);
  }
  50% {
    box-shadow: 0 18px 42px rgba(230, 95, 77, 0.36);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 16px 18px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header {
  background: rgba(16, 24, 23, 0.78);
}

.brand,
.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  background: var(--teal);
  color: #fff;
}

.nav-actions {
  gap: 8px;
}

.button,
.icon-button,
.menu-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  padding: 0 20px;
  box-shadow: 0 12px 26px rgba(230, 95, 77, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(230, 95, 77, 0.36);
}

.hero .button:first-child {
  animation: softPulse 3.8s ease-in-out infinite;
}

.button-small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.icon-button,
.menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}

.menu-button {
  display: none;
  gap: 4px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px clamp(20px, 7vw, 110px) 72px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 20, 19, 0.86), rgba(5, 20, 19, 0.46) 52%, rgba(5, 20, 19, 0.12)),
    linear-gradient(0deg, rgba(5, 20, 19, 0.68), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: floatIn 700ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero .eyebrow {
  color: #8df0a0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  bottom: 34px;
  z-index: 2;
  width: min(330px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  animation: floatIn 780ms 160ms ease both;
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.25rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-actions a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 28px clamp(20px, 5vw, 64px);
  background: var(--surface);
  transition: transform 180ms ease, background 180ms ease;
}

.quick-actions a:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}

.quick-actions span {
  color: var(--coral);
  font-weight: 900;
}

.quick-actions small,
.section p,
.program-card p,
.project-card p,
.metric span,
.footer,
.contact-lines,
.heading-note {
  color: var(--muted);
}

.section {
  padding: clamp(68px, 9vw, 120px) clamp(20px, 7vw, 110px);
}

.intro,
.impact,
.membership {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro > p {
  max-width: 820px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.fact-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fact-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 10px 14px;
}

.fact-strip strong {
  color: var(--teal);
}

.split,
.contact,
.map-section,
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.section-copy p,
.contact p,
.vision-card p,
.founder-card p {
  max-width: 620px;
}

.program-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subpage {
  padding-top: 92px;
}

.members-hero {
  padding-top: clamp(80px, 10vw, 130px);
}

.members-hero h1 {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(3rem, 9vw, 7rem);
}

.members-hero p {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 90px rgba(18, 40, 35, 0.2);
}

.member-card strong {
  color: var(--teal);
}

.member-card p {
  color: var(--muted);
}

.program-card,
.project-card,
.founder-card,
.vision-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.map-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

.program-card:hover,
.project-card:hover,
.founder-card:hover,
.vision-card:hover,
.contact-form:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 127, 134, 0.28);
  box-shadow: 0 32px 90px rgba(18, 40, 35, 0.2);
}

.program-card,
.project-card,
.founder-card,
.vision-card {
  min-height: 220px;
  padding: 24px;
}

.program-icon {
  display: grid;
  width: 52px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.band {
  background: var(--surface-2);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.heading-note {
  max-width: 520px;
  margin: 0;
}

.project-card {
  min-height: 260px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.featured-project {
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(0, 127, 134, 0.88), rgba(17, 24, 23, 0.94)),
    var(--surface);
  color: #fff;
}

.featured-project p {
  color: rgba(255, 255, 255, 0.78);
}

.project-tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-project .project-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
}

.metric strong {
  color: var(--teal);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1;
}

.process-grid .metric strong {
  color: var(--coral);
}

.founder {
  background: var(--surface-2);
}

.avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
}

.vision-card {
  background:
    linear-gradient(145deg, rgba(230, 95, 77, 0.08), transparent 42%),
    var(--surface);
}

.membership-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.membership-points span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal);
  font-weight: 900;
  padding: 9px 13px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-lines a {
  color: var(--teal);
  font-weight: 900;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: grid;
  gap: 28px;
  padding: clamp(42px, 7vw, 78px) clamp(20px, 7vw, 110px) 28px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0, 127, 134, 0.08), transparent 48%),
    var(--surface);
}

.footer strong {
  color: var(--text);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.75fr));
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 18px;
}

.footer-brand p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--teal);
  font-weight: 800;
}

.footer-links span {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.project-card a {
  width: fit-content;
  color: var(--teal);
  font-weight: 900;
}

.project-image,
.member-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.member-photo {
  aspect-ratio: 1;
  max-width: 92px;
  border-radius: 50%;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  max-width: 860px;
}

.admin-metrics {
  margin-top: 10px;
}

.admin-save-state {
  min-width: 140px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
}

.admin-save-state[data-tone="ok"] {
  color: var(--green);
}

.admin-save-state[data-tone="busy"] {
  color: var(--teal);
}

.admin-save-state[data-tone="error"] {
  color: var(--coral);
}

.admin-item-stack {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-item-stack .admin-grid {
  width: 100%;
}

.admin-row-tools {
  justify-content: flex-end;
}

.request-card .row-actions {
  margin-top: 8px;
}

.request-card .button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.86rem;
}

.footer-bottom span a {
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(230, 95, 77, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 24px 58px rgba(230, 95, 77, 0.42);
}

.admin-body {
  min-height: 100vh;
  background: var(--surface-2);
}

.admin-body:not(.admin-unlocked) .admin-shell {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(0, 127, 134, 0.22), rgba(230, 95, 77, 0.16)),
    rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(18px);
}

.login-screen[hidden] {
  display: none;
}

.login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: floatIn 420ms ease both;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tabs button,
.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}

.admin-tabs button {
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 14px;
  text-align: left;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.admin-tabs button:hover {
  transform: translateX(3px);
}

.admin-tabs button.active {
  background: var(--teal);
  color: #fff;
}

.admin-view-site {
  margin-top: auto;
}

.admin-panel {
  padding: clamp(24px, 5vw, 64px);
}

.admin-topbar,
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
  gap: 18px;
  animation: floatIn 320ms ease both;
}

.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-editor-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 130px minmax(240px, auto);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-help {
  max-width: 760px;
}

.password-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.request-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.request-list {
  display: grid;
  gap: 12px;
}

.request-card,
.admin-danger,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.request-card {
  display: grid;
  gap: 5px;
}

.request-card span,
.request-card small {
  color: var(--muted);
}

.request-card p {
  margin: 8px 0 0;
}

.empty-state {
  color: var(--muted);
}

[data-animate] {
  opacity: 0;
  transform: translateY(42px) scale(0.975);
  filter: blur(10px);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.section.is-visible > .eyebrow,
.section.is-visible h2,
.section.is-visible .section-heading,
.section.is-visible .section-copy,
.section.is-visible .founder-card,
.section.is-visible .vision-card {
  animation: headingRise 620ms 90ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.band[data-animate] {
  transform: translateY(34px) scale(0.99);
}

.band[data-animate].is-visible {
  animation: sectionGlow 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-animate="stagger"].is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-animate="stagger"].is-visible > *:nth-child(2) {
  transition-delay: 70ms;
}

[data-animate="stagger"].is-visible > *:nth-child(3) {
  transition-delay: 140ms;
}

[data-animate="stagger"].is-visible > *:nth-child(4) {
  transition-delay: 210ms;
}

[data-animate="stagger"].is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}

[data-animate="stagger"].is-visible > *:nth-child(6) {
  transition-delay: 350ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate],
  [data-animate="stagger"] > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    min-height: 64px;
    align-items: center;
    border-radius: 999px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 20px));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text);
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .menu-button {
    display: grid;
  }

  .intro,
  .membership,
  .split,
  .contact,
  .map-section,
  .founder,
  .impact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 46px;
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid.two,
  .request-columns {
    grid-template-columns: 1fr;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .nav-editor-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    inset: 10px;
    height: 64px;
    max-height: 64px;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small,
  .button-small {
    display: none;
  }

  .nav-actions {
    justify-content: end;
  }

  .nav-links {
    right: 0;
    left: auto;
    width: min(270px, calc(100vw - 20px));
  }

  .hero {
    padding: 116px 20px 48px;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .quick-actions,
  .program-grid,
  .project-grid,
  .member-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    min-height: 260px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .admin-topbar,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions,
  .admin-actions .button,
  .admin-section-heading .button {
    width: 100%;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }
}
