/* Scott Wagner — Brokers page.
 *
 * Replicates ipqld.land/about: small dark hero with overlay quote, then 4
 * scroll-story blocks (one per broker, alternating subject/text alignment),
 * production block, CTA, licensing footer.
 *
 * `.broker-story` is reusable — each <section> is independent and can be
 * dropped in/out without affecting the others. Per-section sticky image,
 * per-section fixed-position progress bar (IO-gated to that section so
 * stacking 4 of them doesn't pollute neighbouring sections). */

body.brokers-page {
  background: #000;
  color: #fff;
  padding-top: calc(var(--ticker-h) * 2);
  /* Clear the fixed nav + social bar at the bottom so the last section can
   * scroll above them. */
  padding-bottom: var(--bottom-stack-h);
  font-family: "Montserrat", sans-serif;
}

/* Reusable button — matches about.css. */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn--primary {
  background: var(--bondi); color: #fff; border: 1px solid var(--bondi);
}
.btn--primary:hover { background: #00929a; border-color: #00929a; }
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.18); }

/* ────────────────────────────────────────────────────────────
 * 1. HERO — small banner, dark with overlay quote
 * ──────────────────────────────────────────────────────────── */
.brokers-hero {
  position: relative;
  box-sizing: border-box;
  min-height: 480px;
  padding: 96px 0 100px;
  background: #0a0a0a;
  overflow: hidden;
}
.brokers-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}
.brokers-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.brokers-hero__kicker {
  font-size: 12px; letter-spacing: 0.32em;
  font-weight: 700; color: var(--bondi);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.brokers-hero__quote {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
  text-wrap: balance;
}

/* ────────────────────────────────────────────────────────────
 * THREE QUALITIES — Integrity · Resilience · Transparency
 * Sits between hero and the Scott scroll-story. Three numbered cards
 * on dark, Bondi numerals, brand-led typography. Acts as the "three
 * critical qualities" prologue.
 * ──────────────────────────────────────────────────────────── */
.brokers-qualities {
  background: #0a141a;
  padding: 88px 0 104px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brokers-qualities__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.brokers-qualities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.brokers-qualities__card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 28px 36px;
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.brokers-qualities__card:hover {
  border-color: rgba(0,127,134,0.5);
  background: rgba(0,127,134,0.04);
  transform: translateY(-2px);
}
.brokers-qualities__num {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--bondi);
  line-height: 1;
}
.brokers-qualities__name {
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: #fff;
}
.brokers-qualities__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

/* ────────────────────────────────────────────────────────────
 * THE AGENCY — boutique-service prose + "Enjoy the experience" callout
 * Sits between Scott's scroll-story and the CTA. Off-white background
 * so the page rhythm goes dark hero → dark qualities → image story → light
 * prose → image CTA. The philosophy block uses a big italic pull-quote.
 * ──────────────────────────────────────────────────────────── */
.brokers-agency {
  background: #f6f2ea;
  color: var(--ink);
  padding: 96px 0 104px;
}
.brokers-agency__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}
.brokers-agency__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bondi);
}
.brokers-agency__title {
  margin: 0 0 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.012em;
  line-height: 1.1;
}
.brokers-agency__prose p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(12,33,38,0.78);
}
.brokers-agency__philosophy {
  margin: 56px 0 0;
  padding: 36px 32px 40px;
  background: #fff;
  border: 1px solid rgba(12,33,38,0.1);
  border-left: 4px solid var(--bondi);
  border-radius: 6px;
}
.brokers-agency__kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bondi);
}
.brokers-agency__quote {
  margin: 0 0 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.brokers-agency__body {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(12,33,38,0.7);
}
.brokers-agency__body:last-child { margin-bottom: 0; }

/* ────────────────────────────────────────────────────────────
 * 2-5. BROKER STORY — sticky image + scrolling text column
 * Reusable block; repeat as many times as needed.
 * ──────────────────────────────────────────────────────────── */
.broker-story {
  position: relative;
  background: #000;
}
.broker-story__sticky {
  position: sticky;
  top: calc(var(--ticker-h) * 2);
  height: calc(100vh - var(--ticker-h) * 2);
  overflow: hidden;
}
.broker-story__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.broker-story__scrim {
  position: absolute; inset: 0;
}
/* When text is on the RIGHT, scrim darkens the right 60% so copy reads
 * without obscuring the subject (typically on the left of the photo). */
.broker-story__scrim--right {
  background: linear-gradient(to right, transparent 40%, rgba(0,0,0,0.78) 100%);
}
.broker-story__scrim--left {
  background: linear-gradient(to left, transparent 40%, rgba(0,0,0,0.78) 100%);
}

/* Text column pulled over the sticky image. */
.broker-story__column {
  position: relative;
  z-index: 2;
  margin-top: calc(-100vh + var(--ticker-h) * 2);
  padding: 38vh 0 50vh;
  pointer-events: none;  /* let clicks fall through to the image area */
}
.broker-story__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  /* Column direction so the kicker / title / paragraphs stack vertically
   * instead of becoming row-siblings (which shrinks the title into a
   * narrow column of stacked words). */
  display: flex;
  flex-direction: column;
}
.broker-story__inner--right { align-items: flex-end; }
.broker-story__inner--left { align-items: flex-start; }
.broker-story__inner > * { max-width: 580px; width: 100%; }
.broker-story__inner--right > * { text-align: right; }
.broker-story__inner--left > * { text-align: left; }

.broker-story__inner p,
.broker-story__inner h2,
.broker-story__inner > div { pointer-events: auto; }

.broker-story__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--bondi);
  text-transform: uppercase;
  margin: 0 0 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.broker-story__title {
  margin: 0 0 48px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.7);
  text-wrap: balance;
}
.broker-story p {
  font-size: 19px;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 36px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  text-wrap: pretty;
}
.broker-story p strong {
  font-weight: 900;
  font-size: 22px;
}
.broker-story__tail {
  margin-top: 48px !important;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 24px !important;
  font-weight: 900;
  line-height: 1.25 !important;
  text-wrap: balance;
}

/* Scroll-fade — same opacity-on-enter behaviour as about.html's story.
 * Initial 0.3; .is-in-focus lifts to 1. */
.scroll-fade {
  opacity: 0.3;
  transition: opacity 0.4s ease, transform 0.55s ease;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.scroll-fade.is-in-focus {
  opacity: 1;
  transform: translateY(0);
}

/* Per-section progress bar — fixed on the right edge, IO-gated so only the
 * section currently in viewport shows its bar. */
.broker-story__progress {
  position: fixed;
  top: 50%; right: 18px;
  transform: translateY(-50%);
  width: 4px;
  height: 220px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.broker-story__progress.is-active {
  opacity: 1;
}
.broker-story__progress span {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  white-space: nowrap;
}
.broker-story__progress-bar {
  width: 100%;
  background: var(--bondi);
  border-radius: 2px;
  height: 0%;
  transition: height 0.18s linear;
}

/* ────────────────────────────────────────────────────────────
 * 6. PRODUCTION
 * ──────────────────────────────────────────────────────────── */
.brokers-production {
  background: #0a0a0a;
  padding: 96px 0 104px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.brokers-production__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.brokers-production__kicker {
  margin: 0 0 14px;
  font-size: 12px; letter-spacing: 0.28em;
  font-weight: 700; color: var(--bondi);
  text-transform: uppercase;
}
.brokers-production__title {
  margin: 0 0 22px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brokers-production__lede {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.brokers-production__footnote {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

/* ────────────────────────────────────────────────────────────
 * 7. CTA
 * ──────────────────────────────────────────────────────────── */
.brokers-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.brokers-cta__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.brokers-cta__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}
.brokers-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.brokers-cta__inner h2 {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}
.brokers-cta__accent { color: var(--bondi); }
.brokers-cta__lede {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.brokers-cta__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}

/* ────────────────────────────────────────────────────────────
 * 8. LICENSING
 * ──────────────────────────────────────────────────────────── */
.brokers-licensing {
  background: #000;
  padding: 56px 0 64px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.brokers-licensing__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.brokers-licensing__name {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
}
.brokers-licensing__role {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.brokers-licensing__lic {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.5);
}
.brokers-licensing__entity {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.5);
}
.brokers-licensing__contact {
  margin: 22px 0 0;
}
.brokers-licensing__contact a {
  color: var(--bondi);
  text-decoration: none;
  transition: color 0.15s;
}
.brokers-licensing__contact a:hover { color: #fff; }
.brokers-licensing__sep {
  color: rgba(255,255,255,0.3);
  margin: 0 12px;
}

/* ────────────────────────────────────────────────────────────
 * MOBILE
 * ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .brokers-hero { padding: 64px 0 72px; min-height: 360px; }
  .brokers-hero__quote { font-size: clamp(22px, 5vw, 30px); }
  .broker-story__sticky { height: calc(80vh - var(--ticker-h) * 2); top: calc(var(--ticker-h) * 2); }
  .broker-story__column { margin-top: calc(-80vh + var(--ticker-h) * 2); padding: 18vh 0 38vh; }
  .broker-story__inner { padding: 0 22px; }
  .broker-story__inner > * { max-width: none; }
  /* Mobile prefers single bottom-darkening scrim regardless of side. */
  .broker-story__scrim--right,
  .broker-story__scrim--left {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.85) 65%);
  }
  .broker-story__inner--right > *,
  .broker-story__inner--left > * { text-align: left; }
  .broker-story__inner--right { justify-content: flex-start; }
  .broker-story p { font-size: 17px; margin-bottom: 28px; }
  .broker-story p strong { font-size: 19px; }
  .broker-story__tail { font-size: 20px !important; }
  .broker-story__progress { display: none; }
  .brokers-production { padding: 64px 0 72px; }
  .brokers-cta { padding: 72px 0; }
  .brokers-qualities { padding: 56px 0 64px; }
  .brokers-qualities__grid { grid-template-columns: 1fr; gap: 16px; }
  .brokers-qualities__card { padding: 24px 22px 28px; }
  .brokers-qualities__num { font-size: 26px; }
  .brokers-qualities__name { font-size: 22px; }
  .brokers-agency { padding: 64px 0 72px; }
  .brokers-agency__philosophy { margin-top: 36px; padding: 26px 22px 28px; }
}
