/* ═══════════════════════════════════════════════════════════════════════
   PUBLIC TRUST ACT — V3 CINEMATIC LAYER
   Loaded after v2-shell.css. Adds atmospheric backgrounds, scroll motion,
   word-by-word reveal styles, count-up scaffolding, and a noise-grain
   texture overlay. V2 styles remain intact underneath.
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   Body — relative positioning so atmospheric layers can stack
   ─────────────────────────────────────────────────────────── */
html, body { position: relative; }

/* Lenis smooth scroll mounting — must set on html when Lenis active */
html.lenis { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }
html.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }


/* ───────────────────────────────────────────────────────────
   SITEWIDE GRAIN TEXTURE — SVG noise layered over everything
   Subtle film/paper grain. Toggle on body.grain-on
   ─────────────────────────────────────────────────────────── */
body.grain-on::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ───────────────────────────────────────────────────────────
   CINEMATIC HERO — full-bleed, mesh gradient + star field
   ─────────────────────────────────────────────────────────── */
.hero.v3-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  padding: 140px 28px 80px;
  display: flex;
  align-items: center;
  background: #050b1c;
}

/* Layer 1 — animated aurora mesh gradient (CSS-only, no images) */
.v3-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 600px at 18% 22%, rgba(0, 40, 104, 0.55), transparent 60%),
    radial-gradient(ellipse 700px 500px at 82% 28%, rgba(200, 16, 46, 0.18), transparent 60%),
    radial-gradient(ellipse 900px 600px at 50% 90%, rgba(15, 28, 56, 0.9), transparent 70%),
    radial-gradient(ellipse 600px 400px at 30% 75%, rgba(212, 169, 67, 0.08), transparent 60%);
  filter: blur(40px);
  animation: v3-aurora 28s ease-in-out infinite alternate;
}

@keyframes v3-aurora {
  0%   { transform: translate(0, 0)        scale(1);    }
  33%  { transform: translate(-3%, 2%)     scale(1.05); }
  66%  { transform: translate(2%, -3%)     scale(1.02); }
  100% { transform: translate(-2%, -2%)    scale(1.04); }
}

/* Layer 2 — subtle scattered star points (SVG inline, no fetch) */
.v3-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 17% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 32% 47%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 23%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 78% 71%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 89% 38%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 9% 78%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 45% 88%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 56% 12%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 84%, rgba(255,255,255,0.4), transparent 60%);
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.55;
  animation: v3-twinkle 6s ease-in-out infinite alternate;
}

@keyframes v3-twinkle {
  0%   { opacity: 0.45; }
  50%  { opacity: 0.68; }
  100% { opacity: 0.5; }
}

/* Layer 3 — flag stripe accent in the corner (decorative) */
.v3-hero-flag {
  position: absolute;
  bottom: 0; right: 0;
  width: clamp(160px, 22vw, 320px);
  height: clamp(110px, 15vw, 220px);
  z-index: 1;
  opacity: 0.10;
  pointer-events: none;
  background:
    linear-gradient(0deg,
      var(--action) 0 14.3%, transparent 14.3% 28.6%,
      var(--action) 28.6% 42.9%, transparent 42.9% 57.2%,
      var(--action) 57.2% 71.5%, transparent 71.5% 85.8%,
      var(--action) 85.8% 100%);
  -webkit-mask-image: linear-gradient(135deg, transparent 35%, black 100%);
          mask-image: linear-gradient(135deg, transparent 35%, black 100%);
}

/* Content sits above all atmospheric layers */
.v3-hero > .col-wide,
.v3-hero > .hero-content {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   NAV CTA — unify the "Take the Pledge" button across pages.
   Legacy styles.css gave it brass on dark-nav inner pages; V3 wants
   Old Glory red everywhere for brand consistency.
   ═══════════════════════════════════════════════════════════════ */
.nav.nav-on-dark .nav-cta,
nav.nav .nav-cta {
  background: var(--action) !important;
  color: var(--bone) !important;
  border: 1px solid var(--action) !important;
}
.nav.nav-on-dark .nav-cta:hover,
nav.nav .nav-cta:hover {
  background: var(--action-bright) !important;
  border-color: var(--action-bright) !important;
  color: var(--bone) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DUOTONE PHOTO SYSTEM — all imagery on the site gets the same
   navy→red duotone treatment for cohesion. Photos drop into
   /assets/imgs/ and the CSS classes do the rest.
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper for an `<img>` element — full duotone effect (navy shadows, red highlights) */
.duotone-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--civic-navy-deep);
  isolation: isolate;
}
.duotone-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.15);
  mix-blend-mode: screen;
  opacity: 0.95;
}
.duotone-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--civic-navy-deep) 0%,
    var(--civic-navy) 45%,
    var(--action-deep) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Background-image variant — for section backgrounds.
   Photo goes directly on the section (inline style); pseudo-element layers
   on a duotone gradient tint to unify the look across all photographs. */
.bg-photo {
  position: relative;
  isolation: isolate;
  background-color: var(--civic-navy-deep) !important;
  background-size: cover !important;
  background-position: center !important;
  color: var(--bone);
}
.bg-photo > * { position: relative; z-index: 2; }
.bg-photo::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(140deg,
    rgba(0, 24, 69, 0.85) 0%,
    rgba(0, 40, 104, 0.78) 50%,
    rgba(155, 14, 38, 0.72) 100%) !important;
}

/* Text legibility overrides — make sure every text style is readable on
   the dark photo background. Override any inherited muted/dim colors.
   Near-white text + subtle shadow for guaranteed contrast against any
   photo region (including bright sky in the Singapore skyline). */
.bg-photo .deck,
.bg-photo .donors-deck,
.bg-photo .proof-three-label,
.bg-photo .donors-vs-label,
.bg-photo .donors-vs-per,
.bg-photo .donors-vs-ratio-caption,
.bg-photo .proof-attr-condensed,
.bg-photo .donors-footer-cite,
.bg-photo .big-stat-source {
  color: rgba(253, 249, 238, 0.96) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 12, 36, 0.45);
}
.bg-photo .proof-three-label {
  color: rgba(253, 249, 238, 0.92) !important;
}
.bg-photo .title,
.bg-photo .donors-title,
.bg-photo .eyebrow,
.bg-photo .donors-eyebrow,
.bg-photo .proof-three-num,
.bg-photo .donors-vs-num {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 12, 36, 0.5);
}
.bg-photo .proof-quote-condensed {
  color: rgba(253, 249, 238, 0.97) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 12, 36, 0.5);
}

/* Singapore section specifically — darker overlay so text is unambiguous
   even on the bright skyline portions of the photo. */
.proof-condensed.bg-photo::before {
  background: linear-gradient(140deg,
    rgba(0, 14, 40, 0.92) 0%,
    rgba(0, 28, 78, 0.86) 50%,
    rgba(80, 8, 24, 0.84) 100%) !important;
}

/* Variants for different mood / section context */
.bg-photo.warm::before {
  background: linear-gradient(140deg,
    rgba(20, 16, 8, 0.72) 0%,
    rgba(115, 84, 32, 0.6) 50%,
    rgba(155, 14, 38, 0.55) 100%) !important;
}
.bg-photo.soft::before {
  background: linear-gradient(140deg,
    rgba(15, 28, 56, 0.84) 0%,
    rgba(15, 28, 56, 0.90) 60%,
    rgba(15, 28, 56, 0.94) 100%) !important;
}

/* Bento tile photo variant — adds an image to a bento-tile.
   Photo stays visible: image is grayscaled & contrast-bumped, overlay is
   a softer gradient so the imagery actually reads. */
.bento-tile.has-photo {
  background-size: cover;
  background-position: center;
  background-color: transparent !important;
}
.bento-tile.has-photo::before {
  background: linear-gradient(140deg,
    rgba(0, 24, 69, 0.55) 0%,
    rgba(0, 24, 69, 0.78) 60%,
    rgba(155, 14, 38, 0.6) 100%) !important;
  mix-blend-mode: multiply;
  filter: none;
}

/* ═══════════════════════════════════════════════════════════════
   "HENRY TALKS TO YOU" HERO — personal letter on paper
   No abstract stats. No dashboard. Reads like the opening line
   of a serious open letter you've been handed.
   ═══════════════════════════════════════════════════════════════ */

.v3-letter-hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 110px 28px 72px;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
@media (min-height: 900px) {
  .v3-letter-hero { padding-top: 130px; padding-bottom: 88px; }
}

/* Subtle paper texture + tricolor edge accents (NOT loud) */
.v3-letter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    /* warm corner glow, lower-right */
    radial-gradient(ellipse 900px 700px at 90% 80%, rgba(115, 84, 32, 0.06), transparent 60%),
    /* cool corner glow, upper-left */
    radial-gradient(ellipse 800px 600px at 8% 18%, rgba(0, 40, 104, 0.04), transparent 60%);
  pointer-events: none;
}

/* Tricolor side rule on the far-left edge — subtle, civic */
.v3-letter-hero::after {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--civic-navy) 0%,
    var(--civic-navy) 33%,
    var(--paper) 33%,
    var(--paper) 66%,
    var(--action) 66%,
    var(--action) 100%
  );
  border-radius: 0 2px 2px 0;
  opacity: 0.85;
  z-index: 1;
}

.v3-letter-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 980px) {
  .v3-letter-content {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
.v3-letter-text {
  min-width: 0;
}

/* Eyebrow / dateline — small mono uppercase, dignified */
.v3-letter-dateline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--civic-navy);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.v3-letter-dateline-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--action);
  display: inline-block;
}
.v3-letter-dateline-sep {
  width: 18px; height: 1px;
  background: rgba(0, 40, 104, 0.35);
  display: inline-block;
}

/* The big personal opening — scaled to fit a 27" 1440p / 4K viewport */
.v3-letter-headline {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 96;
  font-weight: 500;
  font-size: clamp(34px, min(4.6vw, 6vh), 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 18ch;
}
.v3-letter-headline em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--civic-navy);
}
.v3-letter-headline strong {
  font-weight: 500;
  color: var(--action-deep);
}

/* Sub — the bill summary line */
.v3-letter-sub {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--muted-deep);
  max-width: 600px;
  margin-bottom: 28px;
  font-weight: 300;
}
.v3-letter-sub strong {
  font-weight: 500;
  color: var(--ink);
}
.v3-letter-sub em {
  font-style: italic;
  color: var(--action-deep);
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* CTAs row */
.v3-letter-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Signature line — italic Fraunces, like a handwritten close */
.v3-letter-sig {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 40, 104, 0.18);
  max-width: 600px;
  flex-wrap: wrap;
}
.v3-letter-sig-author {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--civic-navy-deep);
  letter-spacing: -0.01em;
}
.v3-letter-sig-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────
   BILL ARTIFACT — right-side visual element. Looks like the
   opening cover sheet of an actual House bill, with eagle logo,
   federal-document styling, and an angled "DRAFT" stamp.
   ───────────────────────────────────────────────────────────── */
.v3-bill-artifact {
  position: relative;
  background: #fbf6e6;
  border: 1px solid rgba(0, 40, 104, 0.18);
  border-radius: 2px;
  padding: 36px 36px 32px;
  box-shadow:
    0 1px 0 rgba(0, 40, 104, 0.04),
    0 20px 50px -18px rgba(20, 30, 60, 0.22),
    0 4px 14px rgba(20, 30, 60, 0.06);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transform: rotate(-0.6deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  max-width: 420px;
  margin: 0 0 0 auto;
}
.v3-bill-artifact:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(0, 40, 104, 0.04),
    0 36px 80px -24px rgba(20, 30, 60, 0.28),
    0 8px 18px rgba(20, 30, 60, 0.08);
}

/* Faux fiber/paper texture on top of the cream */
.v3-bill-artifact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(120, 90, 30, 0.04), transparent 35%),
    radial-gradient(circle at 78% 78%, rgba(120, 90, 30, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Faux watermark eagle behind the type */
.v3-bill-artifact-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.v3-bill-artifact-watermark img {
  width: 78%;
  height: auto;
  filter: grayscale(1) brightness(0.5);
}

.v3-bill-artifact > * { position: relative; z-index: 1; }

/* Top metadata line */
.v3-bill-artifact-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--civic-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 40, 104, 0.25);
  margin-bottom: 22px;
}

/* Eagle logo */
.v3-bill-artifact-eagle {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  opacity: 0.9;
  filter: drop-shadow(0 1px 0 rgba(0, 40, 104, 0.12));
}
.v3-bill-artifact-eagle img { width: 100%; height: 100%; }

/* THE HEADLINE — the bill title */
.v3-bill-artifact-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 4px;
}
.v3-bill-artifact-title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--civic-navy);
}

.v3-bill-artifact-subtitle {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  font-style: italic;
  font-size: 16px;
  color: var(--muted-deep);
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 22px;
}

/* Decorative rule */
.v3-bill-artifact-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 16px;
  color: rgba(0, 40, 104, 0.5);
}
.v3-bill-artifact-rule::before,
.v3-bill-artifact-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.v3-bill-artifact-rule-glyph {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--civic-navy);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

/* The four-fix manifest — tightened for viewport fit */
.v3-bill-artifact-moves {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  counter-reset: move;
}
.v3-bill-artifact-moves li {
  font-family: 'Source Serif 4', serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-deep);
  padding: 7px 0 7px 28px;
  position: relative;
  border-bottom: 1px dotted rgba(0, 40, 104, 0.18);
}
.v3-bill-artifact-moves li:last-child { border-bottom: none; }
.v3-bill-artifact-moves li::before {
  content: counter(move);
  counter-increment: move;
  position: absolute;
  left: 0; top: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--civic-navy);
  font-weight: 700;
}
.v3-bill-artifact-moves li strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 13.5px;
  font-variation-settings: "SOFT" 30, "opsz" 36;
  margin-bottom: 1px;
  line-height: 1.2;
}

/* Bottom footer */
.v3-bill-artifact-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid rgba(0, 40, 104, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.v3-bill-artifact-foot a {
  color: var(--civic-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* DRAFT stamp — angled, slightly translucent */
.v3-bill-artifact-stamp {
  position: absolute;
  top: 34%;
  right: -18px;
  transform: rotate(-12deg);
  z-index: 2;
  pointer-events: none;
  border: 3px double var(--action);
  color: var(--action);
  padding: 8px 18px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: rgba(251, 246, 230, 0.65);
  opacity: 0.75;
  text-align: center;
  line-height: 1.05;
  border-radius: 4px;
}
.v3-bill-artifact-stamp small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0.85;
}

@media (max-width: 980px) {
  .v3-bill-artifact { margin: 0 auto; max-width: 460px; transform: none; }
  .v3-bill-artifact:hover { transform: translateY(-3px); }
}

/* Scroll cue at bottom — subtle, just hints there's more */
.v3-letter-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  animation: v3-scroll-pulse 2.5s ease-in-out infinite;
}
.v3-letter-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 18px;
  background: var(--civic-navy);
  margin: 0 auto 8px;
  opacity: 0.4;
}

@media (max-width: 760px) {
  .v3-letter-hero { padding: 130px 22px 120px; }
  .v3-letter-headline { max-width: 100%; }
  .v3-letter-dateline { margin-bottom: 40px; flex-wrap: wrap; }
  .v3-letter-sig { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-letter-scroll { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   (Legacy pinned-narrative styles removed in this V3 iteration)
   ═══════════════════════════════════════════════════════════════ */
.v3-pinned-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #050b1c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background atmosphere layer — gradients shift per chapter via GSAP */
.v3-pinned-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 18% 32%, var(--bg-blob-1, rgba(0, 40, 104, 0.55)), transparent 65%),
    radial-gradient(ellipse 900px 600px at 82% 38%, var(--bg-blob-2, rgba(200, 16, 46, 0.20)), transparent 65%),
    radial-gradient(ellipse 1200px 600px at 50% 90%, var(--bg-blob-3, rgba(15, 28, 56, 0.95)), transparent 70%);
  filter: blur(45px);
  transition: --bg-blob-1 1s ease, --bg-blob-2 1s ease, --bg-blob-3 1s ease;
}

/* Static star/particle field */
.v3-pinned-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 17% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 32% 47%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 23%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 78% 71%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 89% 38%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 9% 78%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 45% 88%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 56% 12%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 84%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 6% 40%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 41% 32%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 73% 8%, rgba(255,255,255,0.4), transparent 60%);
  animation: v3-twinkle 6s ease-in-out infinite alternate;
}

/* Chapter container — fills the entire pinned hero so chapters can be absolutely positioned within. */
.v3-chapters {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bone);
}

.v3-chapter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
  pointer-events: none;
}
.v3-chapter.is-active {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

/* Chapter kicker — small mono uppercase label above the stat */
.v3-chapter-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.v3-chapter-kicker::before,
.v3-chapter-kicker::after {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* THE BIG STAT */
.v3-chapter-stat {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(120px, 18vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--bone);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.v3-chapter-stat .pct,
.v3-chapter-stat .unit {
  font-size: 0.45em;
  vertical-align: 0.55em;
  margin-left: 0.02em;
  opacity: 0.85;
  letter-spacing: 0;
}
.v3-chapter-stat em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--brass-bright);
}
.v3-chapter-stat.red em { color: var(--action-bright); }
.v3-chapter-stat.blue em { color: var(--civic-navy-bright); }

/* Label below the stat */
.v3-chapter-label {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 36px;
}
.v3-chapter-label.red { color: var(--action-bright); }
.v3-chapter-label.blue { color: var(--civic-navy-bright); }
.v3-chapter-label.gold { color: var(--brass-bright); }

/* Supporting line below */
.v3-chapter-lead {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: rgba(250, 244, 230, 0.78);
  max-width: 620px;
  margin: 0 auto;
}
.v3-chapter-lead .fn { color: var(--brass-bright); background: rgba(212, 169, 67, 0.12); }
.v3-chapter-cite {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.4);
  margin-top: 18px;
}

/* Final chapter — CTAs */
.v3-chapter-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Progress dots — 4 small ticks showing chapter position */
.v3-chapter-progress {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.v3-chapter-progress-dot {
  width: 28px;
  height: 2px;
  background: rgba(253, 249, 238, 0.18);
  border-radius: 1px;
  transition: background 0.3s ease, width 0.3s ease;
}
.v3-chapter-progress-dot.is-active {
  background: var(--brass-bright);
  width: 44px;
}

/* Scroll cue */
.v3-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(253, 249, 238, 0.5);
  animation: v3-scroll-pulse 2.5s ease-in-out infinite;
  text-decoration: none;
}
.v3-scroll-cue::before {
  content: '';
  display: block;
  width: 1px;
  height: 18px;
  background: currentColor;
  margin: 0 auto 8px;
  opacity: 0.6;
}
@keyframes v3-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50%      { opacity: 1;   transform: translate(-50%, 4px); }
}

@media (prefers-reduced-motion: reduce) {
  .v3-chapter { transition: none; }
  .v3-pinned-stars { animation: none; }
  .v3-scroll-cue { animation: none; }
}

@media (max-width: 700px) {
  .v3-chapter-stat { font-size: clamp(80px, 22vw, 140px); }
  .v3-chapter-label { font-size: clamp(28px, 8vw, 44px); }
  .v3-chapter-lead { font-size: 16px; }
}

/* ───────────────────────────────────────────────────────────
   HERO TYPE — bigger, tighter, more cinematic
   ─────────────────────────────────────────────────────────── */
.v3-hero .hero-title {
  font-size: clamp(54px, 9.5vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}

/* Word reveal — uses opacity + filter blur, NO overflow clipping so descenders are preserved */
.v3-word {
  display: inline-block;
  margin-right: 0.18em;
}
.v3-word > span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.25em);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, filter, transform;
}
.v3-word.in > span { opacity: 1; filter: blur(0); transform: translateY(0); }
.v3-word[style*="--i"] > span { transition-delay: calc(var(--i) * 0.05s); }

/* ───────────────────────────────────────────────────────────
   HERO METRICS — bigger numbers, count-up scaffolding
   ─────────────────────────────────────────────────────────── */
.v3-hero .hero-metrics {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 720px;
}
@media (max-width: 700px) {
  .v3-hero .hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.v3-hero .hero-metric-val {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--brass-bright);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.v3-hero .hero-metric:nth-child(2) .hero-metric-val { color: var(--action-bright); }
.v3-hero .hero-metric:nth-child(3) .hero-metric-val { color: var(--civic-navy-bright); }
.v3-hero .hero-metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.55);
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────────
   COUNT-UP — values animate from 0 to target on scroll-in.
   JS wraps suffix in <span class="suffix"> so we can scale it down.
   ─────────────────────────────────────────────────────────── */
.count-up .suffix {
  font-size: 0.55em;
  vertical-align: 0.35em;
  margin-left: 0.04em;
  opacity: 0.85;
  font-weight: inherit;
}

/* ───────────────────────────────────────────────────────────
   SECTION REVEAL — soft fade + Y-shift, GSAP-driven
   Already-existing .reveal class kept compatible; v3 adds bigger reveals
   ─────────────────────────────────────────────────────────── */
.v3-reveal { opacity: 0; transform: translateY(40px); }
.v3-reveal.in { opacity: 1; transform: translateY(0); transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }

/* ───────────────────────────────────────────────────────────
   PINNED SCROLLYTELLING — donor concentration
   When ScrollTrigger pins this section, the bars build progressively
   ─────────────────────────────────────────────────────────── */
.donors.v3-pinned .donor-row {
  opacity: 0;
  transform: translateY(20px);
}
.donors.v3-pinned .donor-row.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ═══════════════════════════════════════════════════════════
   V3 CARD FOUNDATION — the bento language used everywhere.
   Three variants: light, dark, glass.
   ═══════════════════════════════════════════════════════════ */

.v3-card {
  position: relative;
  border-radius: 6px;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease, border-color 0.4s ease;
  isolation: isolate;
  overflow: hidden;
}

/* Light variant — official-document feeling on paper sections */
.v3-card.light {
  background: var(--bone);
  border: 1px solid rgba(120, 90, 30, 0.10);
  box-shadow: 0 1px 0 rgba(20, 30, 60, 0.03), 0 8px 24px rgba(20, 30, 60, 0.04);
}
.v3-card.light:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(20, 30, 60, 0.04), 0 24px 48px rgba(20, 30, 60, 0.10);
  border-color: rgba(0, 40, 104, 0.18);
}

/* Dark variant — product UI feeling on ink sections */
.v3-card.dark {
  background: linear-gradient(160deg, #11203c, #0a1428);
  color: var(--bone);
  border: 1px solid rgba(212, 169, 67, 0.12);
  box-shadow: 0 1px 0 rgba(212, 169, 67, 0.05), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.v3-card.dark:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 67, 0.28);
  box-shadow: 0 1px 0 rgba(212, 169, 67, 0.08), 0 24px 48px rgba(0, 0, 0, 0.55);
}

/* Glass variant — frosted, used on hero atmospheric backgrounds */
.v3-card.glass {
  background: rgba(15, 28, 56, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(253, 249, 238, 0.10);
  color: var(--bone);
  box-shadow:
    inset 0 1px 0 rgba(253, 249, 238, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.25);
}
.v3-card.glass:hover {
  border-color: rgba(253, 249, 238, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(253, 249, 238, 0.14),
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Card head row — eyebrow tag + optional kebab */
.v3-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 169, 67, 0.8);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v3-card-tag::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.v3-card.light .v3-card-tag { color: var(--brass-deep); }
.v3-card.light .v3-card-tag.red,
.v3-card.dark .v3-card-tag.red,
.v3-card.glass .v3-card-tag.red { color: var(--action-deep); }
.v3-card.light .v3-card-tag.blue,
.v3-card.dark .v3-card-tag.blue,
.v3-card.glass .v3-card-tag.blue { color: var(--civic-navy); }
.v3-card.dark .v3-card-tag.red,
.v3-card.glass .v3-card-tag.red { color: var(--action-bright); }
.v3-card.dark .v3-card-tag.blue,
.v3-card.glass .v3-card-tag.blue { color: var(--civic-navy-bright); }

/* ═══════════════════════════════════════════════════════════
   FOOTNOTE MARKERS — superscript citation links
   ═══════════════════════════════════════════════════════════ */
.fn {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  vertical-align: 0.5em;
  margin-left: 0.12em;
  padding: 0 4px;
  border-radius: 2px;
  background: rgba(0, 40, 104, 0.08);
  color: var(--civic-navy);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.fn:hover, .fn:focus {
  background: var(--civic-navy);
  color: var(--bone);
  text-decoration: none;
}
.stop-dark .fn,
.v3-card.dark .fn,
.v3-card.glass .fn,
.hero .fn {
  background: rgba(212, 169, 67, 0.15);
  color: var(--brass-bright);
}
.stop-dark .fn:hover,
.v3-card.dark .fn:hover,
.v3-card.glass .fn:hover,
.hero .fn:hover {
  background: var(--brass-bright);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   V3 HERO BENTO LAYOUT — bento-of-bento on atmospheric bg
   ═══════════════════════════════════════════════════════════ */
.v3-hero-bento {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .v3-hero-bento { grid-template-columns: 1fr; }
}

.v3-hero-bento .card-title { grid-column: 1; grid-row: 1; }
.v3-hero-bento .card-evidence { grid-column: 2; grid-row: 1 / span 2; }
.v3-hero-bento .card-stats { grid-column: 1; grid-row: 2; }

@media (max-width: 980px) {
  .v3-hero-bento .card-title,
  .v3-hero-bento .card-evidence,
  .v3-hero-bento .card-stats { grid-column: 1; grid-row: auto; }
}

/* Title card — biggest, headline+diagnosis+CTAs */
.v3-card.card-title {
  padding: 52px 48px;
}
.v3-card.card-title .hero-title {
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--bone);
  margin-bottom: 28px;
}
.v3-card.card-title .hero-title em {
  font-style: italic;
  color: var(--brass-bright);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.v3-card.card-title .hero-diagnosis {
  border-left: none;
  padding-left: 0;
  background: transparent;
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(250, 244, 230, 0.78);
  margin-bottom: 18px;
  position: relative;
}
.v3-card.card-title .hero-diagnosis::before { display: none; }
.v3-card.card-title .hero-diagnosis strong {
  color: var(--action-bright);
  font-style: normal;
}
.v3-card.card-title .hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(250, 244, 230, 0.7);
  margin-bottom: 28px;
}
.v3-card.card-title .hero-sub strong { color: var(--bone); }
.v3-card.card-title .hero-sub em {
  font-style: italic;
  color: var(--action-bright);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.v3-card.card-title .hero-ctas {
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Evidence card — vertical, atmospheric, shows the donor concentration */
.v3-card.card-evidence {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
}
.card-evidence-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 96;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--bone);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card-evidence-title em {
  font-style: italic;
  color: var(--action-bright);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.card-evidence-deck {
  font-style: italic;
  font-size: 14px;
  color: rgba(250, 244, 230, 0.65);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Mini bars showing 19% concentration */
.mini-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}
.mini-bar {
  height: 14px;
  background: rgba(253, 249, 238, 0.06);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.mini-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--g-from, #9b0e26), var(--g-to, #e63946));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-evidence.in .mini-bar::after { transform: scaleX(1); }
.mini-bar:nth-child(1)::after  { transition-delay: 0.05s; }
.mini-bar:nth-child(2)::after  { transition-delay: 0.10s; }
.mini-bar:nth-child(3)::after  { transition-delay: 0.15s; }
.mini-bar:nth-child(4)::after  { transition-delay: 0.20s; }
.mini-bar:nth-child(5)::after  { transition-delay: 0.25s; }
.mini-bar:nth-child(6)::after  { transition-delay: 0.30s; }
.mini-bar:nth-child(7)::after  { transition-delay: 0.35s; }
.mini-bar:nth-child(8)::after  { transition-delay: 0.40s; }
.mini-bar:nth-child(9)::after  { transition-delay: 0.45s; }
.mini-bar:nth-child(10)::after { transition-delay: 0.50s; }
.mini-bar:nth-child(11)::after { transition-delay: 0.55s; }
.mini-bar:nth-child(12)::after { transition-delay: 0.60s; }
.mini-bar.b { --g-from: #001845; --g-to: #4d76a8; }
.mini-bar.g { --g-from: #8b6a1c; --g-to: #d4a943; }

.card-evidence-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(250, 244, 230, 0.4);
  margin-top: 18px;
}

/* Stats strip card — 4 stat tiles in a row */
.v3-card.card-stats {
  padding: 26px 32px;
}
.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .card-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
.card-stat-val {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--brass-bright);
  font-variant-numeric: tabular-nums;
}
.card-stat-val.red { color: var(--action-bright); }
.card-stat-val.blue { color: var(--civic-navy-bright); }
.card-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 244, 230, 0.6);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════
   V3 PLAN BENTO — clean 2x2. Card 02 (salary + veterans
   mechanism) is naturally tallest because it has the callout;
   row auto-heights handle alignment cleanly.
   ═══════════════════════════════════════════════════════════ */
.v3-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
  margin-top: 8px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .v3-plan-grid { grid-template-columns: 1fr; }
}
.v3-plan-card {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
}

.v3-plan-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--civic-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 96;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
}
.v3-plan-icon.red  { color: var(--action); }
.v3-plan-icon.blue { color: var(--civic-navy); }
.v3-plan-icon svg { width: 100%; height: 100%; }
.v3-plan-icon.glyph svg { display: none; }

.v3-plan-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--civic-navy);
  margin-bottom: 12px;
  font-weight: 500;
}
.v3-plan-num.red  { color: var(--action-deep); }
.v3-plan-num.blue { color: var(--civic-navy); }

.v3-plan-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 96;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.012em;
}
.v3-plan-title em {
  font-style: italic;
  color: var(--civic-navy);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.v3-plan-card:nth-of-type(2) .v3-plan-title em { color: var(--action); }

.v3-plan-text {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-deep);
}
.v3-plan-text strong { color: var(--ink); }
.v3-plan-text em {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--action);
}

.v3-plan-callout {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 4px;
  border-left: 3px solid var(--action-bright);
}
.v3-plan-callout-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 8px;
}
.v3-plan-callout p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(253, 249, 238, 0.85);
  font-style: italic;
}
.v3-plan-callout p strong { color: var(--bone); font-style: normal; font-weight: 500; }

/* ───────────────────────────────────────────────────────────
   BENTO GRID — "Who This Bill Is For" section
   6 image/stat tiles arranged in an asymmetric grid
   ─────────────────────────────────────────────────────────── */
.bento {
  background: var(--paper-2, #ebe0c5);
  padding: 120px 28px;
  position: relative;
}
.bento-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.bento-header {
  margin-bottom: 56px;
  max-width: 720px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: default;
  isolation: isolate;
}
.bento-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10, 20, 40, 0.25); }
.bento-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(10, 20, 40, 0.4), rgba(10, 20, 40, 0.85));
  z-index: 1;
}
.bento-tile.has-photo { background-size: cover; background-position: center; }
.bento-tile.no-photo { background: linear-gradient(140deg, #14253f, #050b1c); }
.bento-tile > * { position: relative; z-index: 2; }
.bento-tile-stat {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brass-bright);
  margin-bottom: 12px;
}
.bento-tile-stat.red { color: var(--action-bright); }
.bento-tile-stat.blue { color: var(--civic-navy-bright); }
.bento-tile-label {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(253, 249, 238, 0.92);
  max-width: 280px;
}
.bento-tile-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 169, 67, 0.85);
  margin-bottom: 14px;
}

/* Bento layout — asymmetric 6-tile grid */
.bento-tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento-tile:nth-child(2) { grid-column: span 3; }
.bento-tile:nth-child(3) { grid-column: span 2; }
.bento-tile:nth-child(4) { grid-column: span 1; }
.bento-tile:nth-child(5) { grid-column: span 3; }
.bento-tile:nth-child(6) { grid-column: span 3; }

@media (max-width: 880px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento-tile:nth-child(1) { grid-column: span 2; }
}

/* ───────────────────────────────────────────────────────────
   THE COALITION — "Who this bill is actually for"
   Editorial roster: a number anchor + group name + prose, per
   coalition group. Replaces the earlier 6-tile bento grid.
   ─────────────────────────────────────────────────────────── */
.coalition {
  background: var(--paper-2);
  padding: 120px 28px;
  position: relative;
}
.coalition-inner { max-width: 1040px; margin: 0 auto; }
.coalition-header { max-width: 780px; }

.coalition-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 44px 0 6px;
  padding-top: 40px;
  border-top: 1px solid rgba(10, 20, 40, 0.16);
}
.coalition-name em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--action);
}
.coalition-name-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 8px;
}

.coalition-roster { display: grid; gap: 0; margin-top: 44px; }
.coalition-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid rgba(10, 20, 40, 0.12);
  align-items: start;
}
.coalition-group:last-child { border-bottom: 1px solid rgba(10, 20, 40, 0.12); }

.coalition-group-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 66px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--brass-deep);
}
.coalition-group-num .suffix { font-size: 0.5em; margin-left: 1px; }
.coalition-group-num.is-navy { color: var(--civic-navy); }
.coalition-group-num.is-red  { color: var(--action-deep); }
.coalition-group-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-deep);
  margin-top: 14px;
  line-height: 1.45;
  max-width: 190px;
}
.coalition-group-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 72;
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.15;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 14px;
}
.coalition-group-body {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  margin: 0;
  max-width: 640px;
}
.coalition-group-body strong { font-weight: 600; }
.coalition-group-body em {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--brass-deep);
  font-size: 1.02em;
}

.coalition-close { margin-top: 60px; max-width: 840px; }
.coalition-close p {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  line-height: 1.58;
  color: var(--ink);
  margin: 0 0 24px;
}
.coalition-majority {
  font-family: 'Fraunces', serif !important;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}
.coalition-majority em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--action);
}
.coalition-cta {
  font-family: 'Fraunces', serif !important;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  font-size: clamp(24px, 3.2vw, 36px) !important;
  line-height: 1.1 !important;
  color: var(--action-deep) !important;
  margin-top: 8px !important;
}

@media (max-width: 720px) {
  .coalition { padding: 80px 22px; }
  .coalition-group {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0;
  }
  .coalition-group-unit { max-width: none; margin-top: 8px; }
}

/* ───────────────────────────────────────────────────────────
   SCROLL-DRIVEN PROGRESS BAR (top of viewport)
   ─────────────────────────────────────────────────────────── */
.v3-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--civic-navy-bright), var(--bone), var(--action-bright));
  z-index: 200;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ───────────────────────────────────────────────────────────
   HERO DIAGNOSIS — bigger, brighter tricolor bar
   ─────────────────────────────────────────────────────────── */
.v3-hero .hero-diagnosis {
  font-size: clamp(19px, 1.6vw, 23px);
  max-width: 720px;
}

/* ───────────────────────────────────────────────────────────
   ACCESSIBILITY — respect prefers-reduced-motion
   ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .v3-hero::before,
  .v3-hero::after { animation: none; }
  .v3-word > span { transform: none; opacity: 1; transition: none; }
  .v3-reveal { opacity: 1; transform: none; transition: none; }
  .v3-progress { display: none; }
}
