/* =========================================================
   Dr. Rich McCormick for Congress
   Aesthetic: bold editorial campaign-poster
   Type: Oswald (display) · Public Sans (body) · Newsreader (quote)
   ========================================================= */

:root {
  /* Palette ------------------------------------------------ */
  --navy-950: #060f22;
  --navy-900: #0a1a38;
  --navy-850: #0f234a;
  --navy-800: #14315f;
  --navy-700: #1d4079;
  --navy-100: #e7eefb;

  --red-700: #b01d2c;
  --red-600: #c92338;
  --red-500: #e23048;

  --gold-600: #c79330;
  --gold-500: #d8a838;
  --gold-400: #e6c25f;

  --ink: #14203a;
  --muted: #5b6678;
  --line: #ddd8cd;

  --cream: #f5f2ea;
  --cream-deep: #efe9dc;
  --white: #ffffff;

  /* Effects ----------------------------------------------- */
  --shadow-sm: 0 6px 18px rgba(7, 16, 34, 0.10);
  --shadow-md: 0 22px 48px rgba(7, 16, 34, 0.16);
  --shadow-lg: 0 36px 80px rgba(7, 16, 34, 0.28);
  --ring: 0 0 0 3px rgba(216, 168, 56, 0.45);

  /* Type -------------------------------------------------- */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Oswald", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.012em;
  background: var(--cream);
  line-height: 1.72;
}

/* Paper grain overlay ------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

::selection {
  background: var(--gold-500);
  color: var(--navy-950);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Scroll progress ---------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10000;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width 0.08s linear;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 6px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 15, 34, 0.55), rgba(6, 15, 34, 0.15));
  backdrop-filter: blur(2px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 18, 40, 0.96);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 14px 34px rgba(6, 15, 34, 0.35);
  border-bottom: 1px solid rgba(216, 168, 56, 0.18);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img,
.footer-brand img {
  object-fit: contain;
  object-position: left center;
}

.brand img {
  width: 116px;
  height: 72px;
  transition: transform 0.3s var(--ease);
}

.brand:hover img {
  transform: scale(1.04);
}

.footer-brand img {
  width: 54px;
  height: 38px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.site-footer nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

/* animated underline */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--gold-400);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.donate-button,
.large-button,
.signup-row button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--red-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(176, 29, 44, 0.30);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

/* shimmer sweep */
.donate-button::before,
.large-button::before,
.signup-row button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.donate-button:hover,
.large-button:hover,
.signup-row button:hover {
  background: var(--red-500);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(176, 29, 44, 0.42);
}

.donate-button:hover::before,
.large-button:hover::before,
.signup-row button:hover::before {
  transform: translateX(120%);
}

.donate-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* =========================================================
   NAV TOGGLE
   ========================================================= */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   EYEBROW
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold-600);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

/* hero eyebrow's tick mark draws in left-to-right on load */
.hero .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  animation: goldDraw 0.7s var(--ease) 0.65s forwards;
}

@keyframes goldDraw {
  to {
    transform: scaleX(1);
  }
}

/* on dark sections */
.hero .eyebrow,
.feature-band .eyebrow,
.volunteer-section .eyebrow {
  color: var(--gold-400);
}

/* =========================================================
   HEADINGS
   ========================================================= */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

h2 {
  margin-bottom: 18px;
  color: var(--navy-900);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

h3 {
  margin-bottom: 12px;
  color: var(--navy-900);
  font-size: 1.22rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(85deg, rgba(6, 15, 34, 0.94) 0%, rgba(6, 15, 34, 0.62) 44%, rgba(6, 15, 34, 0.10) 100%),
    linear-gradient(0deg, rgba(6, 15, 34, 0.85) 0%, rgba(6, 15, 34, 0) 45%);
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  animation: heroPan 20s ease-out forwards;
}

/* vignette */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -120px 120px rgba(6, 15, 34, 0.7);
}

@keyframes heroPan {
  to {
    transform: scale(1.18);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 0 clamp(48px, 9vh, 96px) clamp(18px, 7vw, 96px);
}

.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 1.1s var(--ease) forwards;
}
.hero-content .eyebrow { animation-delay: 0.3s; }
.hero-content .signup-form { animation-delay: 2.6s; }

/* headline lines stagger in individually instead of as one block */
.hero-content h1 {
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-content h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.85s var(--ease) forwards;
}
.hero-content h1 .line:nth-child(1) { animation-delay: 0.55s; }
.hero-content h1 .line:nth-child(2) { animation-delay: 0.8s; }
.hero-content h1 .line:nth-child(3) { animation-delay: 1.05s; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* quote panel: red bar grows in first, then the text fades in after it */
.quote-panel {
  position: relative;
  max-width: 640px;
  padding: 4px 0 4px 22px;
  opacity: 1;
  transform: none;
  animation: none;
}

.quote-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--red-500);
  transform: scaleY(0);
  transform-origin: top;
  animation: barGrow 0.7s var(--ease) 1.5s forwards;
}

@keyframes barGrow {
  to {
    transform: scaleY(1);
  }
}

.quote-panel p {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  color: #f3f6fc;
  opacity: 0;
  transform: translateY(14px);
  animation: heroRise 0.8s var(--ease) 2s forwards;
  transition: opacity 0.4s var(--ease);
}

.quote-author {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: heroRise 0.8s var(--ease) 2.2s forwards;
  font-family: var(--font-display) !important;
  font-style: normal !important;
  color: var(--gold-400);
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* signup ------------------------------------------------- */
.signup-form {
  width: min(580px, 100%);
  margin-top: 30px;
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.signup-row:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(216, 168, 56, 0.25);
}

.signup-row input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--white);
  font: inherit;
}

.signup-row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.signup-row input:focus {
  outline: none;
  box-shadow: none;
}

.signup-row button {
  border-radius: 0;
  box-shadow: none;
}

.form-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* =========================================================
   SECTION DIVIDERS — a thin seam of gold light between each
   section that drifts and flickers unevenly, like an ember
   catching a draft, rather than pulsing on a fixed beat. Each
   divider runs its own out-of-sync duration/delay so none of
   them move in unison.
   ========================================================= */
.section-divider {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.section-divider span {
  position: absolute;
  inset: 0;
  width: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 6%,
    var(--gold-500) 11%,
    var(--gold-400) 15%,
    transparent 21%,
    transparent 34%,
    var(--gold-400) 40%,
    transparent 47%,
    transparent 58%,
    var(--gold-500) 64%,
    var(--gold-400) 68%,
    transparent 75%,
    transparent 100%
  );
  filter: drop-shadow(0 0 6px rgba(230, 194, 95, 0.55));
  animation: seamDrift 19s linear infinite, seamFlicker 7.4s ease-in-out infinite;
}

@keyframes seamDrift {
  0% { transform: translateX(-54%); }
  100% { transform: translateX(-4%); }
}

@keyframes seamFlicker {
  0%, 100% { opacity: 0.55; }
  13% { opacity: 0.85; }
  22% { opacity: 0.4; }
  38% { opacity: 0.95; }
  51% { opacity: 0.5; }
  67% { opacity: 0.75; }
  79% { opacity: 0.35; }
  91% { opacity: 0.7; }
}

/* stagger each divider so none of them move in sync */
.section-divider:nth-of-type(1) span { animation-duration: 19s, 7.4s; animation-delay: 0s, -1.8s; }
.section-divider:nth-of-type(2) span { animation-duration: 23s, 8.6s; animation-delay: -4s, -0.6s; }
.section-divider:nth-of-type(3) span { animation-duration: 17s, 6.7s; animation-delay: -9s, -3.1s; }
.section-divider:nth-of-type(4) span { animation-duration: 26s, 9.3s; animation-delay: -2s, -5.4s; }
.section-divider:nth-of-type(5) span { animation-duration: 21s, 7.9s; animation-delay: -12s, -2.2s; }
.section-divider:nth-of-type(6) span { animation-duration: 18s, 8.1s; animation-delay: -6s, -6.7s; }
.section-divider:nth-of-type(7) span { animation-duration: 24s, 7.2s; animation-delay: -15s, -1.1s; }

@media (prefers-reduced-motion: reduce) {
  .section-divider span {
    animation: none;
    transform: none;
    opacity: 0.6;
  }
}

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
.section,
.feature-band,
.news-section,
.volunteer-section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.two-column h2 {
  position: relative;
}

.section-copy {
  color: var(--muted);
  font-size: 1.12rem;
}

.section-copy p:first-child {
  font-size: 1.22rem;
  color: var(--ink);
}

/* about gets a warm panel feel */
.about-section {
  background:
    radial-gradient(120% 80% at 100% 0%, var(--cream-deep), transparent 60%),
    var(--cream);
}

/* =========================================================
   FEATURE BAND (dark)
   ========================================================= */
.feature-band {
  color: var(--white);
  background:
    radial-gradient(80% 120% at 12% -10%, rgba(29, 64, 121, 0.55), transparent 60%),
    radial-gradient(90% 120% at 100% 110%, rgba(176, 29, 44, 0.28), transparent 55%),
    var(--navy-900);
}

/* subtle star/dot field */
.feature-band::before,
.volunteer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.feature-band > .section-inner,
.volunteer-section > .section-inner {
  position: relative;
}

.feature-band h2,
.feature-card h3 {
  color: var(--white);
}

.feature-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.feature-heading p:last-child {
  color: #c4d2e8;
  font-size: 1.18rem;
}

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

/* =========================================================
   CARDS
   ========================================================= */
.feature-card,
.priority-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature-card {
  color: #d6e2f2;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card:hover,
.priority-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* image frame + zoom */
.feature-card img,
.priority-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature-card:hover img,
.priority-card:hover img {
  transform: scale(1.07);
}

/* hover-to-play video */
.feature-media {
  position: relative;
  overflow: hidden;
}

.feature-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature-card:hover .feature-media video {
  transform: scale(1.07);
}

.feature-card > div:not(.feature-media) {
  padding: 24px;
}

.feature-card p,
.priority-card p {
  margin-bottom: 0;
}

/* =========================================================
   SERVICE RECORD TIMELINE
   ========================================================= */
.service-record-section {
  position: relative;
  overflow: hidden;
  background: var(--red-700);
  color: var(--white);
}

.service-record-section .eyebrow {
  color: var(--gold-400);
}

.service-record-section h2 {
  color: var(--white);
}

.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  position: relative;
}

/* the building line — scrubbed directly to scroll position via --progress.
   left/width are set from JS to the exact center of the first/last marker,
   so the line starts and ends inside the bubbles rather than spanning the row. */
.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: var(--line-start-x, 0px);
  width: calc(var(--line-end-x, 100%) - var(--line-start-x, 0px));
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 0 14px rgba(230, 194, 95, 0.6);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.05s linear;
}

.timeline li {
  position: relative;
  padding-top: 36px;
  text-align: center;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-700);
  border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 4px var(--red-700);
  transform: translateX(-50%) scale(1);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* each marker fills solid gold the instant the line reaches it */
.timeline-marker.is-filled {
  background: var(--gold-400);
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 4px var(--red-700), 0 0 16px rgba(230, 194, 95, 0.8);
}

/* the final stop gets a bigger, lasting glow — this is the "arrival" moment */
.timeline li:last-child .timeline-marker.is-filled {
  transform: translateX(-50%) scale(1.6);
  box-shadow: 0 0 0 4px var(--red-700), 0 0 26px rgba(230, 194, 95, 0.9);
}

.timeline p {
  margin: 0 auto;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.3s var(--ease);
}

/* as the line passes a bubble, its label flashes gold before settling white */
@keyframes timelineLabelFill {
  0% {
    color: rgba(255, 255, 255, 0.42);
  }
  40% {
    color: var(--gold-400);
  }
  100% {
    color: var(--white);
  }
}

@keyframes timelineLabelFillFinal {
  0% {
    color: rgba(230, 194, 95, 0.5);
  }
  40% {
    color: var(--white);
  }
  100% {
    color: var(--gold-400);
  }
}

.timeline p.is-filled {
  animation: timelineLabelFill 0.8s var(--ease) forwards;
}

.timeline li:last-child p {
  color: rgba(230, 194, 95, 0.5);
}

.timeline li:last-child p.is-filled {
  animation: timelineLabelFillFinal 0.8s var(--ease) forwards;
}

/* =========================================================
   PRIORITIES
   ========================================================= */
.priorities-section {
  background:
    linear-gradient(180deg, var(--cream), var(--cream-deep));
}

.section-heading {
  max-width: 800px;
  margin-bottom: 44px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.14rem;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: priority;
}

.priority-card {
  display: flex;
  flex-direction: column;
}

.priority-card > * {
  padding-left: 24px;
  padding-right: 24px;
}

.priority-card img {
  padding: 0;
}

/* number badge + red accent bar */
.priority-card h3 {
  counter-increment: priority;
  position: relative;
  margin-top: 22px;
  padding-top: 14px;
}

.priority-card h3::before {
  content: counter(priority, decimal-leading-zero);
  position: absolute;
  top: -42px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--red-600);
  color: var(--white);
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.priority-card h3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 36px;
  height: 3px;
  background: var(--gold-500);
}

.priority-card ul {
  margin: 0 0 16px;
  padding-left: 44px;
  color: var(--muted);
  font-size: 0.98rem;
}

.priority-card li {
  position: relative;
}

.priority-card li::marker {
  color: var(--gold-600);
}

.priority-card li + li {
  margin-top: 9px;
}

.priority-card p {
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   NOT A CAREER POLITICIAN
   ========================================================= */
.not-politician-section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  color: var(--white);
  background:
    radial-gradient(90% 120% at 100% -10%, rgba(176, 29, 44, 0.30), transparent 55%),
    radial-gradient(80% 120% at 0% 110%, rgba(29, 64, 121, 0.45), transparent 60%),
    var(--navy-950);
}

.not-politician-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.not-politician-heading .eyebrow {
  color: var(--gold-400);
}

.not-politician-heading h2 {
  color: var(--white);
}

.not-politician-sub {
  margin: 0;
  color: #c4d2e8;
  font-size: 1.18rem;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contrast-col {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 36px);
  background: var(--navy-950);
  text-align: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

/* highlight footage — tied to scroll, only shown (faintly) while the column is active */
.contrast-col-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}

.contrast-col.is-active .contrast-col-video {
  opacity: 0.28;
}

.contrast-col-content {
  position: relative;
  z-index: 1;
}

/* spotlight state — toggled as each column crosses the center of the viewport */
.contrast-col.is-active {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 3px 0 var(--gold-400), 0 24px 48px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.contrast-col.is-active .contrast-label {
  color: var(--gold-400);
}

.contrast-label {
  margin: 0 0 10px;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  transition: color 0.5s var(--ease);
}

.contrast-col h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.contrast-col p {
  margin: 0;
  color: #b9c6dd;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* =========================================================
   NEWS
   ========================================================= */
.news-section {
  background: var(--navy-100);
}

.volunteer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.home-news-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border-radius: 10px;
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.home-news-card.featured {
  padding: 0;
  overflow: hidden;
}

.home-news-card.featured img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 50% 15%;
}

.home-news-card.featured > div {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
}

.home-news-card.featured h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.home-news-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-news-stack .home-news-card {
  flex: 1;
  justify-content: center;
}

.home-news-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.22;
}

.home-news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--red-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: translateX(5px);
}

/* =========================================================
   VOLUNTEER (dark CTA)
   ========================================================= */
.volunteer-section {
  color: var(--white);
  background:
    linear-gradient(95deg, rgba(6, 15, 34, 0.95) 0%, rgba(10, 26, 56, 0.78) 55%, rgba(176, 29, 44, 0.55) 130%),
    url("assets/community.jpg") center / cover;
}

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

.volunteer-section p:last-child {
  max-width: 620px;
  color: #dce6f5;
  font-size: 1.16rem;
}

.large-button {
  min-height: 56px;
  padding: 0 40px;
  font-size: 1.05rem;
}

.volunteer-cta {
  justify-self: start;
}

/* =========================================================
   PRESS
   ========================================================= */
.press-section {
  background: var(--cream-deep);
}

.press-card {
  padding: clamp(28px, 4vw, 40px);
  background: var(--white);
  border-radius: 10px;
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}

.press-card-label {
  margin: 0 0 12px;
  color: var(--gold-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.press-card-detail {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.press-card-detail:hover {
  color: var(--red-700);
}

.press-card .large-button {
  margin-top: 22px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  padding: 52px clamp(18px, 4vw, 56px) 40px;
  color: #cdd9ec;
  background: var(--navy-950);
  border-top: 4px solid var(--gold-500);
}

.footer-top,
.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 28px;
  text-align: center;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-grid p:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 10px;
}

.mail-note {
  max-width: 42ch;
  text-wrap: balance;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--gold-400);
}

.fine-print {
  width: min(1180px, 100%);
  margin: 14px auto 0;
  color: #8b9ab4;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
    justify-self: start;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 18px clamp(18px, 4vw, 56px) 24px;
    background: rgba(7, 18, 40, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(216, 168, 56, 0.2);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .donate-button {
    justify-self: end;
  }

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

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    gap: 12px;
  }

  .brand img {
    width: 96px;
    height: 60px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(6, 15, 34, 0.50) 0%, rgba(6, 15, 34, 0.95) 66%),
      url("assets/hero-er.jpg") center top / cover;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto 44px;
  }

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

  .signup-row input,
  .signup-row button {
    min-height: 52px;
  }

  .two-column,
  .volunteer-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-grid > div {
    align-items: center;
  }

  .fine-print {
    text-align: center;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-left: 10px;
  }

  .timeline::before {
    top: var(--line-start-y, 0px);
    left: 9px;
    right: auto;
    width: 2px;
    height: calc(var(--line-end-y, 100%) - var(--line-start-y, 0px));
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
  }

  .timeline li {
    padding-top: 0;
    padding-left: 36px;
    text-align: left;
  }

  .timeline-marker {
    top: 2px;
    left: 0;
    transform: scale(1);
  }

  .timeline-marker.is-filled {
    transform: scale(1.3);
  }

  .timeline li:last-child .timeline-marker.is-filled {
    transform: scale(1.6);
  }

  .timeline p {
    margin: 0;
    max-width: none;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   INNER PAGES  (news · volunteer · press)
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(48px, 8vw, 92px)) 0 clamp(46px, 7vw, 84px);
  background:
    radial-gradient(90% 150% at 8% -25%, rgba(29, 64, 121, 0.62), transparent 60%),
    radial-gradient(95% 150% at 100% 125%, rgba(176, 29, 44, 0.34), transparent 55%),
    var(--navy-900);
  border-bottom: 4px solid var(--gold-500);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
}

.page-hero .section-inner {
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  max-width: 20ch;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.page-hero .lede {
  max-width: 62ch;
  color: #c8d6ec;
  font-size: 1.18rem;
}

.page-section {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
}

.page-section.alt {
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
}

/* ---- News -------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border-radius: 10px;
  border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.post-tag {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(201, 35, 56, 0.10);
  color: var(--red-700);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.16;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.post-card.featured img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.post-card.featured > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.post-card.featured h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---- Volunteer -------------------------------------------- */
.volunteer-layout-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

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

.way-card {
  padding: 26px 24px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--red-600);
  box-shadow: var(--shadow-sm);
}

.way-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.way-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.lead-form {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
  border-radius: 12px;
  border-top: 4px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}

.lead-form h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.lead-form .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field .optional {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(216, 168, 56, 0.25);
}

.checkbox-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.35;
  text-transform: none !important;
}

.checkbox-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--red-700);
}

.sms-disclosure {
  margin: 2px 0 12px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--cream);
  border-left: 3px solid var(--gold-500);
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sms-disclosure a {
  color: var(--red-700);
  font-weight: 600;
}

.lead-form button {
  width: 100%;
  margin-top: 6px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--red-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(176, 29, 44, 0.30);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.lead-form button:hover {
  background: var(--red-500);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(176, 29, 44, 0.42);
}

.lead-form .form-message {
  color: var(--red-700);
}

/* ---- Press ------------------------------------------------- */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.info-card {
  padding: 32px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  margin-bottom: 14px;
}

.info-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.info-card .label {
  display: block;
  color: var(--gold-600);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card a {
  color: var(--red-700);
  font-weight: 500;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.asset-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.asset-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.asset-card:hover img {
  transform: scale(1.06);
}

.asset-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.asset-card span::after {
  content: "\2193";
  color: var(--red-700);
}

/* ---- Legal ------------------------------------------------- */
.legal-content {
  max-width: 880px;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 20px 20px;
}

.legal-content a {
  color: var(--red-700);
  font-weight: 600;
}

.legal-content .effective-date {
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-contact {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--white);
  border-left: 4px solid var(--red-600);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .post-grid,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card.featured {
    grid-template-columns: 1fr;
  }

  .volunteer-layout-page,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    position: static;
  }
}

@media (max-width: 720px) {
  .post-grid,
  .ways-grid,
  .asset-grid,
  .lead-form .grid2 {
    grid-template-columns: 1fr;
  }
}
