/* ════════════════════════════════════════════════════════════════
   PILLAR PAGES (building.html / ai.html) — top hero redesign + Fredoka
   headings throughout the layer. Test-style overrides; safe to scope.
   ════════════════════════════════════════════════════════════════ */

/* All headings in the building layer → Fredoka (matching the home page) */
.layer-pillar-building h1,
.layer-pillar-building h2,
.layer-pillar-building h3,
.layer-pillar-building h4 {
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
}

/* The pillar-hub-header becomes a cream "hero" with paper texture,
   spanning the full viewport width (via the negative-margin trick) */
.layer-pillar-building .pillar-hub-section {
  padding-top: 0;
}
.layer-pillar-building .pillar-hub-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 4rem;
  padding: 5rem 1.4rem 3rem;
  background:
    url("../images/hero-bg-wide.jpg") center top / cover no-repeat,
    #e7dfd5;
  border-bottom: none;
  text-align: center;
}
.layer-pillar-building .pillar-hub-header::after {
  display: none;
}
.layer-pillar-building .pillar-hub-header .kicker {
  color: #9e6e36;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.layer-pillar-building .pillar-hub-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
  color: #9e6e36;
  margin: 0.6rem 0 0.9rem;
}
.layer-pillar-building .pillar-hub-header .ph-tagline {
  /* Match the Hero sub-paragraph style on the home page */
  font-family: 'Noto Sans', var(--sans);
  font-style: normal;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: #4a3c28;
}
.layer-pillar-building .pillar-hub-header .ph-allocation {
  color: #1a2440;
  border-top-color: rgba(158, 110, 54, 0.55);
  border-bottom-color: rgba(158, 110, 54, 0.55);
  background: rgba(255, 255, 255, 0.35);
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
}
/* Properties banner button on cream — flip to navy fill */
.layer-pillar-building .pillar-hub-header .properties-banner {
  background: linear-gradient(180deg, #13284E, #0A1A38);
  border: 1px solid rgba(158, 110, 54, 0.5);
  color: #f4ecd8;
}
.layer-pillar-building .pillar-hub-header .properties-banner:hover {
  border-color: var(--gold-bright);
}

/* Same treatment for the AI pillar page */
.layer-pillar-ai h1,
.layer-pillar-ai h2,
.layer-pillar-ai h3,
.layer-pillar-ai h4 {
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
}
.layer-pillar-ai .pillar-hub-section {
  padding-top: 0;
}
.layer-pillar-ai .pillar-hub-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 4rem;
  padding: 5rem 1.4rem 3rem;
  background:
    url("../images/hero-bg-wide.jpg") center top / cover no-repeat,
    #e7dfd5;
  border-bottom: none;
  text-align: center;
}
.layer-pillar-ai .pillar-hub-header::after {
  display: none;
}
.layer-pillar-ai .pillar-hub-header .kicker {
  color: #9e6e36;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.layer-pillar-ai .pillar-hub-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
  color: #9e6e36;
  margin: 0.6rem 0 0.9rem;
}
.layer-pillar-ai .pillar-hub-header .ph-tagline,
.layer-pillar-ai .pillar-hub-header p {
  color: #4a3c28;
}
.layer-pillar-ai .pillar-hub-header .ai-intro {
  margin: 1.5rem auto 0;
  max-width: 720px;
}
/* Match the Hero sub-paragraph style on the home page */
.layer-pillar-ai .pillar-hub-header .ai-intro-lead {
  font-family: 'Noto Sans', var(--sans);
  font-style: normal;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: #4a3c28;
}
.layer-pillar-ai .pillar-hub-header .ai-intro-lead em {
  color: #9e6e36 !important;
  font-style: italic;
  font-weight: 700;
}
/* Hide the legacy three-dot/square divider — section dividers handle
   the transitions now */
.layer-pillar-ai .pillar-hub-header .ai-divider,
.layer-pillar-ai .ai-divider {
  display: none !important;
}

/* The Reach section → cream that visually extends to viewport edges
   AND down to the footer, WITHOUT changing the section's own width
   or inner column layout. We override the inherited divider
   ::before/::after with absolute pseudo-elements that paint cream
   sideways and below. */
.layer-pillar-ai .ai-section-reach {
  background: #e7dfd5;
  position: relative;
  padding-top: 4rem; /* breathing room below the boundary divider */
  padding-bottom: 2.5rem;
  margin-bottom: 0 !important; /* sits flush against the footer */
}
.layer-pillar-ai .ai-section-reach::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: calc(-50vw + 50%) !important;
  right: calc(-50vw + 50%) !important;
  width: auto !important;
  height: auto !important;
  background: #e7dfd5 !important;
  transform: none !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
.layer-pillar-ai .ai-section-reach::after {
  content: none !important; /* no trailing cream extension — reach now sits flush above the footer */
}
/* Drop the section's bottom padding so the reach goes straight to footer */
.layer-pillar-ai .pillar-hub-section {
  padding-bottom: 0 !important;
}
/* Section-divider hidden — user requested no dividers */
.layer-pillar-ai .ai-section-divider {
  display: none;
}
/* Header copy: title in warm gold (matching "Maor"), lead in the
   home Hero sub-paragraph style (Noto Sans 600, dark warm) */
.layer-pillar-ai .ai-section-reach .ai-section-header h2 {
  color: #9e6e36;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
.layer-pillar-ai .ai-section-reach .ai-section-header .kicker {
  color: #9e6e36;
}
.layer-pillar-ai .ai-section-reach .ai-section-header .section-lead {
  font-family: 'Noto Sans', var(--sans);
  font-style: normal;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: #4a3c28;
}

/* Top bar on pillar pages: stays at the top of the document and
   scrolls away with the page (not pinned to the viewport) */

/* Cross-pillar switch button — sits on the right side, just before
   the B"H mark, in the same vertical strip as the wordmark/icons */
.layer-pillar-building .pillar-switch-btn,
.layer-pillar-ai .pillar-switch-btn {
  position: absolute;
  top: 0;
  right: 4rem;
  height: var(--top-strip-height, 64px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  z-index: 100;
  color: #9e6e36;
}
.layer-pillar-building .pillar-switch-btn:hover,
.layer-pillar-ai .pillar-switch-btn:hover {
  color: #c69556;
}
@media (max-width: 600px) {
  .layer-pillar-building .pillar-switch-btn,
  .layer-pillar-ai .pillar-switch-btn {
    right: 3.2rem;
  }
}

/* Suppress the duplicate B"H pseudo-element on pillar pages —
   we already have a real .bh-mark in the top bar */
.layer-pillar-building::before,
.layer-pillar-ai::after,
.layer-property::after {
  display: none !important;
  content: none !important;
}
/* "So we're building our own." — Fredoka heading style.
   The base .ai-intro-lead:last-child applies a gold-bright→gold
   gradient via background-clip:text — explicitly reset that so
   the solid #9e6e36 wins. */
.layer-pillar-ai .pillar-hub-header .ai-intro-tagline,
.layer-pillar-ai .pillar-hub-header .ai-intro-lead:last-child {
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-style: normal;
  color: #9e6e36 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #9e6e36 !important;
  margin-top: 1rem;
}
/* The dotted divider that follows — re-tone for cream */
.layer-pillar-ai .pillar-hub-header .ai-divider {
  margin: 1.6rem auto 0;
}
.layer-pillar-ai .pillar-hub-header .ai-divider span {
  background: #9e6e36;
}

/* Header chrome (wordmark / action icons / B"H) on cream pillar pages */
.layer-pillar-building .campaign-wordmark,
.layer-pillar-ai .campaign-wordmark,
.layer-pillar-building .campaign-wordmark .cwm-text,
.layer-pillar-ai .campaign-wordmark .cwm-text,
.layer-pillar-building .header-action-btn,
.layer-pillar-ai .header-action-btn,
.layer-pillar-building .bh-mark,
.layer-pillar-ai .bh-mark {
  color: #9e6e36;
}
.layer-pillar-building .header-action-btn:hover,
.layer-pillar-ai .header-action-btn:hover {
  color: #c69556;
}

/* Candidate Properties section → solid cream block (no paper texture) */
.layer-pillar-building .property-selector-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 4rem 1.4rem 5rem;
  background: #e7dfd5;
  position: relative;
}
/* Gold divider line + diamond ornament on top of cream section,
   matching the home-page section dividers */
.layer-pillar-building .property-selector-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 65%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232, 201, 125, 0.40) 50%,
    transparent 100%);
  z-index: 3;
}
.layer-pillar-building .property-selector-section::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  opacity: 0.7;
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 4;
}

/* No section dividers between AI pillar sections */
.layer-pillar-ai .ai-section {
  position: relative;
}
/* Match the kicker on AI navy sections to the h2 color (gold-bright)
   so 'THE ENGINE' / 'THE THESIS' tone aligns with 'Six Proprietary
   Modules' below */
.layer-pillar-ai .ai-section .kicker {
  color: var(--gold-bright);
}

/* Section divider on building between blocks and Candidate Properties
   already handled above on .property-selector-section::before/::after */
.layer-pillar-building .property-selector-section .ps-header h2,
.layer-pillar-building .property-selector-section .ps-header .kicker {
  color: #9e6e36;
}
.layer-pillar-building .property-selector-section .ps-header p {
  color: #4a3c28;
}
.layer-pillar-building .property-selector-section .ps-header h2 {
  background: none;
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
}

:root {
  --v3-cream:           #F4ECD8;
  --v3-cream-soft:      #FAF3E2;
  --v3-cream-deep:      #E8DBB8;
  --v3-gold-warm:       #9e6e36;
  --v3-gold-glow:       #c69556;
  --v3-brown-soft:      #65553c;
  --v3-blue-deep:       #0A1A38;
  --v3-blue-deeper:     #06122A;
  --v3-blue-elevated:   #13284E;
  --v3-divider-h:       linear-gradient(90deg, transparent, rgba(158, 110, 54, 0.55), transparent);

  --v3-heading: 'Fredoka', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset body background for V3 (master starts on cream) */
body.is-v3 {
  background: var(--v3-cream);
  color: var(--v3-brown-soft);
}

/* Mobile-scroll perf: kill background-attachment:fixed everywhere on
   small screens. Fixed backgrounds force the browser to repaint the
   bg on every scroll frame and are the #1 cause of scroll jank on
   iOS Safari and Android Chrome. */
@media (max-width: 1024px) {
  html, body {
    background-attachment: scroll !important;
  }
  body, body.is-v3 {
    background-attachment: scroll !important;
  }
}

/* Hide page scrollbar entirely — aggressive for Android Chrome which
   sometimes ignores scrollbar-width on html. NOTE: scoped — only the
   home (body.is-v3) gets the cream bg; other pages keep their own bg. */
:root {
  color-scheme: light only;
}
body.is-v3 {
  background: var(--v3-cream, #F4ECD8);
}
html, body {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent !important;
  display: none !important;
}

/* The master container holds the whole homepage */
.layer.is-v3 {
  background: transparent;
  min-height: 100vh;
  position: relative;
}

/* ─── universal heading rule (Fredoka 500, width 75) ─── */
.is-v3 h1,
.is-v3 h2,
.is-v3 h3,
.is-v3 .v3-heading,
.is-v3 .v3-stat-num {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ───────────────────────────────────────────────
   HEADER STRIP — thin gold gradient line under
   the existing campaign-wordmark / header bar.
   The top bar scrolls with the page (absolute
   positioning inherited from style.css).
   ─────────────────────────────────────────────── */
.v3-top-strip {
  position: absolute;
  top: var(--top-strip-height, 50px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(158, 110, 54, 0.0) 8%,
    rgba(158, 110, 54, 0.65) 50%,
    rgba(158, 110, 54, 0.0) 92%,
    transparent 100%);
  z-index: 99;
  pointer-events: none;
}

/* On V3 the wordmark sits directly on the hero — no background plate */
body.is-v3 .campaign-wordmark {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--v3-gold-warm);
  border-bottom: none;
}
body.is-v3 .campaign-wordmark .cwm-text {
  color: var(--v3-gold-warm);
}
body.is-v3 .header-action-btn {
  background: transparent;
  border-color: transparent;
  color: var(--v3-gold-warm);
}
body.is-v3 .header-action-btn:hover {
  background: transparent;
  color: var(--v3-gold-glow);
}
body.is-v3 .bh-mark {
  color: var(--v3-gold-warm);
  opacity: 0.7;
}

/* ───────────────────────────────────────────────
   1. HERO — light cream band, text left, image right
   ─────────────────────────────────────────────── */
.v3-hero {
  position: relative;
  min-height: 0;
  padding: calc(var(--top-strip-height, 50px) + 1.5rem) 6vw 3rem;
  overflow: hidden;
  background: var(--v3-cream);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.v3-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-bg-wide.jpg");
  background-size: cover;
  /* anchor the texture to the top so any cropping happens at the bottom */
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}
.v3-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.v3-hero-text {
  max-width: 620px;
}
/* Small gold chip above the Maor. heading announcing the campaign */
.v3-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--v3-gold-warm);
  background: rgba(158, 110, 54, 0.10);
  border: 1px solid rgba(158, 110, 54, 0.30);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.is-v3 .v3-hero-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.v3-hero-h1 .hl-maor {
  display: block;
  color: var(--v3-gold-warm);
}
.v3-hero-h1 .hl-rest {
  display: block;
  color: var(--v3-brown-soft);
  font-size: 0.85em;
  margin-top: 0.5em;
}
.v3-hero-sub {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: #4a3c28;
  margin-bottom: 1.2rem;
  max-width: 56ch;
}
.v3-hero-sub strong {
  color: var(--v3-gold-warm);
  font-weight: 700;
}
.v3-hero-sub:last-child {
  margin-bottom: 0;
}
.v3-hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.v3-hero-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
}

/* ───────────────────────────────────────────────
   2. STATS — transition band, cream → blue gradient
   ─────────────────────────────────────────────── */
.v3-stats {
  position: relative;
  padding: 5rem 4vw 6rem;
  background: var(--v3-blue-deep);
}
.v3-stats-grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}
.v3-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.v3-stat-icon {
  width: 96px;
  height: 96px;
  color: var(--v3-gold-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v3-stat-icon svg,
.v3-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v3-stat-num {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: #9e6e36;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  line-height: 1;
}
.v3-stat-plus {
  /* Same font and size as the number — just a leading "+" */
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  vertical-align: baseline;
  margin-right: 0.02em;
}
.v3-stat-label {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 235, 211, 0.78);
}

/* ───────────────────────────────────────────────
   Generic dark-section frame
   ─────────────────────────────────────────────── */
.v3-section {
  position: relative;
  padding: 6rem 6vw;
  background: var(--v3-blue-deep);
  color: var(--text-warm);
  overflow: hidden;
}
/* ─── Section dividers — subtle gold rule with a tiny center mark ─── */
.v3-section,
.v3-bridge,
.v3-pillars,
.v3-explore {
  position: relative;
}
.v3-stats + .v3-section::before,
.v3-section + .v3-section::before,
.v3-section + .v3-bridge::before,
.v3-pillars + .v3-section::before,
.v3-section + .v3-explore::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 65%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232, 201, 125, 0.40) 50%,
    transparent 100%);
  z-index: 3;
}
.v3-stats + .v3-section::after,
.v3-section + .v3-section::after,
.v3-section + .v3-bridge::after,
.v3-pillars + .v3-section::after,
.v3-section + .v3-explore::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  opacity: 0.7;
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 4;
}
.v3-section-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.is-v3 .v3-section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-bright);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 2.6rem;
}
.v3-section-heading.v3-heading-shrink {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}
.is-v3 .v3-section-heading.v3-heading-shrink {
  margin-bottom: 1.7rem;
}
.v3-section-lede {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-warm);
  text-align: center;
  max-width: 64ch;
  margin: 0 auto 1.5rem;
}
.v3-section-lede strong {
  color: var(--gold-bright);
  font-weight: 600;
}
.v3-divider {
  width: min(560px, 80%);
  height: 1px;
  margin: 3rem auto;
  background: var(--v3-divider-h);
}

/* ───────────────────────────────────────────────
   3. PROBLEM — alternating audience rows with
       reused AI-page audience images
   ─────────────────────────────────────────────── */
.v3-problem-rows {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 1.8rem auto 0;
}
.v3-problem-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.4rem 0;
  isolation: isolate;
}
/* Override the .audience-card frame for V3 problem rows */
.v3-problem-img-wrap {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
}
.v3-problem-img-wrap::before,
.v3-problem-img-wrap::after {
  display: none !important;
}
/* Override the inline-base64 audience PNG with the cream-tinted file
   variants (#e2d5b8) — only inside V3 home, leaves audience.html intact */
.is-v3 .audience-card[data-audience="frum"] .audience-card-img {
  background-image: url("../images/audience-frum-cream.png");
}
.is-v3 .audience-card[data-audience="secular"] .audience-card-img {
  background-image: url("../images/audience-secular-cream.png");
}
.is-v3 .audience-card[data-audience="world"] .audience-card-img {
  background-image: url("../images/audience-world-cream.png");
}
.v3-problem-img {
  width: 180px;
  height: 180px;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
  opacity: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.78));
}
/* Big faded duplicate on the opposite side of the row */
.v3-problem-bg {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 320px;
  max-width: 30%;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.v3-problem-row[data-audience="frum"] .v3-problem-bg {
  background-image: url("../images/audience-frum-cream.png");
}
.v3-problem-row[data-audience="secular"] .v3-problem-bg {
  background-image: url("../images/audience-secular-cream.png");
}
.v3-problem-row[data-audience="world"] .v3-problem-bg {
  background-image: url("../images/audience-world-cream.png");
}
.v3-problem-content {
  position: relative;
  z-index: 1;
  flex: 0 1 420px;
  max-width: 420px;
  text-align: left;
  margin: 0;
}
.v3-problem-content h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--gold-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.v3-problem-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background: rgba(232, 201, 125, 0.45);
}
.v3-problem-content p {
  /* Match the Hero sub-paragraph style on the home page so the audience
     copy feels like a continuation of that voice rather than its own */
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-warm);
}
.v3-problem-content p strong {
  color: var(--v3-gold-warm);
  font-weight: 700;
}
.v3-problem-content p em {
  color: var(--v3-gold-warm);
  font-style: italic;
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   4. SOLUTION — two-line heading, body
   ─────────────────────────────────────────────── */
/* SOLUTION section: cream bg with deep-navy body and warm-gold heading */
.v3-solution-section {
  background: #e7dfd5;
  color: #0a1a38;
  position: relative;
  overflow: hidden;
}
/* Faint looping background video — adds motion without competing with copy */
.v3-solution-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.v3-solution-section .v3-section-inner {
  position: relative;
  z-index: 1;
}
.is-v3 .v3-solution-h {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #9e6e36;
  line-height: 1.15;
  margin-bottom: 3rem;
}
.is-v3 .v3-solution-h em {
  font-style: italic;
  font-weight: inherit;
  color: inherit !important;
  font-family: inherit;
}
.v3-solution-body {
  font-family: 'Noto Sans', var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.85;
  color: #0a1a38;
  text-align: center;
  max-width: 70ch;
  margin: 0 auto;
}
.v3-solution-body + .v3-solution-body {
  margin-top: 1.5rem;
}
/* Desktop-only line breaks (used to fine-tune copy wrapping). On
   narrow screens we let the browser wrap naturally. */
.desktop-br { display: inline; }
@media (max-width: 800px) {
  .desktop-br { display: none; }
}
.v3-solution-body strong {
  color: #9e6e36;
  font-weight: 700;
}
.v3-solution-body em {
  color: #9e6e36 !important;
  font-style: italic;
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   5. BRIDGE — two emphatic centered lines
   ─────────────────────────────────────────────── */
.v3-bridge {
  padding: 5rem 6vw 2.5rem;
  background: var(--v3-blue-deep);
  text-align: center;
}
.v3-bridge p {
  margin: 0;
  font-family: 'Noto Sans', var(--sans);
}
.v3-bridge .l1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--text-warm);
  margin-bottom: 0.6rem;
}
.v3-bridge .l2 {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-bright);
  letter-spacing: -0.005em;
}

/* ───────────────────────────────────────────────
   6. PILLARS — two project cards
   ─────────────────────────────────────────────── */
.v3-pillars {
  background: var(--v3-blue-deep);
  padding: 2rem 6vw 6rem;
}
.v3-pillars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.v3-pillar-card {
  position: relative;
  background: var(--v3-cream);
  border: 1px solid rgba(101, 85, 60, 0.30);
  border-radius: 22px;
  padding: 0.7rem 0.7rem 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #2a2110;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(8, 14, 30, 0.45),
    0 4px 10px rgba(8, 14, 30, 0.30);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.v3-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #8c5f30 0%, #b07a3e 25%, #d4a86a 50%, #b07a3e 75%, #8c5f30 100%);
  z-index: 3;
}
.v3-pillar-card::after {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(158, 110, 54, 0.42);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}
.v3-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158, 110, 54, 0.6);
  box-shadow:
    0 22px 56px rgba(8, 14, 30, 0.55),
    0 6px 14px rgba(8, 14, 30, 0.35);
}
.v3-pillar-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--v3-cream-deep);
  border-radius: 14px;
  position: relative;
  z-index: 2;
}
.v3-pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v3-pillar-body {
  padding: 1.7rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}
.v3-pillar-subtitle {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #8a7a5a;
  margin-bottom: 0.3rem;
  text-transform: none;
}
.is-v3 .v3-pillar-body h3 {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  color: #1a2440;
  margin: 0 0 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.v3-pillar-summary {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2a2110;
  margin: 0 0 1.4rem;
  opacity: 0.86;
}
.v3-pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.v3-pillar-bullets li {
  background: #ede4ce;
  border: 1px solid rgba(101, 85, 60, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2a2110;
}
.v3-pillar-bullets li::before {
  display: none;
}
.v3-pillar-bullets li p {
  margin: 0;
}
.v3-pillar-bullets li p + p {
  margin-top: 0.7rem;
}
.v3-pillar-bullets li strong {
  color: #9e6e36;
  font-weight: 700;
  margin-right: 0.18em;
}
.v3-pillar-bullets li em {
  color: #9e6e36 !important;
  font-style: italic;
  font-weight: 600;
}
.v3-pillar-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(180deg, #b07a3e 0%, #8c5f30 100%);
  color: #f4ecd8;
  border: none;
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: filter 0.2s ease;
}
.v3-pillar-card:hover .v3-pillar-cta {
  filter: brightness(1.08);
}
/* Label + arrow inline so the button stays single-line. Arrow hides on
   narrow screens where it would otherwise force a second line. */
.v3-pillar-cta-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45em;
  line-height: 1.1;
}
.v3-pillar-cta-arrow {
  display: inline-block;
  font-size: 0.95em;
  opacity: 0.9;
  transition: transform 0.25s ease;
}
.v3-pillar-card:hover .v3-pillar-cta-arrow {
  transform: translateX(4px);
}
@media (max-width: 900px) {
  /* On narrow screens the arrow would push the label to a 2nd line —
     drop it so the CTA stays clean on one row */
  .v3-pillar-cta-arrow { display: none; }
}
/* Allocation tag sitting on the CTA — same chip style as the hero
   campaign badge */
.v3-pillar-cta-amount {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 100%;
  font-variation-settings: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4ecd8;
  background: rgba(244, 236, 216, 0.14);
  border: 1px solid rgba(244, 236, 216, 0.45);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
}

/* ───────────────────────────────────────────────
   7. TWO IMPORTANT POINTS (placeholder)
   ─────────────────────────────────────────────── */
/* Points section sits on cream like the Solution section, but the
   blue point cards stay as-is */
.v3-points-section {
  background: #e7dfd5;
}
.is-v3 .v3-points-section .v3-section-heading {
  color: #9e6e36;
}
.v3-points-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.v3-point-card {
  position: relative;
  background: var(--v3-blue-elevated);
  border: 1px solid rgba(232, 201, 125, 0.18);
  border-radius: 12px;
  padding: 2rem 1.8rem;
}
.is-v3 .v3-point-card h3 {
  font-size: 1.7rem;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
  line-height: 1.2;
}
/* Floating gold "badge" icon: half-in / half-above, top-right */
.v3-point-icon {
  position: absolute;
  top: -22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0d18a 0%, #c9a961 50%, #9b7f3f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--v3-blue-deep);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(232, 201, 125, 0.55);
  z-index: 2;
}
.v3-point-icon svg {
  width: 28px;
  height: 28px;
}
.v3-point-card p {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-warm);
}
.v3-point-card p + p {
  margin-top: 0.9rem;
}
.v3-placeholder {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed rgba(232, 201, 125, 0.4);
  color: rgba(232, 201, 125, 0.65);
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ───────────────────────────────────────────────
   8. STAKES — "what if we don't succeed" placeholder
   ─────────────────────────────────────────────── */
/* Stakes section: faint warning icon as background, plain centered copy */
.v3-stakes-section {
  position: relative;
}
.v3-stakes-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/icon-warning.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 380px 380px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.v3-stakes-section .v3-section-inner {
  position: relative;
  z-index: 1;
}
/* Before / After comparison */
.v3-stakes-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1.4rem;
  max-width: 1000px;
  margin: 2.8rem auto 0;
}
.v3-stakes-card {
  position: relative;
  background: rgba(19, 40, 78, 0.55);
  border: 1px solid rgba(232, 201, 125, 0.22);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v3-stakes-before {
  border-left: 3px solid var(--v3-gold-warm);
}
.v3-stakes-after {
  border-left: 3px solid var(--gold-bright);
  background: rgba(19, 40, 78, 0.7);
}
.v3-stakes-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  margin-bottom: 1rem;
}
.v3-stakes-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 3;
}
.v3-stakes-before .v3-stakes-icon { color: var(--v3-gold-warm); }
.v3-stakes-after  .v3-stakes-icon { color: var(--gold-bright); }
.v3-stakes-tag {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}
.v3-stakes-before .v3-stakes-tag { color: var(--v3-gold-warm); }
.v3-stakes-after  .v3-stakes-tag { color: var(--gold-bright); }
.v3-stakes-card-text {
  font-family: 'Noto Sans', var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-warm);
  margin: 0;
}
.v3-stakes-after .v3-stakes-card-text {
  color: #f4ecd8;
}
.v3-stakes-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  color: var(--gold-bright);
}
.v3-stakes-arrow svg {
  width: 100%;
  height: 18px;
}

@media (max-width: 800px) {
  .v3-stakes-comparison {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .v3-stakes-arrow {
    width: 100%;
    height: 32px;
    transform: rotate(90deg);
  }
}

/* ───────────────────────────────────────────────
   9. EXPLORE BUTTONS
   ─────────────────────────────────────────────── */
.v3-explore {
  background: #e7dfd5;
  padding: 5rem 6vw 6rem;
}
.is-v3 .v3-explore-h {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #9e6e36;
  margin-bottom: 4rem;
}
.v3-explore-ctas {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.v3-explore-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.19rem 1.36rem;
  background: var(--v3-blue-elevated);
  border: 1px solid rgba(232, 201, 125, 0.22);
  border-radius: 10px;
  color: var(--text-warm);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.v3-explore-cta:hover {
  border-color: var(--gold-bright);
  background: #1a3060;
  transform: translateY(-2px);
}
.v3-explore-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.v3-explore-cta-label {
  font-family: 'Noto Sans', var(--sans);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--v3-gold-glow);
}
.v3-explore-cta-title {
  font-family: var(--v3-heading);
  font-weight: 500;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  font-size: 0.98rem;
  color: var(--gold-bright);
}
.v3-explore-cta-arrow {
  font-size: 1.19rem;
  color: var(--gold-bright);
  transition: transform 0.25s ease;
}
.v3-explore-cta:hover .v3-explore-cta-arrow {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────
   Responsive: stack everything below 800 px
   ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .v3-hero {
    padding: calc(var(--top-strip-height, 50px) + 1rem) 5vw 2.5rem;
    min-height: auto;
  }
  .v3-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.9rem; /* was 2.5rem — 25% smaller */
    justify-items: center; /* center each block on the screen */
  }
  .v3-hero-text {
    text-align: left;        /* keep copy aligned to the left edge */
    margin: 0 auto;          /* …but the block itself sits centered */
    max-width: 480px;
  }
  .v3-hero-image {
    min-height: 0;
    order: 2;
  }
  .v3-hero-image img {
    max-width: 320px;        /* was 480px — smaller building */
  }
  .v3-stats {
    padding: 4rem 5vw 5rem;
  }
  .v3-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem 1.6rem;
  }
  .v3-section {
    padding: 4.5rem 5vw;
  }
  /* Mobile: icon stacks above the text instead of taking half the row */
  .v3-problem-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
  }
  .v3-problem-img {
    width: 110px;
    height: 110px;
  }
  .v3-problem-content {
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
  }
  .v3-problem-content h3 {
    text-align: center;
  }
  .v3-problem-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .v3-problem-bg {
    display: none;
  }
  .v3-problem-content h3 {
    text-align: center;
  }
  .v3-problem-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .v3-pillars-grid,
  .v3-points-grid,
  .v3-explore-ctas {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 480px) {
  .v3-stats-grid {
    grid-template-columns: 1fr;
  }
  .v3-hero-h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  /* Narrow the hero text block so it sits visibly centered on the page,
     with the copy still left-aligned inside. The campaign badge becomes
     a block element so it centers within that narrowed column. */
  .v3-hero-text {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .v3-hero-badge {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}
