/* =========================================================
   Impacted page — no hero (removed). A short intro band, then
   a GSAP "stacking panels" showcase (from the GreenSock pen):
   each full-screen panel pins, scales down and fades as the
   next slides up over it. Each panel is a short case study.
   Brand tokens from style.css + #FFD80C accent.
   ========================================================= */

/* ----- Intro band (now the top of the page, clears the header) ----- */
.impact-intro {
  padding-top: 200px;
}
@media (max-width: 1199px) { .impact-intro { padding-top: 160px; } }
@media (max-width: 767px)  { .impact-intro { padding-top: 130px; } }

.impact-intro-inner {
  max-width: 980px;
}
.impact-intro .section-subtitle {
  color: #FFD80C;
  display: inline-block;
  margin-bottom: 22px;
}
.impact-intro-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--secondary);
  margin: 28px 0 0;
  max-width: 600px;
}

/* ----- The stacking panels ------------------------------- */
.impact-stack {
  position: relative;
  margin-top: 60px;
}

.impact-panel {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 18px;
  will-change: transform, opacity;
}
.impact-panel.is-dark  { background: #111111; color: #ffffff; }
.impact-panel.is-light { background: #f5f4f1; color: #111111; }

.impact-inner {
  width: 100%;
  max-width: 1180px;
  padding: 6vh 7vw;
  box-sizing: border-box;
}

.impact-index {
  font-family: var(--font_bdogrotesk);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #FFD80C;
  display: inline-block;
  margin-bottom: 40px;
}
.impact-index span { opacity: 0.5; }

/* two columns: the figure on the left, the case study on the right */
.impact-cols {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 991px) {
  .impact-cols { grid-template-columns: 1fr; gap: 30px; }
}

.impact-icon {
  display: block;
  color: #FFD80C;
  margin-bottom: 18px;
}
.impact-icon svg { width: 64px; height: 64px; }

.impact-number {
  font-family: var(--font_bdogrotesk);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.impact-metric-label {
  display: block;
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: 0.01em;
  opacity: 0.6;
}

.impact-kicker {
  font-family: var(--font_bdogrotesk);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFD80C;
  display: inline-block;
  margin-bottom: 18px;
}
.impact-project {
  font-family: var(--font_bdogrotesk);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}
.impact-text {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 56ch;
  opacity: 0.86;
}
.impact-context {
  display: inline-block;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid currentColor;
  opacity: 0.55;
}

/* Explicit per-tone text colours. Headings are <h2>/<h3>, so a global heading
   rule (color: var(--primary)) would otherwise force them dark-on-dark. */
.impact-panel.is-dark  .impact-number,
.impact-panel.is-dark  .impact-project { color: #ffffff; }
.impact-panel.is-light .impact-number,
.impact-panel.is-light .impact-project { color: #111111; }
.impact-panel.is-dark  .impact-text { color: rgba(255, 255, 255, 0.82); }
.impact-panel.is-light .impact-text { color: rgba(17, 17, 17, 0.74); }

/* On the light panels, bright yellow accents wash out, so use the dark
   primary instead. Yellow stays only on the dark panels where it pops. */
.impact-panel.is-light .impact-index,
.impact-panel.is-light .impact-kicker,
.impact-panel.is-light .impact-icon { color: #111111; }
.impact-panel.is-light .impact-index span { opacity: 0.45; }

/* ----- Mobile / tablet: no pinning, simple stacked cards ----- */
@media (max-width: 991px) {
  .impact-stack { margin-top: 30px; }
  .impact-panel {
    height: auto;
    min-height: 0;
    margin-bottom: 18px;
    text-align: left;
  }
  .impact-inner { padding: 44px 28px; }
  .impact-index { margin-bottom: 26px; }
  .impact-number { font-size: clamp(44px, 13vw, 80px); }
}
