/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-on-dark);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-red-bright);
}

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--color-ink);
}
[data-theme='memorial'] .btn--secondary {
  color: var(--color-on-dark);
}
.btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Glass (accent layer, used selectively) ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.glass-dark {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--color-on-dark);
}

/* ---------- Site header (desktop) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
[data-theme='memorial'] .site-header {
  background: var(--color-charcoal);
  border-bottom-color: rgba(239, 230, 211, 0.12);
}

.site-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
  flex-shrink: 0;
}

.site-header__brand img {
  height: 64px;
  width: auto;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  flex: 1;
  padding-left: var(--space-lg);
}

.site-header__nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  padding-block: var(--space-3xs);
  border-bottom: 2px solid transparent;
  transition: color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}

.site-header__nav a:hover,
.site-header__nav a[aria-current='page'] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Mobile: the bottom nav already puts Support and Donate one tap away, so the
   top header only needs the logo and the menu button — trying to also fit two
   full pill buttons up here is what was overflowing/crushing the header. */
@media (max-width: 680px) {
  .site-header__actions .btn {
    display: none;
  }
  .site-header {
    padding: var(--space-2xs) var(--space-sm);
  }
  .site-header__brand img {
    height: 44px;
  }
}

@media (min-width: 960px) {
  .site-header__nav {
    display: flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.menu-toggle span::before {
  top: -6px;
}
.menu-toggle span::after {
  top: 6px;
}

/* ---------- Full screen navigation ---------- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: radial-gradient(120% 100% at 100% 0%, #1c1013 0%, var(--color-carbon) 40%, var(--color-carbon) 100%);
  color: var(--color-on-dark);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease),
    visibility 0s linear var(--motion-base);
  overflow-y: auto;
}

.fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease);
}

.fullscreen-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-md);
}

.fullscreen-menu__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(239, 230, 211, 0.3);
  background: transparent;
  color: var(--color-on-dark);
  cursor: pointer;
  font-size: 1.25rem;
}

.fullscreen-menu__body {
  flex: 1;
  display: grid;
  align-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
  grid-template-columns: 1fr;
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}

@media (min-width: 860px) {
  .fullscreen-menu__body {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

.fullscreen-menu__groups {
  display: grid;
  align-content: start;
  gap: var(--space-xl) var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}

.fullscreen-menu__group,
.fullscreen-menu__side {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
}

.fullscreen-menu.is-open .fullscreen-menu__group,
.fullscreen-menu.is-open .fullscreen-menu__side {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-menu.is-open .fullscreen-menu__group:nth-child(1) {
  transition-delay: 80ms;
}
.fullscreen-menu.is-open .fullscreen-menu__group:nth-child(2) {
  transition-delay: 140ms;
}
.fullscreen-menu.is-open .fullscreen-menu__group:nth-child(3) {
  transition-delay: 200ms;
}
.fullscreen-menu.is-open .fullscreen-menu__group:nth-child(4) {
  transition-delay: 260ms;
}
.fullscreen-menu.is-open .fullscreen-menu__side {
  transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  .fullscreen-menu__group,
  .fullscreen-menu__side {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fullscreen-menu__group h3 {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red-bright);
  margin-bottom: var(--space-xs);
}

.fullscreen-menu__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.fullscreen-menu__group a {
  text-decoration: none;
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw + 0.6rem, 1.6rem);
  font-weight: 600;
  transition: color var(--motion-fast) var(--motion-ease), padding-left var(--motion-fast) var(--motion-ease);
  display: inline-block;
}

.fullscreen-menu__group a:hover {
  color: var(--color-red-bright);
  padding-left: var(--space-2xs);
}

.fullscreen-menu__side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-lg);
  border-top: 1px solid rgba(239, 230, 211, 0.16);
  padding-top: var(--space-lg);
}

@media (min-width: 860px) {
  .fullscreen-menu__side {
    border-top: none;
    border-left: 1px solid rgba(239, 230, 211, 0.16);
    padding-top: 0;
    padding-left: var(--space-lg);
  }
}

.fullscreen-menu__message {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: 600;
  color: rgba(247, 242, 233, 0.82);
}

.fullscreen-menu__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ---------- Mobile bottom navigation ---------- */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  padding: 4px var(--space-xs);
  padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-bg-dark);
  border: none;
  border-top: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-lg);
}

/* Matches the header-actions breakpoint below (680px) exactly, so the handoff
   from "compact phone chrome" to "full header with Support/Donate buttons"
   happens at one single point — never showing both navigation styles at once. */
@media (min-width: 680px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--color-on-dark);
  opacity: 0.75;
  font-size: 0.625rem;
  font-family: var(--font-display);
  min-height: 44px;
  justify-content: center;
  border-radius: var(--radius-sm);
  /* The "Menu" item is a <button>, unlike its <a> siblings — strip native button
     chrome so it doesn't render as an opaque gray pill on top of its own content. */
  background: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.mobile-bottom-nav__item[aria-current='page'],
.mobile-bottom-nav__item:hover {
  opacity: 1;
  color: var(--color-red-bright);
}

.mobile-bottom-nav__item--donate {
  background: var(--color-red);
  opacity: 1;
  color: var(--color-on-dark);
}

.mobile-bottom-nav__icon {
  width: 19px;
  height: 19px;
}

/* Keep bottom-nav from covering the last block of content or a form's submit button */
.page-bottom-spacer {
  height: calc(60px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 680px) {
  .page-bottom-spacer {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darker across the board than before: real video content changes frame to frame
     (bright, red-toned footage included), so the overlay has to guarantee text
     contrast on its own rather than relying on any one frame being dark enough. */
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.6) 0%, rgba(10, 8, 7, 0.68) 55%, rgba(10, 8, 7, 0.9) 100%);
}

/* Neutral carbon, not a burgundy wash — used only until a real photo/video arrives.
   Slow ambient drift gives the hero motion without needing footage yet. */
.hero__media-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(140% 120% at 15% 10%, #241318 0%, var(--color-carbon) 55%, var(--color-carbon) 100%);
  background-size: 160% 160%;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media-fallback {
    animation: none;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md) var(--space-xl);
  display: grid;
  gap: var(--space-lg);
}

/* Hero entrance: staggered rise, not a scroll reveal (it's above the fold and
   should feel alive the moment the page loads). */
.hero__content > * {
  opacity: 0;
  animation: heroRise 900ms var(--motion-ease) forwards;
}
.hero__content > *:nth-child(1) {
  animation-delay: 80ms;
}
.hero__content > *:nth-child(2) {
  animation-delay: 200ms;
}
.hero__content > *:nth-child(3) {
  animation-delay: 340ms;
}
.hero__content > *:nth-child(4) {
  animation-delay: 460ms;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__content > * {
    opacity: 1;
    animation: none;
  }
}

.hero__eyebrow {
  /* A solid-ish chip instead of bare colored text over video: red-on-red footage
     can't wash this out the way it could with text-shadow alone. */
  display: inline-flex;
  width: fit-content;
  color: var(--color-on-dark);
  background: rgba(200, 30, 58, 0.4);
  border: 1px solid rgba(245, 245, 244, 0.16);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__headline {
  font-size: var(--fs-display-xl);
  max-width: 18ch;
  margin: 0 0 var(--space-xs);
  color: var(--color-on-dark);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__body {
  font-size: var(--fs-body-lg);
  max-width: 52ch;
  color: rgba(245, 245, 244, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.hero__quote-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  max-width: 34rem;
}

.hero__quote-mark {
  width: 4px;
  align-self: stretch;
  border-radius: var(--radius-pill);
  background: var(--color-red-bright);
}

.hero__quote-panel p {
  margin: 0;
  font-size: var(--fs-small);
}

.hero__quote-panel a {
  font-weight: 600;
  color: var(--color-red-bright);
  text-decoration: none;
}

.hero__stats {
  display: grid;
  gap: var(--space-xs);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-panel {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  display: grid;
  gap: 2px;
}

.stat-panel__icon {
  width: 20px;
  height: 20px;
  margin-bottom: var(--space-3xs);
  color: var(--color-red-bright);
}

.stat-panel__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-panel__label {
  font-size: var(--fs-small);
  color: var(--color-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme='memorial'] .stat-panel__label,
.hero .stat-panel__label {
  color: rgba(247, 242, 233, 0.72);
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }
  .hero__content {
    padding-top: var(--space-xl);
  }
}

/* ---------- Section header ---------- */
.section-header {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  margin-top: var(--space-2xs);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* For grids that may contain very few items (e.g. one medical board member) —
   caps card width so a single card doesn't stretch to fill the entire row. */
.card-grid--capped {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.card__eyebrow {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

/* Card variant for use on a dark (carbon) section background */
.card--on-dark {
  background: rgba(245, 245, 244, 0.04);
  border-color: rgba(245, 245, 244, 0.14);
  color: var(--color-on-dark);
}
.card--on-dark .card__eyebrow {
  color: var(--color-red-bright);
}
.card--on-dark p {
  color: rgba(245, 245, 244, 0.75);
}
.card--on-dark:hover {
  border-color: rgba(245, 245, 244, 0.32);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-dark);
  background: var(--color-red);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* Partner monogram — used instead of a fake/placeholder logo image */
.partner-monogram {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent-strong);
  margin-bottom: var(--space-xs);
}

.partner-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xs);
}

.tier-label {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

/* Media placeholder tiles — an honest empty state, never a fake photo */
.media-placeholder-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.media-placeholder-tile {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  font-size: var(--fs-small);
  text-align: center;
  padding: var(--space-sm);
}
[data-theme='memorial'] .media-placeholder-tile {
  border-color: rgba(245, 245, 244, 0.22);
  color: rgba(245, 245, 244, 0.5);
}

.media-tile {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.media-tile__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #000;
  display: block;
}
.media-tile__caption {
  margin: 0;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
}

/* ---------- Jayden's Story hero: decorative 3D note highway ---------- */
.story-hero {
  position: relative;
  overflow: hidden;
}
.story-hero-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  min-height: 180px;
  pointer-events: none;
  z-index: 0;
}
.story-hero-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 15%, transparent 45%, transparent 100%);
  pointer-events: none;
}
.story-hero__content {
  position: relative;
  z-index: 1;
}

/* People cards — typography-driven on purpose, no forced photos */
.person-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-weight: 700;
  margin: 0;
  color: var(--color-ink);
}

.person-card__title {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.person-card__credentials {
  color: var(--color-ink-muted);
  font-size: var(--fs-small);
}

/* Editorial profile page */
.profile-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.profile-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.profile-header__name {
  margin-bottom: var(--space-3xs);
}

.profile-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-ink-muted);
  font-size: var(--fs-small);
}

.profile-section {
  margin-bottom: var(--space-xl);
}

.profile-quote {
  border-left: 3px solid var(--color-red);
  padding-left: var(--space-md);
  margin: 0 0 var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-style: italic;
  color: var(--color-ink);
}

.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.profile-contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: 2px;
}

.profile-contact a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.profile-section h2 {
  font-size: var(--fs-heading);
}

.profile-list {
  display: grid;
  gap: var(--space-2xs);
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-list li {
  padding-left: var(--space-sm);
  position: relative;
  color: var(--color-ink-soft);
}

.profile-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.profile-affiliations {
  display: grid;
  gap: var(--space-sm);
}

.profile-affiliation {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.profile-affiliation__name {
  font-family: var(--font-display);
  font-weight: 700;
}

.profile-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Impact / donation-amount cards */
.impact-card {
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  display: grid;
  gap: var(--space-xs);
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease),
    border-top-color var(--motion-base) var(--motion-ease);
}

.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-red);
}

.impact-card__amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-accent-strong);
}

/* ---------- CTA banner ---------- */
/* Solid neutral carbon, not a burgundy wash — red stays confined to the
   button and the top accent line, per "red is for CTAs, not whole sections." */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-carbon);
  border-top: 3px solid var(--color-red);
  color: var(--color-on-dark);
  display: grid;
  gap: var(--space-md);
  text-align: center;
  justify-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-carbon);
  color: rgba(245, 245, 244, 0.78);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.site-footer a {
  color: rgba(245, 245, 244, 0.78);
  text-decoration: none;
}
.site-footer a:visited {
  color: rgba(245, 245, 244, 0.78);
}
.site-footer a:hover,
.site-footer a:visited:hover {
  color: var(--color-red-bright);
}

/* Logo gets its own full-width, unmissable block — not squeezed next to a nav column */
.site-footer__brand-block {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.site-footer__logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.site-footer__logo {
  height: 96px;
  width: auto;
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-md);
  color: var(--color-on-dark);
  margin: 0;
  line-height: var(--lh-tight);
}

.site-footer__tagline {
  margin: var(--space-3xs) 0 0;
  color: rgba(245, 245, 244, 0.65);
  font-size: var(--fs-body-lg);
}

.site-footer__divider {
  border-top: 1px solid rgba(245, 245, 244, 0.14);
  margin-bottom: var(--space-lg);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 780px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .site-footer__logo {
    height: 72px;
  }
  .site-footer__brand-name {
    font-size: var(--fs-heading);
  }
  .site-footer__brand-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-footer h3 {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red-bright);
  margin-bottom: var(--space-xs);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2xs);
}

.site-footer__social {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 244, 0.24);
  color: var(--color-on-dark);
  transition: border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}
.site-footer__social-icon:visited {
  color: var(--color-on-dark);
}
.site-footer__social-icon:hover {
  border-color: var(--color-red-bright);
  color: var(--color-red-bright);
}
.site-footer__social-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer__urgent {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(245, 245, 244, 0.04);
  border: 1px solid rgba(245, 245, 244, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  justify-content: space-between;
}

.site-footer__urgent strong {
  color: var(--color-on-dark);
  font-family: var(--font-display);
}

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(245, 245, 244, 0.1);
  font-size: var(--fs-small);
  color: rgba(245, 245, 244, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
}

.site-footer__version {
  color: rgba(245, 245, 244, 0.35);
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.site-footer__credit a {
  color: rgba(245, 245, 244, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Keep the last row of the footer clear of the fixed mobile bottom nav */
@media (max-width: 679px) {
  .site-footer {
    padding-bottom: calc(var(--space-xl) + 60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
}
[data-theme='memorial'] .lang-switch,
.hero .lang-switch,
.fullscreen-menu .lang-switch {
  border-color: rgba(239, 230, 211, 0.35);
}

.lang-switch a {
  padding: var(--space-3xs) var(--space-sm);
  text-decoration: none;
  color: var(--color-ink-muted);
}

[data-theme='memorial'] .lang-switch a,
.hero .lang-switch a,
.fullscreen-menu .lang-switch a {
  color: rgba(247, 242, 233, 0.6);
}

.lang-switch a[aria-current='true'] {
  background: var(--color-accent);
  color: var(--color-on-dark);
}

/* ---------- Forms ---------- */
.form-shell {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.progress-steps {
  display: flex;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.progress-steps li {
  list-style: none;
  font-size: var(--fs-small);
  font-family: var(--font-display);
  font-weight: 600;
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  color: var(--color-ink-muted);
}

.progress-steps li.is-active {
  background: var(--color-accent);
  color: var(--color-on-dark);
}

.form-field {
  display: grid;
  gap: var(--space-3xs);
  margin-bottom: var(--space-sm);
}

.form-field label {
  font-weight: 600;
  font-size: var(--fs-small);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-ink);
  min-height: 48px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-focus);
}

.form-field--error input,
.form-field--error select,
.form-field--error textarea {
  border-color: var(--color-danger);
}

.form-error {
  color: var(--color-danger);
  font-size: var(--fs-small);
}

.form-row {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.checkbox-field input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  min-height: unset;
}

.urgent-banner {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

/* Honeypot: hidden from sighted and screen-reader users, but present in the DOM/tab order trap for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.faq-search {
  position: relative;
  max-width: 32rem;
  width: 100%;
  margin-inline: auto;
}

.faq-search__icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-ink-muted);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  min-height: 48px;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.faq-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(143, 21, 36, 0.14);
}
.faq-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  justify-content: center;
}

.faq-filter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease);
  white-space: nowrap;
}
.faq-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-ink);
}
.faq-filter.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-bg);
}

.faq-results-count {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-md);
  min-height: 1.2em;
}

.faq-list {
  display: grid;
  gap: var(--space-xs);
}

.faq-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--motion-fast) var(--motion-ease);
}

.faq-item.is-hidden {
  display: none;
}

.faq-item__heading {
  margin: 0;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-snug);
  color: var(--color-ink);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  position: relative;
  transition: background var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-ink-soft);
  transition: opacity var(--motion-base) var(--motion-ease);
}
.faq-item__icon::before {
  left: 50%;
  top: 26%;
  bottom: 26%;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item__icon::after {
  top: 50%;
  left: 26%;
  right: 26%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-item__question[aria-expanded='true'] .faq-item__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.faq-item__question[aria-expanded='true'] .faq-item__icon::before,
.faq-item__question[aria-expanded='true'] .faq-item__icon::after {
  background: var(--color-on-dark);
}
.faq-item__question[aria-expanded='true'] .faq-item__icon::before {
  opacity: 0;
}

.faq-item__answer {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-ink-soft);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.faq-item__answer p {
  margin: 0;
}

.faq-empty {
  text-align: center;
  color: var(--color-ink-muted);
  padding: var(--space-xl) var(--space-md);
}

/* ---------- Jayden's Story: click-to-reveal annotations ---------- */
.story-annotation-trigger,
.story-infinity-trigger {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px dotted var(--color-accent);
  transition: color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.story-annotation-trigger:hover,
.story-annotation-trigger:focus-visible,
.story-infinity-trigger:hover,
.story-infinity-trigger:focus-visible {
  color: var(--color-accent);
}
.story-annotation-trigger[aria-expanded='true'] {
  border-bottom-style: solid;
  color: var(--color-accent);
}
.story-annotation-trigger--hero {
  border-bottom-width: 3px;
}

.story-annotation-panel {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  text-align: left;
  animation: story-annotation-in var(--motion-slow) var(--motion-ease);
}
.story-annotation-panel p {
  margin: 0;
  color: var(--color-ink);
  font-size: var(--fs-body);
}
.story-annotation-panel--hero {
  max-width: 60ch;
  margin-inline: auto;
}

@keyframes story-annotation-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The "to infinity... and beyond" exchange stays fully visible and grammatically
   complete without JS — the click only adds a celebratory flourish on top. */
.story-infinity-response {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: var(--color-ink);
}
.story-infinity-response.is-celebrating {
  animation: story-infinity-pulse 700ms var(--motion-ease);
}
@keyframes story-infinity-pulse {
  0% {
    transform: scale(1);
    color: var(--color-ink);
  }
  35% {
    transform: scale(1.14);
    color: var(--color-accent);
  }
  100% {
    transform: scale(1);
    color: var(--color-ink);
  }
}
.story-infinity-response::before,
.story-infinity-response::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  pointer-events: none;
}
.story-infinity-response.is-celebrating::before {
  animation: story-spark-a 700ms var(--motion-ease);
}
.story-infinity-response.is-celebrating::after {
  animation: story-spark-b 700ms var(--motion-ease);
}
@keyframes story-spark-a {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-140%, -220%) scale(1);
  }
}
@keyframes story-spark-b {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(60%, -220%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-annotation-panel {
    animation: none;
  }
  .story-infinity-response.is-celebrating,
  .story-infinity-response.is-celebrating::before,
  .story-infinity-response.is-celebrating::after {
    animation: none;
  }
  .story-infinity-response.is-celebrating {
    color: var(--color-accent);
  }
}
