/* =========================================================
   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 — navy / white / soft gray with a confident red accent */
  --color-navy: #0a2540;
  --color-navy-deep: #06192e;
  --color-navy-soft: #173a63;
  --color-accent: #c8102e;        /* primary action red */
  --color-accent-dark: #9c0a22;
  --color-gold: #c9a961;          /* subtle premium accent */
  --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(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 2px 4px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.12), 0 4px 8px rgba(10, 37, 64, 0.06);
  --shadow-accent: 0 8px 24px rgba(200, 16, 46, 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%;
}

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(200, 16, 46, 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(10, 37, 64, 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(200, 16, 46, 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(10, 37, 64, 0.78) 0%, rgba(6, 25, 46, 0.62) 55%, rgba(200, 16, 46, 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;
}

.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(200, 16, 46, 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(200, 16, 46, 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(10, 37, 64, 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(200, 16, 46, 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;
}


/* =========================================================
   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(200, 16, 46, 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);
}

.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-style: normal;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

/* 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(200, 16, 46, 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(10, 37, 64, 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(200, 16, 46, 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(200, 16, 46, 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(200, 16, 46, 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);
}

.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(200, 16, 46, 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(10, 37, 64, 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;
}

.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(10, 37, 64, 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(10, 37, 64, 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(200, 16, 46, 0.06) 0%, transparent 36%),
    radial-gradient(circle at 75% 70%, rgba(10, 37, 64, 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;
  }
}
