/* =========================================================
   DCSMV — Page-specific styles
   ========================================================= */

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(10, 23, 51, 0.08);
  box-shadow: 0 1px 0 rgba(10, 23, 51, 0.04);
}
.header-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 70%, var(--red) 70%, var(--red) 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo-btn { background: transparent; border: 0; padding: 0; }
.primary-nav { display: flex; gap: 6px; }
.nav-link {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .15s;
}
.nav-link:hover { color: var(--navy-900); }
.nav-link.active { color: var(--navy-900); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--red);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
.lang-toggle button {
  background: transparent; border: 0; padding: 4px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  cursor: pointer;
}
.lang-toggle button.active { color: var(--navy-900); border-bottom: 2px solid var(--red); }
.hamburger { display: none; background: transparent; border: 0; padding: 6px; color: var(--navy-900); }

@media (max-width: 1020px) {
  .primary-nav { display: none; }
  .lang-toggle { display: none; }
  .hamburger { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--off-white);
  z-index: 200;
  transform: translateY(-110%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  padding: 24px;
}
.mobile-drawer.open { transform: translateY(0); }
.md-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ink-300); }
.md-close { background: transparent; border: 0; padding: 8px; color: var(--navy-900); }
.md-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.md-link {
  background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-900);
  border-bottom: 1px solid var(--ink-300);
}
.md-link.active { color: var(--red); }
.md-foot { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.md-foot .lang-toggle.big { display: inline-flex; gap: 16px; font-size: 16px; }
.md-foot .lang-toggle.big button { font-size: 16px; padding: 8px 0; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.78);
  position: relative;
}
.footer-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, var(--navy-900) 30%, var(--navy-900) 100%);
}
.site-footer .container { padding-top: 80px; padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.2fr auto;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.footer-seal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Pull slightly downward so it visually balances the column headings
     above on its left. */
  align-self: center;
}
.footer-seal-img {
  width: 110px;
  height: auto;
  display: block;
}
.footer-h {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  font-weight: 700;
}
.site-footer address {
  font-style: normal;
  line-height: 1.7;
}
.site-footer a { color: var(--white); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--accent-on-dark); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links button {
  background: transparent; border: 0;
  color: var(--white); padding: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; text-align: left;
}
.footer-links button:hover { color: var(--accent-on-dark); }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.hours { color: rgba(255,255,255,0.55); font-size: 14px; margin-top: 8px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 4px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  transition: background .15s, border-color .15s;
}
.social-row a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-meta { padding-top: 28px; }
.disclaimer { font-size: 13px; color: rgba(255,255,255,0.6); max-width: 720px; line-height: 1.55; }
.copyright { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 8px; }
.site-by { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-seal { justify-content: center; grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-seal { grid-column: auto; }
}

/* ============== HOME ============== */
.hero {
  position: relative;
  min-height: clamp(620px, 80vh, 820px);
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { position: relative; z-index: 4; padding: 120px 24px; width: 100%; }
/* Two-tone glow on hero/page-hero text:
   a tight bright micro-halo (simulated 1px stroke) layered over a soft
   dark lift blur, so type reads as "lifted off" the flag video without
   needing a full overlay or a hard outline. */
.hero-inner.on-dark,
.page-hero-inner.on-dark {
  text-shadow:
    /* bright micro-halo — eight-direction 1px offsets at low opacity
       give a clean "stroke" feel without eating the letterform. */
    -1px -1px 0 rgba(255, 255, 255, 0.45),
     1px -1px 0 rgba(255, 255, 255, 0.45),
    -1px  1px 0 rgba(255, 255, 255, 0.45),
     1px  1px 0 rgba(255, 255, 255, 0.45),
    -1px  0   0 rgba(255, 255, 255, 0.55),
     1px  0   0 rgba(255, 255, 255, 0.55),
     0   -1px 0 rgba(255, 255, 255, 0.55),
     0    1px 0 rgba(255, 255, 255, 0.55),
    /* soft dark lift — the deep glow that separates type from the video. */
    0  3px  8px rgba(0, 0, 0, 0.55),
    0  8px 28px rgba(0, 0, 0, 0.55),
    0 16px 40px rgba(0, 0, 0, 0.30);
}
/* Lede / body copy doesn't need the bright stroke — the dark lift alone
   keeps it readable while looking less "punchy" than the headline. */
.hero-inner.on-dark .hero-sub,
.page-hero-inner.on-dark .lede {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 4px 14px rgba(0, 0, 0, 0.45);
}
/* Buttons in the hero have their own solid/outlined backgrounds, so the
   inherited two-tone glow on their labels looks fuzzy. Strip it. */
.hero-inner.on-dark .btn,
.page-hero-inner.on-dark .btn {
  text-shadow: none;
}

/* ====== Frosted-pane eyebrow — shared across every hero ======
   Covers the Home hero (.hero-eyebrow inside .hero-eyebrow-wrap, fed
   through HeroFitText so it auto-shrinks on tiny viewports) and every
   page-hero <Eyebrow>. Same pill, same frosted-glass background, same
   white text. Inline-block (not flex) so the multi-part Home label
   reads as one continuous text run with text-rendered middle-dot
   separators rather than a flex layout where segments can wrap. */
.hero-eyebrow-wrap {
  margin: 0 0 32px;
  /* Block container that the HeroFitText hook measures against. */
}
.hero-eyebrow,
.hero-inner.on-dark .eyebrow,
.page-hero-inner.on-dark .eyebrow {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 23, 51, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
/* Only the page-hero <Eyebrow> instances need an explicit bottom margin
   — the Home one inherits it from .hero-eyebrow-wrap. */
.hero-inner.on-dark .eyebrow,
.page-hero-inner.on-dark .eyebrow { margin-bottom: 32px; }
/* The base .eyebrow rule paints a small dash before the text. Inside
   the frosted pill that dash looks out of place — hide it. */
.hero-inner.on-dark .eyebrow::before,
.page-hero-inner.on-dark .eyebrow::before {
  display: none;
}
.hero-est { color: var(--white); font-weight: 700; }
.hero-eyebrow-sep {
  /* small visual gap around the text-rendered separator, tighter than
     the old flex `gap: 12px` so EST and the cities feel like one
     continuous label. */
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 640px) {
  .hero-eyebrow,
  .hero-inner.on-dark .eyebrow,
  .page-hero-inner.on-dark .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 6px 12px;
  }
  .hero-eyebrow-sep { margin: 0 3px; }
}
@media (max-width: 420px) {
  .hero-eyebrow,
  .hero-inner.on-dark .eyebrow,
  .page-hero-inner.on-dark .eyebrow {
    font-size: 9px;
    letter-spacing: 0.06em;
    padding: 5px 10px;
  }
  .hero-eyebrow-sep { margin: 0 2px; }
}
.hero-title {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 16ch;
}
/* Mobile: the desktop sizing produces "Democratic Club" / "of" / "Santa Maria"
   / "Valley" — each authored line ("Democratic Club of" + br + "Santa Maria
   Valley") overflows the 16ch cap at the clamp-minimum 3rem font and
   sub-wraps. Scaling the font down and dropping the char cap lets the
   authored br do the only wrap. */
@media (max-width: 540px) {
  .hero-title {
    font-size: clamp(1.85rem, 9vw, 3rem);
    max-width: none;
    line-height: 1.02;
  }
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, rgba(var(--accent-main-rgb), 0.85) 65%);
  padding: 0 4px;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 40px;
}
/* Hero subtitle red-band treatment (Home + About). The band hugs the
   text and never wraps. HeroFitText (see primitives.jsx) measures the
   inner span against the outer paragraph's content width and shrinks
   font-size down to a sensible floor so the line always fits — even on
   tiny mobile viewports. The CSS sizing below is the *desired* max;
   JS only ever reduces from there. */
.hero-sub-banner {
  display: block;
  /* Make sure the auto-fit measurement always has a known parent width
     to work against. */
  width: 100%;
  /* If JS hasn't run yet (e.g. between paint and mount), clip rather
     than push the layout sideways. The auto-fit kicks in immediately
     after and the band shrinks to fit. */
  overflow: hidden;
  /* Drop the inherited two-tone glow — the red band is the legibility
     mechanism here, the lift on plain text would look fuzzy. */
  text-shadow: none !important;
}
.hero-sub-banner-inner {
  display: inline-block;
  white-space: nowrap;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border-radius: 2px;
}
/* On very narrow viewports the band's padding alone uses up a chunk of
   the width; trim it so HeroFitText has more room to work with before
   bottoming out at the minimum font size. */
@media (max-width: 540px) {
  .hero-sub-banner-inner { padding: 6px 12px; }
}
@media (max-width: 380px) {
  .hero-sub-banner-inner { padding: 5px 10px; letter-spacing: 0; }
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; bottom: 40px; right: 24px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
}
.hero-meta .hm-line { width: 60px; height: 1px; background: rgba(255,255,255,0.4); }

/* ============== CROWD BANNER ============== */
.crowd-banner {
  position: relative;
  height: clamp(180px, 22vw, 260px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 4px solid var(--navy-900);
  border-bottom: 4px solid var(--red);
}
.crowd-banner-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.crowd-banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,23,51,0.35) 0%, rgba(10,23,51,0) 30%, rgba(10,23,51,0) 70%, rgba(10,23,51,0.35) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 14px, rgba(255,255,255,0.04) 14px 28px);
  pointer-events: none;
}

/* ============== TWO-COL LAYOUT ============== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.two-col-side.sticky { position: sticky; top: 110px; }
.two-col-body p:first-child { font-size: 1.15rem; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-side.sticky { position: static; }
}

.what-is { background: var(--off-white); }
.what-is h2 em { font-style: normal; color: var(--red); }
.link-arrow {
  background: transparent; border: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 15px;
  margin-top: 16px;
  padding: 8px 0;
  border-bottom: 2px solid var(--red);
  cursor: pointer;
}
.link-arrow:hover { gap: 12px; }

/* ============== VALUES ============== */
.values {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.values-deep-overlay {
  position: absolute; inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg,
      rgba(30, 110, 230, 0.55) 0%,
      rgba(20, 90, 215, 0.62) 50%,
      rgba(15, 65, 180, 0.72) 100%),
    linear-gradient(90deg,
      rgba(25, 95, 210, 0.30) 0%,
      rgba(25, 95, 210, 0.05) 40%,
      rgba(25, 95, 210, 0.05) 60%,
      rgba(25, 95, 210, 0.30) 100%);
  pointer-events: none;
}
.values-inner { position: relative; z-index: 4; max-width: 880px; }
.values-title { font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: 12px; }
.values-title em,
.about-values h2 em { font-style: normal; color: var(--accent-on-dark); }
/* Two-tone glow on the "Decency in Democracy" heading — same micro-halo
   + soft dark lift used in the hero, so the heading reads cleanly over
   the water video on Home and About. */
.values-title,
.about-values h2 {
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.45),
     1px -1px 0 rgba(255, 255, 255, 0.45),
    -1px  1px 0 rgba(255, 255, 255, 0.45),
     1px  1px 0 rgba(255, 255, 255, 0.45),
    -1px  0   0 rgba(255, 255, 255, 0.55),
     1px  0   0 rgba(255, 255, 255, 0.55),
     0   -1px 0 rgba(255, 255, 255, 0.55),
     0    1px 0 rgba(255, 255, 255, 0.55),
    0  3px  8px rgba(0, 0, 0, 0.55),
    0  8px 28px rgba(0, 0, 0, 0.55),
    0 16px 40px rgba(0, 0, 0, 0.30);
}
/* On the italicized accent word the white micro-halo reads as a mismatched
   halo. Swap the halo color to the on-dark accent so the glow matches the
   glyph color (which is var(--accent-on-dark)); keep the dark lift unchanged. */
.values-title em,
.about-values h2 em {
  text-shadow:
    -1px -1px 0 rgba(var(--accent-on-dark-rgb), 0.55),
     1px -1px 0 rgba(var(--accent-on-dark-rgb), 0.55),
    -1px  1px 0 rgba(var(--accent-on-dark-rgb), 0.55),
     1px  1px 0 rgba(var(--accent-on-dark-rgb), 0.55),
    -1px  0   0 rgba(var(--accent-on-dark-rgb), 0.65),
     1px  0   0 rgba(var(--accent-on-dark-rgb), 0.65),
     0   -1px 0 rgba(var(--accent-on-dark-rgb), 0.65),
     0    1px 0 rgba(var(--accent-on-dark-rgb), 0.65),
    0  3px  8px rgba(0, 0, 0, 0.55),
    0  8px 28px rgba(0, 0, 0, 0.55),
    0 16px 40px rgba(0, 0, 0, 0.30);
}
.values-body p { font-size: 1.15rem; color: rgba(255,255,255,0.86); }

/* ============== SECTION HEAD ============== */
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.text-center { margin: 0 auto 56px; }
.section-head .lede { margin-top: 16px; }

/* ============== ACTION CARDS ============== */
.action-cards-section { background: var(--white); }
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.action-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--off-white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.action-card.as-btn { background: var(--off-white); }
.action-card.meeting-card {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.action-card.meeting-card h3, .action-card.meeting-card .ac-num { color: var(--white); }
.action-card.meeting-card .ac-cta { color: var(--red); }
.action-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
}
.ac-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 28px;
  font-weight: 700;
}
.action-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.action-card p { font-size: 14px; color: var(--ink-700); flex: 1; }
.action-card.meeting-card p { color: rgba(255,255,255,0.78); }
.ac-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 13px; font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* ============== MEETING BAND ============== */
.meeting-band {
  background: var(--paper);
  border-top: 1px solid var(--ink-300);
  border-bottom: 1px solid var(--ink-300);
}
.meeting-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}
.meeting-mark {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.meeting-mark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 8px, rgba(255,255,255,0.04) 8px 16px);
  pointer-events: none;
}
.mm-day {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  position: relative;
}
.mm-day::after {
  content: "";
  display: block;
  width: 50px; height: 4px;
  background: var(--red);
  margin: 12px auto 14px;
}
.mm-month {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  position: relative;
}
.meeting-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.meeting-list li { display: flex; gap: 14px; align-items: flex-start; }
.meeting-list li svg { flex: 0 0 18px; margin-top: 2px; color: var(--red); }
@media (max-width: 740px) {
  .meeting-grid { grid-template-columns: 1fr; gap: 32px; }
  .mm-day { font-size: 80px; }
}

/* ============== NO KINGS DAY MARQUEE (Home) ============== */
.nokings-marquee {
  background: var(--off-white);
  border-top: 1px solid var(--ink-300);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Edge fades blend the rows into the page background instead of ending
     abruptly. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee-row {
  display: flex;
  gap: 12px;
  width: max-content;
}
.marquee-row img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex: 0 0 240px;
}
.marquee-row.r1 { animation: nokings-scroll-left  60s linear infinite; }
.marquee-row.r2 { animation: nokings-scroll-right 70s linear infinite; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }

@keyframes nokings-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes nokings-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-wrap {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee-row {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

/* ============== NO KINGS DAY MOSAIC (Take Action) ============== */
.nokings-mosaic-section {
  background: var(--off-white);
  border-top: 1px solid var(--ink-300);
  border-bottom: 1px solid var(--ink-300);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: 32px;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  border-radius: var(--r-sm);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: block;
  transition: transform .25s ease;
}
.mosaic-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.mosaic-item:hover { transform: scale(1.015); }
.mosaic-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 23, 51, 0.55) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.mosaic-item:hover::after { opacity: 1; }
.mosaic-item.tall { grid-row: span 2; }
.mosaic-item.wide { grid-column: span 2; }
.mosaic-item.big  { grid-row: span 2; grid-column: span 2; }

@media (max-width: 700px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  /* On a 2-col grid, "wide" needs to span the full 2 cols, "big" too;
     "tall" stays a single column spanning 2 rows. */
  .mosaic-item.wide,
  .mosaic-item.big { grid-column: span 2; }
}

/* ============== JOIN STRIP ============== */
.join-strip { position: relative; isolation: isolate; }
.join-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  z-index: 0;
}
.join-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 30px, rgba(255,255,255,0.03) 30px 60px);
}
.join-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.join-actions { display: flex; flex-direction: column; gap: 12px; }
.join-actions .btn { width: 100%; justify-content: center; }
.join-strip h2 em { font-style: normal; color: var(--accent-on-dark); }
@media (max-width: 800px) {
  .join-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== PAGE HERO ============== */
.page-hero {
  position: relative;
  min-height: 420px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-inner {
  position: relative; z-index: 4;
  padding: 100px 24px 80px;
  max-width: 920px;
}
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: 18px; }
.page-hero h1 em { font-style: normal; color: var(--accent-on-dark); }

/* ============== ABOUT ============== */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-900);
  border-left: 4px solid var(--red);
  padding: 8px 0 8px 32px;
  margin: 0;
  position: relative;
}
.pullquote .pq-mark {
  position: absolute;
  font-size: 80px;
  font-weight: 800;
  color: var(--red);
  line-height: 0.8;
  left: 32px;
  top: -12px;
  opacity: 0.15;
}

.about-mission { background: var(--off-white); }
.equality-headline {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.equality-headline .eq-blue { color: #1d6fe0; }
.equality-headline .eq-red { color: var(--red); }
.about-values {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-values > .container {
  position: relative;
  z-index: 4;
}
.about-history { background: var(--off-white); }

/* Display-scale tagline above the dark history card. Matches the site's
   dominant header voice — heavy Libre Franklin, tight tracking, with the
   founding year carried in the accent color (the same keyword-accent
   motif as "Decency in Democracy" and "EQUALITY WITHOUT EXCLUSION").
   Centered and capped off with the star divider for a civic flourish.
   No sparkle treatment (that's reserved for the topmost hero headers). */
.history-banner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--s-7);
}
.history-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy-900);
  margin: 0 auto var(--s-5);
}
/* Lock the three lines explicitly so wrapping can't reshuffle the
   phrase ("Serving the" / "Santa Maria Valley" / "since 1968."). */
.history-tagline .tl-line { display: block; }
.history-tagline .tagline-place { white-space: nowrap; }
.history-tagline em {
  font-style: normal;
  color: var(--accent-main);
}
@media (max-width: 720px) {
  .history-banner { margin-bottom: var(--s-6); }
}

.history-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.history-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1.6px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}
.history-card .hc-side { position: relative; }
.hc-year {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin: 12px 0 8px;
  letter-spacing: -0.03em;
}
.hc-year::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: var(--red);
  margin-top: 10px;
}
.history-card .hc-body { position: relative; }
.history-card h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.history-card .lede { color: rgba(255,255,255,0.6); }
.history-card p { color: rgba(255,255,255,0.8); }
@media (max-width: 800px) {
  .history-card { grid-template-columns: 1fr; padding: 40px; gap: 24px; }
  .hc-year { font-size: 72px; }
}

.what-we-do { background: var(--off-white); }
.wwd-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-300);
}
.wwd-item {
  padding: 32px 24px;
  border-right: 1px solid var(--ink-300);
  border-bottom: 1px solid var(--ink-300);
  background: var(--white);
}
.wwd-item:last-child { border-right: 0; }
.wwd-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 18px;
}
.wwd-item h4 { font-size: 1.1rem; margin-bottom: 10px; }
.wwd-item p { font-size: 14px; color: var(--ink-700); margin: 0; }
@media (max-width: 1100px) {
  .wwd-grid { grid-template-columns: repeat(2, 1fr); }
  .wwd-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 540px) {
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-item { border-right: 0; }
}

/* ============== REPS ============== */
.reps-section { background: var(--off-white); }
.reps-section.reps-volunteer { background: var(--white); border-top: 1px solid var(--ink-300); }
.reps-head { max-width: 640px; margin-bottom: 48px; }
.reps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reps-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) {
  .reps-grid { grid-template-columns: repeat(2, 1fr); }
  .reps-grid.compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .reps-grid, .reps-grid.compact { grid-template-columns: 1fr; }
}
.officer-card {
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.officer-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy-300);
  box-shadow: 0 12px 32px rgba(10,23,51,0.08);
}
.officer-card.compact { padding: 20px; }
.portrait-wrap {
  position: relative;
  width: 200px; height: 200px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}
.portrait-star {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 6px 14px rgba(var(--accent-main-rgb), 0.25));
  transition: transform .35s ease;
}
.officer-card:hover .portrait-star { transform: rotate(8deg) scale(1.04); }
.portrait {
  position: relative;
  width: 144px; height: 144px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy-900), 0 6px 14px rgba(10,23,51,0.25);
  z-index: 1;
}
.officer-card.compact .portrait-wrap { width: 152px; height: 152px; margin-bottom: 12px; }
.officer-card.compact .portrait { width: 104px; height: 104px; }
.portrait-fill { width: 100%; height: 100%; }
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias toward the top of the frame so faces (typically upper third
     of a portrait) stay centered when the photo is cropped to a circle. */
  object-position: center 25%;
  display: block;
  /* Tighten the crop so faces appear larger inside the circle. The
     .portrait wrapper has overflow:hidden so the 20% spillage is clipped.
     Origin biased upward (30% from top) to keep the face within frame. */
  transform: scale(1.2);
  transform-origin: center 30%;
}
.portrait-initials {
  position: absolute;
  bottom: -10px; right: -10px;
  background: var(--red);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 3px solid var(--white);
}
.oc-body { width: 100%; }
.oc-name { font-size: 1.1rem; margin: 0 0 4px; }
.officer-card.compact .oc-name { font-size: 1rem; }
.oc-title { font-size: 13px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.officer-card.compact .oc-title { font-size: 12px; margin-bottom: 0; }
.oc-bio { font-size: 14px; margin-bottom: 14px; }
.oc-email {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}
.oc-email:hover { color: var(--red); }

/* Wider-team cards carry no portrait — just name + contact. Left-align
   them and size the columns so a short list doesn't leave big empty
   gaps across the 4-up grid. */
.reps-grid.no-portraits {
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: 16px;
}
.officer-card.no-portrait {
  align-items: flex-start;
  text-align: left;
  padding: 24px;
}
.officer-card.no-portrait .oc-title { margin-bottom: 10px; }
.officer-card.no-portrait .oc-email { margin-top: 0; }
@media (max-width: 540px) {
  .reps-grid.no-portraits { grid-template-columns: 1fr; }
}

.reps-cta { background: var(--off-white); padding-bottom: 100px; }
.reps-cta-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.reps-cta-card::before {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(var(--accent-main-rgb), 0.18) 0%, transparent 70%);
}
.reps-cta-card h3 { color: var(--white); font-size: 1.6rem; }
.reps-cta-card p { color: rgba(255,255,255,0.78); }
@media (max-width: 720px) {
  .reps-cta-card { grid-template-columns: 1fr; padding: 32px; }
}

/* ============== TAKE ACTION ============== */
.action-hero h1 em { font-style: normal; color: inherit; }

.ta-register { background: var(--off-white); }
.register-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.big-link-card {
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
  min-height: 240px;
}
.big-link-card:hover {
  transform: translateY(-4px);
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 16px 36px rgba(10,23,51,0.16);
}
.big-link-card:hover h3, .big-link-card:hover .blc-cta { color: var(--white); }
.big-link-card:hover p { color: rgba(255,255,255,0.78); }
.big-link-card:hover .blc-num { color: var(--red); }
.blc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 24px;
}
.big-link-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.big-link-card p { font-size: 15px; color: var(--ink-700); margin: 0; flex: 1; }
.blc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-size: 13px; font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .register-grid { grid-template-columns: 1fr; }
}

.ta-tips { background: var(--white); border-top: 1px solid var(--ink-300); border-bottom: 1px solid var(--ink-300); }
.tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tips-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-300);
  /* Both items anchor at the top of the row so the star sits beside
     the h4's first line instead of riding above its baseline. */
  align-items: start;
}
.tips-list li:last-child { border-bottom: 0; }
.tips-list h4 { font-size: 1.1rem; margin-bottom: 4px; }
.tips-list p { color: var(--ink-700); margin: 0; font-size: 15px; }

/* Animated star bullets — themed by the accent system so they retint
   with the rest of the site when the client cycles palettes. Continuous
   slow rotation (11s) with a stagger so the field doesn't feel
   metronomic; suppressed entirely under reduced-motion. */
.star-list .star-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Size matched to h4 (1.1rem) so the star reads as a peer of the
     heading text rather than floating above it. The small margin-top
     compensates for the h4 line-box padding above its cap, so the
     star's vertical center lines up with the cap center. */
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  color: var(--accent-main);
  flex-shrink: 0;
  animation: star-spin 11s linear infinite;
  transform-origin: 50% 50%;
}
.star-list .star-bullet svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}
.star-list li:nth-child(even) .star-bullet { animation-delay: -2s; }
.star-list li:nth-child(3n) .star-bullet { animation-delay: -4s; animation-duration: 13s; }
@keyframes star-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .star-list .star-bullet { animation: none; }
}

.ta-districts { background: var(--off-white); }
.districts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.district-card {
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.district-card:hover { transform: translateY(-3px); border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.dc-icon {
  width: 44px; height: 44px;
  background: var(--navy-100);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--navy-900);
  margin-bottom: 20px;
}
.district-card h4 { font-size: 1.05rem; margin: 0 0 18px; flex: 1; }
.dc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
@media (max-width: 900px) { .districts-grid { grid-template-columns: 1fr; } }

.ta-endorse { background: var(--white); border-top: 1px solid var(--ink-300); }
.endorse-group { margin-bottom: 56px; }
.endorse-group:last-child { margin-bottom: 0; }
.endorse-group-h {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-900);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.endorse-group-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: transparent;
}
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.endorse-card {
  background: var(--off-white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 20px;
}
/* Endorsement card with the star-medallion portrait (same treatment as
   the Our Leaders page) — center the content like an officer card. */
.endorse-card-portrait {
  align-items: center;
  text-align: center;
  padding: 28px;
  gap: 0;
}
.endorse-card-portrait .ec-body { width: 100%; }
.endorse-card-portrait .ec-actions { justify-content: center; }
/* Endorsement headshots are smaller/looser than the officer portraits,
   so the shared cover+scale crop zooms in too far. Show the whole photo
   (contain) on a white circle fill instead — the photo's own near-white
   background blends in, so the letterboxing isn't noticeable. */
.endorse-card-portrait .portrait { background: #fff; }
.endorse-card-portrait .portrait-photo {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.ec-body h4 { font-size: 1.1rem; margin: 0 0 4px; }
.ec-office { font-size: 13px; margin-bottom: 14px; }
.ec-actions { display: flex; gap: 16px; }
.ec-actions a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ec-actions a:hover { color: var(--red); }
@media (max-width: 900px) { .endorse-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .endorse-grid { grid-template-columns: 1fr; } }

.ta-volunteer { background: var(--off-white); }
.vol-card {
  background: var(--white);
  border: 1.5px solid var(--navy-900);
  border-radius: var(--r-md);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vol-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
@media (max-width: 760px) { .vol-card { grid-template-columns: 1fr; padding: 32px; } }

.closing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.closing-cta.closing-flat {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.closing-cta.closing-flat::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 28px, rgba(255,255,255,0.025) 28px 56px);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 5; max-width: 900px; }

.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;
}

.cta-marquee {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 0;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.cta-row {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  width: 100%;
}
.cta-track {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  animation: ctaScroll 90s linear infinite;
  will-change: transform;
}
.cta-track.reverse { animation-name: ctaScrollReverse; }
.cta-track.slow { animation-duration: 140s; }
.cta-row-1 .cta-track { animation-duration: 80s; }
.cta-row-2 .cta-track { animation-duration: 110s; }
.cta-row-3 .cta-track { animation-duration: 95s; }
.cta-track-inner {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-right: 0.4em;
}
.cta-track-inner > span { padding: 0 0.4em; flex-shrink: 0; }
.cta-star { color: var(--red); font-size: 0.7em; padding: 0 0.3em !important; }

/* Type sizes per row — visual rhythm + overlap feel */
.cta-row-1 .cta-track-inner { font-size: clamp(2.4rem, 5vw, 4.5rem); color: rgba(255,255,255,0.95); }
.cta-row-2 .cta-track-inner {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  text-stroke: 1.5px rgba(255,255,255,0.55);
}
.cta-row-3 .cta-track-inner { font-size: clamp(2.6rem, 5.6vw, 5rem); color: var(--red); }
.cta-row-4 .cta-track-inner {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-weight: 500;
}

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

@media (prefers-reduced-motion: reduce) {
  .cta-track, .cta-track.reverse, .cta-track.slow { animation: none !important; transform: translateX(-12%); }
}

/* Mini variant — used on every page except Take Action */
.closing-cta.closing-mini {
  padding: 70px 0;
  min-height: 280px;
}
.cta-marquee.cta-marquee-mini {
  padding: 18px 0;
  gap: 10px;
}
.cta-marquee-mini .cta-row-1 .cta-track-inner {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}
.cta-marquee-mini .cta-row-3 .cta-track-inner {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.cta-pulse-btn {
  box-shadow: 0 8px 32px rgba(var(--accent-main-rgb), 0.45);
  position: relative;
}
.cta-pulse-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(var(--accent-main-rgb), 0.45);
  border-radius: var(--r-md);
  animation: ctaPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-pulse-btn::before { animation: none; opacity: 0; }
}

/* ============== CONTACT ============== */
.contact-page-hero {
  background: var(--off-white);
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--ink-300);
}
.contact-hero-inner { max-width: 720px; }
.contact-hero-inner h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }

.contact-blocks { background: var(--off-white); padding-top: 56px; }
.cb-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}
.contact-block {
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.contact-block.primary {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.contact-block.primary::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}
.contact-block.primary h3 { color: var(--white); }
.cb-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
}
.contact-block.primary .cb-kind { color: var(--red); }
.contact-block h3 { font-size: 1.3rem; margin-bottom: 24px; }
.cb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cb-list li { display: flex; gap: 12px; align-items: flex-start; }
.cb-list li svg { flex: 0 0 16px; color: var(--red); margin-top: 4px; }
.contact-block.primary .cb-list li svg { color: var(--red); }
.cb-list a { color: inherit; text-decoration: none; font-weight: 600; }
.cb-list a:hover { color: var(--red); }
.contact-block.primary .cb-list a:hover { color: var(--red); }
@media (max-width: 900px) {
  .cb-grid { grid-template-columns: 1fr; }
}

.contact-map-section { background: var(--off-white); }
.map-card {
  background: var(--white);
  border: 1.5px solid var(--ink-300);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 360px;
}
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-vis {
  position: relative;
  background: linear-gradient(135deg, #e8eef7 0%, #d8e4f2 100%);
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20,48,95,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,48,95,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-roads { position: absolute; inset: 0; }
.map-roads span {
  position: absolute;
  height: 6px; width: 100%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(20,48,95,0.15);
}
.map-roads span.vert { width: 6px; height: 100%; top: 0; }
.map-pin {
  position: absolute;
  top: 45%; left: 45%;
  transform: translate(-50%, -100%);
  color: var(--red);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  z-index: 2;
}
.map-pin::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  width: 12px; height: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  transform: translateX(-50%);
}
.map-label {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-900);
  border: 1px solid var(--ink-300);
}
.map-meta {
  padding: 32px;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
}
.map-meta h3 { font-size: 1.25rem; margin: 0; }
@media (max-width: 800px) { .map-card { grid-template-columns: 1fr; } }

.contact-form-section { background: var(--white); border-top: 1px solid var(--ink-300); }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-err { color: var(--red); font-size: 13px; margin-top: 6px; font-weight: 600; }
.cf-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.small { font-size: 13px; }

/* ============== LIGHTBOX (Take Action mosaic) ============== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 15, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: lightbox-fade .2s ease-out;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  text-align: center;
  max-width: 720px;
  line-height: 1.4;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.lightbox-close {
  top: 20px;
  right: 20px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
