/* =============================================================================
   PCC INTERACTIVE VISUAL REPORT — styles.css
   Clear Horizon Consulting for SA Health
   =============================================================================

   CONTENTS
   1.   CSS Custom Properties (:root)
   2.   Reset + Base
   3.   Typography
   4.   Layout — Containers
   5.   Site Nav + Skip Link
   6.   Section Backgrounds + Vertical Rhythm
   7.   Reveal-on-scroll Animation
   8.   Component: Glance Infographic Grid
   9.   Component: Quote Block
   10.  Component: Expand/Collapse Panel
   11.  Component: Expand Button
   12.  Section 1 — Hero / Title
   12b. Findings Lists + Implications (Learnings & recommendations tabs)
   13.  Section 3 — What PCC Delivered (service carousel)
   15.  Section 4 — Reach and Access
   16.  Section 5 — Quality and Trust
   17.  Section 6 — Outcomes for People (carousel)
   18b. Section 7 — Emerging System Signals (tile grid + detail stage)
   19.  Section 8 — The Value of What PCC Has Built
   20.  Section 9 — Resources
   21.  Responsive — Mobile (≤ 640px)
   22.  Responsive — Tablet (641–1023px)
   23.  Reduced Motion
   ============================================================================= */


/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* --- Backgrounds --- */
  --stone:           #F2E2DD;
  --stone-half:      #FBF5F1;
  --white:           #FFFFFF;

  /* --- PCC brand palette (master) --- */
  --klein:           #0047BA;   /* Klein Blue — primary, text/graphics, dark grounds */
  --cream:           #F2E2DD;   /* Cream — light grounds, patterns */
  --apricot:         #FF9372;   /* Apricot — accent / graphics */
  --jet:             #2B2B2A;   /* Jet — body text fallback */

  /* --- Text / ink scale (tokenised greys — replace ad-hoc hex) --- */
  --black:           #000000;
  --ink:             #0047BA;   /* primary body / headings on light */
  --ink-soft:        #2B2B2A;   /* secondary body copy */
  --ink-mute:        #6E6B61;   /* captions, labels, hints */

  /* --- Supporting UI --- */
  --grey:            #9CA296;
  --light-grey:      #B6BAB1;
  --klein-light:     #4E79C9;   /* lighter Klein Blue — hover states */

  /* --- Typography --- */
  /* Headlines, sub-headlines, short type, taglines. Brand: P22 Mackinac Pro (Medium).
     Official substitute when the Adobe kit is absent: Georgia. */
  --font-display: "P22 Mackinac Pro", Georgia, "Times New Roman", serif;
  /* Body copy, captions, small copy. Brand: Neue Haas Unica W1G (Regular).
     Official substitute: Arial. */
  --font-body:    "Neue Haas Unica W1G", Arial, Helvetica, sans-serif;

  /* --- Spacing scale (rem) --- */
  --space-1:   0.5rem;
  --space-2:   1rem;
  --space-3:   1.5rem;
  --space-4:   2rem;
  --space-5:   2.5rem;
  --space-6:   3rem;
  --space-8:   4rem;
  --space-16:  8rem;

  /* --- Content width system ---
     One shared scale so wide elements and prose share a left edge.
     --w-wide:  full-width data, carousels, comparisons, grids
     --w-text:  running body prose, capped for comfortable line length
     --w-narrow: tightest column (hero intro, closing) */
  --w-wide:    1240px;
  --w-text:    760px;
  --w-narrow:  680px;
  --gutter:    var(--space-4);

  /* --- Transitions --- */
  --transition-base:   200ms ease;
  --transition-reveal: 500ms ease;
  --transition-panel:  350ms ease;
}


/* =============================================================================
   2. RESET + BASE
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

a {
  color: var(--apricot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--klein);
}

a:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

abbr {
  text-decoration: none;
}


/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section__intro {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
  max-width: 65ch;
}

/* At-a-glance evaluation timeframe caption */
.glance-timeframe {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-6);
  max-width: 70ch;
}

/* Centre the at-a-glance intro text over the centred figures */
#at-a-glance .section__heading,
#at-a-glance .section__intro,
#at-a-glance .glance-timeframe {
  text-align: center;
  margin-inline: auto;
}

/* Tabbed click-through (Learnings & recommendations) */
.tabs__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-5);
}

.tabs__tab {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-mute);
  border-radius: 999px;
  padding: 0.5em 1.15em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tabs__tab:hover { border-color: var(--ink); }

.tabs__tab.is-active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.tabs__tab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.tabs__panel[hidden] { display: none; }

.tabs__panel { animation: tabFade .25s ease; }

@keyframes tabFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* Value — closing finale (centred, MIM-style conclusion) */
.value--finale .measure {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.value--finale .section__heading,
.value--finale .prose p,
.value--finale .value-emphasis {
  text-align: center;
}

.value--finale .value-emphasis {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* Klein Blue closing panel + cream text + bird "full stop" */
.value--finale {
  background-color: var(--klein);
}

.value--finale .section__heading,
.value--finale .prose p {
  color: var(--cream);
}

.value--finale .value-emphasis {
  color: var(--apricot);
  margin-inline: auto;
}

.value--finale .quote-block--closing {
  background: rgba(255, 255, 255, 0.08);
}

.value--finale .quote-block--closing p,
.value--finale .quote-block--closing footer {
  color: var(--cream);
}

.value-bird {
  display: block;
  width: 52px;
  height: auto;
  margin: var(--space-6) auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .tabs__panel { animation: none; }
}

/* Introduction section paragraphs */
.intro-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-inline: auto;
}

/* Evaluation summary lead + live-service callout */
.intro-body__lead {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--ink);
}

.intro-body__callout {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  background: var(--stone-half);
  border-left: 4px solid var(--jet);
  border-radius: 0 8px 8px 0;
  padding: var(--space-4);
}

.intro-body__callout a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* About the evaluation — centred block (matches the summary section) */
.overview-body {
  max-width: var(--w-text);
  margin-inline: auto;
}

/* What PCC delivered — centred intro text above the full-width carousel */
.delivered-intro {
  max-width: var(--w-text);
  margin-inline: auto;
}

.delivered-intro .section__intro {
  max-width: none;
}

.why-pcc-stack {
  margin-block: var(--space-5);
}

.eval-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.eval-card {
  background: var(--white);
  border-radius: 8px;
  border-top: 4px solid var(--klein);
  padding: var(--space-4);
}

.eval-card--pilot {
  border-top-color: var(--apricot);
}

.eval-card__heading {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--klein);
  margin-bottom: var(--space-2);
}

.eval-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .eval-cards { grid-template-columns: 1fr; }
}

/* Flowing body prose */
.prose p + p {
  margin-top: var(--space-3);
}

.prose ul {
  list-style: disc;
  padding-left: var(--space-4);
  margin-top: var(--space-2);
}

.prose ul li {
  margin-bottom: var(--space-1);
}

.prose ul li + li {
  margin-top: 0.25rem;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================================================
   4. LAYOUT — CONTAINERS
   ============================================================================= */

.container {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--w-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Prose measure: comfortable line length, but left-aligned to the wide
   container edge (not centred) so prose and full-width elements share a spine. */
.measure {
  max-width: var(--w-text);
}

/* When a narrow/measure container is nested inside .container, suppress padding */
.container .container--narrow,
.container .measure {
  padding-inline: 0;
}


/* =============================================================================
   5. SITE NAV
   ============================================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-4);
  height: 52px;
  background-color: var(--klein);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-nav__brand {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--apricot);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__links::-webkit-scrollbar { display: none; }

.site-nav__link {
  display: block;
  padding: 0 var(--space-2);
  height: 52px;
  line-height: 52px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--apricot);
  background-color: rgba(255,255,255,0.08);
  outline: none;
}

.site-nav__link.is-active {
  color: var(--apricot);
  border-bottom: 2px solid var(--apricot);
}

/* Outbound link back to the main PCC site — pill button, sits left of "About" */
.site-nav__link--external {
  height: 32px;
  line-height: 30px;
  padding: 0 var(--space-2);
  margin-right: var(--space-2);
  border: 1px solid var(--apricot);
  border-radius: 999px;
  color: var(--apricot);
}

.site-nav__link--external:hover,
.site-nav__link--external:focus-visible {
  background-color: var(--apricot);
  color: var(--klein);
}

/* Push page content below the fixed nav */
body {
  padding-top: 52px;
}


/* =============================================================================
   5b. SKIP LINK
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 999;
  padding: var(--space-1) var(--space-3);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}


/* =============================================================================
   6. SECTION BACKGROUNDS + VERTICAL RHYTHM
   ============================================================================= */

.section {
  padding-block: var(--space-16);
}

.section--stone {
  background-color: var(--stone);
}

.section--hero-dark {
  background-color: #0047BA;
}

.section--stone-half {
  background-color: var(--stone-half);
}


/* =============================================================================
   7. REVEAL-ON-SCROLL ANIMATION
   ============================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  var(--transition-reveal),
    transform var(--transition-reveal);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grouped items */
[data-reveal-delay="1"]  { transition-delay: 60ms; }
[data-reveal-delay="2"]  { transition-delay: 120ms; }
[data-reveal-delay="3"]  { transition-delay: 180ms; }
[data-reveal-delay="4"]  { transition-delay: 240ms; }
[data-reveal-delay="5"]  { transition-delay: 300ms; }
[data-reveal-delay="6"]  { transition-delay: 360ms; }
[data-reveal-delay="7"]  { transition-delay: 420ms; }
[data-reveal-delay="8"]  { transition-delay: 480ms; }
[data-reveal-delay="9"]  { transition-delay: 540ms; }
[data-reveal-delay="10"] { transition-delay: 600ms; }


/* =============================================================================
   8. COMPONENT: GLANCE INFOGRAPHIC GRID
   ============================================================================= */

/* ── Hero headline stats ─────────────────────────────────────────────────── */

.glance-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--klein);
  border-radius: 8px;
  padding: 3rem 2rem;
  margin-bottom: var(--space-4);
  text-align: center;
}

.glance-hero__stat {
  flex: 1;
  padding: 1rem 2.5rem;
}

.glance-hero__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.glance-hero__label {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  letter-spacing: 0.025em;
}

.glance-hero__divider {
  width: 1px;
  height: 6rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ── Service figures grid ────────────────────────────────────────────────── */

.glance-infographic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "sns        bns         website"
    "rns        ans         help"
    "vol-sa     vol-numbers vol-numbers"
    "bvt-group  bvt-detail  bvt-detail";
  gap: 3px;
  background: var(--stone);
  border: 3px solid var(--stone);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.gi-cell {
  background: var(--white);
  padding: 1.5rem 1.75rem;
}

.gi--sns         { grid-area: sns;         border-top: 3px solid var(--klein); }
.gi--bns         { grid-area: bns;         border-top: 3px solid var(--klein); }
.gi--website     { grid-area: website;     border-top: 3px solid var(--apricot); }
.gi--rns         { grid-area: rns;         border-top: 3px solid var(--klein); }
.gi--ans         { grid-area: ans;         border-top: 3px solid var(--klein); }
.gi--help        { grid-area: help;        border-top: 3px solid var(--apricot); }
.gi--vol-sa      { grid-area: vol-sa;      border-top: 3px solid var(--apricot); }
.gi--vol-numbers { grid-area: vol-numbers; display: flex; align-items: center; }
.gi--bvt-group   { grid-area: bvt-group;   border-top: 3px solid var(--apricot); }
.gi--bvt-detail  { grid-area: bvt-detail;  display: flex; align-items: center; }

/* Service / category label */
.gi-cell__title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

/* Large stat numbers */
.gi-cell__num {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--apricot);
}

.gi-cell__num--mt  { margin-top: 0.875rem; }
.gi-cell__num--med { font-size: clamp(1.5rem, 2.5vw, 2rem); }

/* Navigation-service number colours — all four PCC navigation services share the default brand blue */
.gi-cell__num--sns { color: var(--klein); }
.gi-cell__num--rns { color: var(--klein); }
.gi-cell__num--bns { color: var(--klein); }
.gi-cell__num--ans { color: var(--klein); }

/* Non-navigation service number colour — apricot */
.gi-cell__num--bvt { color: var(--apricot); }

.gi-cell__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.3;
  margin-top: 0.2rem;
}

.gi-cell__sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--ink-mute);
  margin-top: 0.15rem;
}

.gi-cell__sub--hd {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

/* Side-by-side stat pairs (vol breakdown, bvt detail) */
.gi-cell__pair {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* =============================================================================
   9. COMPONENT: QUOTE BLOCK
   ============================================================================= */

.quote-block {
  border: none;
  padding: 0;
  margin: 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.5;
  position: relative;
}

.quote-block footer {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-top: var(--space-2);
  font-style: normal;
}

/* Small inline quotes (tiles, pathways, case studies) */
.quote-block--small {
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--light-grey);
}

.quote-block--small p {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Closing display quote (Section 8) */
.quote-block--closing {
  margin-block: var(--space-8);
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  border-radius: 4px;
}

.quote-block--closing p {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--ink);
  max-width: 52ch;
  margin-inline: auto;
}

.quote-block--closing footer {
  text-align: center;
  margin-top: var(--space-3);
}


/* =============================================================================
   10. COMPONENT: EXPAND/COLLAPSE PANEL
   ============================================================================= */

/* CSS grid trick — animates height without knowing it */
.expand-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  /* transition added by JS after first render to prevent flash-of-content on load */
}

.expand-panel.is-animated {
  transition: grid-template-rows var(--transition-panel);
}

.expand-panel.is-open {
  grid-template-rows: 1fr;
}

.expand-panel__inner {
  overflow: hidden;
  min-height: 0;
  /* Hidden when collapsed; reveals instantly on open, hides after close animation */
  visibility: hidden;
  transition: visibility 0s 350ms;
}

.expand-panel.is-open .expand-panel__inner {
  visibility: visible;
  transition: visibility 0s;
}

/* Visual containment — signals the expanded content belongs to the button above */
.expand-panel__inner.prose {
  padding-block-start: var(--space-2);
  padding-block-end: var(--space-3);
  padding-inline-start: var(--space-3);
  border-left: 3px solid var(--klein);
}


/* =============================================================================
   11. COMPONENT: EXPAND BUTTON
   ============================================================================= */

/* Base — shared by all expand button variants */
.expand-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* Standalone pill — inline in content, not inside a card component */
.expand-btn {
  background: var(--klein);
  color: var(--white);
  border-radius: 999px;
  padding: 0.5rem var(--space-2);
  transition: background-color var(--transition-base);
}

.expand-btn:hover {
  background: var(--klein-light);
  color: var(--white);
}

.expand-btn:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
  border-radius: 999px;
}

.expand-btn__icon {
  font-size: 0.875rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.expand-btn[aria-expanded="true"] .expand-btn__icon {
  transform: rotate(180deg);
}


/* =============================================================================
   12. SECTION 1 — HERO / TITLE
   ============================================================================= */

.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.section--hero > .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  text-align: left;
}

/* Date byline under the subtitle */
.hero__byline {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* Negative bird repeat-pattern, fading in from the right edge */
.hero__pattern {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(50%, 640px);
  /* Brand repeat pattern: alternating rows are vertically flipped and offset
     by half a cell (two-row tile), per the Palliative Care Connect guidelines. */
  background-image: url("../assets/logos/hero-pattern.svg");
  background-repeat: repeat;
  background-size: 84px auto;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
  mask-image: linear-gradient(to left, #000 45%, transparent 100%);
  animation: heroPatternIn 1.4s ease 0.25s both;
}

@keyframes heroPatternIn {
  from { opacity: 0; }
  to   { opacity: 0.16; }
}

/* Solid apricot bird anchoring the bottom-right corner */
.hero__bird {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  width: clamp(64px, 9vw, 120px);
  height: auto;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  animation: heroBirdIn 1s ease 0.6s both;
}

/* Above 1280px, .hero__pattern's width formula (min(50%, 640px)) locks to a
   fixed 640px grid and .hero__bird's own clamp() locks to its 120px max, so both
   are in a fixed, known state — used here to align the solid bird exactly over
   one bird in the tiled pattern (2nd fully-visible row from the bottom, 3rd
   fully-visible column from the right). Below 1280px both grids drift, so the
   responsive fallback above still applies. */
@media (min-width: 1280px) {
  .hero__bird {
    right: 201px;
    top: 665px;
    bottom: auto;
    width: 120px;
  }
}

@keyframes heroBirdIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pattern,
  .hero__bird { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-8);
}

/* Brand tagline in the hero */
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--apricot, #FF9372);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

/* MIM-style hero headline stats */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.6rem;
}

/* Scroll cue on dark hero */
.section--hero-dark .hero__scroll-cue {
  color: rgba(255,255,255,0.35);
}

/* Scroll cue — gentle fade-pulse arrow */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--light-grey);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}

/* =============================================================================
   12b. FINDINGS LISTS + IMPLICATIONS (Learnings & recommendations tabs)
   ============================================================================= */

.findings-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-6);
  list-style: none;
}

.findings-list__item {
  display: flex;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}

.findings-list__item--full {
  grid-column: 1 / -1;
}

.findings-list__icon {
  font-size: 1.4rem;
  color: var(--klein);
  flex-shrink: 0;
  margin-top: 0.15em;
}

.findings-list--single {
  grid-template-columns: 1fr;
}

.implications-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.implications-item {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}

.implications-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  vertical-align: middle;
  margin-right: 0.35em;
  white-space: nowrap;
}

/* =============================================================================
   13. SECTION 3 — WHAT PCC DELIVERED (service carousel)
   ============================================================================= */

.hub-intro {
  font-size: 0.9375rem;
  color: var(--ink-mute);
  max-width: var(--w-text);
  margin-bottom: var(--space-4);
}

/* ─── Service carousel ─── */
.service-carousel {
  margin-bottom: var(--space-8);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
  overflow: hidden;
}

.service-carousel:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
}

/* ─── Labelled service tab strip — primary "where am I" navigator ─── */
.service-carousel__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: var(--space-2) var(--space-3) 0;
  border-bottom: 1px solid var(--stone);
}

.service-carousel__tab {
  --tab-accent: var(--klein);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-mute);
  padding: 0.55rem 0.7rem;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.service-carousel__tab:hover {
  color: var(--ink);
}

.service-carousel__tab:focus-visible {
  outline: 2px solid var(--tab-accent);
  outline-offset: -2px;
  border-radius: 3px 3px 0 0;
}

.service-carousel__tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--tab-accent);
}

/* Subtle divider between the four navigation services and the wider supports */
.service-carousel__tab-sep {
  width: 1px;
  align-self: stretch;
  margin: 0.4rem 0.35rem;
  background: var(--light-grey);
}

.service-carousel__viewport {
  overflow: hidden;
}

.service-carousel__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.service-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.service-slide--sns  { border-top: 4px solid var(--klein); }
.service-slide--bns  { border-top: 4px solid var(--apricot); }
.service-slide--ans  { border-top: 4px solid var(--jet); }
.service-slide--rns  { border-top: 4px solid var(--klein); }
.service-slide--help { border-top: 4px solid var(--apricot); }
.service-slide--web  { border-top: 4px solid var(--apricot); }
.service-slide--vol  { border-top: 4px solid var(--apricot); }
.service-slide--bvt  { border-top: 4px solid var(--apricot); }

.service-slide__inner {
  padding: var(--space-4);
  padding-bottom: var(--space-6);
  flex: 1;
}

.service-slide__header {
  margin-bottom: var(--space-3);
}

.service-slide__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.service-slide--sns  .service-slide__name { color: var(--klein); }
.service-slide--bns  .service-slide__name { color: var(--apricot); }
.service-slide--ans  .service-slide__name { color: var(--jet); }
.service-slide--rns  .service-slide__name { color: var(--klein); }
.service-slide--help .service-slide__name { color: var(--apricot); }
.service-slide--web  .service-slide__name { color: #8A6D14; }
.service-slide--vol  .service-slide__name { color: var(--apricot); }
.service-slide--bvt  .service-slide__name { color: var(--apricot); }

.service-slide__provider {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-slide__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.service-slide__narrative {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.service-slide__narrative p + p {
  margin-top: var(--space-2);
}

.service-slide__narrative .tile-figures {
  margin-top: var(--space-3);
}

.service-slide__data {
  font-size: 0.9375rem;
}

.service-slide__data .tile-figures {
  margin-top: 0;
}

.service-slide__chart-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

.service-slide__chart-wrap {
  position: relative;
  height: 155px;
}

.service-slide__callout {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--stone-half);
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.service-slide__callout-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 0.25rem;
}

.service-slide__data-note {
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* ─── Carousel controls bar ─── */
.service-carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--stone);
}

.service-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--klein);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background-color var(--transition-base), opacity var(--transition-base);
}

.service-carousel__btn:hover {
  background: var(--klein-light);
}

.service-carousel__btn:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
}

.service-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Slim progress bar — fills left→right as you move through the services */
.service-carousel__progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--stone);
  overflow: hidden;
}

.service-carousel__progress-bar {
  display: block;
  height: 100%;
  width: 12.5%;
  border-radius: 999px;
  background: var(--klein);
  transition: width var(--transition-base), background-color var(--transition-base);
}

.service-carousel__counter {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-mute);
  white-space: nowrap;
  letter-spacing: 0.03em;
  min-width: 5ch;
  text-align: right;
}

/* ─── Shared: key-figures list and small quote ─── */
.tile-figures {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--stone-half);
  border-radius: 4px;
  font-size: 0.875rem;
}

.tile-figures li {
  padding: 0.25rem 0;
}

.tile-figures li + li {
  border-top: 1px solid var(--light-grey);
}

/* =============================================================================
   15. SECTION 4 — REACH AND ACCESS
   ============================================================================= */

.chart-card {
  background: var(--white);
  border-radius: 4px;
  padding: var(--space-4);
}

.chart-card__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.chart-wrapper {
  position: relative;
  height: 260px;
}

.chart-caption {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* ── Reach section expand blocks ─────────────────────────────────────────── */

.reach-expand {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--space-4);
  border: 1px solid var(--light-grey);
}

.reach-expand__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: var(--klein);
  border: none;
  border-bottom: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

/* Icon badge in the collapsed header */
.reach-expand__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.35rem;
}

.reach-expand__toggle:hover .reach-expand__icon {
  background: rgba(255, 255, 255, 0.28);
}

/* One-line summary shown beneath the heading while collapsed */
.reach-expand__summary {
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.reach-expand__toggle:hover {
  background-color: #003A99;
}

.reach-expand__toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.reach-expand__toggle[aria-expanded="true"] {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.reach-expand__header-inner {
  flex: 1;
}

.reach-expand__heading {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--white);
}

.reach-expand__trigger-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.reach-expand__caret {
  font-size: 1rem;
  color: var(--white);
  transition: transform var(--transition-base);
}

.reach-expand__toggle[aria-expanded="true"] .reach-expand__caret {
  transform: rotate(180deg);
}

.reach-expand__body {
  padding: var(--space-4) var(--space-6) var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.reach-expand__body p + p {
  margin-top: var(--space-3);
}

/* Chart card inside expand panels */
.reach-chart-card {
  margin-top: var(--space-4);
  border: 1px solid var(--light-grey);
}

/* Paired charts with a single shared service toggle */
.reach-duo {
  margin-top: var(--space-4);
}

.reach-duo__header {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.reach-duo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

/* Cards already sit in the grid, so drop the stacked-card top margin */
.reach-duo__grid .reach-chart-card {
  margin-top: 0;
}

/* Toggle button group — segmented pill control */
.chart-toggle-group {
  display: flex;
  border: 1.5px solid var(--light-grey);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.chart-toggle-btn {
  padding: 0.25rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  line-height: 1.6;
}

.chart-toggle-btn:hover {
  background: var(--stone-half);
  color: var(--ink-soft);
}

.chart-toggle-btn.is-active {
  background: var(--klein);
  color: var(--white);
}

.chart-toggle-btn.is-active:hover {
  background: var(--klein-light);
}

/* Digital platform cards */
.digital-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.digital-card {
  background: var(--stone-half);
  border-radius: 6px;
  padding: var(--space-4);
}

.digital-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.digital-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

/* ── Grouping: lead paragraph + the boxes it introduces ───────────── */
.reach-group {
  margin-top: var(--space-3);
}

.reach-group:first-of-type {
  margin-top: 0;
}

/* Tight spacing inside a group so text and boxes read as one unit */
.reach-group .reach-expand {
  margin-top: var(--space-3);
}

/* Chart heights — section 4 */
.chart-wrapper--who      { height: 210px; }
.chart-wrapper--heard    { height: 210px; }
.chart-wrapper--metro    { height: 200px; }
.chart-wrapper--episodes { height: 280px; }

/* Episodes chart legend */
.chart-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.chart-legend-swatch--campaign {
  background: rgba(208, 185, 100, 0.35);
  border: 1px solid rgba(144, 142, 69, 0.5);
}

/* Spacing helper used inside expand body */
.reach-expand__body .chart-card + .chart-card {
  margin-top: var(--space-4);
}

/* Side-by-side charts (reach-duo__grid) sit in a grid, not a stack — no top margin between them */
.reach-duo__grid .chart-card + .chart-card {
  margin-top: 0;
}


/* =============================================================================
   16. SECTION 5 — QUALITY AND TRUST
   ============================================================================= */

/* Composed satisfaction unit — gauges + note read as one card on the spine */
/* Centre the quality intro + closing text and the gauge card */
#quality .measure {
  margin-inline: auto;
}

.quality-gauges {
  max-width: var(--w-text);
  margin-inline: auto;
  background: var(--white);
  border-radius: 8px;
  padding: var(--space-6) var(--space-4) var(--space-4);
  box-shadow: 0 2px 14px rgba(31, 27, 20, 0.05);
}

.gauges-heading {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--klein);
  text-align: center;
  margin-bottom: var(--space-4);
}

.gauges-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.gauge-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.gauge-block__wrap {
  position: relative;
  width: 180px;
  height: 110px;
}

.gauge-block__value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1;
}

.gauge-block__score {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--black);
}

.gauge-block__denom {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--grey);
}

.gauge-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mute);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gauges-note {
  font-size: 0.875rem;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 0;
}

/* Trust hero band */
.trust-hero-band {
  background: var(--klein);
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-block: var(--space-6);
  padding-inline: var(--gutter);
  margin-block: var(--space-8);
  border-radius: 12px;
}

.trust-hero-band__quote {
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
  font-style: normal;
}

.trust-hero-band__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.45;
  color: var(--stone-half);
  margin-bottom: var(--space-4);
}

.trust-hero-band__quote footer {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--stone-half);
  opacity: 0.75;
}

/* Scrolling quote carousel (cross-fade, on the trust band) */
.quote-carousel {
  max-width: 56rem;
  margin-inline: auto;
}

.quote-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.quote-carousel__item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}

.quote-carousel__item.is-active {
  opacity: 1;
  visibility: visible;
}

.quote-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.quote-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--stone-half);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.quote-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.quote-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.quote-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.quote-carousel__dot.is-active {
  background: var(--stone-half);
  transform: scale(1.25);
}

.quote-carousel__btn:focus-visible,
.quote-carousel__dot:focus-visible {
  outline: 2px solid var(--stone-half);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .quote-carousel__item { transition: none; }
}


/* =============================================================================
   17. SECTION 6 — OUTCOMES FOR PEOPLE (carousel)
   ============================================================================= */

/* Carousel — the full white card */
/* Centre the whole outcomes section (text + carousel) like the sections above */
#outcomes .measure {
  margin-inline: auto;
}

/* Centre the intro text of the impact and resources sections */
#system-signals .measure,
#resources .measure {
  margin-inline: auto;
}

/* Centre the learnings heading + intro */
#learnings .section__heading,
#learnings .section__intro {
  max-width: var(--w-text);
  margin-inline: auto;
}

.outcomes-carousel {
  margin-block: var(--space-6);
  background: var(--white);
  border-radius: 8px;
  border-top: 5px solid var(--klein);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
  overflow: hidden;
}

/* Inner overflow clip for sliding track */
.outcomes-carousel__track-wrap {
  overflow: hidden;
}

/* Slide row — translateX drives navigation */
.outcomes-carousel__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Each slide occupies the full visible width */
.outcomes-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
}

/* Large decorative slide number (01 / 02 / 03) */
.outcomes-carousel__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--stone);
  margin-bottom: var(--space-2);
  user-select: none;
}

.outcomes-carousel__slide-heading {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--klein);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.outcomes-carousel__slide > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

/* In-slide quotes promoted to pull-quotes so they carry real weight */
.outcomes-carousel__slide .quote-block {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--klein);
  background: var(--stone-half);
  border-radius: 0 6px 6px 0;
}

.outcomes-carousel__slide .quote-block p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
}

/* Controls bar — visually attached to the bottom of the card */
.outcomes-carousel__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--stone);
}

/* Prev / Next arrow buttons */
.outcomes-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--klein);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background-color var(--transition-base), opacity var(--transition-base);
}

.outcomes-carousel__btn:hover {
  background: var(--klein-light);
}

.outcomes-carousel__btn:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
}

.outcomes-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Dot group — grows to fill the middle */
.outcomes-carousel__dots {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.outcomes-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--stone);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.outcomes-carousel__dot.is-active {
  background: var(--klein);
  transform: scale(1.5);
}

.outcomes-carousel__dot:focus-visible {
  outline: 2px solid var(--klein);
  outline-offset: 3px;
}

/* Slide counter text ("1 of 3") */
.outcomes-carousel__counter {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--grey);
  white-space: nowrap;
  letter-spacing: 0.03em;
  min-width: 5ch;
  text-align: right;
}

/* Shared disclosure stack — full-width bar-style expand buttons (quality, outcomes) */
.expand-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-4);
}

.expand-stack .expand-btn {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  border-radius: 6px;
  margin-top: var(--space-2);
}

.expand-stack .expand-btn:first-child {
  margin-top: 0;
}

/* Case study expand boxes beneath the carousel */
.outcomes-expand-wrap {
  margin-top: var(--space-6);
}

/* =============================================================================
   18b. SECTION 7 — EMERGING SYSTEM SIGNALS (2×2 grid + shared detail stage)
   ============================================================================= */

/* Keeps the careful "early signals" framing visually distinct and prominent */
.section__intro--framing {
  border-left: 3px solid var(--jet);
  padding-left: var(--space-3);
  color: var(--ink);
}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 1000px;
  margin-top: var(--space-2);
}

.signal-stage {
  max-width: 1000px;
}

.signal-tile {
  --tile-accent: var(--apricot);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  padding: var(--space-3);
  scroll-margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid transparent;
  border-left: 4px solid var(--tile-accent);
  border-radius: 6px;
  cursor: pointer;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.signal-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.signal-tile:focus-visible {
  outline: 2px solid var(--tile-accent);
  outline-offset: 2px;
}

.signal-tile[aria-selected="true"] {
  background: var(--stone-half);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.signal-tile__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--tile-accent);
  color: var(--white);
  font-size: 1.125rem;
}

.signal-tile__text {
  flex: 1;
}

.signal-tile__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tile-accent);
  margin-bottom: 0.3rem;
}

.signal-tile__title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
}

.signal-tile__cue {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--tile-accent);
  margin-top: 0.2rem;
  transition: transform var(--transition-base);
}

.signal-tile[aria-selected="true"] .signal-tile__cue {
  transform: rotate(45deg);
}

/* Shared detail stage — animates open via grid-template-rows */
.signal-stage {
  --stage-accent: var(--apricot);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-panel);
}

.signal-stage.is-open {
  grid-template-rows: 1fr;
  margin-top: var(--space-3);
}

.signal-stage__inner {
  min-height: 0;
  overflow: hidden;
}

.signal-panel {
  background: var(--white);
  border-radius: 6px;
  border-top: 4px solid var(--stage-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: var(--space-4);
  animation: signalFade var(--transition-panel) ease;
}

.signal-panel[hidden] {
  display: none;
}

.signal-panel__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stage-accent);
  margin-bottom: 0.4rem;
}

.signal-panel__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: var(--space-2);
}

@keyframes signalFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .signals-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-tile,
  .signal-stage,
  .signal-tile__cue {
    transition: none;
  }
  .signal-panel {
    animation: none;
  }
}


/* =============================================================================
   19. SECTION 8 — THE VALUE OF WHAT PCC HAS BUILT
   ============================================================================= */

/* Emphasised closing statement — lifts the key line out of the prose */
.value-emphasis {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--klein);
  margin-top: var(--space-4);
  max-width: 28ch;
}


/* =============================================================================
   20. SECTION 9 — RESOURCES
   ============================================================================= */

.resources-nav {
  margin-bottom: var(--space-8);
}

.resources-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.resource-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  height: 100%;
  min-height: 150px;
  padding: var(--space-4);
  background: var(--klein);
  border-radius: 8px;
  text-decoration: none;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color var(--transition-base), transform var(--transition-base);
  border: 1px solid transparent;
}

.resource-link:hover {
  background-color: var(--klein-light);
  transform: translateY(-3px);
  color: var(--white);
}

.resource-link:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 2px;
  color: var(--white);
}

.resource-link i {
  font-size: 1.75rem;
  color: var(--apricot);
  flex-shrink: 0;
}

/* Partner brand lock-up (Clear Horizon | SA Health) */
.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.logo-lockup__link {
  display: inline-flex;
}

.logo-lockup__logo {
  display: block;
  height: 44px;
  width: auto;
}

.logo-lockup__divider {
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: var(--ink-mute);
  opacity: 0.4;
}

.resources-credit {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--light-grey);
}


/* =============================================================================
   21. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================================= */

@media (max-width: 640px) {

  :root {
    --space-12: 4rem;
    --space-16: 5rem;
  }

  .container,
  .container--narrow {
    padding-inline: var(--space-3);
  }

.findings-list {
    grid-template-columns: 1fr;
  }

  .findings-list__item--full {
    grid-column: 1;
  }

  /* Glance hero: stack vertically on small screens */
  .glance-hero {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
  }

  .glance-hero__stat {
    padding: 0.5rem 1rem;
  }

  .glance-hero__divider {
    width: 4rem;
    height: 1px;
    margin: 1rem auto;
  }

  /* Glance infographic: stack to 2 cols on small screens */
  .glance-infographic {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "sns         bns"
      "website     website"
      "rns         ans"
      "help        vol-sa"
      "vol-numbers vol-numbers"
      "bvt-group   bvt-detail";
  }

  /* Gauges stack */
  .gauges-row {
    gap: var(--space-4);
  }

  /* Quote blocks narrower */
  .quote-block--closing {
    padding: var(--space-6) var(--space-3);
  }

  /* Logo lockup stack */
  .logo-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-lockup__divider {
    display: none;
  }

  .resources-list {
    grid-template-columns: 1fr 1fr;
  }

  /* Service carousel: single column on mobile */
  .service-slide__body {
    grid-template-columns: 1fr;
  }

  /* Tab strip scrolls horizontally instead of wrapping into many rows */
  .service-carousel__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--space-2) var(--space-2) 0;
  }

  .service-carousel__tabs::-webkit-scrollbar { display: none; }

  .service-carousel__tab {
    padding: 0.55rem 0.55rem;
  }

  .service-carousel__tab-sep { display: none; }

  .service-slide__inner {
    padding: var(--space-3);
    padding-bottom: var(--space-4);
  }

  .service-slide__chart-wrap {
    height: 180px;
  }

  /* Nav style comparison cards: single column on mobile */
  /* Reach expand blocks: tighten padding */
  .reach-expand__toggle {
    padding-inline: var(--space-3);
  }

  .reach-expand__body {
    padding: var(--space-3) var(--space-3) var(--space-4);
  }

  /* Digital cards: single column on mobile */
  .digital-cards {
    grid-template-columns: 1fr;
  }

  /* Chart wrappers: shorter on small screens */
  .chart-wrapper--who,
  .chart-wrapper--heard { height: 200px; }
  .chart-wrapper--episodes { height: 220px; }

}


/* =============================================================================
   22. RESPONSIVE — TABLET (641–1023px)
   ============================================================================= */

@media (min-width: 641px) and (max-width: 1023px) {

  :root {
    --space-16: 6rem;
  }

  /* Digital cards: 2-column on tablet */
  .digital-cards {
    grid-template-columns: 1fr 1fr;
  }

}


/* =============================================================================
   23. REDUCED MOTION
   All animations, transitions, and count-ups respect prefers-reduced-motion.
   JS also checks this and skips count-up animation + Chart.js animation.
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  /* Reveal: skip transform, just show immediately */
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* Expand panels: instant */
  .expand-panel.is-animated {
    transition: none;
  }

  .expand-panel__inner,
  .expand-panel.is-open .expand-panel__inner {
    transition: none;
  }

  /* Expand button icon: no rotation transition */
  .expand-btn__icon {
    transition: none;
  }

  /* Service carousel: snap instantly, no transitions */
  .service-carousel__track {
    transition: none;
  }

  .service-carousel__btn,
  .service-carousel__tab,
  .service-carousel__progress-bar {
    transition: none;
  }

  /* Outcomes carousel: snap instantly, no dot/button transitions */
  .outcomes-carousel__track {
    transition: none;
  }

  .outcomes-carousel__btn,
  .outcomes-carousel__dot,
  .outcomes-carousel__num {
    transition: none;
  }

  /* Scroll cue: no animation */
  .hero__scroll-cue {
    animation: none;
    opacity: 0.6;
  }

  /* Resource link: no transform */
  .resource-link:hover {
    transform: none;
  }

}
