/* ============================================================
   BUYER PROGRAMS PAGE
   buyer-programs.css — extends style.css
   ============================================================ */

/* ── ① BP INTRO — dark ── */
.bp-intro {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: calc(68px + clamp(80px, 10vw, 120px)) var(--pad) clamp(80px, 10vw, 120px);
}
.bp-intro__grain { z-index: 0; opacity: 0.14; }
.bp-intro > *:not(.grain) { position: relative; z-index: 1; }
.bp-intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(48px, 7vw, 80px);
  align-items: start;
}
.bp-intro__text {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}
.bp-intro__left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-intro__left .label { color: var(--stone); margin-bottom: 0; }
.bp-intro__photo {
  position: sticky;
  top: clamp(88px, 10vw, 110px);
  overflow: hidden;
  border-radius: 3px;
}
.bp-intro__photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.88;
}

.bp-intro__h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 4.8vw, 5.6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.01em;
}
.bp-intro__h1 em {
  font-style: italic;
  color: rgba(247,246,243,0.5);
  display: block;
}

.bp-intro__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}
.bp-intro__body p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(247,246,243,0.78);
}
.bp-intro__lead {
  font-family: 'Cormorant', serif !important;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.35 !important;
  color: rgba(247,246,243,0.88) !important;
}

/* ── ② BP PROGRAMS — light ── */
.bp-programs {
  position: relative;
  background: var(--paper);
  padding: 0 var(--pad);
  border-top: 1px solid rgba(42,61,92,0.12);
}
.bp-programs__grain { z-index: 0; opacity: 0.04; }
.bp-programs > *:not(.grain) { position: relative; z-index: 1; }

.bp-program {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 8fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(64px, 8vw, 100px) 0;
  border-bottom: 1px solid rgba(20,20,20,0.1);
  align-items: start;
}
.bp-program:last-child { border-bottom: none; }

.bp-program__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.bp-program__meta::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 8px;
}
.bp-program__num {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  color: var(--accent);
  opacity: 0.7;
}
.bp-program__filter {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20,20,20,0.45);
  padding-top: 14px;
  border-top: 1px solid rgba(20,20,20,0.08);
  margin-top: 2px;
}
.bp-program__q {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.4;
}

.bp-program__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.bp-program__a {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}
.bp-program__body {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20,20,20,0.9);
  max-width: 56ch;
}

.bp-program__points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  border-top: 1px solid rgba(20,20,20,0.1);
  padding-top: 20px;
  margin-top: 4px;
}
.bp-program__points li {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20,20,20,0.9);
  max-width: 56ch;
}
.bp-program__points li strong {
  font-weight: 400;
  color: var(--ink);
}

/* ── ③ BP BRIDGE — dark with photo ── */
.bp-bridge {
  position: relative;
  background: var(--ink);
  padding: clamp(80px, 10vw, 120px) var(--pad) clamp(60px, 7vw, 80px);
  overflow: hidden;
}
.bp-bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/egretdusk.jpg');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.13;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
}
.bp-bridge__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.bp-bridge__inner .label { margin-bottom: 0; }
.bp-bridge__inner h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}
.bp-bridge__inner h2 em {
  display: block;
  font-style: italic;
  color: rgba(247,246,243,0.62);
}
.bp-bridge__inner p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,246,243,0.82);
}
.bp-bridge__inner .btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(247,246,243,0.25);
  color: var(--white);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color var(--T), color var(--T);
  margin-top: 8px;
}
.bp-bridge__inner .btn-outline:hover {
  border-color: rgba(247,246,243,0.65);
  color: var(--white);
}

/* Lender connect callout */
.bp-connect {
  padding: 20px 24px;
  border-left: 2px solid rgba(20,20,20,0.14);
  background: rgba(20,20,20,0.04);
}
.bp-connect p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20,20,20,0.72);
}


/* ── JUMP NAV ── */
.bp-jump {
  display: flex;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 0;
  border-bottom: 1px solid rgba(20,20,20,0.08);
  flex-wrap: wrap;
}
.bp-jump a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.bp-jump a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}
.bp-jump a:hover { color: var(--ink); }
.bp-jump a:hover::after,
.bp-jump a.active::after { width: 100%; }
.bp-jump a.active { color: var(--ink); }

/* ── STACKING CALLOUT — editorial pull-quote band ── */
.bp-callout {
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  padding: clamp(56px, 7vw, 88px) var(--pad);
  background: var(--cream);
  border: none;
  display: block;
}
.bp-callout__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.bp-callout__head {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}
.bp-callout__body {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
  max-width: 820px;
}

/* ── RENT VS OWN STAT BLOCK ── */
.bp-stat-compare {
  display: flex;
  align-items: flex-end;
  padding: 40px 44px 36px;
  background: var(--ink);
  border-radius: 2px;
  margin-top: 8px;
}
.bp-stat {
  flex: 1;
  text-align: center;
}
.bp-stat__fig {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.bp-stat__num {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.bp-stat__unit {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 200;
  color: rgba(247,246,243,0.45);
  letter-spacing: 0.08em;
  align-self: flex-end;
  padding-bottom: 5px;
}
.bp-stat__label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.82);
  margin: 0 0 10px;
}
.bp-stat:first-child .bp-stat__num {
  font-size: clamp(3.2rem, 5.2vw, 5.5rem);
}
.bp-stat__sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 200;
  color: rgba(247,246,243,0.65);
  line-height: 1.65;
  margin: 0;
}
.bp-stat__vs {
  font-family: 'Cormorant', serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(247,246,243,0.5);
  flex-shrink: 0;
  padding: 0 24px;
}
.bp-stat__note {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(20,20,20,0.82);
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: 56ch;
}
.bp-stat__disclaimer {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(20,20,20,0.45);
  margin: 5px 0 0;
}

.bp-stat__crosslink {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  margin-top: 28px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--accent);
  max-width: 560px;
}
.bp-stat__crosslink a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.bp-stat__crosslink a:hover { opacity: 0.75; }

/* Second paragraph in lender connect block */
.bp-connect p + p {
  margin-top: 10px;
  font-weight: 400;
  color: rgba(20,20,20,0.88);
}


/* ── MARKET CASE — full-bleed ink close ── */
.bp-market {
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  padding: clamp(80px, 10vw, 120px) var(--pad);
  background: var(--ink);
  display: block;
  border: none;
}
.bp-market__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.bp-market__meta {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
}
.bp-market__meta::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(247,246,243,0.2);
  margin-bottom: 20px;
}
.bp-market__q {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(247,246,243,0.42);
  line-height: 1.4;
}
.bp-market__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bp-market__a {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.9rem, 3vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
}
.bp-market__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
  border-top: 1px solid rgba(247,246,243,0.1);
  padding-top: 24px;
}
.bp-market__points li {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(247,246,243,0.65);
  padding-left: 18px;
  position: relative;
  max-width: 56ch;
}
.bp-market__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1.5px;
  background: rgba(247,246,243,0.28);
}

/* ── BORDER CLEANUP ── */
#hometown-hero { border-bottom: none; }
#credit { border-bottom: none; }

/* ── BAND REVEALS — fade + subtle zoom-out, no vertical travel ── */
.bp-callout.reveal,
.bp-market.reveal {
  transform: scale(1.008);
}
.bp-callout.reveal.visible,
.bp-market.reveal.visible {
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bp-intro__inner { grid-template-columns: 1fr; }
  .bp-intro__photo {
    position: static;
    max-height: 420px;
  }
  .bp-intro__photo img { max-height: 420px; }
}

@media (max-width: 768px) {
  .bp-intro {
    padding: calc(60px + 56px) 24px clamp(60px, 8vw, 80px);
  }
  .bp-intro__inner { gap: 32px; }
  .bp-intro__photo { max-height: 280px; }
  .bp-intro__photo img { max-height: 280px; }
  .bp-programs { padding: 0 24px; }

  .bp-program {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: clamp(48px, 7vw, 72px) 0;
  }
  .bp-program__meta {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .bp-program__q { font-size: 1rem; letter-spacing: 0.08em; }
  .bp-program__a { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .bp-program__body { max-width: 100%; font-size: 1rem; }

  .bp-connect { margin-top: 0; }
  .bp-intro__body p:nth-child(3) { display: none; }

  .bp-callout {
    margin-left: -24px;
    margin-right: -24px;
    padding: clamp(40px, 5vw, 56px) 24px;
  }
  .bp-callout__body { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

  .bp-jump { gap: 20px; padding: 28px 0; overflow-x: auto; flex-wrap: nowrap; -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%); mask-image: linear-gradient(to right, black 80%, transparent 100%); }
  .bp-jump a { white-space: nowrap; flex-shrink: 0; }
  .bp-bridge__inner { text-align: center; align-items: center; }

  .bp-stat-compare { flex-direction: column; padding: 28px 24px; gap: 20px; }
  .bp-stat__vs { padding: 0; }
  .bp-stat__num { font-size: clamp(2.4rem, 8vw, 3.2rem); }

  .bp-market {
    margin-left: -24px;
    margin-right: -24px;
    padding: clamp(60px, 8vw, 80px) 24px;
  }
  .bp-market__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-market__meta { position: static; flex-direction: row; align-items: center; gap: 12px; }
  .bp-market__meta::before { margin-bottom: 0; flex-shrink: 0; }
  .bp-market__a { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
}

@media (max-width: 480px) {
  .bp-intro__h1 { font-size: 2.6rem; }
}
