/* =========================================================
   KEN MASSEY FOR MICHIGAN STATE SENATE — DISTRICT 8
   Shared stylesheet for all pages
   ---------------------------------------------------------
   Sections:
   1.  Design tokens (CSS variables)
   2.  Base resets & typography
   3.  Layout utilities
   4.  Buttons
   5.  Navigation (sticky bar + mobile)
   6.  Hero
   7.  Section blocks
   8.  Cards (endorsement / event / media / district)
   9.  Footer
   10. Animations & motion
   11. Page-specific tweaks
   12. Responsive breakpoints
   13. Reduced motion
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   --------------------------------------------------------- */
:root {
  /* Palette — Ken Massey brand: purple primary + green accent */
  --color-navy: #261B69;          /* Ken's brand purple */
  --color-navy-deep: #1a1247;
  --color-navy-soft: #3d2d8e;
  --color-accent: #00773C;        /* Ken's brand green */
  --color-accent-dark: #005c2f;
  --color-accent-light: #009a51;
  --color-gold: #c9a961;          /* subtle premium accent (unused) */
  --color-white: #ffffff;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-border: #e3e8ef;
  --color-text: #1a2533;
  --color-text-muted: #5a6678;
  --color-text-light: #8a93a3;
  --color-placeholder-bg: #d9dfe6;
  --color-placeholder-text: #6b7785;

  /* Typography */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(38, 27, 105, 0.06), 0 1px 3px rgba(38, 27, 105, 0.05);
  --shadow-md: 0 4px 12px rgba(38, 27, 105, 0.08), 0 2px 4px rgba(38, 27, 105, 0.04);
  --shadow-lg: 0 12px 32px rgba(38, 27, 105, 0.12), 0 4px 8px rgba(38, 27, 105, 0.06);
  --shadow-accent: 0 8px 24px rgba(0, 119, 60, 0.25);

  /* Layout */
  --container-width: 1180px;
  --container-padding: 24px;
  --nav-height: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 600ms;
}


/* =========================================================
   2. BASE RESETS & TYPOGRAPHY
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* HTML5 hidden attribute — guarantee no element with `hidden` ever renders,
   even if a more specific selector later sets `display:` */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4) 0;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-4) 0;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-dark);
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}


/* =========================================================
   3. LAYOUT UTILITIES
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-9) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-8) 0;
}

.section--alt {
  background-color: var(--color-white);
}

.section--navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7) auto;
}

.section-header p {
  font-size: 1.0625rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}


/* =========================================================
   4. BUTTONS
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost-light {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}


/* =========================================================
   5. NAVIGATION
   --------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--color-navy);
}

.nav-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.nav-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0.85;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text span:first-child {
  font-size: 1rem;
  font-weight: 700;
}

.nav-brand-text span:last-child {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-med) var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-navy);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--color-navy);
  font-weight: 600;
}

.nav-cta {
  margin-left: var(--space-3);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  position: relative;
  width: 24px;
  height: 18px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 1px;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              top var(--dur-med) var(--ease-out);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8px; }
.nav-toggle-bars span:nth-child(3) { top: 16px; }

.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}


/* =========================================================
   6. HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  background: linear-gradient(140deg, #f0f4fa 0%, #ffffff 60%, #fdf3f4 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 119, 60, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(38, 27, 105, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: var(--space-5);
}

.hero-subhead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.hero-meta {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-meta-item strong {
  color: var(--color-navy);
  font-size: 0.9375rem;
  font-weight: 700;
}

.hero-meta-item span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.hero-meta-divider {
  width: 1px;
  height: 36px;
  background-color: var(--color-border);
}

/* Page hero variant (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 119, 60, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

/* --- Photo-banner variant of page-hero ---
   Uses a real <img> as a blurred + darkened background.
   Markup pattern:
     <section class="page-hero page-hero--photo">
       <img class="page-hero-bg" src="..." alt="" aria-hidden="true" />
       <div class="page-hero-overlay" aria-hidden="true"></div>
       <div class="container page-hero-content">...</div>
     </section>
*/
.page-hero--photo {
  background: var(--color-navy-deep);
}

.page-hero--photo::before {
  /* Tone down the red radial glow on top of the photo */
  opacity: 0.6;
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Light blur + darken — keeps photo recognizable while text stays legible */
  filter: blur(4px) brightness(0.5) saturate(1.15);
  /* Scale up slightly so the blur doesn't reveal sharp edges */
  transform: scale(1.04);
  z-index: 0;
  /* Subtle slow drift for life — disabled by reduced motion */
  animation: heroPhotoDrift 28s ease-in-out infinite alternate;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(38, 27, 105, 0.78) 0%, rgba(26, 18, 71, 0.62) 55%, rgba(0, 119, 60, 0.28) 100%);
  z-index: 0;
}

/* On photo heroes, ensure headline text gets the darkest area at left */
.page-hero--photo .page-hero-content {
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.35);
}

@keyframes heroPhotoDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.07) translate(-10px, 5px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg { animation: none; }
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}


/* =========================================================
   7. IMAGE PLACEHOLDERS
   --------------------------------------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-placeholder-bg);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.15) 0 2px, transparent 2px 14px);
  color: var(--color-placeholder-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  text-align: center;
  padding: var(--space-5);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.placeholder--hero {
  aspect-ratio: 4 / 5;
  min-height: 360px;
  box-shadow: var(--shadow-lg);
}

.placeholder--wide {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.placeholder--square {
  aspect-ratio: 1 / 1;
}

.placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.placeholder--map {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.placeholder--video::before {
  content: "▶";
  position: absolute;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  background: var(--color-navy);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding-left: 6px;
}

.placeholder--video {
  position: relative;
}

.placeholder:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}


/* =========================================================
   8. CARDS
   --------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Endorsement card */
.endorsement-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.endorsement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.endorsement-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.endorsement-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--color-placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--color-placeholder-text);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 6px;
  overflow: hidden;
}

/* When the photo div contains a real <img>, drop the placeholder padding
   so the image fills the entire circle edge-to-edge. */
.endorsement-photo:has(img) {
  padding: 0;
  background-color: transparent;
}

.endorsement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

/* Contain variant — for organization logos. Switches the circular
   container to a rounded square so the whole logo fits without the
   circle clipping its corners. */
.endorsement-photo--contain {
  background-color: var(--color-white);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.endorsement-photo--contain img {
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

/* When the photo div holds just initials (2 chars), render them prominently
   on a purple → soft-purple gradient until a real photo is dropped in. */
.endorsement-photo--initials {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  padding: 0;
  text-transform: uppercase;
}

.endorsement-name {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 2px;
}

.endorsement-title {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.endorsement-quote {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-accent);
  margin: 0;
}

.endorsement-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* Event card */
.event-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 130px 1fr;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-date {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-date-month {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
}

.event-date-day {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0;
}

.event-date-year {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
}

.event-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-body h3 {
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

.event-meta {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background-color: rgba(0, 119, 60, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  width: fit-content;
}

/* Media card */
.media-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.media-card .placeholder {
  border-radius: 0;
}

.media-body {
  padding: var(--space-5);
}

.media-body h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.media-body p {
  font-size: 0.875rem;
  margin: 0;
}

/* District list */
.district-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.district-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-navy);
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.district-list li:hover {
  transform: translateX(4px);
  border-color: var(--color-accent);
}

.district-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}


/* =========================================================
   9. ABOUT — BIO BLOCKS
   --------------------------------------------------------- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}

.bio-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bio-point {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.bio-point:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bio-point-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.bio-point h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.bio-point p {
  margin: 0;
  font-size: 0.9375rem;
}


/* =========================================================
   10. DONATION
   --------------------------------------------------------- */
.donate-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  max-width: 720px;
  margin: 0 auto;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.donate-amount {
  padding: var(--space-4) var(--space-3);
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
  font-family: var(--font-sans);
}

.donate-amount:hover,
.donate-amount.is-selected {
  border-color: var(--color-accent);
  background-color: rgba(0, 119, 60, 0.05);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.donate-amount.is-custom {
  grid-column: span 2;
  font-size: 0.875rem;
}

.donate-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-4);
}

.disclaimer-box {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background-color: rgba(38, 27, 105, 0.04);
  border-left: 3px solid var(--color-navy);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.disclaimer-box strong {
  display: block;
  color: var(--color-navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}


/* =========================================================
   11. FORMS
   --------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 60, 0.12);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-block {
  padding: var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-block h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-3);
}

.contact-block a {
  display: block;
  padding: 6px 0;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}

.contact-block a:last-child {
  border-bottom: none;
}

.contact-block a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Social pills used inside a contact block (e.g., Contact page Follow block) */
.social-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.social-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: rgba(38, 27, 105, 0.06);
  color: var(--color-navy);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.social-pill:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 60, 0.25);
  border-color: var(--color-accent);
}

/* Brand SVG inside the social-pill */
.social-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}


/* =========================================================
   21. BREVO SUBSCRIPTION FORM INTEGRATION
   ---------------------------------------------------------
   Restyles Brevo's success/error message panels and form
   container to match the campaign palette. The actual form
   uses our existing .form-grid / .form-field / .btn styles.
   ========================================================= */

/* Container — let our form-grid handle layout */
.sib-form-container {
  width: 100%;
}

/* Brevo's CSS hides .sib-form-message-panel by default with :where()
   so our display: none here is the canonical state. The Brevo JS
   sets display via inline style when it needs to show messages. */
.sib-form-message-panel {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

#success-message.sib-form-message-panel {
  background-color: rgba(0, 119, 60, 0.08);
  color: var(--color-accent-dark);
  border-color: rgba(0, 119, 60, 0.4);
}

#error-message.sib-form-message-panel {
  background-color: rgba(38, 27, 105, 0.06);
  color: var(--color-navy);
  border-color: rgba(38, 27, 105, 0.3);
}

.sib-form-message-panel__inner-text {
  font-weight: 500;
}

/* Brevo wrappers — let them inherit our font + spacing */
.sib-form,
.sib-form-container,
#sib-container,
.sib-container--large,
.sib-container--vertical {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  max-width: none !important;
  font-family: var(--font-sans) !important;
  text-align: left !important;
  width: 100% !important;
  direction: ltr;
}

/* Brevo's input/label blocks — restyle to use our form-field styling */
#sib-container .sib-form-block {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

#sib-container .form__entry,
#sib-container .entry_block,
#sib-container .form__label-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

#sib-container .entry__label {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--color-navy) !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
  text-align: left !important;
}

#sib-container .entry__field {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

#sib-container input.input {
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--color-white) !important;
  color: var(--color-text) !important;
  width: 100% !important;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out) !important;
}

#sib-container input.input:focus {
  outline: none !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 119, 60, 0.12) !important;
}

#sib-container .entry__error {
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
  margin: 6px 0 0 !important;
}

/* Brevo Subscribe button — use our btn classes */
#sib-container .sib-form-block__button {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  background-color: var(--color-accent) !important;
  color: var(--color-white) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--space-2) !important;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out) !important;
  width: auto !important;
}

#sib-container .sib-form-block__button:hover {
  background-color: var(--color-accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 60, 0.25);
}

#sib-container .sib-form-block__button .sib-hide-loader-icon {
  display: none;
}

/* Honeypot — always hidden */
.input--hidden {
  display: none !important;
}


/* =========================================================
   22. CONTACT FORM (Formspree) RESULT PANELS
   ---------------------------------------------------------
   Inline success/error panels shown after the message form
   submits via fetch().
   ========================================================= */
.contact-form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.contact-form-message strong {
  display: inline;
  margin-right: 4px;
}

.contact-form-message--success {
  background-color: rgba(0, 119, 60, 0.08);
  color: var(--color-accent-dark);
  border-color: rgba(0, 119, 60, 0.4);
}

.contact-form-message--error {
  background-color: rgba(38, 27, 105, 0.06);
  color: var(--color-navy);
  border-color: rgba(38, 27, 105, 0.3);
}

.contact-form-message--error a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* Disabled submit state */
button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}


/* =========================================================
   24. YARD SIGN REQUEST — accordion form
   ---------------------------------------------------------
   Collapsed by default. Toggle button expands the form
   using the same grid-template-rows animation as the
   transcript accordion.
   ========================================================= */
.yard-sign-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.yard-sign-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color var(--dur-fast) var(--ease-out);
}

.yard-sign-toggle-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.yard-sign-toggle:hover .yard-sign-toggle-icon {
  background: rgba(255, 255, 255, 0.32);
}

.yard-sign.is-open .yard-sign-toggle-icon {
  transform: rotate(90deg);
}

/* Use max-height animation instead of grid-template-rows for more reliable
   clip-free expansion when the form content is tall */
.yard-sign-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yard-sign.is-open .yard-sign-wrapper {
  /* Generous cap — content will only render to its natural height, but the
     upper bound is high enough that nothing gets clipped, no matter how many
     fields the form eventually has. */
  max-height: 2600px;
}

.yard-sign-content {
  padding-top: 0;
  padding-bottom: 4px;
  transition: padding-top 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yard-sign.is-open .yard-sign-content {
  padding-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .yard-sign-wrapper,
  .yard-sign-toggle-icon,
  .yard-sign-content {
    transition: none !important;
  }
}


/* =========================================================
   23. CAMPAIGN SPOTLIGHT GALLERY + LIGHTBOX
   ---------------------------------------------------------
   Asymmetric spotlight: one dominant hero photo on the left
   + side panel with 2x2 thumbnails and a "+N more" overlay
   teasing the rest of the gallery.
   ========================================================= */

.campaign-spotlight {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--space-7);
  align-items: stretch;
}

/* --- Video variant: clickable video tile replaces the hero photo --- */
.campaign-spotlight--video {
  align-items: center;
}

.spotlight-video-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: var(--color-placeholder-bg);
  box-shadow: 0 16px 40px rgba(38, 27, 105, 0.18);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  font-family: inherit;
}

.spotlight-video-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(38, 27, 105, 0.30);
}

.spotlight-video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease-out);
}

.spotlight-video-tile:hover img {
  transform: scale(1.045);
}

/* Gradient overlay so caption stays legible */
.spotlight-video-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 5, 30, 0.18) 0%, transparent 35%, transparent 55%, rgba(10, 5, 30, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Big play button */
.spotlight-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--dur-med) var(--ease-out);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spotlight-video-play svg {
  width: 40%;
  height: 40%;
  margin-left: 4px;
}

.spotlight-video-tile:hover .spotlight-video-play,
.spotlight-video-tile:focus-visible .spotlight-video-play {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 44px rgba(0, 119, 60, 0.55);
}

.spotlight-video-tile:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.spotlight-video-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spotlight-video-caption::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

/* --- In-lightbox video player + transcript --- */
.lightbox-stage--video {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 0;
  gap: 0;
}

.lightbox-video {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.lightbox-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* In-lightbox transcript accordion (custom toggle for smooth animation) */
.lightbox-transcript {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  transition: background-color var(--dur-med) var(--ease-out);
}

.lightbox-transcript.is-open {
  background: rgba(255, 255, 255, 0.07);
}

/* Summary button — takes full width, looks like a tappable bar */
.lightbox-transcript-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
  font-weight: 600;
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.lightbox-transcript-summary:hover,
.lightbox-transcript-summary:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: 0;
}

.lightbox-transcript-summary-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-white);
}

.lightbox-transcript-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding-left: 2px;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-transcript.is-open .lightbox-transcript-summary-icon {
  transform: rotate(90deg);
}

.lightbox-transcript-summary-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Animation wrapper — uses grid-template-rows trick for smooth open/close */
.lightbox-transcript-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-transcript.is-open .lightbox-transcript-wrapper {
  grid-template-rows: 1fr;
}

/* Content — capped at max-height so it scrolls internally instead of pushing
   the lightbox layout around */
.lightbox-transcript-content {
  min-height: 0;
  overflow-y: auto;
  max-height: 42vh;
  padding: 0 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
  transition: padding-top 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
              padding-bottom 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  border-top: 1px solid transparent;
}

.lightbox-transcript-content::-webkit-scrollbar { width: 6px; }
.lightbox-transcript-content::-webkit-scrollbar-track { background: transparent; }
.lightbox-transcript-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.lightbox-transcript.is-open .lightbox-transcript-content {
  padding-top: 18px;
  padding-bottom: 22px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.lightbox-transcript-content p {
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, 0.88);
}

.lightbox-transcript-content p:last-child {
  margin-bottom: 0;
}

.lightbox-transcript-content strong {
  color: var(--color-white);
}

.lightbox-transcript-content h4 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 22px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.lightbox-transcript-content h4:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-transcript-wrapper,
  .lightbox-transcript-summary-icon,
  .lightbox-transcript-content {
    transition: none !important;
  }
}

/* (video dot styling now lives in the dot-indicator section below) */

@media (max-width: 720px) {
  .spotlight-video-play {
    width: 64px;
    height: 64px;
  }
  .lightbox-video {
    max-width: 100%;
  }
}

/* --- Hero photo (left) --- */
.spotlight-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background-color: var(--color-placeholder-bg);
  min-height: 520px;
  box-shadow: 0 16px 40px rgba(38, 27, 105, 0.18);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  font-family: inherit;
}

.spotlight-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(38, 27, 105, 0.30);
}

.spotlight-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease-out);
}

.spotlight-hero:hover img {
  transform: scale(1.045);
}

/* Bottom gradient for caption legibility */
.spotlight-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 5, 30, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Big "+" expand badge on hover */
.spotlight-hero::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 6px;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  box-shadow: 0 16px 40px rgba(0, 119, 60, 0.55);
  pointer-events: none;
}

.spotlight-hero:hover::after,
.spotlight-hero:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.spotlight-hero:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.spotlight-hero-caption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spotlight-hero-caption::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

/* --- Side panel (right) --- */
.spotlight-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
}

.spotlight-side > p {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0;
}

.spotlight-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.spotlight-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background-color: var(--color-placeholder-bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  font-family: inherit;
}

.spotlight-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(38, 27, 105, 0.22);
  z-index: 1;
}

.spotlight-thumb:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.spotlight-thumb:hover img {
  transform: scale(1.08);
}

/* Last thumbnail shows "+N more" overlay */
.spotlight-thumb--more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38, 27, 105, 0.86) 0%, rgba(26, 18, 71, 0.92) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  z-index: 1;
  transition: background var(--dur-fast) var(--ease-out);
  text-align: center;
  padding: 8px;
  line-height: 1.2;
}

.spotlight-thumb--more:hover::after {
  background: linear-gradient(135deg, rgba(0, 119, 60, 0.86) 0%, rgba(0, 92, 47, 0.92) 100%);
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

.spotlight-meta::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.spotlight-side .btn {
  align-self: flex-start;
}

@media (max-width: 980px) {
  .campaign-spotlight {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .spotlight-hero {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .spotlight-hero {
    min-height: 280px;
  }
  .spotlight-hero-caption {
    bottom: 14px;
    left: 14px;
    font-size: 0.6875rem;
  }
}

/* --- Transcript (expandable accordion, native <details>) --- */
.transcript {
  margin-top: var(--space-7);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}

.transcript[open] {
  box-shadow: 0 10px 30px rgba(38, 27, 105, 0.10);
  border-color: transparent;
}

.transcript-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 600;
  color: var(--color-navy);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.transcript-summary::-webkit-details-marker { display: none; }
.transcript-summary::marker { display: none; }

.transcript-summary:hover {
  background-color: var(--color-bg);
}

.transcript-summary-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}

.transcript-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding-left: 2px;
  transition: transform var(--dur-med) var(--ease-out);
}

.transcript[open] .transcript-summary-icon {
  transform: rotate(90deg);
  padding-left: 0;
  padding-top: 2px;
}

.transcript-summary-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}

.transcript-content {
  padding: 24px 28px 32px;
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 820px;
  border-top: 1px solid var(--color-border);
}

.transcript-content p {
  margin: 0 0 var(--space-4);
}

.transcript-content p:last-child {
  margin-bottom: 0;
}

.transcript-content h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: var(--space-6) 0 var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-border);
  letter-spacing: 0.1em;
}

.transcript-content h4:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: var(--space-5);
}

@media (max-width: 720px) {
  .transcript-summary {
    padding: 16px 18px;
  }
  .transcript-content {
    padding: 20px 18px 24px;
    font-size: 0.875rem;
  }
}

/* Legacy gallery-tile class kept in case other pages reference it */
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-placeholder-bg);
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Lightbox (macOS Finder gallery view style) ---
   Vertical layout: image at top, filmstrip of thumbnails below.
   Prev/next arrows live in the side padding, outside the image. --- */
.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 5, 30, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 64px 96px 24px;
  gap: 18px;
  animation: lightboxFadeIn 280ms var(--ease-out);
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  display: block;
  animation: lightboxImageIn 360ms var(--ease-out);
}

@keyframes lightboxImageIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
  font-weight: 300;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  z-index: 10;
}

/* Close button — fixed to viewport top-right corner */
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
}

/* Arrows — sit in the side padding area, vertically centered on the image area
   (image area = full lightbox minus filmstrip). Using top: 50% positions them
   in the middle of the lightbox which is roughly the middle of the image stage. */
.lightbox-prev,
.lightbox-next {
  top: calc(50% - 40px); /* nudge up to center on stage, not full height */
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  padding-bottom: 5px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-prev:hover,
.lightbox-prev:focus-visible,
.lightbox-next:hover,
.lightbox-next:focus-visible {
  background: var(--color-accent);
  outline: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Filmstrip — minimalist dot indicators */
.lightbox-strip-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lightbox-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.lightbox-strip::-webkit-scrollbar { display: none; }

.lightbox-thumb {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: width 240ms var(--ease-out),
              height 240ms var(--ease-out),
              background-color 240ms var(--ease-out),
              border-radius 240ms var(--ease-out),
              transform 200ms var(--ease-out);
}

/* Hide the <img> inside — JS still appends it for future use */
.lightbox-thumb img {
  display: none;
}

.lightbox-thumb:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: scale(1.25);
}

.lightbox-thumb.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-accent);
  transform: none;
}

/* Video dot — slightly larger, brand green so it stands out */
.lightbox-thumb--video {
  width: 10px;
  height: 10px;
  background: rgba(0, 119, 60, 0.7);
}

.lightbox-thumb--video:hover {
  background: var(--color-accent);
  transform: scale(1.25);
}

.lightbox-thumb--video.is-active {
  width: 24px;
  background: var(--color-accent);
}

/* Remove the previous play-icon pseudo-elements that were styled for image thumbs */
.lightbox-thumb--video::before,
.lightbox-thumb--video::after {
  content: none;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .lightbox { padding: 50px 64px 20px; }
}

@media (max-width: 720px) {
  .lightbox {
    padding: 50px 12px 16px;
    gap: 12px;
  }
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .lightbox-thumb {
    width: 64px;
    height: 44px;
  }
  .lightbox-strip {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-image, .lightbox-thumb,
  .gallery-tile, .gallery-tile img,
  .spotlight-hero, .spotlight-hero img,
  .spotlight-thumb, .spotlight-thumb img {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   12. CTA STRIP
   --------------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(0, 119, 60, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-strip h2 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 1.0625rem;
}

.cta-strip-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  flex-wrap: wrap;
}


/* =========================================================
   13. FOOTER
   --------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0 var(--space-5);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.footer-social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Brand SVG inside the footer-social circle */
.footer-social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: 720px;
}

.footer-disclaimer strong {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}


/* =========================================================
   14. ANIMATIONS
   --------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page load animation chain */
.animate-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 800ms var(--ease-out) forwards;
}

.animate-load-1 { animation-delay: 100ms; }
.animate-load-2 { animation-delay: 250ms; }
.animate-load-3 { animation-delay: 400ms; }
.animate-load-4 { animation-delay: 550ms; }
.animate-load-5 { animation-delay: 700ms; }

/* Reveal on scroll (set by JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }


/* =========================================================
   15. MOBILE NAV PANEL
   --------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) 0;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-med) var(--ease-out);
  z-index: 99;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 14px var(--container-padding);
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.mobile-nav .btn {
  margin: var(--space-4) var(--container-padding) 0;
  display: flex;
}


/* =========================================================
   16. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner,
  .bio-grid,
  .contact-grid,
  .cta-strip-inner {
    grid-template-columns: 1fr;
  }

  .cta-strip-actions {
    justify-content: flex-start;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .donate-amounts {
    grid-template-columns: repeat(3, 1fr);
  }

  .donate-amount.is-custom {
    grid-column: span 3;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: var(--space-7) 0 var(--space-7);
  }

  .section,
  .page-hero {
    padding: var(--space-7) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .event-card {
    grid-template-columns: 100px 1fr;
  }

  .event-date-day {
    font-size: 2rem;
  }

  .donate-card {
    padding: var(--space-5);
  }

  .district-list {
    grid-template-columns: 1fr;
  }
}


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

  .animate-load,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none !important;
  }
}


/* =========================================================
   18. BOLD + MISSION-FOCUSED DESIGN SYSTEM
   ---------------------------------------------------------
   Adds: display typography, animated accent lines,
   stat counters, mission pillars, marquee tagline strip,
   story callout, service timeline, gradient text,
   multi-direction reveals
   ========================================================= */

/* --- Additional keyframes --- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes shimmerSweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Multi-direction reveals (set by JS observer) --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* --- Display typography --- */
.display {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--color-navy);
  margin: 0 0 var(--space-5) 0;
}

.display-xl {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--color-navy);
  margin: 0 0 var(--space-5) 0;
}

.display em,
.display-xl em {
  font-family: "Playfair Display", "Inter", Georgia, serif;
  font-style: italic;
  font-weight: 900;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
  /* Optical fix — Playfair has tighter side-bearings than Inter */
  letter-spacing: -0.01em;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 60%, var(--color-navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animated underline accent for emphasized words */
.underline-accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.underline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.18em;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: lineGrow 900ms var(--ease-out) 700ms forwards;
  border-radius: 4px;
}

/* --- Bold hero variant --- */
.hero--bold {
  padding: var(--space-9) 0 var(--space-9);
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #f4f7fb 0%, #ffffff 55%, #fef0f2 100%);
}

.hero--bold::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -240px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(0, 119, 60, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGentle 9s var(--ease-in-out) infinite;
}

.hero--bold::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(38, 27, 105, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatGentle 11s var(--ease-in-out) infinite reverse;
}

.hero--bold .hero-inner {
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-7);
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 500;
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.hero-tagline strong {
  color: var(--color-navy);
  font-weight: 700;
}

/* Eyebrow with leading dot accent */
.eyebrow--dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow--dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: pulseDot 2.4s var(--ease-in-out) infinite;
}

/* --- Marquee / scrolling tagline strip --- */
.marquee {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-4) 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-7);
  animation: marqueeScroll 38s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-7);
  color: var(--color-white);
  text-transform: none;
}

.marquee-item::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: inline-block;
}

/* --- Animated stat counters --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  position: relative;
}

.stat-counter {
  text-align: left;
  padding: var(--space-5) 0;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-4);
}

.stat-counter-num {
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-counter-num .stat-suffix {
  font-size: 0.5em;
  color: var(--color-accent);
  font-weight: 800;
}

.stat-counter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* --- Mission pillars --- */
.mission-section {
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-navy) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.mission-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 119, 60, 0.22) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.mission-section .section-header h2 {
  color: var(--color-white);
}

.mission-section .section-header p {
  color: rgba(255, 255, 255, 0.78);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.mission-pillar {
  padding: var(--space-6) var(--space-5);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mission-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-accent);
  transition: width var(--dur-med) var(--ease-out);
}

.mission-pillar:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 119, 60, 0.4);
}

.mission-pillar:hover::before {
  width: 100%;
}

.mission-pillar-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.mission-pillar h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mission-pillar p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* --- Story callout (mental health advocacy) --- */
.story-callout {
  background: linear-gradient(135deg, #ffffff 0%, #faf6f7 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  border-left: 6px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.story-callout::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 119, 60, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.story-callout > * { position: relative; z-index: 1; }

.story-callout-mark {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  border: 2px solid var(--color-border);
}

.story-callout-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

a.story-callout-mark:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

/* --- Mental Health Now Candidate designation badge (in story callout) --- */
.mhn-callout {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  margin: var(--space-4) 0;
  background: rgba(123, 46, 178, 0.06);
  border-left: 4px solid #7b2eb2;
  border-radius: var(--radius-md);
}

.mhn-callout-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.mhn-callout-body {
  min-width: 0;
}

.mhn-callout-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #7b2eb2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.mhn-callout-headline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.mhn-callout-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .mhn-callout {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  .mhn-callout-logo {
    margin: 0 auto 4px;
    width: 72px;
    height: 72px;
  }
}

/* Larger standalone variant used on the Endorsements page section */
.mhn-callout--standalone {
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(123, 46, 178, 0.06) 0%, rgba(123, 46, 178, 0.02) 100%);
  border-left-width: 6px;
  box-shadow: 0 8px 24px rgba(123, 46, 178, 0.08);
}

.mhn-callout--standalone .mhn-callout-logo {
  width: 140px;
  height: 140px;
}

.mhn-callout--standalone .mhn-callout-headline {
  font-size: 1.25rem;
}

.mhn-callout--standalone .mhn-callout-description {
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  .mhn-callout--standalone {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .mhn-callout--standalone .mhn-callout-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 8px;
  }
}

.story-callout h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.story-callout p {
  margin: 0;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.story-callout p + p {
  margin-top: var(--space-3);
}

/* --- Service timeline (About page) --- */
.timeline {
  position: relative;
  padding-left: var(--space-6);
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-navy) 100%);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding: var(--space-3) 0 var(--space-5) var(--space-5);
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 119, 60, 0.2);
}

.timeline-year {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px 0;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* --- Bold CTA strip variant --- */
.cta-strip--bold {
  padding: var(--space-9) 0;
}

.cta-strip--bold h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* --- Bigger hero subhead emphasis --- */
.hero-subhead--bold {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 580px;
}

/* --- Campaign logo in the navigation brand --- */
.nav-brand-logo {
  display: block;
  height: 56px;
  width: auto;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-brand:hover .nav-brand-logo {
  transform: scale(1.04);
}

@media (max-width: 720px) {
  .nav-brand-logo {
    height: 44px;
  }
}

/* --- Real hero photo (replaces .placeholder--hero) --- */
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  display: block;
}

.hero-photo:hover {
  transform: scale(1.01);
}

/* --- Real portrait photo on About page (replaces .placeholder--portrait) --- */
.portrait-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  display: block;
}

.portrait-photo:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   19. ELECTION TIMELINE (District 8 page)
   ---------------------------------------------------------
   Horizontal animated timeline that draws a progress line
   across milestones with sequential dot reveals.
   ========================================================= */
.election-timeline {
  position: relative;
  margin-top: var(--space-7);
  padding: var(--space-3) 0 var(--space-3);

  /* Sets how far the progress fill draws — adjust over time */
  --progress: 0.4;
}

.election-timeline-line {
  position: absolute;
  top: 22px; /* aligned with center of 24px dots that have margin-bottom only */
  left: 8.33%;
  right: 8.33%;
  height: 4px;
  background: rgba(38, 27, 105, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.election-timeline-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1800ms var(--ease-out) 300ms;
  border-radius: 2px;
}

.election-timeline.is-visible .election-timeline-line::after {
  transform: scaleX(var(--progress));
}

.election-timeline-milestones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

/* 5-milestone variant — used when the kickoff stop is removed */
.election-timeline--5 .election-timeline-milestones {
  grid-template-columns: repeat(5, 1fr);
}

.election-timeline--5 .election-timeline-line {
  left: 10%;
  right: 10%;
}

.election-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out);
}

.election-timeline.is-visible .election-milestone {
  opacity: 1;
  transform: translateY(0);
}

.election-timeline.is-visible .election-milestone:nth-child(1) { transition-delay: 100ms; }
.election-timeline.is-visible .election-milestone:nth-child(2) { transition-delay: 240ms; }
.election-timeline.is-visible .election-milestone:nth-child(3) { transition-delay: 380ms; }
.election-timeline.is-visible .election-milestone:nth-child(4) { transition-delay: 520ms; }
.election-timeline.is-visible .election-milestone:nth-child(5) { transition-delay: 660ms; }
.election-timeline.is-visible .election-milestone:nth-child(6) { transition-delay: 800ms; }

.election-milestone-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid rgba(38, 27, 105, 0.25);
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out);
}

.election-milestone.is-past .election-milestone-dot {
  background: var(--color-accent);
  border-color: var(--color-accent-dark);
}

.election-milestone.is-current .election-milestone-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.election-milestone.is-current .election-milestone-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: ringPulse 2s var(--ease-in-out) infinite;
}

@keyframes ringPulse {
  0%   { opacity: 0.6; transform: scale(0.85); }
  70%  { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

.election-milestone:hover .election-milestone-dot {
  transform: scale(1.2);
}

.election-milestone-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.election-milestone h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.election-milestone p {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.election-milestone.is-current h4 {
  color: var(--color-accent);
}

/* Compact responsive: stack vertically on tablet/mobile */
@media (max-width: 980px) {
  .election-timeline {
    padding-left: var(--space-3);
  }

  .election-timeline-milestones {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .election-timeline-line {
    top: 0;
    bottom: 0;
    left: 12px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .election-timeline-line::after {
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 1800ms var(--ease-out) 300ms;
  }

  .election-timeline.is-visible .election-timeline-line::after {
    transform: scaleY(var(--progress));
  }

  .election-milestone {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
    padding: 0 0 0 var(--space-4);
    position: relative;
  }

  .election-milestone-dot {
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 4px;
    position: absolute;
    left: 0;
  }

  .election-milestone-content {
    padding-left: var(--space-7);
  }
}


/* --- District map photo (replaces .placeholder--map) --- */
.map-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  display: block;
}

.map-photo:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}


/* =========================================================
   20. PHOTO FRAMES & BACKGROUND TEXTURE
   ---------------------------------------------------------
   Adds magazine-style offset accent shapes behind portraits
   and subtle dot patterns / drifting gradients for richer
   section backgrounds.
   ========================================================= */

/* Wrap an <img> in .photo-frame to get an offset accent block
   behind it with a soft red gradient + dotted texture. */
.photo-frame {
  position: relative;
  display: block;
  width: 100%;
}

.photo-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: var(--radius-md);
  z-index: 0;
  transition: transform var(--dur-med) var(--ease-out);
}

.photo-frame::after {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: var(--radius-md);
  z-index: 0;
  pointer-events: none;
}

.photo-frame > img {
  position: relative;
  z-index: 1;
}

.photo-frame:hover::before {
  transform: translate(4px, 4px);
}

/* Subtle dot pattern overlay for sections */
.section--patterned {
  position: relative;
  overflow: hidden;
}

.section--patterned::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(38, 27, 105, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.section--patterned > * {
  position: relative;
  z-index: 1;
}

/* Slow-drifting gradient blobs for atmospheric sections */
.section--animated-bg {
  position: relative;
  overflow: hidden;
}

.section--animated-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 119, 60, 0.06) 0%, transparent 36%),
    radial-gradient(circle at 75% 70%, rgba(38, 27, 105, 0.06) 0%, transparent 38%);
  animation: bgDrift 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.section--animated-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes bgDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -28px) scale(1.04); }
  66%      { transform: translate(-30px, 36px) scale(0.98); }
}

/* Add a subtle noise/dot overlay to the mission section
   (which is already navy) for richer texture */
.mission-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.mission-section > .container {
  position: relative;
  z-index: 1;
}

/* Make the photo-frame collapse cleanly when stacked on mobile */
@media (max-width: 720px) {
  .photo-frame::before,
  .photo-frame::after {
    top: 12px;
    left: -12px;
    right: 12px;
    bottom: -12px;
  }
}

/* --- Responsive overrides for new components --- */
@media (max-width: 980px) {
  .stat-grid,
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-callout-mark {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .stat-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .stat-counter {
    padding-left: var(--space-3);
  }

  .marquee-item {
    font-size: 0.9375rem;
  }
}
