/* ==========================================================================
   The Collective — /explore/ ("Understand The Collective")
   Colour tokens and shared header/nav/footer rules match the rest of the
   site exactly (same brand, same accessibility patterns).
   ========================================================================== */

:root {
  --teal: #6BB7B0;
  --teal-deep: #326762;
  --bg-warm: #F7F5F0;
  --pale-aqua: #E7F2F0;
  --mustard: #D9A441;
  --teal-near-black: #1B3733;
  --text-dark: #1E3A38;
  --text-muted: #5C7A78;
  --white: #FFFFFF;
  --error: #B3261E;

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 16px rgba(30, 58, 56, 0.08);
  --shadow-card: 0 6px 20px rgba(30, 58, 56, 0.10);
  --focus-ring: 3px solid var(--teal-deep);

  --content-width: 1080px;
  --transition-fast: 200ms ease;

  /* A lighter gold used only for text/graphics on the deep-teal
     background — the base --mustard doesn't reach 4.5:1 there. */
  --mustard-on-dark: #F5D9A8;

  /* A darker gold used for small mustard-accent text on the warm-cream
     background — the base --mustard only reaches ~2:1 there. */
  --mustard-on-light: #8A5E18;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Keeps scroll targets (skip link, in-page focus jumps) from landing
     underneath the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header / navigation (shared pattern with the rest of the site)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.85;
  transform: scale(1.02);
}

.nav-logo-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  width: 130px;
  aspect-ratio: 1004 / 142;
}

.nav-logo-wrap .nav-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 107.57%;
  max-width: none;
  height: auto;
  transform: translate(-2.778%, -43.426%);
}

@media (min-width: 640px) {
  .nav-logo-wrap {
    width: 165px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--pale-aqua);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal-deep);
  font-weight: 700;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Shared editorial building blocks
   ========================================================================== */

.ex-section {
  position: relative;
  padding: 88px 24px;
}

/* ==========================================================================
   Scroll reveal — progressive enhancement only. With no JS at all, or with
   prefers-reduced-motion, every .reveal element is simply visible from the
   start (see the reduced-motion block below and the base state here).
   html.js-reveal is only added by script.js when motion is allowed, so the
   hidden starting state only ever applies when the reveal is guaranteed to
   run.
   ========================================================================== */

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: calc(var(--reveal-order, 0) * 110ms);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Soft curved boundary between two of the most visually abrupt colour
   changes (cream→teal at the opening, mustard→cream before the
   emotional close) — used sparingly, not on every section change, so
   the page still reads as calm rather than decorated. */
.ex-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  line-height: 0;
  pointer-events: none;
}

.ex-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ex-eyebrow {
  display: inline-block;
  color: var(--mustard-on-light);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.ex-lede {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.ex-lede-dark {
  color: rgba(247, 245, 240, 0.82);
}

.ex-closing-line {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--teal-deep);
  max-width: 46ch;
  margin: 56px auto 0;
  text-align: center;
}

.ex-closing-line-dark {
  color: var(--white);
}

.cta-button {
  display: inline-block;
  background: var(--teal);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover {
  border-color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cta-button:active {
  transform: scale(0.98);
  box-shadow: none;
}

.cta-button-light {
  background: var(--white);
  color: var(--teal-deep);
}

.cta-button-light:hover {
  border-color: var(--mustard);
}

/* ==========================================================================
   Section 1 — Opening
   ========================================================================== */

.ex-opening {
  padding-top: 64px;
}

.ex-opening-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

.ex-opening-text h1 {
  margin: 0 0 24px;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}

.ex-opening-mark {
  display: none;
}

.ex-opening-mark-glyph {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  color: var(--pale-aqua);
}

@media (min-width: 900px) {
  .ex-opening-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }

  .ex-opening-text h1 {
    font-size: 3.6rem;
  }

  .ex-opening-mark {
    display: block;
  }

  .ex-opening-mark-glyph {
    max-width: 420px;
  }
}

/* ==========================================================================
   Section 2 — The problem / stats
   ========================================================================== */

.ex-problem {
  background: var(--teal-deep);
  color: var(--white);
}

.ex-problem-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ex-problem-grid {
  display: grid;
  gap: 16px;
}

.ex-problem-sticky {
  /* Static by default (mobile) — becomes sticky at the desktop
     breakpoint below, once there's a second column for it to stay
     anchored beside. */
}

.ex-problem h2 {
  margin: 0 0 20px;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .ex-problem h2 {
    font-size: 2.8rem;
  }
}

.ex-stats {
  margin-top: 48px;
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .ex-problem-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
  }

  .ex-problem-sticky {
    position: sticky;
    top: 110px;
  }

  .ex-stats {
    margin-top: 0;
    gap: 0;
  }

  /* Each stat gets generous room either side so scrolling past the
     sticky left column naturally lands on one statistic at a time,
     rather than all three competing for attention together. */
  .ex-stat-beat {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.ex-stat {
  border-top: 3px solid var(--mustard);
  padding-top: 20px;
  max-width: 640px;
}

.ex-stat-number {
  margin: 0 0 10px;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mustard-on-dark);
  letter-spacing: -0.03em;
}

.ex-stat-number-compact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 3.2rem;
}

.ex-stat-number-vs {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(247, 245, 240, 0.6);
}

.ex-count-suffix {
  font-size: 0.5em;
}

@media (min-width: 1000px) {
  .ex-stat-number {
    font-size: 6.4rem;
  }

  .ex-stat-number-compact {
    font-size: 4.8rem;
  }
}

.ex-stat-explanation {
  margin: 0 0 22px;
  font-size: 1.0625rem;
  color: rgba(247, 245, 240, 0.88);
  max-width: 46ch;
}

.ex-stat-explanation strong {
  color: var(--white);
}

.ex-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.ex-bar {
  display: grid;
  grid-template-columns: 100px 1fr 56px;
  align-items: center;
  gap: 12px;
}

.ex-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(247, 245, 240, 0.8);
}

.ex-bar-track {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.ex-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mustard);
  transition: width 900ms ease;
}

.ex-bar-fill-compare {
  background: var(--teal);
}

.ex-bar-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  text-align: right;
}

/* The 83-place gap gets its own visual moment rather than sitting as a
   plain sentence — same exact wording, just given weight via the
   bracket/pill treatment below. */
.ex-stat-gap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 18px;
  background: rgba(217, 164, 65, 0.14);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.85);
}

.ex-stat-gap strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mustard-on-dark);
}

.ex-stat-gap {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--white);
}

.ex-stat-caveat {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.65);
  font-style: italic;
}

.ex-stat-source {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.6);
}

.ex-ring-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.ex-ring {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
}

@media (min-width: 1000px) {
  .ex-ring {
    width: 188px;
    height: 188px;
  }
}

.ex-ring-fill {
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1100ms ease;
}

.ex-ring-caption {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}

/* -- Sources & context disclosure --------------------------------------- */

.ex-sources {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
}

.ex-sources summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--white);
  font-size: 1.0625rem;
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-sources summary::-webkit-details-marker {
  display: none;
}

.ex-sources summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1rem;
  flex-shrink: 0;
}

.ex-sources[open] summary::before {
  content: "\2212";
}

.ex-sources summary:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.ex-sources-body {
  padding-top: 16px;
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .ex-sources-body {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ex-source-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--white);
}

.ex-source-meta {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.65);
}

.ex-source-desc {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.85);
}

.ex-source a {
  color: var(--mustard-on-dark);
  font-weight: 700;
  font-size: 0.9375rem;
}

.ex-source a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* -- Human consequences --------------------------------------------------- */

.ex-consequences {
  margin-top: 64px;
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .ex-consequences {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ex-consequence h3 {
  margin: 0 0 8px;
  color: var(--mustard-on-dark);
  font-size: 1.1875rem;
}

.ex-consequence p {
  margin: 0;
  color: rgba(247, 245, 240, 0.88);
}

.ex-problem .ex-closing-line {
  color: var(--white);
  max-width: 52ch;
}

/* ==========================================================================
   Section 3 — Who we're building for first
   ========================================================================== */

.ex-first-provision {
  position: relative;
  overflow: hidden;
}

.ex-first-provision-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
}

.ex-first-provision-text {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.ex-first-provision h2 {
  margin: 0 0 20px;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--teal-deep);
}

.ex-provision-statement {
  position: relative;
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--mustard);
  margin: 32px 0;
}

.ex-age-mark {
  display: none;
  position: absolute;
  font-size: 14rem;
  font-weight: 800;
  color: var(--pale-aqua);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 0;
  user-select: none;
  /* Given a very slight scroll-linked offset by script.js (a few px,
     slower than the page scroll) for a subtle sense of depth — never
     enough to be distracting, and left untouched under reduced motion. */
  will-change: transform;
}

@media (min-width: 900px) {
  .ex-first-provision h2 {
    font-size: 2.75rem;
  }

  .ex-age-mark {
    display: block;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    font-size: 17rem;
  }
}

@media (min-width: 1200px) {
  .ex-age-mark {
    font-size: 20rem;
    right: -10px;
  }
}

/* ==========================================================================
   Section 4 — What specialist provision means here
   ========================================================================== */

.ex-specialist {
  background: linear-gradient(180deg, var(--pale-aqua) 0%, #DCEEEB 100%);
}

.ex-specialist-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ex-specialist h2 {
  margin: 0 0 8px;
  font-size: 2.1rem;
  color: var(--teal-deep);
  max-width: 20ch;
}

/* A vertical sequence of four "moments" — not a grid. Each theme
   alternates left/right alignment with a slight vertical overlap onto
   the one before it, threaded together by a single connecting line, so
   the visitor moves through four beats rather than reading four equal
   cells. */
.ex-themes {
  position: relative;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}

.ex-themes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  bottom: 0.6em;
  width: 2px;
  background: rgba(50, 103, 98, 0.18);
}

.ex-themes-light::before {
  background: rgba(255, 255, 255, 0.18);
}

.ex-theme {
  position: relative;
  padding: 0 0 0 28px;
  max-width: 30ch;
}

.ex-theme + .ex-theme {
  margin-top: -8px;
}

.ex-theme h3 {
  margin: 0 0 6px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.ex-theme p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-dark);
}

.ex-themes-light .ex-theme h3 {
  color: var(--white);
}

.ex-themes-light .ex-theme p {
  color: rgba(247, 245, 240, 0.85);
}

@media (min-width: 720px) {
  .ex-themes::before {
    left: 50%;
  }

  .ex-theme {
    width: 58%;
    padding-left: 40px;
  }

  .ex-theme:nth-child(odd) {
    align-self: flex-start;
    text-align: left;
  }

  .ex-theme:nth-child(even) {
    align-self: flex-end;
    padding-left: 0;
    padding-right: 40px;
    text-align: right;
    max-width: 30ch;
    margin-left: auto;
  }

  .ex-theme + .ex-theme {
    margin-top: -28px;
  }

  /* Loose size variation, largest first, so the four don't read as
     typographically identical/equal-weight entries. */
  .ex-theme:nth-child(1) h3 {
    font-size: 4rem;
  }

  .ex-theme:nth-child(2) h3 {
    font-size: 3.1rem;
  }

  .ex-theme:nth-child(3) h3 {
    font-size: 3.6rem;
  }

  .ex-theme:nth-child(4) h3 {
    font-size: 2.9rem;
  }
}

.ex-specialist .ex-closing-line {
  max-width: 34ch;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 3px solid var(--teal-deep);
  font-size: 1.75rem;
  line-height: 1.3;
  text-align: left;
}

@media (min-width: 720px) {
  .ex-specialist .ex-closing-line {
    margin-left: 50%;
    padding-left: 40px;
  }
}

/* ==========================================================================
   Section 5 — The wider ambition
   ========================================================================== */

.ex-ambition {
  background: var(--teal-deep);
  color: var(--white);
}

.ex-ambition-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ex-ambition h2 {
  margin: 0 0 20px;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--white);
}

@media (min-width: 640px) {
  .ex-ambition h2 {
    font-size: 2.8rem;
  }
}

.ex-ambition-ground {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.0625rem;
  color: rgba(247, 245, 240, 0.85);
  max-width: 60ch;
}

/* ==========================================================================
   Section 6 — Where we are now
   ========================================================================== */

.ex-progress {
  background: var(--mustard);
}

.ex-progress-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.ex-progress h2 {
  margin: 0 0 56px;
  font-size: 2.2rem;
  color: var(--text-dark);
}

@media (min-width: 640px) {
  .ex-progress h2 {
    font-size: 2.8rem;
  }
}

.ex-workstreams {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
  position: relative;
}

.ex-workstream {
  position: relative;
  padding-left: 56px;
}

.ex-workstream-index {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-dark);
  color: var(--mustard);
  font-weight: 800;
  font-size: 1.0625rem;
  transition: transform 400ms ease, opacity 400ms ease;
}

.ex-workstream::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -40px;
  width: 2px;
  background: rgba(30, 58, 56, 0.25);
}

.ex-workstream::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -40px;
  width: 2px;
  background: var(--text-dark);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms ease;
}

.ex-workstream:last-child::before,
.ex-workstream:last-child::after {
  display: none;
}

.ex-workstream h3 {
  margin: 0 0 6px;
  font-size: 1.1875rem;
  color: var(--text-dark);
  transition: opacity 500ms ease;
}

.ex-workstream p {
  margin: 0;
  color: rgba(30, 58, 56, 0.85);
  transition: opacity 500ms ease;
}

/* Before its own beat, a stage sits dimmed and its connector line
   undrawn; script.js adds .is-active to each stage in turn as the
   section enters view. Only applies when motion is allowed — see the
   .reveal system notes above; reduced-motion / no-JS visitors see every
   stage at full strength immediately. */
html.js-reveal .ex-workstream:not(.is-active) .ex-workstream-index {
  opacity: 0.45;
  transform: scale(0.82);
}

html.js-reveal .ex-workstream:not(.is-active) h3,
html.js-reveal .ex-workstream:not(.is-active) p {
  opacity: 0.35;
}

html.js-reveal .ex-workstream.is-active::after {
  transform: scaleY(1);
}

@media (min-width: 1000px) {
  .ex-workstreams {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .ex-workstream {
    padding-left: 0;
    padding-top: 56px;
  }

  .ex-workstream-index {
    left: 0;
    top: 0;
  }

  .ex-workstream::before {
    left: 40px;
    right: -24px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .ex-workstream::after {
    left: 40px;
    right: -24px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
  }

  html.js-reveal .ex-workstream.is-active::after {
    transform: scaleX(1);
  }

  .ex-workstream:last-child::before,
  .ex-workstream:last-child::after {
    display: none;
  }
}

.ex-progress-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 56, 0.2);
  font-size: 0.9375rem;
  color: rgba(30, 58, 56, 0.85);
  max-width: 64ch;
}

/* ==========================================================================
   Section 7 — Emotional close
   ========================================================================== */

.ex-emotional-close {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

@media (min-width: 780px) {
  .ex-emotional-close {
    min-height: 88vh;
  }
}

.ex-emotional-close-inner {
  max-width: 780px;
  margin: 0 auto;
}

.ex-emotional-close h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.35;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

@media (min-width: 640px) {
  .ex-emotional-close h2 {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   Section 8 — Where next
   ========================================================================== */

.ex-next {
  background: var(--teal-deep);
  color: var(--white);
}

.ex-next-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

@media (min-width: 780px) {
  .ex-next-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.ex-next-route h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--white);
}

.ex-next-route p {
  margin: 0 0 24px;
  color: rgba(247, 245, 240, 0.85);
}

.ex-next a:focus-visible,
.ex-next button:focus-visible {
  outline-color: var(--white);
}

/* ==========================================================================
   Footer (shared pattern with the rest of the site)
   ========================================================================== */

.site-footer {
  background: var(--teal-near-black);
  color: var(--pale-aqua);
  padding: 64px 24px 24px;
  border-top: 3px solid var(--mustard);
}

.footer-inner {
  max-width: var(--content-width, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.footer-brand .footer-wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.footer-brand .footer-tagline {
  margin: 0;
  color: var(--pale-aqua);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-col-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mustard);
  margin: 0 0 4px;
}

.footer-col a,
.footer-email a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover,
.footer-email a:hover {
  text-decoration: underline;
  color: var(--mustard);
}

.footer-email {
  margin: 0 0 16px;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social a:hover {
  background: var(--mustard);
  color: var(--teal-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: var(--content-width, 1080px);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--pale-aqua);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--pale-aqua);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  color: var(--white);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .ex-section {
    padding: 64px 20px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ex-problem-sticky {
    position: static !important;
  }
}
