:root {
  --bg: #1a1a1a;
  --surface: #202020;
  --surface-2: #262626;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --red: #c0503d;
  --max: 1220px;
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

img,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.site-header,
.impact-band,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(26, 26, 26, 0.96);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brandmark-crest {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 800;
}

.brandmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brandmark-text strong {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
}

.brandmark-text span:last-child {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-nav a,
.eyebrow,
.panel-meta,
.program-label,
.contact-note,
.form-status {
  color: var(--muted);
}

.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 0.3rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 5rem);
  padding: 6rem 0 4rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.08) brightness(0.8);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.35), rgba(26, 26, 26, 0.92) 78%, rgba(26, 26, 26, 0.98)),
    linear-gradient(100deg, rgba(26, 26, 26, 0.78) 0%, rgba(26, 26, 26, 0.28) 45%, rgba(26, 26, 26, 0.68) 100%),
    radial-gradient(60% 50% at 20% 30%, rgba(192, 80, 61, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  width: min(100%, 62rem);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.story-word,
.story-grid h3,
.map-panel h3,
.team-card h3,
.program h3,
.timeline-card h3,
.bulletin-feed h3,
.involvement-grid h3 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  position: relative;
  color: var(--ink);
  text-shadow:
    0 0 22px rgba(192, 80, 61, 0.16),
    0 0 48px rgba(192, 80, 61, 0.08);
  animation: heroHeadlineIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both,
    heroHeadlineGlow 4.8s ease-in-out 1s infinite;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: min(10rem, 48%);
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(192, 80, 61, 0.42);
  animation: heroUnderlineIn 1100ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.hero-description {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-counters article {
  min-width: 8.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-counters span,
.impact-stat span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-counters strong,
.impact-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button,
.text-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--ink);
  border: 1px solid var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 8px 24px rgba(192, 80, 61, 0.35);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(192, 80, 61, 0.6);
  background: rgba(192, 80, 61, 0.08);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.hero-visual,
.hero-globe,
.hero-wash {
  display: none;
}

.page-banner {
  padding: 9rem 0 3.5rem;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.page-banner-rail {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.page-banner-rail > span {
  min-height: 100%;
  background: var(--red);
}

.page-banner h1 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-banner p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band {
  padding: 4rem 0 5.5rem;
  text-align: center;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.cta-band p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band .hero-actions {
  justify-content: center;
}

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

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.teaser-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--red);
  transition: width 220ms ease;
}

.teaser-card:hover,
.teaser-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(192, 80, 61, 0.5);
  background: #242424;
}

.teaser-card:hover::before,
.teaser-card:focus-visible::before {
  width: 4rem;
}

.teaser-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.teaser-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.teaser-card .text-link {
  margin-top: auto;
}

.teaser-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: -1.6rem -1.6rem 0.4rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(192, 80, 61, 0.28), rgba(38, 38, 38, 0.92));
}

.teaser-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.teaser-card:hover .teaser-card-media img {
  transform: scale(1.05);
}

.photo-band {
  position: relative;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  max-height: 26rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-band img {
  width: 100%;
  height: 100%;
  max-height: 26rem;
  object-fit: cover;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 26, 26, 0.86), transparent 55%);
}

.photo-band-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 1;
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 30ch;
}

.acronym-intro {
  max-width: 46rem;
  margin: 0 0 2rem;
  color: var(--muted);
  line-height: 1.7;
}

.acronym-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.acronym-letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 7.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.acronym-letter:hover,
.acronym-letter:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(192, 80, 61, 0.6);
  background: #242424;
}

.acronym-letter-char {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--red);
}

.program-details {
  margin-top: 3rem;
}

.team-group + .team-group {
  margin-top: 3rem;
}

.team-group-heading {
  margin: 0 0 1.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.acronym-letter-word {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-acronym {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-acronym .acronym-letter {
  position: relative;
  min-width: 0;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
}

.hero-acronym .acronym-letter:hover,
.hero-acronym .acronym-letter:focus-visible {
  border-color: var(--red);
  background: rgba(192, 80, 61, 0.3);
}

.hero-acronym .acronym-letter-char {
  font-size: 1.4rem;
}

.hero-acronym .acronym-letter-word {
  display: none;
}

.hero-acronym .acronym-letter[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.7rem);
  width: 15rem;
  max-width: calc(100vw - 3rem);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 5;
}

.hero-acronym .acronym-letter:hover[data-tooltip]::after,
.hero-acronym .acronym-letter:focus-visible[data-tooltip]::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-acronym-hint {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.impact-band {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.impact-card,
.impact-stat,
.map-callout,
.map-stage,
.map-panel,
.program,
.team-card,
.timeline-card,
.bulletin-notes,
.bulletin-form,
.newsletter-callout,
.bulletin-card,
.involvement-grid article,
.dialog-content {
  background: var(--surface);
}

.impact-card,
.impact-stat {
  padding: 1.5rem;
}

.impact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.impact-card p:last-child,
.section-heading p:last-child,
.mission-copy p,
.program p,
.program li,
.timeline-card p,
.timeline-card li,
.bulletin-notes li,
.newsletter-callout p,
.bulletin-form label,
.bulletin-card-copy p,
.involvement-grid p,
.involvement-grid li,
.site-footer p,
.leaflet-popup-content p,
.dialog-copy,
.dialog-list {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.mission-section {
  background: radial-gradient(48rem 26rem at 12% 0%, rgba(192, 80, 61, 0.09), transparent 70%);
}

.programs-section {
  background: radial-gradient(50rem 28rem at 88% 8%, rgba(192, 80, 61, 0.08), transparent 70%);
}

.team-section {
  background: radial-gradient(46rem 26rem at 8% 100%, rgba(192, 80, 61, 0.07), transparent 70%);
}

.contact-section {
  background: radial-gradient(50rem 30rem at 92% 100%, rgba(192, 80, 61, 0.1), transparent 70%);
}

.mission-section::after,
.story-section::after,
.map-section::after,
.programs-section::after,
.team-section::after,
.timeline-section::after,
.bulletin-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3rem;
  height: 6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.mission-layout {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 2rem;
}

.mission-rail {
  min-height: 16rem;
  background: var(--red);
}

.mission-copy {
  display: grid;
  gap: 1.2rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.story-grid,
.program-list,
.team-grid,
.events-grid,
.bulletin-feed {
  display: grid;
  gap: 1rem;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  position: relative;
  padding: 0;
  min-height: 15rem;
  text-align: left;
  border: 1px solid var(--line);
  padding: 1.4rem;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--red);
  transition: width 220ms ease;
}

.story-card::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -2.2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 80, 61, 0.16), transparent);
  pointer-events: none;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(192, 80, 61, 0.5);
  background: #242424;
}

.story-card:hover::before,
.story-card:focus-within::before {
  width: 4rem;
}

.story-word {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.map-callout {
  padding: 1.4rem;
  border: 1px solid rgba(192, 80, 61, 0.35);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(192, 80, 61, 0.22), transparent 60%),
    var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 220ms ease, transform 220ms ease;
}

.map-callout:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 80, 61, 0.6);
}

.map-callout h3 {
  margin: 0 0 0.5rem;
}

.text-link {
  color: var(--red);
  font-weight: 700;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.map-stage,
.map-panel,
.program,
.team-card,
.timeline-card,
.bulletin-notes,
.bulletin-form,
.newsletter-callout,
.bulletin-card,
.involvement-grid article {
  border: 1px solid var(--line);
}

.map-stage,
.map-panel,
.program,
.team-card,
.timeline-card {
  padding: 1.4rem;
}

.map-panel {
  position: sticky;
  top: 6rem;
}

.world-map-canvas {
  width: 100%;
  height: clamp(22rem, 48vw, 34rem);
  overflow: hidden;
  border: 1px solid var(--line);
}

.leaflet-container {
  background: #1f1f1f;
  font-family: "Inter", sans-serif;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
}

.leaflet-popup-content h4 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.map-marker {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1rem;
}

.map-marker.is-active {
  background: var(--red);
}

.gallery {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-card,
.bulletin-card-image {
  position: relative;
  min-height: 8rem;
  overflow: hidden;
  background: #353535;
}

.gallery-card img,
.bulletin-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.gallery-card.media-fallback img {
  display: none;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card span {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  color: var(--ink);
  font-weight: 700;
}

.program-list,
.team-grid,
.events-grid,
.bulletin-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-list {
  grid-auto-rows: 1fr;
}

.program-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  align-items: baseline;
}

.program-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.program {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  background: rgba(32, 32, 32, 0.86);
  backdrop-filter: blur(14px);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease;
}

.program::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 240ms ease;
}

.program:hover,
.program:focus-within {
  transform: translateY(-4px);
  border-color: rgba(192, 80, 61, 0.3);
  background: rgba(38, 38, 38, 0.94);
}

.program:hover::after,
.program:focus-within::after {
  border-color: rgba(192, 80, 61, 0.5);
}

.program-featured {
  grid-column: span 2;
}

.program-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  color: rgba(192, 80, 61, 0.9);
}

.program-icon svg {
  width: 100%;
  height: 100%;
}

.program-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.program:hover .program-cta,
.program:focus-within .program-cta {
  opacity: 1;
  transform: translateY(0);
}

.program ul,
.bulletin-notes ul,
.involvement-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.team-card {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(192, 80, 61, 0.5);
  background: #242424;
}

.team-card h3 {
  margin: 0 0 0.2rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

button.team-card {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.team-card-hint {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
}

.team-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(192, 80, 61, 0.45);
  background: linear-gradient(135deg, rgba(192, 80, 61, 0.32), rgba(38, 38, 38, 0.9));
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar-initials {
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}

.team-avatar.avatar-fallback img {
  display: none;
}

.team-avatar.avatar-fallback .team-avatar-initials {
  display: block;
}

.team-portrait {
  display: grid;
  place-items: center;
  min-height: 13rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-card {
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.timeline-card:hover,
.timeline-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(192, 80, 61, 0.5);
  background: #242424;
}

.timeline-card.is-hidden {
  display: none;
}

.timeline-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin: -1.4rem -1.4rem 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(192, 80, 61, 0.28), rgba(38, 38, 38, 0.92));
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.timeline-card:hover .timeline-media img {
  transform: scale(1.05);
}

.timeline-media-label {
  display: none;
  font-size: 2.2rem;
}

.timeline-media.media-fallback img {
  display: none;
}

.timeline-media.media-fallback .timeline-media-label {
  display: block;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.events-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.events-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.bulletin-layout,
.involvement-grid {
  display: grid;
  gap: 1rem;
}

.bulletin-layout {
  grid-template-columns: 0.9fr 1fr;
}

.bulletin-notes,
.bulletin-form,
.involvement-grid article {
  padding: 1.4rem;
}

.bulletin-form {
  display: grid;
  gap: 1rem;
}

.bulletin-form label {
  display: grid;
  gap: 0.45rem;
}

.bulletin-form input,
.bulletin-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.newsletter-callout {
  margin-top: 1rem;
  padding: 1rem;
}

.bulletin-card {
  overflow: hidden;
}

.bulletin-card-copy {
  padding: 1rem;
}

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

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
}

.event-dialog {
  width: min(56rem, calc(100% - 1.5rem));
  border: none;
  padding: 0;
  background: transparent;
}

.event-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.dialog-content {
  padding: 1.4rem;
  border: 1px solid var(--line);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .impact-band,
  .story-grid,
  .program-list,
  .team-grid,
  .events-grid,
  .bulletin-feed,
  .teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout,
  .bulletin-layout,
  .involvement-grid,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .mission-rail {
    min-height: 0.4rem;
  }

  .map-panel {
    position: relative;
    top: auto;
  }

  .program-featured {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .impact-band,
  .story-grid,
  .program-list,
  .team-grid,
  .events-grid,
  .bulletin-feed,
  .dialog-grid,
  .involvement-grid,
  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .page-banner {
    padding-top: 8rem;
  }

  .page-banner-rail {
    grid-template-columns: 1fr;
  }

  .page-banner-rail > span {
    min-height: 3px;
    width: 3rem;
  }

  .program-featured {
    grid-column: span 1;
  }

  .program-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes heroHeadlineGlow {
  0%,
  100% {
    text-shadow:
      0 0 22px rgba(192, 80, 61, 0.14),
      0 0 48px rgba(192, 80, 61, 0.08);
  }
  50% {
    text-shadow:
      0 0 28px rgba(192, 80, 61, 0.26),
      0 0 64px rgba(192, 80, 61, 0.14);
  }
}

@keyframes heroUnderlineIn {
  from {
    opacity: 0;
    transform: scaleX(0.3);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
  }
}
