@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300;1,400;1,600;1,700&display=swap');

:root {
  --paper: #fafaf9;
  --ink: #000000;
  --ink-soft: #1a1a1a;
  --ink-muted: #6b6b6b;
  --ink-faint: #a0a0a0;
  --rule: #e6e6e6;
  --rule-soft: #f0f0f0;

  --bar-fill: #000000;
  --bar-track: #f2f2f2;
  --bar-muted: #d4d4d4;

  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
a:hover { opacity: 0.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.col-narrow { max-width: 680px; margin: 0 auto; }
.col-wide { max-width: 1040px; margin: 0 auto; }

/* ===== SITE HEADER (logo only) ===== */
.site-header {
  padding: 28px 0 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
  pointer-events: none;
  box-sizing: border-box;
}
.site-header .container {
  max-width: 1400px;
  padding: 0 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .site-logo { pointer-events: auto; text-decoration: none; border: none; }
.site-header a { text-decoration: none; border: none; }
.site-header .site-logo {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-header .site-logo-mit {
  pointer-events: auto;
  height: 28px;
}

/* ===== SITE FOOTER ===== */

/* ===== MASTHEAD ===== */
.masthead {
  border-bottom: 1px dashed var(--rule);
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.masthead-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.masthead .pub { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 400; color: var(--ink); }
.masthead .meta { color: var(--ink-muted); font-size: 13px; }

/* ===== HERO ===== */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px dashed var(--rule);
}
.hero .kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  white-space: normal;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero h1 br { display: block; }
.hero h1 em {
  font-style: italic;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}
.hero .standfirst {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 600px;
  font-weight: 400;
  margin: 0 0 44px auto;
  text-wrap: balance;
}
.byline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--rule);
  padding-top: 18px;
}
.byline span strong { color: var(--ink); font-weight: 600; }

/* ===== SECTION ===== */
section.story {
  padding: 96px 0;
  border-bottom: 1px dashed var(--rule);
}

.section-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}
.section-tag .num { color: var(--ink); }

h2.section-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--ink);
}
.section-dek {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 720px;
  margin-bottom: 48px;
  text-wrap: pretty;
}

/* ===== TABS ===== */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 40px;
}
.tab-nav button {
  background: transparent;
  border: none;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.tab-nav button:hover { color: var(--ink); }
.tab-nav button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

/* ===== LIKERT BAR CHART ===== */
.likert-chart { margin-top: 8px; }
.likert-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  height: 280px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0;
  margin-bottom: 14px;
}
.likert-bars .bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}
.likert-bars .bar-pct {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.likert-bars .bar {
  width: 100%;
  background: var(--ink);
  transition: height 0.4s ease;
  min-height: 1px;
}
.likert-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.likert-axis .ax-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}
.likert-axis .ax-num {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.likert-endpoints {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

.likert-stats {
  display: flex;
  gap: 48px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.likert-stats .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* ===== DIMENSION STAGE (scroll-jacked) ===== */
.dim-stage {
  position: relative;
  background: var(--paper);
}
.dim-stage-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-bottom: 1px dashed var(--rule);
}
.dim-stage-grid {
  display: grid;
  grid-template-columns: calc(33% - 48px) 1fr;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 48px;
}

/* LEFT 33% — section markers */
.dim-stage-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px dashed var(--rule);
  padding-right: 24px;
}
.dim-stage-nav .nav-kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.dim-stage-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dim-stage-nav .nav-item {
  display: block;
  padding: 10px 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dim-stage-nav .nav-item:hover { color: var(--ink); }
.dim-stage-nav .nav-item .nav-cat {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.dim-stage-nav .nav-item.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.dim-stage-nav .nav-item.active .nav-cat {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
}

/* RIGHT 67% — current dimension */
.dim-stage-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  overflow-y: auto;
  animation: fadeSwap 0.35s ease;
}
.dim-stage-main.is-open {
  justify-content: flex-start;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Insight stage: align everything to the top with 48px clear space below the
   fixed site header (header padding-top 28 + logo 36 ≈ 64px → 64 + 48 = 112). */
.insight-stage .dim-stage-main,
.insight-stage .dim-stage-nav {
  justify-content: flex-start;
  padding-top: 112px;
  padding-bottom: 32px;
}

/* Insight stage: thin cyan bars across all sub-charts */
.insight-stage .hbar-track { height: 6px; }
.insight-stage .hbar-fill { background: #5CBAD0; }
.insight-stage .access-block .hbar-track { height: 6px; }
.insight-stage .access-block .hbar-fill { background: #5CBAD0; }

/* Detailed report teaser stage */
.intro-stage.report-stage {
  background: #000;
}
.intro-stage.report-stage .sticky-stage-inner {
  background: #000;
}
.intro-stage.report-stage .intro-heading {
  text-align: center;
}
.intro-stage.report-stage .intro-h {
  color: #fff;
}
.report-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  cursor: not-allowed;
  opacity: 1;
}

/* Black footer when it follows the report stage */
body > footer {
  background: #000;
  color: rgba(255,255,255,0.7);
}
body > footer a {
  color: #fff;
  text-decoration: none;
  border: none;
}
@keyframes fadeSwap {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dim-stage-main .dim-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dim-stage-main .dim-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
}
.dim-stage-main .dim-titles {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dim-stage-main h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.0vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  flex: 1 1 60%;
  min-width: 0;
  max-width: 32ch;
  text-wrap: balance;
}
.dim-stage-main .dim-titles .dim-stats {
  flex-shrink: 0;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  border-top: none;
}
.dim-stage-main .dim-titles .dim-stats .stat {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.4;
  max-width: 36ch;
  text-wrap: balance;
}
.dim-stage-main .dim-titles .dim-stats .stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.dim-stage-main .dim-summary {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 500;
  max-width: 62%;
  margin: 0 0 28px;
}
.dim-stage-main .dim-summary strong { color: var(--ink); font-weight: 600; }

.dim-chart-wrap {
  margin-bottom: 18px;
}
.dim-stage-main .dive-deeper { margin-top: 24px; }

/* Smaller likert bars inside the stage so it fits one viewport */
.dim-stage-main .likert-bars { height: 220px; }

@media (max-width: 1100px) {
  .dim-stage-inner { position: relative; height: auto; }
  .dim-stage-grid { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .dim-stage-nav { border-right: none; border-bottom: 1px dashed var(--rule); padding: 0 0 24px; }
  .dim-stage-main { padding: 0; }
  .dim-stage { height: auto !important; }
}

/* ===== DIVE DEEPER ACCORDION ===== */
.dive-deeper {
  margin-top: 32px;
}
.dive-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.dive-btn:hover { background: var(--ink); color: var(--paper); }
.dive-btn .arrow { display: inline-block; transition: transform 0.2s; font-family: var(--sans); }
.dive-btn.open .arrow { transform: rotate(90deg); }

.dive-panel {
  margin-top: 32px;
  padding: 28px 0 8px;
  border-top: 1px dashed var(--rule);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.dive-panel .dive-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.dive-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: subq;
}
.dive-panel ol li {
  counter-increment: subq;
  display: grid;
  grid-template-columns: 36px 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.dim-section .dive-panel ol li:last-child { border-bottom: none; }
.dive-panel ol li::before {
  content: counter(subq, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.dive-panel .qcode {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding-top: 3px;
}
.dive-panel .qtext { color: var(--ink-soft); }
.dive-panel .empty {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

/* New left-flush sub-question list with inline bar charts */
.dive-panel .subq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dive-panel .subq-item {
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule);
}
.dive-panel .subq-item:last-child { border-bottom: none; }
.dive-panel .subq-text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 10px;
  text-align: left;
}
.subq-bar { margin-top: 8px; }
.subq-bar-track {
  display: flex;
  width: 100%;
  height: 20px;
  overflow: visible;
  position: relative;
}
.subq-bar-seg {
  height: 100%;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.subq-bar-pct {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink, #111);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.subq-bar-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--ink, #111);
  color: var(--paper, #fff);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.subq-bar-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: inherit; text-decoration: none; font-weight: 600; }

/* hide tweaks panel for the clean redesign */
#tweaks-mount { display: none; }

/* ===== STICKY SECTION INDICATOR (left edge) ===== */
.section-indicator {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 50;
  font-family: var(--sans);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 200px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.section-indicator.visible { opacity: 1; }
.section-indicator .si-num {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-indicator .si-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.section-indicator .si-progress {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.section-indicator .si-tick {
  width: 12px;
  height: 1px;
  background: var(--ink-faint);
  transition: width 0.2s ease, background 0.2s ease;
}
.section-indicator .si-tick.active {
  width: 24px;
  background: var(--ink);
}

@media (max-width: 1100px) {
  .section-indicator { display: none; }
}

@media (max-width: 900px) {
  .dim-grid { grid-template-columns: 1fr; gap: 0; }
  .dim-grid .dim-left {
    position: static;
    min-height: 0;
    padding: 64px 0 24px;
  }
  .dim-grid .dim-right {
    padding: 0 0 64px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .likert-bars { gap: 6px; height: 220px; }
  .likert-axis { gap: 6px; }
  .likert-axis .ax-text { display: none; }
  .dive-panel ol li { grid-template-columns: 28px 1fr; }
  .dive-panel .qcode { display: none; }
}

/* ===== Endpoint dots on Likert axis ===== */
.likert-axis .ax-text { position: relative; display: block; }
.endpoint-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.endpoint-neg {
  background: radial-gradient(circle at 30% 30%, #ff7a7a 0%, #d62828 60%, #7a1414 100%);
  box-shadow: 0 0 6px rgba(214, 40, 40, 0.45);
}
.endpoint-pos {
  background: radial-gradient(circle at 30% 30%, #a8f0a8 0%, #2ea64a 60%, #155a25 100%);
  box-shadow: 0 0 6px rgba(46, 166, 74, 0.45);
}

/* ===== Dark themed story section (overall) ===== */
section.story.dark {
  background: #000;
  color: #fff;
  border-bottom: none;
}
section.story.dark h2.section-h { color: #fff; }
section.story.dark .section-dek { color: rgba(255,255,255,0.78); }
section.story.dark .tab-nav { border-bottom-color: #fff; }
section.story.dark .tab-nav button { color: rgba(255,255,255,0.55); }
section.story.dark .tab-nav button:hover { color: #fff; }
section.story.dark .tab-nav button.active {
  color: #fff;
  border-bottom-color: #fff;
}
section.story.dark .likert-bars {
  border-bottom-color: #fff;
}
section.story.dark .likert-bars .bar { background: #fff; }
section.story.dark .likert-bars .bar-pct { color: #fff; }
section.story.dark .likert-axis { color: rgba(255,255,255,0.6); }
section.story.dark .likert-axis .ax-num { color: #fff; }
section.story.dark .likert-endpoints {
  color: rgba(255,255,255,0.6);
  border-top-color: rgba(255,255,255,0.2);
}
section.story.dark .likert-stats { color: rgba(255,255,255,0.6); }
section.story.dark .likert-stats .stat strong { color: #fff; }
section.story.dark .endpoint-neg {
  background: radial-gradient(circle at 30% 30%, #ff9b9b 0%, #ff4d4d 50%, #b00020 100%);
  box-shadow: 0 0 10px rgba(255, 80, 80, 0.6);
}
section.story.dark .endpoint-pos {
  background: radial-gradient(circle at 30% 30%, #c8ffc8 0%, #4ade80 50%, #16a34a 100%);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* ===== Intro heading sections (between major scrolly stages) ===== */
.intro-heading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0;
  background: var(--paper);
  text-align: center;
}
.intro-heading .container { width: 100%; }
.intro-heading .intro-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.0vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto;
  text-wrap: balance;
  max-width: 22ch;
}

/* ===== Horizontal bar list (usage / context) ===== */
.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hbar-row {
  display: grid;
  grid-template-columns: 180px 1fr 56px;
  gap: 18px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.hbar-row:last-child { border-bottom: none; }
.hbar-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.hbar-track {
  height: 8px;
  background: var(--bar-track);
  position: relative;
}
.hbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  transition: width 0.4s ease;
}
.hbar-val {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== Demographic mean group ===== */
.demo-group { width: 100%; }
.demo-group-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.demo-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.demo-row {
  display: grid;
  grid-template-columns: 200px 1fr 64px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.demo-row:last-child { border-bottom: none; }
.demo-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-row-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.demo-row-n {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
}
.demo-row-axis {
  height: 10px;
  background: var(--bar-track);
  position: relative;
}
.demo-row-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: #57BAD1;
}
.demo-row-fill.neg {
  background: #d62828;
}
.demo-row-val {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #2ea64a;
}
.demo-row-val.neg { color: #d62828; }

/* ===== Access panel: three stacked sub-charts ===== */
.access-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.access-block {
  width: 100%;
}
.access-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.access-block-title {
  font-family: var(--serif);
  font-size: 12pt;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}
.access-block-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
}
.access-block .hbar-row {
  grid-template-columns: 220px 1fr 60px;
  padding: 7px 0;
}
.access-block .hbar-track { height: 6px; }
.access-block .hbar-fill { background: #57BAD1; }

/* Plain variant used by AccessFlPanel: no rule under the section title */
.access-block-plain .access-block-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 4px;
}

/* ===== Sticky stage wrapper (used by overall dark section) ===== */
.sticky-stage {
  position: relative;
  height: 320vh; /* longer scroll lag for the overall dark section */
  background: #000;
}
.sticky-stage-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sticky-stage-inner > section.story {
  width: 100%;
  padding: 0;
  border-bottom: none;
}
.sticky-stage-inner > section.story.dark {
  background: transparent;
}
.overall-stage {
  background: #000;
}

/* ===== Hero scroll-jacking ===== */
.hero-stage {
  height: 380vh;
  background: var(--paper);
}
.hero-stage .sticky-stage-inner {
  background: var(--paper);
  align-items: stretch;
  display: block;
}
.hero-stage .hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: 0;
}
/* Two stacked headings; second hidden initially */
.hero .hero-text { position: relative; }
.hero .hero-h {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero .hero-h-second {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0 0 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.hero-stage.hero-stage-second .hero-h-initial {
  opacity: 0;
  transform: translateY(-8px);
}
.hero-stage.hero-stage-second .hero-h-second {
  opacity: 1;
  transform: translateY(0);
}
.hero-stage.hero-stage-second .standfirst {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
/* Hero scroll arrow */
.hero .scroll-arrow {
  margin-top: 32px;
  text-align: right;
  font-family: var(--sans);
  font-size: 36px;
  color: var(--ink);
  opacity: 0;
  transform: scaleY(var(--arrow-stretch, 1));
  transform-origin: top center;
  transition: opacity 0.5s ease, transform 0.15s ease-out;
  animation: arrow-bounce 1.8s ease-in-out infinite;
}
.hero-stage.show-arrow .hero .scroll-arrow {
  opacity: 0.85;
}

/* ===== Intro stage scroll-jacking ===== */
.intro-stage {
  height: 320vh;
  background: var(--paper);
}
.intro-stage .sticky-stage-inner {
  background: var(--paper);
  justify-content: center;
}
.intro-stage .intro-heading {
  min-height: auto;
  padding: 0;
  width: 100%;
}

/* Detailed report teaser — dark variant of intro-stage */
.intro-stage.report-stage,
.intro-stage.report-stage .sticky-stage-inner {
  background: #000;
}
.intro-stage.report-stage .intro-heading {
  background: #000;
  text-align: center;
}
.intro-stage.report-stage .intro-h { color: #fff; }

/* Bouncing scroll arrow — hidden until parent stage marks it visible */
.scroll-arrow {
  margin-top: 64px;
  font-family: var(--sans);
  font-size: 40px;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transform: scaleY(var(--arrow-stretch, 1));
  transform-origin: top center;
  transition: opacity 0.5s ease, transform 0.15s ease-out;
  animation: arrow-bounce 1.8s ease-in-out infinite;
}
.intro-stage.show-arrow .scroll-arrow {
  opacity: 0.85;
}
@keyframes arrow-bounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

/* ===== Back to top link in scrolly side nav ===== */
.dim-stage-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 32px;
  position: relative;
}
.dim-stage-nav .nav-list { flex: 0 0 auto; }
.dim-stage-nav .back-to-top {
  background: none;
  border: none;
  padding: 12px 0 0;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  transition: color 0.2s ease;
}
.dim-stage-nav .back-to-top:hover { color: var(--ink); }
.dim-stage-nav .back-to-top .arrow { font-size: 13px; }

/* ===== Hero with globe ===== */
.hero.hero-full {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  padding: 0;
}
.hero.hero-full .hero-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero.hero-full .hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 48px;
  pointer-events: none;
  box-sizing: border-box;
}
.hero.hero-full .hero-text {
  max-width: 820px;
  text-align: right;
}
.globe-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
.globe-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .hero.hero-full .hero-overlay {
    justify-content: center;
    padding-top: 32px;
  }
  .hero.hero-full .hero-text { text-align: center; }
}

/* ===== Subgroup flourishing means (diverging bars on -3..+3) ===== */
.flmean-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.flmean-axis-head {
  display: grid;
  grid-template-columns: 200px 1fr 64px;
  gap: 18px;
  align-items: end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.flmean-spacer, .flmean-spacer-r { width: 100%; }
.flmean-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.flmean-row {
  display: grid;
  grid-template-columns: 200px 1fr 64px;
  gap: 18px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
}
.flmean-row:last-child { border-bottom: none; }
.flmean-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flmean-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.flmean-n {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.flmean-track {
  height: 10px;
  background: var(--bar-track);
  position: relative;
}
.flmean-mid {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--ink-muted);
  opacity: 0.6;
}
.flmean-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: left 0.4s ease, width 0.4s ease;
}
.flmean-fill.pos { background: #57BAD1; }
.flmean-fill.neg { background: #d62828; }
.flmean-val {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #2ea64a;
}
.flmean-val.neg { color: #d62828; }

@media (max-width: 700px) {
  .flmean-axis-head, .flmean-row {
    grid-template-columns: 130px 1fr 52px;
    gap: 12px;
  }
}
