/* ---------- Homepage sections after the pinned narrative ----------
   Changing what's possible (outcomes over the loose field), Powering every team
   (one symbol that re-forms per team), and the closing ask. Every section keeps
   the same rhythm: `--section` above and below, `--section-gap` between a head
   and its content, `--col-gap` between columns, `--card-pad` inside cards. */

/* ---------- Outcomes ---------- */

.changing {
  position: relative;
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}

/* The field behind the outcomes is the page's particle scene on desktop; the
   2D drawing is only for the stacked layout. */
.changing__field,
.finalcta__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.changing__inner {
  position: relative;
}

.changing__head {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.changing__title {
  font-size: var(--step-section);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.changing__lede {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: var(--step-lede);
  line-height: 1.55;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap) clamp(28px, 4vw, 72px);
  margin-top: var(--section-gap);
}

.outcome {
  position: relative;
  padding-top: 28px;
}

/* A short rule keys each outcome without boxing it — the mockup runs them open. */
.outcome::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--rule);
}

.outcome__title {
  font-size: var(--step-title);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.outcome__body {
  margin-top: 12px;
  color: var(--body);
  font-size: var(--step-intro);
  line-height: 1.6;
}

/* ---------- Teams ---------- */

.powering {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
  overflow: clip;
}

/* Symbol stage top-left, headline top-right, five cards beneath. */
.powering__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--section-gap);
  align-items: center;
}

/* The team symbol's anchor box. */
.teamstage {
  grid-column: 1 / span 6;
  min-height: clamp(280px, 24vw, 380px);
}

.powering__head {
  grid-column: 7 / span 6;
  justify-self: end;
  max-width: 40rem;
  text-align: right;
  align-self: start;
  padding-top: 32px;
}

.powering__title {
  font-size: var(--step-section);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.powering__lede {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: var(--step-lede);
  line-height: 1.55;
}

.teamrow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--col-gap);
}

.teamcol {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-content: start;
  padding: var(--card-pad);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.teamcol:hover,
.teamcol.is-active {
  border-color: var(--brand);
  background: var(--brand-wash);
}

.teamcol:has(:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.teamcol__select {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.teamcol__select::after {
  content: '';
  position: absolute;
  inset: 0;
}

.teamcol__select:focus-visible {
  outline: none;
}

.teamcol__label {
  font-size: var(--step-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.teamcol__body {
  color: var(--body);
  font-size: var(--step-small);
  line-height: 1.6;
}

.teamcol__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand-deep);
  font-size: var(--step-small);
  font-weight: 700;
}

.teamcol__link svg {
  flex-shrink: 0;
}

.teamcol__link svg {
  transition: transform 0.28s var(--ease-out);
}

.teamcol__link:hover svg {
  transform: translateX(3px);
}

/* ---------- Closing ask ---------- */

.finalcta--home {
  background: transparent;
  border-bottom: 1px solid var(--rule);
}

.finalcta__inner--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: clamp(24px, 4vw, 64px);
  text-align: left;
}

.finalcta__title--split {
  max-width: none;
  font-size: var(--step-metric-sm);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.finalcta__inner--split .btn {
  margin-top: 0;
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  /* The page's own particle scene draws these fields on desktop. */
  .changing__field,
  .finalcta--home .finalcta__field {
    display: none;
  }

  .narrative-fallback .changing__field {
    display: block;
  }
}

@media (max-width: 1100px) {
  .teamrow {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 899px) {
  .outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .powering__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .teamstage,
  .powering__head,
  .teamrow {
    grid-column: 1 / -1;
  }

  .powering__head {
    order: 1;
    justify-self: start;
    max-width: none;
    text-align: left;
    padding-top: 0;
  }

  .teamstage {
    order: 2;
    min-height: 0;
    height: min(56vw, 240px);
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    background: var(--surface);
  }

  .teamrow {
    order: 3;
  }

  .finalcta__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .teamrow {
    grid-template-columns: minmax(0, 1fr);
  }
}
