/* ==========================================================================
   AI in the Church 2026 — page layout & typography
   Spine: Contra Labs "Creative Intelligence 2026" (light display serif, large
   grotesk decks, hairline dashboards, full-bleed color chapter panels, bottom
   chapter tab bar). Borrowed: the Met's rationed display face (serif only where
   the report speaks: titles, numbers, quotes); Stripe's colour-as-grammar
   (second clause of the masthead in a quieter tone).
   Colors come from tokens.css only.
   ========================================================================== */

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Self-hosted fonts are preloaded; hide the body (not the html background) until they resolve so nothing paints in a fallback face. */
html { background: var(--paper); }
.fonts-loading body { visibility: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 19.8px; line-height: 1.6; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; padding-bottom: var(--chapnav-h); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
cite { font-style: italic; }
::selection { background: var(--mint); color: var(--ink); }

:root {
  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --maxw: 1440px;
  --runhead-h: 64px;
  --chapnav-h: 48px;
  --section: clamp(96px, 12vw, 176px);  /* section rhythm; element rhythm is 8–24px */
  /* Type scale: perfect fourth (1.333) on an 18px body */
  --fs-body: 19.8px;
  --fs-small: 15.4px;
  --fs-lede: clamp(19.8px, 0.77vw + 13.2px, 25.3px);
  --fs-h3: clamp(26.4px, 1.1vw + 19.8px, 35.2px);
  --fs-h2: clamp(44px, 5vw + 12px, 96px);
  --fs-display: clamp(64px, 11vw, 196px);
}

/* ---------- Focus & skip ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 1px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: var(--fs-small); text-decoration: none; transition: top var(--t-state) var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Logo (masked so it inherits currentColor) ---------- */
.logo-box, .logo-name { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; vertical-align: middle; }
.logo-box { --m: url("../assets/tgc-box-logo.svg"); width: 30px; aspect-ratio: 1; }
.logo-name { --m: url("../assets/tgc-full-name.svg"); height: 18px; aspect-ratio: 985 / 146; }

/* ==========================================================================
   Running header
   ========================================================================== */
.runhead { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--runhead-h); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.runhead__inner { height: 100%; max-width: none; margin-inline: 0; padding-inline: clamp(16px, 2vw, 28px); display: flex; align-items: center; gap: 24px; font-size: var(--fs-small); }
.runhead__brand { color: var(--teal); display: inline-flex; align-items: center; gap: 14px; width: max-content; text-decoration: none; flex: none; }
.runhead__brand .logo-box { width: 34px; color: var(--teal); }
.runhead__title { color: var(--ink); letter-spacing: -0.005em; white-space: nowrap; font-weight: 500; }
.runhead__chapter { flex: 1 1 auto; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity var(--t-el) var(--ease-out); }
.theme-toggle { margin-left: auto; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink-2); transition: border-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out); }
.theme-toggle:hover { border-color: var(--line-2); color: var(--ink); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress__bar { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead { padding-top: calc(var(--runhead-h) + clamp(48px, 9vw, 128px)); padding-bottom: clamp(64px, 8vw, 120px); }
.masthead .grid { row-gap: clamp(32px, 4vw, 56px); }
.masthead__title { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 60; font-optical-sizing: auto; }
.masthead__line { display: block; font-size: var(--fs-display); line-height: .92; letter-spacing: -0.035em; margin-left: -0.04em; }
.masthead__line--quiet { margin-top: .5em; margin-left: 0; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.12; letter-spacing: -0.018em; color: var(--muted); max-width: 22ch; }
/* Explicit rows: dek and meta sit beside the map (rows 2–3), never below it. */
.masthead__dek { grid-column: 1 / 6; grid-row: 2; font-size: var(--fs-lede); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); max-width: 34ch; }
.masthead__dek p { max-width: 34ch; }
.masthead__meta { grid-column: 1 / 6; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-2); align-self: end; }
.masthead__meta > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.masthead__meta dt { font-size: var(--fs-small); color: var(--muted); }
.masthead__meta dd { font-size: 17.6px; color: var(--ink); }
.masthead__meta .logo-name { height: 15px; margin-top: 6px; }
.masthead__viz { grid-column: 1 / -1; grid-row: auto; margin-top: clamp(48px, 6vw, 96px); }

/* One orchestrated load moment: title, then dek, then the rest. */
.js .hero__logo, .js .masthead__line, .js .masthead__dek, .js .masthead__meta, .js .masthead__viz { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease-out) forwards; }
.js .masthead__line--quiet { animation-delay: 160ms; }
.js .masthead__dek { animation-delay: 320ms; }
.js .masthead__meta { animation-delay: 440ms; }
.js .masthead__viz { animation-delay: 520ms; animation-duration: 1400ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Contents
   ========================================================================== */
.contents { background: var(--mint-2); padding-block: clamp(48px, 6vw, 88px); }
.contents__list a { border-top-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.contents__list .num { color: var(--teal); }
.contents__title { grid-column: 1 / 4; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 24px; }
.contents__list { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--col-gap); }
.contents__list a { display: grid; grid-template-columns: 3.2em 1fr; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: clamp(19.8px, 0.66vw + 15.4px, 24.2px); letter-spacing: -0.01em; transition: color var(--t-state) var(--ease-out); }
.contents__list a:hover { color: var(--teal); }
.contents__list .num { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Chapters & panels
   ========================================================================== */
.chapter { padding-bottom: var(--section); }
.chapter > .grid + .grid { margin-top: clamp(56px, 7vw, 112px); }

/* Chapter opener: full-bleed colour field (Contra). The colour lives here and
   in figures only; the reading surface stays paper. */
.panel { background: var(--paper-2); color: var(--panel-ink); padding-block: clamp(72px, 10vw, 160px) clamp(64px, 8vw, 128px); margin-bottom: clamp(64px, 8vw, 120px); min-height: min(86vh, 860px); display: flex; align-items: stretch; }
.panel > .grid { width: 100%; grid-template-rows: auto auto 1fr; row-gap: 0; }
.panel--sage { background: var(--sage-panel); }
.panel--sky { background: var(--sky); }
.panel--red { background: #b0574a; color: #FBFAF6; }
.panel--red .panel__num { opacity: .75; }
.panel--paper { background: var(--paper-2); color: var(--ink); }
.panel__num { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h3); letter-spacing: -0.01em; opacity: .8; margin-bottom: clamp(16px, 2vw, 28px); }
.panel__title { grid-column: 1 / 11; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: .98; letter-spacing: -0.03em; font-variation-settings: "opsz" 60; text-wrap: balance; }
.panel__lede { grid-column: 7 / 13; align-self: end; margin-top: clamp(48px, 7vw, 120px); font-size: var(--fs-lede); line-height: 1.28; letter-spacing: -0.014em; max-width: 36ch; text-wrap: pretty; }
#map-title, #red-title, #persona-title, #hopes-title, #means-title { font-size: clamp(64px, 9vw, 168px); }

/* Display heading in chapter body (Executive summary, Methodology) */
.display { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: .98; letter-spacing: -0.03em; font-variation-settings: "opsz" 60; grid-column: 1 / 9; margin-bottom: clamp(32px, 4vw, 56px); }
.display--sm { font-size: clamp(40px, 4vw + 8px, 72px); }
#summary { padding-top: var(--section); border-top: 1px solid var(--line); }
#summary-title { font-size: clamp(56px, 8vw, 148px); }

.lede { grid-column: 4 / 12; font-size: var(--fs-lede); line-height: 1.32; letter-spacing: -0.012em; }
.lede p { max-width: 40ch; text-wrap: pretty; }

.prose { grid-column: 4 / 10; }
.prose p { max-width: 64ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

/* ---------- Key findings: hairline dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line-2); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 40px) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.stat:not(:nth-child(3n+1)) { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.stat__label { font-size: var(--fs-small); color: var(--muted); }
.stat__num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(79.2px, 7.7vw, 140.8px); line-height: 1; letter-spacing: -0.04em; margin: 12px 0 16px -0.04em; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 60; color: var(--ink); }
.stat__text { font-size: 18.7px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; }

/* ==========================================================================
   Figures & chart slots
   ========================================================================== */
.figure { margin-top: clamp(56px, 7vw, 104px); }
.figure + .figure { margin-top: clamp(72px, 9vw, 128px); }
.figure__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--ink); margin-bottom: 32px; }
.figure__num { font-family: var(--mono); font-size: 13.2px; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.figure__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
.figure__note { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 72ch; }
.figure__note--span { grid-column: 1 / -1; }
.figure--half { grid-column: span 6; align-self: start; }
/* Paired figures share a grid row, so the second must carry the same top margin as the first (.figure), not the stacked .figure + .figure gap. */
.figure--half + .figure--half { margin-top: clamp(56px, 7vw, 104px); }
.figure--half .figure__head { min-height: 2.6em; }

/* Chart slot. Charts.js fills it; until then it is a quiet, correctly
   proportioned field so the layout never jumps. */
.chart-slot { position: relative; width: 100%; min-height: 120px; padding-bottom: 24px; }
.chart-slot:empty { aspect-ratio: var(--ar, 16 / 9); background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 1.4px); background-size: 24px 24px; background-position: -1px -1px; }
.chart-slot:empty::after { content: "Figure loading"; position: absolute; left: 0; bottom: 0; padding: 8px 10px 0 0; font-family: var(--mono); font-size: 12.1px; color: var(--faint); background: var(--paper); }
.chart-slot--bare:empty { background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px); }
.chart-slot--bare:empty::after { content: none; }
.masthead__viz .chart-slot { min-height: 420px; }

/* Filter bar (built by main.js from data-dimensions) */
.filter-bar { margin-bottom: 20px; }
.filter-bar:empty { display: none; }
.filter-bar__row { display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: baseline; }
.filter-bar__row + .filter-bar__row { margin-top: 10px; gap: 6px; }
.filter-bar__label { font-size: var(--fs-small); color: var(--muted); margin-right: 4px; }
.filter-tab { appearance: none; background: none; border: 0; padding: 6px 0; font-size: 16.5px; color: var(--ink-2); cursor: pointer; border-bottom: 1px solid transparent; transition: color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out); }
.filter-tab:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.filter-tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filter-chip { appearance: none; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 15.4px; color: var(--ink-2); cursor: pointer; transition: background var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out); }
.filter-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-chip small { font-size: 13.2px; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Insight row under a chart (Contra's 4-column statements) */
.insights { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: var(--col-gap); margin-top: clamp(40px, 5vw, 64px); }
.insights p { padding-top: 14px; border-top: 1px solid var(--line-2); font-size: clamp(18.7px, 0.44vw + 15.4px, 22px); line-height: 1.38; letter-spacing: -0.008em; text-wrap: pretty; }

/* The one deliberate grid break: full-bleed heatmap */
.figure--bleed .figure__head { margin-bottom: 32px; }
.figure--wide { grid-column: 1 / -1; }
.bleed-scroll { padding-inline: var(--gutter); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bleed-scroll > .chart-slot { max-width: 1760px; margin-inline: auto; }

/* ==========================================================================
   Scrollytelling (Chapter II)
   ========================================================================== */
.scrolly { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--col-gap); max-width: var(--maxw-wide, 1680px); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.scrolly__graphic { grid-column: 5 / 13; grid-row: 1; }
.scrolly__steps { grid-column: 1 / 5; grid-row: 1; padding-block: 20vh 40vh; position: relative; z-index: 2; }
.figure--sticky { position: sticky; top: calc(var(--runhead-h) + 24px); margin-top: 0; }
/* 24px sticky offset + ~84px figure head + ~60px note + 24px slot padding, so the whole figure sits between the running header and the chapter bar */
.figure--sticky .chart-slot { height: calc(100vh - var(--runhead-h) - var(--chapnav-h) - 192px); max-height: 900px; min-height: 480px; }
.figure--sticky .chart-slot:empty { aspect-ratio: auto; }
.step { min-height: 78vh; display: flex; align-items: center; }
.step > p { font-size: clamp(19.8px, 0.77vw + 13.2px, 25.3px); line-height: 1.4; letter-spacing: -0.01em; max-width: 24ch; padding-left: 20px; border-left: 2px solid var(--line); color: var(--muted); transition: color var(--t-el) var(--ease-out), border-color var(--t-el) var(--ease-out); text-wrap: pretty; }
.step.is-active > p { color: var(--ink); border-left-color: var(--teal); }
.step strong { font-weight: 500; }

/* ==========================================================================
   Personas
   ========================================================================== */
.personas { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: var(--col-gap); margin-top: clamp(40px, 5vw, 64px); }
.persona { padding-top: 16px; border-top: 1px solid var(--line-2); }
.persona__name { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.1; }
.persona__share { font-family: var(--serif); font-weight: 300; font-size: clamp(48.4px, 3.96vw, 70.4px); line-height: 1; letter-spacing: -0.035em; margin: 12px 0 14px; font-variant-numeric: tabular-nums lining-nums; }
.persona > p:last-child { font-size: 17.6px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }

/* ==========================================================================
   Hopes & fears: quotes and stories
   ========================================================================== */
#hopes-fears .grid + .grid { row-gap: clamp(48px, 6vw, 96px); align-items: start; }
.pull { grid-column: 1 / 9; }
.pull p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(33px, 2.86vw + 15.4px, 61.6px); line-height: 1.14; letter-spacing: -0.022em; text-indent: -0.42em; text-wrap: balance; }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull footer { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); }
.pull--right { grid-column: 5 / 13; }
#hopes-fears .prose { grid-column: 3 / 9; }
.story { grid-column: 10 / 13; background: var(--mint-2); padding: 24px 24px 28px; align-self: end; }
#hopes-fears .grid + .grid > .story:last-child { grid-column: 1 / 5; grid-row: 3; align-self: start; }
#hopes-fears .grid + .grid > .pull--right { grid-row: 3; }
#hopes-fears .grid + .grid > .story:nth-child(3) { grid-row: 1; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: 24.2px; letter-spacing: -0.012em; line-height: 1.2; margin-bottom: 10px; }
.story p { font-size: 17.6px; line-height: 1.5; color: var(--ink-2); }

/* ==========================================================================
   Recommendations
   ========================================================================== */
.recs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--line-2); }
.rec { padding: clamp(28px, 3vw, 44px) clamp(16px, 3vw, 48px) clamp(32px, 3.4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.rec:nth-child(even) { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid var(--line); }
.rec__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30.8px, 1.98vw + 17.6px, 48.4px); line-height: 1.08; letter-spacing: -0.024em; max-width: 18ch; margin-bottom: 18px; text-wrap: balance; }
.rec p { color: var(--ink-2); max-width: 46ch; }

/* ==========================================================================
   Methodology
   ========================================================================== */
.chapter--method { padding-top: var(--section); border-top: 1px solid var(--line); }
.method { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--col-gap); }
.method__card { background: var(--paper-2); padding: clamp(24px, 3vw, 44px); }
.method__card h3, .about h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 16px; }
.method__card p { font-size: 18.7px; color: var(--ink-2); max-width: 60ch; }
.method__card p + p { margin-top: .9em; }
.sample { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: var(--col-gap); margin-top: clamp(40px, 5vw, 64px); }
.sample > div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.sample dt { font-size: var(--fs-small); color: var(--muted); margin-bottom: 6px; }
.sample dd { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.about { margin-top: clamp(48px, 6vw, 80px); max-width: 64ch; }
.about p { color: var(--ink-2); }
.about p + p { margin-top: .9em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.colophon { background: var(--teal-deep); padding-block: clamp(56px, 7vw, 104px) calc(clamp(56px, 7vw, 104px) + var(--chapnav-h)); color: #FBFAF6; margin-top: clamp(64px, 8vw, 120px); margin-bottom: calc(-1 * var(--chapnav-h)); }
.colophon a { color: inherit; }
.colophon__mark { color: #FBFAF6; }
.colophon .grid { row-gap: 20px; }
.colophon__mark { grid-column: 1 / 6; display: inline-flex; align-items: center; gap: 14px; width: max-content; text-decoration: none; }
.colophon__mark .logo-name { height: clamp(28px, 2.6vw, 40px); }
.colophon__text { grid-column: 7 / 13; font-size: 16.5px; color: color-mix(in srgb, #FBFAF6 88%, transparent); max-width: 52ch; }
.colophon__fine { grid-column: 7 / 13; font-size: 14.3px; color: color-mix(in srgb, #FBFAF6 65%, transparent); }

/* ==========================================================================
   Chapter tab bar (Contra): equal cells, hairlines, lime = here, tan = read
   ========================================================================== */
.chapnav { position: fixed; inset: auto 0 0 0; z-index: 50; height: var(--chapnav-h); background: var(--paper); border-top: 1px solid var(--line-2); transform: translateY(100%); transition: transform var(--t-overlay) var(--ease-out); }
.chapnav.is-visible { transform: none; }
.chapnav__list { display: flex; height: 100%; }
.chapnav__list li { flex: 1 1 0; min-width: 0; }
.chapnav__list li + li { border-left: 1px solid var(--line-2); }
.chapnav__list a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 0 8px; text-decoration: none; font-size: 15.4px; color: var(--ink-2); white-space: nowrap; overflow: hidden; transition: background var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out); }
.chapnav__list a:hover { background: var(--paper-2); color: var(--ink); }
.chapnav__num { font-family: var(--serif); font-size: 16.5px; color: var(--muted); }
.chapnav__name { overflow: hidden; text-overflow: ellipsis; }
.chapnav__list a.is-visited { background: var(--tan); color: var(--ink); }
.chapnav__list a.is-active { background: var(--lime); color: #1F2A12; }
.chapnav__list a.is-active .chapnav__num { color: #1F2A12; }

/* ==========================================================================
   Reveal (figures only; one quiet fade, no slide)
   ========================================================================== */
.js .reveal { opacity: 0; transition: opacity 700ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; }

/* ==========================================================================
   Final-copy additions: prose subheads + inline quotes, stat units/details,
   findings list, figure intros, persona taglines/quotes, quote wall
   ========================================================================== */
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.1; margin: clamp(40px, 5vw, 64px) 0 16px; max-width: 30ch; text-wrap: balance; }
.prose h3:first-child { margin-top: 0; }
.prose .pull { margin-block: clamp(36px, 4.5vw, 64px); }
.prose .pull p { font-size: clamp(26.4px, 1.21vw + 15.4px, 39.6px); line-height: 1.2; max-width: 28ch; }
.pull cite, .story cite, .persona__quote cite, .wall cite { font-style: normal; }
.pull footer::before, .story footer::before, .persona__quote footer::before, .wall footer::before { content: "\2014\00a0"; }

.stat__figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stat__unit { font-size: var(--fs-small); color: var(--muted); letter-spacing: 0; }
.stat__detail { margin-top: 10px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 32ch; }

.findings__title, .recs__title, .wall__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 20px; }
.findings { grid-column: 4 / 12; counter-reset: finding; }
.findings li { position: relative; padding: 18px 0 20px 3.2em; border-top: 1px solid var(--line); font-size: clamp(18.7px, 0.44vw + 15.4px, 22px); line-height: 1.42; letter-spacing: -0.008em; max-width: 60ch; text-wrap: pretty; counter-increment: finding; }
.findings li:last-child { border-bottom: 1px solid var(--line); }
.findings li::before { content: counter(finding); position: absolute; left: 0; top: 18px; font-family: var(--serif); font-size: var(--fs-h3); line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }

.figure__intro { margin: -4px 0 18px; font-size: 17.6px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }

.persona__tagline { font-size: 17.6px; line-height: 1.4; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.persona__text { font-size: 17.6px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.persona__quote { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.persona__quote p { font-family: var(--serif); font-style: italic; font-size: 18.7px; line-height: 1.4; color: var(--ink); max-width: 34ch; }
.persona__quote p::before { content: "\201C"; }
.persona__quote p::after { content: "\201D"; }
.persona__quote footer { margin-top: 8px; font-size: 14.3px; color: var(--muted); }

.story footer { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }

.wall__title { grid-column: 1 / 4; }
.wall { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
.wall__item { padding: 18px 0 24px; border-top: 1px solid var(--line); }
.wall__item p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20.9px, 0.55vw + 15.4px, 25.3px); line-height: 1.32; letter-spacing: -0.01em; color: var(--ink); max-width: 40ch; text-wrap: pretty; }
.wall__item p::before { content: "\201C"; }
.wall__item p::after { content: "\201D"; }
.wall__item footer { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .findings { grid-column: 1 / -1; }
  .wall__title, .wall { grid-column: 1 / -1; }
  .masthead__dek, .masthead__meta { grid-column: 1 / 8; }
  .masthead__viz { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
  .insights, .personas { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 32px; }
  .sample { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 24px; }
  .chapnav__list a:not(.is-active) .chapnav__name { display: none; }
  .chapnav__list li:has(a.is-active) { flex-grow: 3; }
}

@media (max-width: 760px) {
  :root { --runhead-h: 56px; --chapnav-h: 44px; }
  body { font-size: 18.7px; }
  .runhead__title { font-size: 15.4px; }
  .runhead__chapter { display: none; }
  .runhead__brand .logo-box { width: 28px; }

  .masthead__dek, .masthead__meta, .masthead__viz { grid-column: 1 / -1; grid-row: auto; }
  .masthead__viz .chart-slot { min-height: 0; height: auto; }
  .masthead__viz .chart-slot:empty { aspect-ratio: 4 / 3; }
  .contents__title, .contents__list { grid-column: 1 / -1; }
  .contents__list { grid-template-columns: 1fr; }

  .panel { min-height: 72vh; }
  .panel__lede { margin-top: 40px; }
  .panel__title, .panel__lede, .lede, .prose, #hopes-fears .prose, .display { grid-column: 1 / -1; }

  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .stat { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: baseline; }
  .stat__label { grid-column: 1 / -1; }
  .stat__num { font-size: 70.4px; margin: 6px 0 0; }
  .stat__text { align-self: center; }
  .stat__detail { grid-column: 1 / -1; }

  .figure--half { grid-column: 1 / -1; }
  .figure--half + .figure--half { margin-top: clamp(56px, 8vw, 96px); }
  .insights, .personas, .recs, .method, .sample { grid-template-columns: 1fr; }
  .rec:nth-child(even) { padding-left: 0; border-left: 0; }

  /* Scrolly: chart sticks to the top, steps pass over it as cards */
  .scrolly { display: block; }
  .scrolly__graphic { position: sticky; top: var(--runhead-h); z-index: 1; background: var(--paper); padding-top: 8px; }
  .figure--sticky { position: static; }
  .figure--sticky .figure__note { display: none; }
  .figure--sticky .chart-slot, .figure--sticky .chart-slot:empty { height: 50vh; max-height: 440px; aspect-ratio: auto; }
  .scrolly__steps { padding-block: 10vh 30vh; margin-top: 0; }
  .step { min-height: 70vh; align-items: flex-end; }
  .step > p { max-width: none; background: var(--paper); border: 1px solid var(--line-2); border-left: 2px solid var(--line-2); padding: 16px 18px; font-size: 20.9px; box-shadow: 0 1px 0 var(--line); }
  .step.is-active > p { border-left-color: var(--teal); }

  .pull, .pull--right, .story, #hopes-fears .grid + .grid > .story:last-child { grid-column: 1 / -1; grid-row: auto; }
  #hopes-fears .grid + .grid > .story:nth-child(3), #hopes-fears .grid + .grid > .pull--right { grid-row: auto; }
  .pull p { text-indent: -0.36em; padding-left: .36em; }

  .colophon__mark, .colophon__text, .colophon__fine { grid-column: 1 / -1; }
  .colophon__mark .logo-name { height: 26px; }
  .chapnav__list a { font-size: 14.3px; gap: 6px; padding: 0 4px; }
}

@media (max-width: 400px) {
  .chapnav__list a.is-active .chapnav__name { max-width: 9em; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  :root { --paper: #fff; --paper-2: #f4f4f1; }
  body { padding: 0; font-size: 11pt; color: #000; background: #fff; }
  .runhead, .chapnav, .skip-link, .filter-bar, .theme-toggle, .contents { display: none !important; }
  .masthead { padding-top: 0; }
  .panel { min-height: 0; background: none !important; color: #000; padding-block: 24pt; margin-bottom: 12pt; border-top: 2pt solid #000; }
  .scrolly { display: block; }
  .scrolly__graphic, .figure--sticky { position: static; }
  .scrolly__steps { padding: 0; }
  .step { min-height: 0; display: block; margin: 8pt 0; }
  .step > p { color: #000; }
  .figure, .stat, .rec, .persona, .pull, .story, .method__card { break-inside: avoid; }
  .chapter { padding-bottom: 24pt; }
  .js .reveal, .js .hero__logo, .js .masthead__line, .js .masthead__dek, .js .masthead__meta, .js .masthead__viz { opacity: 1 !important; transform: none !important; animation: none !important; }
  a { text-decoration: none; }
  .chart-slot:empty { display: none; }
}

/* Seven practices: full-bleed pale-mint panel (same tint as the story cards) with numbered items */
.practices { background: var(--mint-2); color: var(--ink); padding-block: clamp(56px, 7vw, 112px) clamp(48px, 6vw, 96px); margin-block: clamp(56px, 7vw, 104px) 0; }
.practices .recs__title { color: var(--ink); grid-column: 1 / -1; font-size: clamp(35.2px, 2.64vw + 15.4px, 61.6px); font-weight: 300; margin-bottom: clamp(28px, 3vw, 48px); }
.practices .recs { grid-column: 1 / -1; counter-reset: rec; border-top-color: var(--ink); }
.practices .rec { border-bottom-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.practices .rec:nth-child(even) { border-left-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.practices .rec__title { color: var(--ink); max-width: 26ch; text-wrap: balance; }
.practices .rec__title::before { counter-increment: rec; content: counter(rec, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 14.3px; letter-spacing: .1em; font-weight: 500; color: var(--teal); margin-bottom: 14px; }
.practices .rec p { color: var(--ink-2); }
@media (max-width: 760px) { .practices .rec:nth-child(even) { border-left: 0; padding-left: 0; } }

/* ==========================================================================
   QA pass: touch targets, mobile filter rows, mobile scrolly sizing
   ========================================================================== */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .filter-tab, .filter-chip { min-height: 40px; }
  .filter-tab { padding-block: 8px; }
  .theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 760px) {
  /* "View by" rows scroll sideways like the chart pill rows instead of stacking three deep */
  .filter-bar__row { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .filter-bar__row::-webkit-scrollbar { display: none; }
  .filter-bar__row > * { flex: none; white-space: nowrap; }
  .filter-bar__label { align-self: center; }
  /* Scrolly: a shorter sticky chart so the step cards have room to pass beneath it */
  .figure--sticky .chart-slot, .figure--sticky .chart-slot:empty { height: 42vh; max-height: 400px; min-height: 300px; }
  .figure--sticky .figure__head { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  /* Phone scrolly: the pinned chart stays on top; cards rise from below and slide beneath it, so the chart is never covered */
  .scrolly__graphic { z-index: 3; }
  .scrolly__steps { z-index: 1; padding-block: 8vh 40vh; }
  .step { min-height: 0; padding-top: 12vh; }
  .step > p { font-size: 18.7px; line-height: 1.45; padding: 14px 16px; }
}

/* Hero: dimmed painting with light type; the meta stats sit in a paper card */
.masthead--hero { padding-top: 0; }
.hero { position: relative; isolation: isolate; background: var(--teal-deep); min-height: min(100vh, 960px); display: flex; align-items: flex-end; padding-top: calc(var(--runhead-h) + clamp(64px, 8vw, 112px)); padding-bottom: clamp(48px, 6vw, 88px); color: #FBFAF6; }
.hero__grid { width: 100%; align-items: end; }
.hero__logo { grid-column: 1 / 4; grid-row: 1; width: clamp(44px, 4vw, 60px); color: #E7F2F0; align-self: end; margin-bottom: -14px; }
.masthead--hero .masthead__title { grid-column: 1 / 8; grid-row: 2; }
.masthead--hero .masthead__line { color: #FBFAF6; }
.masthead--hero .masthead__line:not(.masthead__line--quiet) { font-size: clamp(56px, 7.6vw, 128px); }
.masthead--hero .masthead__line--quiet { color: rgba(251,250,246,.8); font-size: clamp(24px, 2.6vw, 42px); }
.masthead--hero .masthead__dek { grid-column: 1 / 7; grid-row: 3; margin-top: -8px; color: #FBFAF6; max-width: 32ch; }
.masthead--hero .masthead__meta { grid-column: 8 / 13; grid-row: 1 / 4; align-self: end; background: var(--paper); color: var(--ink); padding: clamp(20px, 2vw, 32px) clamp(20px, 2.2vw, 36px) clamp(8px, 1vw, 14px); border-top: 0; }
.masthead--hero .masthead__meta > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.masthead--hero .masthead__meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.masthead--hero .masthead__meta dt { color: var(--muted); }
.masthead--hero .masthead__meta dd { color: var(--ink); }
.masthead--hero .masthead__viz { margin-top: clamp(56px, 7vw, 104px); }
:root[data-theme="dark"] .masthead--hero .masthead__meta, .masthead--hero .masthead__meta { --paper: #FBFAF6; --ink: #2B2B29; --muted: #797574; --line: #E6E1D6; }
@media (max-width: 1080px) {
  .masthead--hero .masthead__title { grid-column: 1 / -1; }
  .masthead--hero .masthead__dek { grid-column: 1 / 8; grid-row: 3; }
  .masthead--hero .masthead__meta { grid-column: 1 / 8; grid-row: 4; margin-top: 8px; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: calc(var(--runhead-h) + 72px); }
  .masthead--hero .masthead__dek, .masthead--hero .masthead__meta { grid-column: 1 / -1; grid-row: auto; }
  .masthead--hero .masthead__meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   2026-11 revisions: placeholder marker, hero media, parts outline, email gate,
   quadrant steps, quiz, policy categories, methodology
   ========================================================================== */

/* Placeholder copy (Claude-written) is blue so it can be found and removed before publication */
/* (Former placeholder marker. Text with class "ph" now renders in the normal text colour.) */

/* Hero media slot: image or looping video sits behind the type */
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,30,.15) 0%, rgba(20,30,30,.55) 100%); }
.hero__placeholder { position: absolute; top: calc(var(--runhead-h) + 24px); right: var(--gutter); max-width: 28ch; padding: 10px 14px; color: rgba(251,250,246,.8); border: 1px dashed rgba(251,250,246,.5); border-radius: 4px; font-family: var(--mono); font-size: 13.2px; line-height: 1.4; }
.masthead--hero .masthead__dek { max-width: 46ch; }
.masthead--hero .masthead__dek p { max-width: 46ch; }

/* Executive summary now opens directly under the hero */
#summary { padding-bottom: var(--section); }
#summary .lede p { max-width: 52ch; }

/* Table of contents: parts with their sub-items */
.contents__list { grid-template-columns: 1fr; }
.contents__list > li { border-top: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); padding-bottom: 14px; }
.contents__list > li > a { border-top: 0; grid-template-columns: var(--toc-num) 1fr; }
.contents { --toc-num: 104px; }
.contents__sub { padding-left: var(--toc-num); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--col-gap); row-gap: 2px; }
.contents__list .contents__sub a { display: block; padding: 4px 0; border-top: 0; font-size: 17.6px; letter-spacing: 0; color: var(--ink-2); text-decoration: none; transition: color var(--t-state) var(--ease-out); }
.contents__list .contents__sub a:hover { color: var(--teal); }

/* Email gate */
.gate { position: relative; z-index: 5; padding-block: clamp(56px, 7vw, 104px) 0; margin-bottom: calc(-1 * clamp(120px, 14vw, 200px)); }
.gate-open .gate { display: none; }
.gate__card { grid-column: 3 / 11; background: var(--card); border: 1px solid var(--line-2); padding: clamp(28px, 4vw, 56px); box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--ink) 40%, transparent); }
.gate__title { font-family: var(--serif); font-weight: 300; font-size: clamp(35.2px, 2.64vw + 15.4px, 57.2px); line-height: 1.04; letter-spacing: -0.024em; margin-bottom: 14px; }
.gate__text { font-size: 18.7px; color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.gate__lists { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.gate__legend { padding: 0; margin-bottom: 10px; font: 600 12.1px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gate__check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 18.7px; transition: border-color var(--t-state) var(--ease-out), background var(--t-state) var(--ease-out); }
.gate__check:hover { border-color: var(--line-2); }
.gate__check:has(input:checked) { border-color: var(--teal); background: var(--mint-2); }
.gate__check input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; flex: none; }
.gate__row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.gate__field { flex: 1 1 260px; display: grid; gap: 6px; }
.gate__label { font-size: var(--fs-small); color: var(--muted); }
.gate__field input { font: inherit; font-size: 18.7px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); min-height: 48px; }
.gate__field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.gate__submit { appearance: none; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 17.6px/1 var(--sans); padding: 0 26px; min-height: 48px; cursor: pointer; transition: background var(--t-state) var(--ease-out); }
.gate__submit:hover { filter: brightness(1.08); }
.gate__submit[disabled] { opacity: .6; cursor: progress; }
.gate__error { margin-top: 12px; font-size: var(--fs-small); }
.gate__skip { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.gate__loading { min-height: 220px; color: var(--muted); font-size: var(--fs-small); }

/* HubSpot embed (rendered as raw HTML with css: '') dressed as the gate's own fields */
.gate__hs form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 0; }
.gate__hs .hs-form-field, .gate__hs .legal-consent-container, .gate__hs .hs_submit, .gate__hs .hs_error_rollup { grid-column: 1 / -1; min-width: 0; }
.gate__hs .hs_firstname { grid-column: 1; }
.gate__hs .hs_lastname { grid-column: 2; }
.gate__hs .hs-form-field > label { display: block; margin-bottom: 6px; font-size: var(--fs-small); color: var(--muted); }
.gate__hs .hs-form-required { margin-left: 2px; color: var(--muted); }
.gate__hs .hs-input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; font: inherit; font-size: 18.7px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); min-height: 48px; }
.gate__hs .hs-input:not([type="checkbox"]):focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.gate__hs .hs-input.invalid.error { border-color: var(--ink); }
/* Consent copy and subscription checkboxes */
.gate__hs .legal-consent-container { display: grid; gap: 6px; margin-top: 6px; }
.gate__hs .legal-consent-container .hs-richtext { font-size: var(--fs-small); color: var(--ink-2); max-width: 64ch; }
.gate__hs .legal-consent-container .hs-richtext p { margin: 0; }
.gate__hs .legal-consent-container .hs-richtext a { color: inherit; text-decoration: underline; }
.gate__hs .legal-consent-container .hs-richtext:first-child { margin-bottom: 6px; }
.gate__hs .legal-consent-container .hs-richtext:last-child { margin-top: 16px; color: var(--muted); }
.gate__hs .legal-consent-container > div:not(.hs-richtext) { display: contents; }
.gate__hs .legal-consent-container .field.hs-form-field { margin: 0; } /* beats HubSpot's injected 8px margin */
.gate__hs .inputs-list { list-style: none; margin: 0; padding: 0; }
/* Plain checkbox rows: no card border, same size as the consent copy above */
.gate__hs .hs-form-booleancheckbox-display { display: flex; align-items: flex-start; gap: 10px; padding: 0; cursor: pointer; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.gate__hs .hs-form-booleancheckbox-display input { width: 16px; height: 16px; accent-color: var(--teal); margin: 0.2em 0 0; flex: none; }
.gate__hs .hs-form-booleancheckbox-display > span { margin: 0 !important; } /* HubSpot injects a 20px left margin */
.gate__hs .hs-form-booleancheckbox-display p { margin: 0; }
.gate__hs .hs-form-booleancheckbox-display br { display: none; }
/* Validation messages */
.gate__hs .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; }
.gate__hs .hs-error-msg, .gate__hs .hs-main-font-element { font-size: var(--fs-small); color: var(--ink); }
.gate__hs .hs_error_rollup .hs-error-msgs { margin: 0; }
/* reCAPTCHA (invisible; Google requires the badge or attribution to stay visible) */
.gate__hs .hs_recaptcha .grecaptcha-badge { box-shadow: none !important; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
/* Submit */
.gate__hs .hs_submit .actions { display: flex; }
.gate__hs input.gate__submit { padding: 0 26px; }
@media (max-width: 560px) {
  .gate__hs form { grid-template-columns: 1fr; }
  .gate__hs .hs_firstname, .gate__hs .hs_lastname { grid-column: 1; }
}
/* Everything below the gate is faded and inert until the reader subscribes */
.js:not(.gate-open) .gated { max-height: 150vh; overflow: hidden; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.12) 45%, transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.12) 45%, transparent 85%); }
.js:not(.gate-open) .chapnav { display: none; }
.js:not(.gate-open) .colophon { margin-top: 0; }

/* Part openers carry a title only */
.panel__num { white-space: nowrap; }
#part-1-title, #part-2-title { font-size: clamp(64px, 9vw, 168px); }

/* Fig. 3: three statements */
.insights--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Fig. 1 steps: quadrant name + copy */
.step > .step__body { max-width: 26ch; padding-left: 20px; border-left: 2px solid var(--line); color: var(--muted); transition: color var(--t-el) var(--ease-out), border-color var(--t-el) var(--ease-out); }
.step.is-active > .step__body { color: var(--ink); border-left-color: var(--teal); }
.step__title { font: 600 13.2px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; color: inherit; }
.step__body p { font-size: clamp(19.8px, 0.77vw + 13.2px, 25.3px); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }

/* Figure notes that carry report copy read at body size */
.figure__note--copy { font-size: 18.7px; color: var(--ink-2); }

/* Quiz */
.quiz-band { background: var(--mint-2); padding-block: clamp(56px, 7vw, 104px); margin-top: clamp(72px, 9vw, 128px); }
.quiz__title { grid-column: 1 / 5; font-family: var(--serif); font-weight: 300; font-size: clamp(39.6px, 3.3vw + 15.4px, 70.4px); line-height: 1; letter-spacing: -0.026em; }
.quiz__intro { grid-column: 5 / 13; font-size: var(--fs-lede); line-height: 1.3; letter-spacing: -0.012em; max-width: 34ch; align-self: end; }
.quiz { grid-column: 1 / -1; margin-top: clamp(32px, 4vw, 56px); background: var(--card); border: 1px solid var(--line-2); padding: clamp(24px, 3.4vw, 52px); min-height: 360px; }
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font-family: var(--mono); font-size: 13.2px; color: var(--muted); }
.quiz__track { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.quiz__fill { display: block; height: 100%; background: var(--teal); transform-origin: 0 50%; transition: transform var(--t-overlay) var(--ease-out); }
.quiz__q { font-family: var(--serif); font-weight: 400; font-size: clamp(26.4px, 1.54vw + 17.6px, 41.8px); line-height: 1.15; letter-spacing: -0.018em; max-width: 30ch; margin-bottom: 28px; text-wrap: balance; }
.quiz__scale { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 6px; }
.quiz__scale--5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.quiz__opt { appearance: none; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 6px; min-height: 52px; font: 500 17.6px/1.2 var(--sans); cursor: pointer; padding: 6px; transition: background var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out); }
.quiz__opt:hover { border-color: var(--ink-2); }
.quiz__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz__ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: var(--fs-small); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 28px; }
.quiz__link { appearance: none; background: none; border: 0; padding: 8px 0; font-size: 16.5px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.quiz__link[hidden] { display: none; }
.quiz__step { animation: rise 420ms var(--ease-out) both; }
.quiz__result-eyebrow { font: 600 12.1px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.quiz__result-name { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.4vw + 13.2px, 92.4px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.quiz__result-text { font-size: clamp(19.8px, 0.55vw + 15.4px, 23.1px); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.quiz__result-share { margin-top: 18px; font-size: var(--fs-small); }

/* Part 3 quote walls: hopes, then fears */
#hopes-words, #fears-words { margin-top: clamp(72px, 9vw, 128px); row-gap: 0; }

/* Part 4: written AI policy categories, each heading opens its subheadings */
#policies .prose p { font-size: clamp(19.8px, 0.33vw + 16.5px, 22px); }
.policy-list { grid-column: 1 / -1; counter-reset: pol; border-top: 1px solid var(--ink); }
.policy { border-bottom: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.policy summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 16px; padding: clamp(18px, 2vw, 26px) 0; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: currentColor; -webkit-mask: linear-gradient(#000 0 0) center / 14px 1.5px no-repeat, linear-gradient(#000 0 0) center / 1.5px 14px no-repeat; mask: linear-gradient(#000 0 0) center / 14px 1.5px no-repeat, linear-gradient(#000 0 0) center / 1.5px 14px no-repeat; transition: transform var(--t-el) var(--ease-out); color: var(--teal); }
.policy details[open] summary::after { transform: rotate(45deg); }
.policy summary:hover .policy__name { color: var(--teal); }
.policy__name { font-family: var(--serif); font-weight: 300; font-size: clamp(26.4px, 1.54vw + 17.6px, 44px); line-height: 1.1; letter-spacing: -0.02em; transition: color var(--t-state) var(--ease-out); }
.policy__count { font-family: var(--mono); font-size: 13.2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.policy__subs { columns: 2; column-gap: var(--col-gap); padding: 0 0 clamp(22px, 2.4vw, 32px); }
.policy__subs li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--line); font-size: 17.6px; color: var(--ink-2); }
.policy details[open] .policy__subs { animation: rise 380ms var(--ease-out) both; }

/* Part 5: methodology */
.method__num { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h3); color: var(--muted); margin-bottom: 12px; }
.method__prose { grid-column: 1 / 9; }
.method__prose p { color: var(--ink-2); }

@media (max-width: 1080px) {
  .gate__card { grid-column: 1 / -1; }
  .insights--3 { grid-template-columns: 1fr; row-gap: 24px; }
  .quiz__title, .quiz__intro { grid-column: 1 / -1; }
  .quiz__intro { margin-top: 16px; }
  .method__prose { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .contents { --toc-num: 80px; }
  .contents__sub { grid-template-columns: 1fr; }
  .hero__placeholder { left: var(--gutter); right: auto; }
  .step > .step__body { max-width: none; background: var(--paper); border: 1px solid var(--line-2); border-left: 2px solid var(--line-2); padding: 14px 16px; box-shadow: 0 1px 0 var(--line); }
  .step.is-active > .step__body { border-left-color: var(--teal); }
  .step__body p { font-size: 18.7px; line-height: 1.45; }
  .quiz__scale { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .quiz__opt { min-height: 46px; }
  .policy__subs { columns: 1; }
}
@media print {
  .gate { display: none; }
  .gated { max-height: none !important; overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
}
.masthead--hero { padding-bottom: 0; }
#summary { border-top: 0; }
.chapter > .grid + .scrolly, .chapter > .scrolly + .grid { margin-top: clamp(72px, 9vw, 128px); }
.quiz__result-name:focus { outline: none; }
.persona__name { min-height: 2.2em; }
@media (max-width: 760px) { .persona__name { min-height: 0; } }
@media (max-width: 760px) { .hero__placeholder { top: calc(var(--runhead-h) + 10px); padding: 5px 8px; font-size: 11px; max-width: 24ch; } }

/* Executive summary body aligns with its title */
#summary .lede { grid-column: 1 / 10; }
@media (max-width: 760px) { #summary .lede { grid-column: 1 / -1; } }

/* Quiz: share your result */
.quiz__share { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz__card { width: 100%; max-width: 480px; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.quiz__share-label { margin: 18px 0 10px; font: 600 12.1px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quiz__share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15.4px; font-weight: 500; text-decoration: none; transition: background var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out); }
.quiz__share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   Design pass (2026-11): weight floor for the light serif, hanging quotes,
   no caps/mono label chrome, quieter part openers, compact footer
   ========================================================================== */

/* Light serif (300) only at display sizes (≥ ~48px); mid sizes get 380–400 so hairlines hold up */
.contents__title, .panel__num, .method__num, .policy__name, .figure__title { font-weight: 400; }
.gate__title { font-weight: 380; }
.quiz__title { font-weight: 360; }
.quiz__result-name { font-weight: 340; }
.wall__item p { font-weight: 400; }
@media (max-width: 760px) {
  .panel__title, .display, .display--sm { font-weight: 360; }
  .persona__share { font-weight: 360; }
}

/* Hanging quotation marks: the opening mark sits in the margin so the text edge stays flush */
.wall__item p { position: relative; text-indent: 0; hanging-punctuation: first; }
.wall__item p::before { position: absolute; right: 100%; padding-right: .06em; }
@supports (hanging-punctuation: first) { .wall__item p::before { position: static; padding-right: 0; } }

/* Labels: sentence case, no tracking, no monospace */
.figure__num { font-family: var(--sans); font-size: 14.3px; letter-spacing: 0; font-weight: 500; }
.gate__legend { font: 500 15.4px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.quiz__share-label { font: 500 15.4px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.quiz__result-eyebrow { font: 400 16.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-bottom: 8px; }
.quiz__progress { font-family: var(--sans); font-size: 15.4px; font-variant-numeric: tabular-nums; }
.hero__placeholder { font-family: var(--sans); font-size: 14.3px; }
.chart-slot:empty::after { font-family: var(--sans); font-size: 13.2px; }
.step__title { font: 600 16.5px/1.25 var(--sans); letter-spacing: 0; text-transform: none; margin-bottom: 8px; }

/* Part openers carry only a number and a title: give them presence without a screenful of empty colour */
.panel { min-height: min(58vh, 600px); }
@media (max-width: 760px) { .panel { min-height: 44vh; } }

/* Policy categories: heading + open/close mark only */
.policy summary { grid-template-columns: 1fr 28px; }

/* Footer: one row, mark and copyright on a shared centre line */
.colophon { padding-block: clamp(32px, 4vw, 48px); margin-bottom: 0; }
.colophon .grid { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.colophon__mark .logo-name { height: clamp(22px, 2vw, 30px); }
.colophon__fine { font-size: 15.4px; color: color-mix(in srgb, #FBFAF6 72%, transparent); }
body { padding-bottom: 0; }
.colophon { margin-top: 0; }

/* Quiz: the answer row sits at the same height on every question.
   Questions run wide (two lines at most on desktop) and the question block reserves that height. */
.quiz__q { max-width: 46ch; min-height: calc(2 * 1.15em); margin-bottom: 28px; }
@media (max-width: 1080px) { .quiz__q { min-height: calc(3 * 1.15em); } }
@media (max-width: 760px) { .quiz__q { min-height: calc(4 * 1.15em); } }
.quiz__ends { min-height: 1.5em; }

/* Quiz arrows: circles straddling the left and right edges of the quiz box */
.quiz { position: relative; }
.quiz__arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out), opacity var(--t-state) var(--ease-out); }
.quiz__arrow--prev { left: -24px; }
.quiz__arrow--next { right: -24px; }
.quiz__arrow:not(:disabled):hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz__arrow:disabled { opacity: .35; cursor: default; }
.quiz__arrow:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.quiz__stage .quiz__nav:empty { display: none; }
@media (max-width: 760px) {
  /* no room in the gutter on a phone: the arrows sit in the box's bottom corners */
  .quiz { padding-bottom: 84px; }
  .quiz__arrow { top: auto; bottom: 20px; margin-top: 0; }
  .quiz__arrow--prev { left: 20px; }
  .quiz__arrow--next { right: 20px; }
}

/* "In Their Own Words": each quote wall sits on its own full-bleed soft-tan band */
#hopes-words, #fears-words { background: var(--band-tan); box-shadow: 0 0 0 100vmax var(--band-tan); clip-path: inset(0 -100vmax); padding-block: clamp(56px, 7vw, 104px); }
#hopes-words { margin-top: clamp(72px, 9vw, 128px); }
#fears-words { margin-top: clamp(24px, 3vw, 40px); }
#hopes-words .wall__item, #fears-words .wall__item { border-top-color: var(--line-2); }
#part-3 { padding-bottom: 0; }
#part-3 + #part-4, #part-3 ~ #part-4 { margin-top: 0; }

/* Fig. 2 (scrolly map) and Fig. 4 (heatmap) sit on the same soft-tan band.
   --paper is re-pointed inside the band so chart halos, label backs and the phone sticky header match it. */
.scrolly[data-scrolly="map"], #fig-4 { --paper: var(--band-tan); background: var(--band-tan); }
.scrolly[data-scrolly="map"] { box-shadow: 0 0 0 100vmax var(--band-tan); clip-path: inset(0 -100vmax); padding-top: clamp(48px, 6vw, 88px); }
#fig-4 { padding-block: clamp(56px, 7vw, 104px); }
/* The quiz band ends Part 2; no extra paper strip before the Part 3 opener */
#part-2 { padding-bottom: 0; }
/* Fig. 2 and Fig. 4 bands: the Part 2 opener's tone (--paper-2), lighter than the quote bands */
.scrolly[data-scrolly="map"], #fig-4 { --paper: var(--paper-2); background: var(--paper-2); }
.scrolly[data-scrolly="map"] { box-shadow: 0 0 0 100vmax var(--paper-2); }
/* Hopes wall on the Part 2 opener's tone; fears wall back on the page colour, butted together with no gap */
#hopes-words { background: var(--paper-2); box-shadow: 0 0 0 100vmax var(--paper-2); }
#fears-words { background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); margin-top: 0; }
/* Quiz arrows sit below the white box, aligned to its left and right edges */
.quiz { margin-bottom: 72px; }
.quiz__arrow, .quiz__arrow--prev, .quiz__arrow--next { top: calc(100% + 16px); bottom: auto; margin-top: 0; }
.quiz__arrow--prev { left: 0; right: auto; }
.quiz__arrow--next { right: 0; left: auto; }
@media (max-width: 760px) { .quiz { padding-bottom: clamp(24px, 3.4vw, 52px); } }
/* Fig. 2: breathing room in the band below the sticky chart and its note */
.scrolly[data-scrolly="map"] { padding-bottom: clamp(48px, 6vw, 96px); }
.figure--sticky .chart-slot { min-height: 420px; }
/* First figure after a part opener: the opener's own bottom margin is the gap (no doubled space) */
.panel + .grid > .figure:first-child, .panel + .grid > .figure--half:nth-child(-n+2) { margin-top: 0; }
.panel { margin-bottom: clamp(40px, 5vw, 72px); }

/* ==========================================================================
   One vertical rhythm between blocks: every gap between a part opener, a band
   (tan / mint) and a figure is the same --gap, and bands carry it as padding.
   ========================================================================== */
:root { --gap: clamp(48px, 5.5vw, 80px); }
.panel { margin-bottom: var(--gap); }
.chapter { padding-bottom: var(--gap); }
#part-2, #part-3, #part-4 { padding-bottom: 0; }            /* these parts end on a band */
.chapter > .grid + .grid,
.chapter > .grid + .scrolly,
.chapter > .scrolly + .grid,
.chapter > .grid + .figure--bleed,
.chapter > .figure--bleed + .grid { margin-top: var(--gap); }
.chapter > .grid > .figure:first-child,
.chapter > .grid > .figure--half:nth-child(-n+2),
.chapter > .scrolly .figure { margin-top: 0; }
.insights { margin-top: var(--gap); }
.scrolly[data-scrolly="map"] { padding-top: var(--gap); padding-bottom: var(--gap); }
#fig-4 { padding-block: var(--gap); }
.quiz-band { margin-top: var(--gap); padding-block: var(--gap); }
.personas { margin-top: var(--gap); }
#hopes-words { margin-top: var(--gap); }
#hopes-words, #fears-words { padding-block: var(--gap); }
#fears-words { margin-top: 0; }
.practices { margin-block: var(--gap) 0; padding-block: var(--gap); }
.chapter--method { padding-top: var(--gap); border-top: 0; }
/* Quote walls: masonry, so each quote sits directly under the one above it in its column */
.wall { display: block; columns: 2; column-gap: clamp(32px, 4vw, 64px); }
.wall__item { break-inside: avoid; -webkit-column-break-inside: avoid; display: block; }
@media (max-width: 760px) { .wall { columns: 1; } }
/* Rules above figure titles (and the policy list) use the same tan hairline as the persona cards */
.figure__head { border-top-color: var(--line-2); }
.policy-list { border-top-color: var(--line-2); }
.hero__media::after { content: none; }
.figure__head { margin-bottom: 38px; }

/* Part openers: a ghosted church photograph (7%), toned to the panel colour (grayscale x multiply = duotone),
   drifting ~10% of its height as the panel crosses the viewport (main.js; off for reduced motion) */
.panel { position: relative; overflow: hidden; isolation: isolate; }
.panel > .grid { position: relative; z-index: 1; }
.panel__ghost { position: absolute; left: 0; right: 0; top: -6%; bottom: -6%; z-index: 0; pointer-events: none;
  background-size: cover; background-repeat: no-repeat; filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply; opacity: .07; will-change: transform; transform: translate3d(0, 0, 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel__ghost { mix-blend-mode: screen; } }
:root[data-theme="dark"] .panel__ghost { mix-blend-mode: screen; }
@media print { .panel__ghost { display: none; } }
/* Hero photograph: same duotone treatment, stronger, multiplied into the teal so the white type stays legible */
.hero__ghost, :root[data-theme="dark"] .hero__ghost { opacity: .07; mix-blend-mode: screen; filter: grayscale(1) contrast(1.05) brightness(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__ghost { mix-blend-mode: screen; } }
/* Headline scale: Executive Summary and the part titles come down 15%; the hero title takes the size the part titles had */
#summary-title { font-size: clamp(47.6px, 6.8vw, 125.8px); }
.panel__title { font-size: clamp(37.4px, calc(4.25vw + 10.2px), 81.6px); }
#part-1-title, #part-2-title { font-size: clamp(54.4px, 7.65vw, 142.8px); }
.display--sm { font-size: clamp(34px, calc(3.4vw + 6.8px), 61.2px); }
.masthead--hero .masthead__line:not(.masthead__line--quiet) { font-size: clamp(64px, 9vw, 168px); }
/* All part titles share one size */
#part-1-title, #part-2-title { font-size: clamp(37.4px, calc(4.25vw + 10.2px), 81.6px); }

/* Hero: full TGC name mark above the title; report name as the quiet second line */
.hero__logo.logo-name { width: auto; height: clamp(20px, 1.8vw, 28px); margin-bottom: 0; }
.masthead--hero .masthead__line--quiet { max-width: none; margin-top: .4em; font-size: clamp(24px, 2.6vw, 42px); color: #FBFAF6; }
.hero__logo.logo-name { height: clamp(27.6px, 2.53vw, 39px); margin-bottom: -12px; }

/* Part 4: numbered discussion questions */
.prose h3:has(+ .questions) { max-width: 36ch; }
.questions { list-style: none; counter-reset: q; margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0; max-width: 64ch; border-top: 1px solid var(--line-2); }
.questions li { counter-increment: q; display: grid; grid-template-columns: 2.6em 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, .4vw + 15px, 21px); line-height: 1.4; text-wrap: pretty; }
.questions li::before { content: counter(q); font-family: var(--serif); font-size: 1.15em; color: var(--teal); font-variant-numeric: tabular-nums; }
#discussion-questions { margin-bottom: clamp(56px, 7vw, 104px); }
