/* ==========================================================================
   Graham for State Representative — main stylesheet
   Navy #002D62 · Gold #FDB813 · White
   ========================================================================== */

:root {
  --navy: #002d62;
  --navy-deep: #001a3a;
  --navy-soft: #0a3a75;
  --gold: #fdb813;
  --gold-deep: #e6a400;
  --gold-soft: #ffe08a;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --ink: #0c1a2e;
  --muted: #4a5a70;
  --line: rgba(0, 45, 98, 0.12);
  --radius: 2px;
  --header-h: 5.5rem;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 40px rgba(0, 29, 66, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-soft);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.measure {
  max-width: 40rem;
}

.measure-wide {
  max-width: 46rem;
}

/* When measure is on the same node as wrap, keep full wrap width so
   left edges align with other sections (hero / stakes / etc.). */
.wrap.measure:not(.text-center),
.wrap.measure-wide:not(.text-center) {
  width: var(--wrap);
  max-width: none;
}

.wrap.measure:not(.text-center) > *,
.wrap.measure-wide:not(.text-center) > * {
  max-width: 40rem;
}

.wrap.measure-wide:not(.text-center) > * {
  max-width: 46rem;
}

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

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s var(--ease-out);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 0 var(--navy);
}

.btn--gold:hover {
  background: var(--gold-soft);
  color: var(--navy);
  box-shadow: 0 10px 0 var(--navy);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 0 var(--gold);
}

.btn--navy:hover {
  background: var(--navy-soft);
  color: var(--white);
}

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

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--gold);
}

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

.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn-row--center {
  justify-content: center;
}

.text-link {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--navy-soft);
  border-color: var(--navy);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
}

.lede--strong {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
}

.lede--center {
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.section-title--display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 0.95;
}

.section-title--inline {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 29, 66, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__logo,
.custom-logo {
  height: 72px;
  width: 72px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep, #001a3a);
}

.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Right edge lines up with header wrap / Donate button */
  right: max(calc((100% - var(--wrap)) / 2), 1.25rem);
  width: min(42vw, 520px);
  z-index: 0;
  background: var(--navy-deep, #001a3a);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep heads in frame — crop from the bottom */
  object-position: center top;
  transform: none;
}

.hero--brand .hero__photo {
  object-position: center top;
}

.hero__scrub {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--navy-deep, #001a3a) 0%,
      rgba(0, 26, 58, 0.65) 18%,
      rgba(0, 26, 58, 0.2) 42%,
      transparent 70%
    ),
    linear-gradient(180deg, transparent 55%, rgba(0, 26, 58, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 4.5rem;
  max-width: 40rem;
  margin-left: max(calc((100% - var(--wrap)) / 2), 1.25rem);
  margin-right: auto;
  width: min(36rem, calc(100% - 2.5rem));
  text-align: left;
}

.hero__logo {
  width: min(220px, 48vw);
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 1.35rem;
  border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 16ch;
  text-align: left;
}

.hero__lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin: 0;
  max-width: 34rem;
  text-align: left;
}

.hero .btn-row {
  margin-top: 1.75rem;
  justify-content: flex-start;
}

/* Motion initial states — only hide when JS is confirmed available */
html.js:not(.reduce-motion) [data-hero-item],
html.js:not(.reduce-motion) [data-reveal] {
  opacity: 0;
}

.no-js [data-hero-item],
.no-js [data-reveal],
.reduce-motion [data-hero-item],
.reduce-motion [data-reveal] {
  opacity: 1;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Page hero / sections
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 4rem 0 3rem;
  background:
    linear-gradient(135deg, var(--off-white) 0%, #fff 55%, rgba(253, 184, 19, 0.12) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero--compact {
  padding: 2.5rem 0 1.5rem;
  background: transparent;
  border: 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
}

.page-hero--about .page-hero__grid,
.page-hero--split-center .page-hero__grid {
  align-items: center;
}

.page-hero--center {
  text-align: center;
}

.page-hero__center {
  max-width: 44rem;
  margin-inline: auto;
}

.page-hero__copy--center {
  text-align: center;
}

.page-hero__copy--center .lede,
.page-hero__center .lede {
  margin-inline: auto;
}

.page-hero .lede {
  margin-bottom: 0;
}

.section {
  padding: 4.5rem 0;
}

.section--band {
  background: var(--off-white);
}

.section--pitch {
  padding-top: 5.5rem;
  padding-bottom: 4rem;
}

.section--pitch .section-title--display {
  max-width: 18ch;
}

.section--pitch .lede--strong {
  max-width: 38rem;
}

.section--pitch .split,
.section--promise .split {
  align-items: center;
}

.section--pitch .split__media,
.section--promise .split__media {
  min-width: 0;
}

.section--cta-band {
  background:
    linear-gradient(180deg, var(--off-white), #fff);
  border-top: 1px solid var(--line);
  padding: 5rem 0;
}

.section--cta-band .section-title--display {
  max-width: none;
  margin-inline: auto;
  text-wrap: balance;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head--tight {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-foot {
  margin-top: 2.25rem;
}

.content-wrap {
  padding: 3rem 0 4rem;
}

.prose h2 {
  font-size: 1.75rem;
}

.prose .section-title--inline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.prose p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Stakes / values / ways */

.stake-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--gold);
}

.stake {
  padding: 1.75rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.stake:last-child {
  border-right: 0;
  padding-right: 0;
}

.stake:first-child {
  padding-left: 0;
}

.stake:not(:first-child) {
  padding-left: 1.75rem;
}

.stake h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.65rem;
}

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

.value-grid,
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.ways-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 0.5rem;
}

.value-block {
  padding-top: 1.25rem;
  border-top: 3px solid var(--gold);
}

.value-block__mark,
.way__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.value-block h3,
.way h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.value-block p,
.way p {
  color: var(--muted);
  margin: 0;
}

.way {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-top: 1px solid var(--line);
}

.way:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.way:nth-child(-n + 2) {
  border-top: 3px solid var(--gold);
  padding-top: 1.5rem;
}

.way:nth-child(even) {
  padding-left: 2rem;
  padding-right: 0;
}

/* Promise band */

.section--promise {
  background: var(--navy-deep);
  color: var(--white);
  padding: 5rem 0;
}

.promise {
  max-width: 44rem;
}

.section--promise .split__copy.promise {
  max-width: none;
}

.section--promise .eyebrow {
  color: var(--gold);
}

.promise__quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
}

.section--promise .text-link {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.section--promise .text-link:hover {
  color: var(--gold);
  border-bottom-color: var(--white);
}

/* Issue stakes & commitments */

.issue-stake {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy) !important;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.commitment-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.commitment-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}

.commitment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
}

.form-callout {
  margin-top: 1.25rem;
  padding: 1rem 0 0;
  border-top: 2px solid var(--gold);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.45;
}

.contact-aside__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--gold);
}

/* --------------------------------------------------------------------------
   Endorsements
   -------------------------------------------------------------------------- */

.section--endorsements {
  background:
    linear-gradient(180deg, #fff 0%, var(--off-white) 100%);
  border-top: 1px solid var(--line);
}

.section--endorsements-full {
  background: var(--white);
  border-top: 0;
  padding-top: 3rem;
}

.section--endorsements .section-head .lede {
  margin-top: 0.75rem;
}

.endorse-feature {
  margin: 0 0 2.75rem;
  padding: 2rem 0 2rem;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
  max-width: 48rem;
}

.endorse-feature__quote {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.endorse-feature__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--navy);
  margin: 0;
}

.endorse-feature__by {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.endorse-feature__name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 0.9rem;
}

.endorse-feature__title {
  color: var(--muted);
  font-size: 0.95rem;
}

.endorse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.endorse-grid--full {
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.endorse-card {
  margin: 0;
}

.endorse-card__media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

a.endorse-card__media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.endorse-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.endorse-grid--full .endorse-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.endorse-grid--full .endorse-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.endorse-card__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.endorse-card__role {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}

.endorse-card__creds {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.endorse-card__creds li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.endorse-card__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
}

.endorse-card__quote {
  margin: 0;
  padding: 1.25rem 0 0;
  border: 0;
  border-top: 3px solid var(--gold);
}

.endorse-card__quote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Failed / empty images — collapse shell so captions/labels don't linger
   -------------------------------------------------------------------------- */

.photo-gallery__item.is-missing-image,
.event-item__media.is-missing-image,
.endorse-card__media.is-missing-image,
.site-photo.is-missing-image,
.portrait-frame.is-missing-image,
.hero__media.is-missing-image,
.split__media.is-missing-image,
.page-hero__media.is-missing-image {
  display: none;
}

.endorse-grid--full .endorse-card:not(:has(.endorse-card__media:not(.is-missing-image))) {
  grid-template-columns: 1fr;
}

.portrait-frame {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  outline: 3px solid var(--gold);
  outline-offset: 6px;
  background: var(--off-white);
}

.portrait-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Campaign photos — never crop; show full frame */

.site-photo {
  margin: 0;
  overflow: hidden;
  background: var(--off-white);
}

.site-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Homepage pitch / promise: fill frame, no grey letterboxing */
.site-photo.site-photo--portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: min(34rem, 70vh);
  background: transparent;
}

.site-photo.site-photo--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section--promise .site-photo.site-photo--portrait {
  background: transparent;
}

.site-photo--frame {
  box-shadow: var(--shadow-soft);
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}

/* Issue topic stock can use a framed crop window */
.site-photo--cover {
  background: var(--navy-deep);
  aspect-ratio: 16 / 9;
}

.site-photo--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.photo-strip__col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.photo-strip__col--center {
  align-self: stretch;
}

.photo-strip__col--center .photo-strip__item,
.photo-strip__col--center .photo-strip__item img {
  height: 100%;
}

.photo-strip__col--center .photo-strip__item img {
  object-fit: cover;
  object-position: center top;
}

.photo-strip__item {
  margin: 0;
  flex: 1;
}

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

.photo-gallery {
  columns: 2;
  column-gap: 1.25rem;
}

.photo-gallery__item {
  margin: 0 0 1.25rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  display: block;
}

.photo-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 26, 58, 0.85));
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Layout patterns
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__copy {
  order: 1;
}

.split__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

.issue-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.issue-strip__item {
  padding: 1.75rem 0 0;
  border-top: 3px solid var(--gold);
}

.issue-strip__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.issue-strip__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.issue-block .issue-strip__num {
  margin-bottom: 0.35rem;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-left: 2px solid var(--gold);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__mark {
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
}

.timeline__item h3 {
  margin-bottom: 0.35rem;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 80% 0, 38% 62%);
}

.event-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.event-item {
  background: var(--white);
  border: 1px solid var(--line);
}

.event-item__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.event-item__body h3 {
  margin-bottom: 0.4rem;
}

.event-item__body p:last-child {
  margin: 0;
  color: var(--muted);
}

.event-item__location {
  color: var(--navy) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-item__actions {
  margin-top: 1rem;
}

.event-item__actions .btn {
  color: var(--navy);
}

.event-item__media {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.form-layout--contact {
  grid-template-columns: 0.85fr 1.15fr;
}

.campaign-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.campaign-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.campaign-form input,
.campaign-form select,
.campaign-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid rgba(0, 45, 98, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.campaign-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.15rem), calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.campaign-form input:focus,
.campaign-form select:focus,
.campaign-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.35);
}

.campaign-form input:invalid:not(:placeholder-shown):not(:focus),
.campaign-form textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(180, 35, 24, 0.55);
}

.form-hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-success {
  background: rgba(253, 184, 19, 0.18);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 1.35rem 1.35rem 1.45rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.form-success p {
  margin: 0 0 0.65rem;
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-success__next {
  font-weight: 500;
  color: var(--muted);
}

.form-success__actions {
  margin-top: 1rem;
}

.contact-aside__block {
  margin-bottom: 1.5rem;
}

.contact-aside__block a {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.contact-aside__block a:hover {
  color: var(--navy-soft);
  border-bottom: 2px solid var(--gold);
}

.contact-aside__map {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 0;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}

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

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

.site-footer__cta {
  background:
    linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 55%, #0c4a8c 100%);
  border-bottom: 3px solid var(--gold);
  padding: 3.5rem 0;
}

.site-footer__cta-inner {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.site-footer__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
  max-width: 28ch;
  margin: 0 auto 0.65rem;
  text-wrap: balance;
}

.site-footer__cta-lede {
  color: rgba(255, 255, 255, 0.8);
  max-width: 34rem;
  margin: 0 auto 0.25rem;
  font-size: 1.1rem;
}

.site-footer__cta .eyebrow {
  color: var(--gold);
}

.site-footer__cta .btn-row {
  justify-content: center;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr;
  gap: 2.5rem 3rem;
  align-items: start;
  padding: 3rem 0 2.25rem;
}

.site-footer__brand {
  max-width: 18rem;
}

.site-footer__logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  padding: 0;
  display: block;
  border-radius: 50%;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 22rem;
  line-height: 1.45;
}

.site-footer__nav .eyebrow,
.site-footer__social .eyebrow {
  margin-bottom: 0.85rem;
  color: var(--gold);
}

.site-footer .footer-nav-list,
.site-footer .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.site-footer .footer-nav-list a,
.site-footer .nav-list a {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-block;
  padding: 0;
  position: relative;
}

.site-footer .footer-nav-list a::after,
.site-footer .nav-list a::after {
  content: none;
}

.site-footer .current-menu-item > a {
  color: var(--gold);
}

.site-footer .social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.site-footer .social-list a {
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}

.site-footer .social-list a:hover {
  border-bottom-color: var(--gold);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 184, 19, 0.55);
}

.site-footer__credit a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --wrap: min(1120px, calc(100% - 2rem));
    --header-h: 4.75rem;
  }

  .page-hero__grid,
  .split,
  .issue-strip,
  .event-list,
  .form-layout,
  .form-layout--contact,
  .site-footer__main,
  .stake-row,
  .value-grid,
  .ways-grid,
  .endorse-grid,
  .endorse-grid--full .endorse-card {
    grid-template-columns: 1fr;
  }

  .endorse-grid:not(.endorse-grid--full) {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__media,
  .split--reverse .split__copy {
    order: initial;
  }

  .split,
  .form-layout,
  .form-layout--contact {
    gap: 2rem;
  }

  .stake {
    border-right: 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
  }

  .stake:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .stake p {
    padding-right: 0;
  }

  .way,
  .way:nth-child(odd),
  .way:nth-child(even) {
    border-right: 0;
    padding: 1.5rem 0;
  }

  .way:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .way:first-child {
    border-top: 3px solid var(--gold);
  }

  .hero {
    min-height: 85vh;
    min-height: 85dvh;
    justify-content: flex-start;
    align-items: flex-end;
  }

  .hero__media {
    right: 0;
    width: min(48vw, 300px);
    opacity: 0.95;
  }

  .hero__photo,
  .hero--brand .hero__photo {
    object-position: center top;
    transform: none;
  }

  .hero__scrub {
    background:
      linear-gradient(180deg, rgba(0, 26, 58, 0.2) 0%, rgba(0, 26, 58, 0.55) 42%, rgba(0, 26, 58, 0.96) 100%),
      linear-gradient(90deg, rgba(0, 26, 58, 0.92) 0%, rgba(0, 26, 58, 0.55) 50%, rgba(0, 26, 58, 0.25) 100%);
  }

  .hero__content {
    margin-left: 1rem;
    margin-right: 1rem;
    width: calc(100% - 2rem);
    max-width: none;
    text-align: left;
    padding-bottom: 3rem;
  }

  .hero__logo {
    width: min(140px, 36vw);
  }

  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    max-width: 14ch;
  }

  .hero__lede {
    font-size: 1.05rem;
    max-width: 28rem;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-strip__col--center .photo-strip__item,
  .photo-strip__col--center .photo-strip__item img {
    height: auto;
    min-height: 240px;
  }

  .photo-gallery {
    columns: 1;
  }

  .section-head--row {
    align-items: flex-start;
  }

  .btn-row {
    gap: 0.75rem;
  }

  .btn-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
  }

  .campaign-form {
    padding: 1.35rem;
  }

  /* Prevent iOS input zoom; keep fields readable */
  .campaign-form input,
  .campaign-form select,
  .campaign-form textarea {
    font-size: 16px;
    min-height: 3rem;
    padding: 0.85rem 0.95rem;
  }

  .campaign-form textarea {
    min-height: 8rem;
  }

  .campaign-form .btn {
    width: 100%;
    min-height: 3.1rem;
  }

  .split__media:empty,
  .page-hero__media:empty,
  .endorse-card__media:empty,
  .event-item__media:empty,
  .photo-gallery__item:not(:has(img)) {
    display: none;
  }

  .endorse-grid--full .endorse-card:not(:has(.endorse-card__media)) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --wrap: min(1120px, calc(100% - 1.5rem));
    --header-h: 4.25rem;
  }

  .endorse-grid:not(.endorse-grid--full) {
    grid-template-columns: 1fr;
  }

  .site-brand__logo,
  .custom-logo {
    height: 52px;
    width: 52px;
  }

  .hero {
    min-height: 92vh;
    min-height: 92dvh;
  }

  .hero__media {
    width: min(42vw, 180px);
    right: 0.35rem;
  }

  .hero__content {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
    width: calc(100% - 1.7rem);
  }

  .hero__headline {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .page-title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .section {
    padding: 2.75rem 0;
  }

  .btn-row .btn {
    width: 100%;
    min-width: 0;
  }

  .site-footer__cta-inner,
  .section--cta-band .wrap {
    padding-inline: 0;
  }

  .event-item__actions .btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0));
  }

  body {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0));
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 110;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    padding:
      calc(var(--header-h) + env(safe-area-inset-top, 0) + 1.25rem)
      max(1.5rem, env(safe-area-inset-right, 0))
      max(2.5rem, env(safe-area-inset-bottom, 0))
      max(1.5rem, env(safe-area-inset-left, 0));
    background: rgba(255, 255, 255, 0.985);
    border-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.4s var(--ease-out),
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav-list a {
    display: block;
    padding: 1.05rem 0;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
    min-height: 3rem;
  }

  .nav-list li:first-child a {
    border-top: 1px solid var(--line);
  }

  .header-donate {
    margin-top: 1.75rem;
    width: 100%;
    flex-shrink: 0;
    min-height: 3.1rem;
  }

  body.nav-open .site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line);
    z-index: 120;
  }

  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

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

  .section {
    padding: 3.25rem 0;
  }

  .endorse-grid:not(.endorse-grid--full) {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Production polish
   -------------------------------------------------------------------------- */

::selection {
  background: rgba(253, 184, 19, 0.35);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-list a:focus-visible,
.text-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.form-error {
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.45);
  color: #8a1c14;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.form-error p {
  margin: 0;
}

.campaign-form button[disabled],
.campaign-form button[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.campaign-form {
  position: relative;
}

.site-footer__brand-link {
  display: inline-block;
  text-decoration: none;
}

.header-donate {
  flex-shrink: 0;
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-list {
    gap: 0.1rem 0.55rem;
  }

  .nav-list a {
    font-size: 0.72rem;
  }

  .primary-nav {
    gap: 0.65rem;
  }
}

@media print {
  .site-header,
  .site-footer__cta,
  .nav-toggle,
  .btn,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero,
  .page-hero {
    min-height: 0;
    padding: 1rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-hero-item],
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
