/* ==========================================================================
   Quantium Insights LLC - design system, edition 3 (October 2026)

   The printed annual: a masthead, a strict column line at 42% of the page,
   text pages alternating with whole fields of colour. Navy and teal come from
   the logo; saffron, coral and sky are the data colours used by the maps.
   One family (Schibsted Grotesk), square corners, no rules, no shadows at rest.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand, from the logo */
  --navy: #004A7C;
  --navy-deep: #04365A;
  --night: #021F36;
  --teal: #00BFA6;
  --teal-ink: #00776A;
  --teal-deep: #00594F;

  /* Data colours */
  --saffron: #F4B63F;
  --coral: #F0605D;
  --sky: #6CC3F0;
  --pale: #C7D6E2;

  /* Surfaces */
  --paper: #FFFFFF;
  --ground: #F2F6F8;
  --ground-2: #E4EDF2;

  /* Ink */
  --ink: #0A2238;
  --ink-soft: #3D5367;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, .76);

  /* Type: five steps */
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.15rem + 3.4vw, 4.375rem);
  --step-display: clamp(3.5rem, 1.4rem + 6.6vw, 8.5rem);

  /* Frame */
  --m: clamp(16px, 3vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --max: 1520px;
  --section: clamp(96px, 11vw, 200px);
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums proportional-nums;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
html { scrollbar-color: var(--navy) var(--ground); }

.skip-link {
  position: absolute; left: var(--m); top: -80px; z-index: 300;
  background: var(--teal); color: var(--night); padding: 14px 20px;
  font-weight: 600; text-decoration: none;
  transition: top var(--t-ui) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Type ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}
h1, .h-head { font-size: var(--step-head); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.12; font-weight: 600; }
h4 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }
.light { font-weight: 400; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.02em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.soft { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums lining-nums; }
strong { font-weight: 600; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:not(.btn), .link {
  color: var(--navy);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.prose a:not(.btn):hover, .link:hover { color: var(--teal-ink); text-decoration-color: currentColor; }

/* Arrow link: a text action with a short arrow that travels on hover */
.go {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; text-decoration: none; color: inherit;
}
.go svg { width: 1em; height: 1em; transition: transform var(--t-ui) var(--ease-out); }
.go:hover svg, .go:focus-visible svg { transform: translateX(4px); }
.go span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: transparent; transition: text-decoration-color var(--t-ui) ease; }
.go:hover span, .go:focus-visible span { text-decoration-color: currentColor; }

/* --- Frame --------------------------------------------------------------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 7vw, 120px); }
.field-night { background: var(--night); color: var(--on-dark); }
.field-navy { background: var(--navy); color: var(--on-dark); }
.field-deep { background: var(--navy-deep); color: var(--on-dark); }
.field-teal { background: var(--teal); color: var(--night); }
.field-tealdeep { background: var(--teal-deep); color: var(--on-dark); }
.field-saffron { background: var(--saffron); color: var(--night); }
.field-coral { background: var(--coral); color: var(--night); }
.field-sky { background: var(--sky); color: var(--night); }
.field-sky .soft { color: #0E3550; }
.field-ground { background: var(--ground); }
:is(.field-coral) .soft { color: #2A1A14; }
.mt { margin-top: 24px; }
.chapter__fig .plate--wide { aspect-ratio: auto; }

:is(.field-night, .field-navy, .field-deep, .field-tealdeep) .soft { color: var(--on-dark-soft); }
:is(.field-night, .field-navy, .field-deep, .field-tealdeep) .prose a { color: var(--teal); }
:is(.field-teal, .field-saffron) .soft { color: #123A4F; }

/* The column line: headings and body hang from 42% of the frame */
.axis { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); column-gap: var(--gap); }
.axis > .axis__side { grid-column: 1; }
.axis > .axis__main { grid-column: 2; }
.axis__side .small { max-width: 34ch; }
.measure { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.cols-2 { columns: 2 34ch; column-gap: calc(var(--gap) * 1.5); }
.cols-2 > * { break-inside: avoid; }
.cols-2 > * + * { margin-top: 1em; }

@media (max-width: 900px) {
  .axis { grid-template-columns: 1fr; }
  .axis > .axis__main { grid-column: 1; margin-top: 28px; }
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink);
  transition: background-color 300ms ease, color 300ms ease;
}
.site-header[data-theme="dark"] { background: var(--night); color: var(--on-dark); }
.site-header__in {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--m);
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: 44px; height: 33px; background: currentColor; -webkit-mask: url(../img/logo-mark-knockout.png) center / contain no-repeat; mask: url(../img/logo-mark-knockout.png) center / contain no-repeat; color: var(--navy); transition: color 300ms ease; }
.site-header[data-theme="dark"] .brand__mark { color: var(--teal); }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.04em; line-height: 1; }
.brand__name span { display: block; font-weight: 400; font-size: var(--step-small); letter-spacing: 0; margin-top: 3px; opacity: .8; }

.nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 22px); }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 10px 4px; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-ui) var(--ease-out);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--teal); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-weight: 600; align-items: center; gap: 10px;
}
.nav-toggle i { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: background var(--t-ui); }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.nav-toggle i::before { top: -7px; } .nav-toggle i::after { top: 7px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); color: var(--on-dark); padding: 12px var(--m) 28px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; padding: 12px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"]:not(.btn) { color: var(--teal); }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  background: var(--teal); color: var(--night);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
.btn:hover { background: #34D3BC; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--ink { background: var(--night); color: var(--on-dark); }
.btn--ink:hover { background: var(--navy); }
.btn--light { background: var(--paper); color: var(--night); }
.btn--light:hover { background: var(--ground-2); }
.btn--outline { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn--outline:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Home hero: the live map -------------------------------------------- */
.hero { position: relative; overflow: clip; }
.hero__in { min-height: calc(100svh - var(--header-h)); align-items: center; padding-block: clamp(32px, 4vw, 64px) clamp(32px, 4vw, 56px); row-gap: 40px; }
.hero__text { grid-column: 1 / span 6; grid-row: 1; align-self: end; position: relative; z-index: 2; }
.hero__text h1 { font-size: clamp(1.85rem, 0.8rem + 4vw, 4.6rem); line-height: 0.94; }
.hero__text h1 .l1 { white-space: nowrap; }
.hero__text .lead { margin-top: 28px; max-width: 34ch; color: var(--on-dark-soft); font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); }
.hero__text .actions { margin-top: 36px; }
.hero__stage { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: center; position: relative; }
.hero__cards { grid-column: 1 / span 5; grid-row: 2; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; position: relative; z-index: 2; }

/* Rotating word: the static sentence stays in the DOM for assistive tech */
.rotor { display: inline-block; vertical-align: top; overflow: clip; overflow-clip-margin: .12em; color: var(--teal); }
.rotor > span { display: block; white-space: nowrap; transition: transform 650ms var(--ease-expo), opacity 650ms var(--ease-expo); }
.rotor > span.out { transform: translateY(-38%); opacity: 0; transition: transform 400ms var(--ease-in-out), opacity 300ms ease; }
.rotor > span.pre { transform: translateY(38%); opacity: 0; transition: none; }

/* Card: a picture with a paper bar fused under it */
.card-pic { display: block; text-decoration: none; color: var(--night); background: var(--paper); }
.card-pic__img { aspect-ratio: 3 / 2; overflow: clip; background: var(--navy-deep); }
.card-pic__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-open) var(--ease-expo); }
.card-pic:hover .card-pic__img img { transform: scale(1.06); }
.card-pic__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.card-pic__bar svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
.card-pic:hover .card-pic__bar svg { transform: translateX(4px); }

@media (max-width: 1020px) {
  .hero__text, .hero__stage, .hero__cards { grid-column: 1 / -1; grid-row: auto; }
  .hero__in { min-height: 0; }
  .hero__cards { max-width: none; }
}

/* --- The map component (an interface fragment: data-ui) ----------------- */
.qimap { position: relative; }
.qimap__canvas { position: relative; aspect-ratio: 1000 / 812; }
.qimap__canvas > svg, .qimap__canvas > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.qimap path.lga { stroke: var(--night); stroke-width: .55; transition: fill 1100ms var(--ease-soft), opacity 600ms var(--ease-out); cursor: pointer; }
.qimap path.lga:hover, .qimap path.lga.is-on { stroke: var(--paper); stroke-width: 1.6; }
.qimap path.state { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.1; pointer-events: none; }
.qimap.is-light path.lga { stroke: var(--paper); }
.qimap.is-light path.state { stroke: rgba(4, 54, 90, .55); }
.qimap .pin circle { fill: var(--paper); }
.qimap .pin text { fill: var(--paper); font: 600 19px var(--font); letter-spacing: -0.01em; }
.qimap .pin path { stroke: var(--paper); fill: none; }
.qimap.is-light .pin circle, .qimap.is-light .pin text { fill: var(--night); }
.qimap.is-light .pin path { stroke: var(--night); }
.qimap__canvas > img { object-fit: contain; }
.js .qimap path.lga { opacity: 0; }
.js .qimap.is-drawn path.lga { opacity: 1; }

.qimap__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .1); padding: 4px; }
.is-light .seg { background: var(--ground-2); }
.seg button {
  border: 0; background: transparent; padding: 10px 14px; min-height: 40px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: inherit; transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.seg button:hover { background: rgba(255, 255, 255, .12); }
.is-light .seg button:hover { background: rgba(4, 54, 90, .08); }
.seg button[aria-pressed="true"] { background: var(--teal); color: var(--night); }
.qimap__find { position: relative; flex: 1 1 220px; max-width: 320px; }
.qimap__find input {
  width: 100%; min-height: 48px; padding: 0 14px 0 40px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, .1); color: inherit; font-size: .95rem;
}
.is-light .qimap__find input { background: var(--ground-2); }
.qimap__find input::placeholder { color: inherit; opacity: .8; }
.field-night .qimap__find input { color: var(--on-dark); }
.qimap__find svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.qimap__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: var(--step-small); }
.qimap__legend .ramp { display: inline-flex; }
.qimap__legend .ramp i { width: 26px; height: 10px; display: block; }
.qimap__legend .key { display: inline-flex; align-items: center; gap: 6px; }
.qimap__legend .key i { width: 12px; height: 12px; display: block; }
.qimap__note { margin-top: 8px; font-size: var(--step-small); opacity: .8; }

.qimap__readout {
  position: absolute; top: 0; right: 0; width: min(300px, 46%); z-index: 3;
  background: var(--paper); color: var(--ink); padding: 18px 18px 16px;
  box-shadow: 0 18px 40px -12px rgba(2, 31, 54, .45); /* taste-skill-ignore: a floating readout over the map */
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.qimap__readout.is-on { opacity: 1; transform: none; pointer-events: auto; }
.qimap__readout h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.035em; }
.qimap__readout .where { font-size: var(--step-small); color: var(--ink-soft); margin-top: 2px; }
.qimap__readout dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 14px; font-size: .92rem; }
.qimap__readout dt { color: var(--ink-soft); }
.qimap__readout dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qimap__readout .tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--step-small); font-weight: 600; }
.qimap__readout .tag i { width: 12px; height: 12px; display: block; }
.qimap__readout .x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; }
.qimap__readout .x:hover { color: var(--ink); }
@media (max-width: 640px) {
  .qimap__readout { position: relative; width: 100%; margin-top: 14px; display: none; }
  .qimap__readout.is-on { display: block; }
}

/* --- Intro: title, note, facts row -------------------------------------- */
.intro__top { align-items: end; }
.intro__top h2 { grid-column: 1 / span 6; font-weight: 400; letter-spacing: -0.04em; }
.intro__top p { grid-column: 9 / span 4; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(64px, 8vw, 120px); }
.fact__n { font-size: var(--step-head); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.fact__t { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); max-width: 26ch; }
.intro__pic { margin-top: clamp(56px, 7vw, 100px); }
.intro__pic figure { grid-column: 6 / -1; }
.intro__pic .axis-note { grid-column: 1 / span 4; align-self: start; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.intro__pic .axis-note + p { grid-column: 1 / span 4; }
@media (max-width: 900px) {
  .intro__top h2, .intro__top p { grid-column: 1 / -1; }
  .intro__top p { margin-top: 20px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .intro__pic figure, .intro__pic .axis-note { grid-column: 1 / -1; }
  .intro__pic .axis-note { margin-top: 16px; }
}

/* Figures and photographs */
.photo { position: relative; overflow: clip; background: var(--ground-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.drift img { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .drift img { animation: drift 24s var(--ease-soft) infinite alternate; }
  @keyframes drift { from { transform: scale(1.08) translate(-1.2%, .6%); } to { transform: scale(1.14) translate(1.2%, -.8%); } }
}
figcaption, .caption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); max-width: 70ch; }
:is(.field-night, .field-navy, .field-deep, .field-tealdeep) :is(figcaption, .caption) { color: var(--on-dark-soft); }

/* --- Chapters: one method per screen, each on its own field ------------- */
.chapter { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: var(--gap); padding: clamp(28px, 3.4vw, 48px) var(--m); overflow: clip; }
.chapter__title { grid-column: 1 / span 4; grid-row: 1; }
.chapter__title h2, .chapter__title h3 { font-size: clamp(1.6rem, 1rem + 1.3vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
.chapter__title .k { display: block; margin-bottom: 14px; font-size: var(--step-small); opacity: .85; font-weight: 600; letter-spacing: 0; }
.chapter__fig { grid-column: 5 / span 4; grid-row: 1 / span 3; align-self: center; justify-self: center; width: 100%; max-width: 520px; padding-block: 72px; }
.chapter__fig .plate { aspect-ratio: 3 / 4; display: grid; place-items: center; position: relative; }
.chapter__fig .plate > img, .chapter__fig .plate > svg { width: 100%; height: 100%; object-fit: contain; }
.chapter__say { grid-column: 1 / span 4; grid-row: 3; align-self: end; max-width: 36ch; }
.chapter__say p + p { margin-top: .8em; }
.chapter__big { grid-column: 9 / -1; grid-row: 1; justify-self: end; text-align: right; }
.chapter__big .n { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.055em; line-height: .86; }
.chapter__big .t { margin-top: 10px; font-size: var(--step-small); max-width: 30ch; margin-left: auto; }
.chapter__link { grid-column: 9 / -1; grid-row: 3; align-self: end; justify-self: end; text-align: right; }
.chapter__link .facts-mini { display: grid; gap: 8px; margin-bottom: 22px; font-size: .95rem; }
.chapter__link .facts-mini b { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
@media (prefers-reduced-motion: no-preference) {
  .js .chapter { clip-path: inset(20px round 0); transition: clip-path 900ms var(--ease-expo); }
  .js .chapter.in { clip-path: inset(0 round 0); }
  .js .chapter__fig .plate { transform: scale(.92); transition: transform 900ms var(--ease-expo); }
  .js .chapter.in .chapter__fig .plate { transform: none; }
}
@media (max-width: 900px) {
  .chapter { min-height: 0; grid-template-rows: none; row-gap: 24px; padding-block: 72px; }
  .chapter > * { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: start !important; text-align: left !important; }
  .chapter__fig { padding-block: 8px; max-width: none; }
  .chapter__fig .plate { aspect-ratio: auto; }
  .chapter__say { max-width: 60ch; }
  .chapter__big .t { max-width: 46ch; }
  .chapter__big .t { margin-left: 0; }
}

/* Charts drawn in SVG for the chapters */
.chart text { font-family: var(--font); }
.chart .axis-l { stroke: currentColor; stroke-opacity: .3; }
.chart .tick { fill: currentColor; fill-opacity: .78; font-size: 15px; }
.chart .lab { fill: currentColor; font-size: 16px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .js .chart .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1600ms var(--ease-expo) 300ms; }
  .js .in .chart .draw { stroke-dashoffset: 0; }
  .js .chart .pop { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: calc(700ms + var(--i, 0) * 90ms); }
  .js .in .chart .pop { opacity: 1; transform: none; }
}

/* --- Ledger: figures aligned on the decimal ------------------------------ */
.ledger { align-items: center; }
.ledger__head { grid-column: 1 / span 5; }
.ledger__head h2 span { display: block; }
.ledger__head h2 span:first-child { color: var(--ink-soft); }
.ledger__head p { margin-top: 28px; max-width: 40ch; }
.ledger__rows { grid-column: 7 / -1; border-collapse: collapse; width: 100%; }
.ledger__rows td, .ledger__rows th { padding: 14px 0; vertical-align: middle; }
.lrow__cap { text-align: left; font-weight: 400; }
.lrow__int { width: 26%; }
.lrow__dec { width: 30%; }
.lrow__int, .lrow__dec { font-size: clamp(3.25rem, 1.4rem + 5vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.lrow__int { text-align: right; }
.lrow__dec { text-align: left; }
.lrow__cap { font-size: 1rem; line-height: 1.35; padding-left: 18px; max-width: 30ch; }
.lrow__cap b { font-weight: 600; }
@media (max-width: 900px) {
  .ledger__head, .ledger__rows { grid-column: 1 / -1; }
  .ledger__rows { margin-top: 96px; }
  .lrow { display: grid; grid-template-columns: 50% 50%; padding-block: 12px; }
  .ledger__rows td, .ledger__rows th { padding: 0; }
  .lrow__int, .lrow__dec { font-size: 15vw; width: auto; }
  .lrow__cap { grid-column: 1 / -1; padding-left: 0; margin-top: 6px; font-size: 15px; }
}

/* --- Pipeline: 774 squares, many into one -------------------------------- */
.pipe__head { grid-column: 1 / span 5; }
.pipe__head p { margin-top: 24px; max-width: 40ch; }
.pipe__fig { grid-column: 1 / -1; margin-top: 56px; }
.pipe__svg { width: 100%; height: auto; aspect-ratio: 4.5 / 1; }
.pipe__svg rect { transition: fill 700ms ease, opacity 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.pipe__svg .lab { font: 600 15px var(--font); fill: var(--ink-soft); }
.pipe__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 36px; }
.pipe__cols h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.pipe__cols p { margin-top: 8px; max-width: 36ch; }
@media (max-width: 900px) {
  .pipe__head { grid-column: 1 / -1; }
  .pipe__svg { aspect-ratio: 2.2 / 1; }
  .pipe__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Work blocks: oversized visual, small cluster ------------------------ */
.works { overflow: clip; }
.works__head { margin-bottom: clamp(48px, 6vw, 96px); }
.wblock { align-items: end; }
.wblock + .wblock { margin-top: clamp(96px, 10vw, 160px); }
.wblock__vis { grid-column: 1 / span 7; margin-left: calc(var(--m) * -1); position: relative; overflow: clip; }
.wblock__vis:not([class*="field-"]) { background: var(--ground); }
.wblock__vis.tall { height: 78svh; } .wblock__vis.mid { height: 60svh; } .wblock__vis.xl { height: 86svh; }
.wblock__vis > img { width: 100%; height: 100%; object-fit: cover; }
.wblock__vis.map { background: var(--ground); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: clamp(16px, 2vw, 28px); }
.wblock__vis.map > img { min-height: 0; object-fit: contain; }
.wblock__vis.map .qimap__legend { margin-top: 12px; justify-content: center; }
.wblock__vis.type { display: grid; align-content: end; padding: clamp(24px, 3vw, 48px); }
.wblock__vis.type .n { font-size: clamp(5rem, 2rem + 12vw, 15rem); font-weight: 800; letter-spacing: -0.06em; line-height: .82; }
.wblock__vis.type .t { margin-top: 18px; font-weight: 600; max-width: 30ch; }
.wblock__side { grid-column: 9 / -1; }
.wblock__side .photo { aspect-ratio: 16 / 10; border-radius: 6px; }
.wblock__row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.wblock__row h3 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.wblock__row p { font-size: .97rem; }
.wblock__row .go { margin-top: 14px; }
@media (max-width: 1100px) { .wblock__row { grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  .wblock--signal .wblock__side { grid-column: 1 / span 4; }
  .wblock--signal .wblock__vis { grid-column: 6 / -1; margin-left: 0; margin-right: calc(var(--m) * -1); }
}
@media (max-width: 900px) {
  .wblock__vis, .wblock__side { grid-column: 1 / -1; }
  .wblock__vis.tall, .wblock__vis.mid, .wblock__vis.xl { height: auto; aspect-ratio: 4 / 5; }
  .wblock__vis.map { aspect-ratio: 1 / 1; }
  .wblock__side { margin-top: 24px; }
  .wblock__side .photo { width: 70%; margin-left: auto; margin-top: 24px; order: 2; }
  .wblock__side { display: flex; flex-direction: column; }
  .wblock__row { order: 1; margin-top: 0; }
}

/* --- Proof: recognition as a table --------------------------------------- */
.proof__head h2 { font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem); }
.proof__head h2 span { display: block; padding-left: calc((100% - 11 * var(--gap)) / 12 * 2 + 2 * var(--gap)); }
.ptable { width: 100%; border-collapse: collapse; margin-top: 72px; font-size: 1.02rem; }
.ptable td, .ptable th { padding: 15px 14px; vertical-align: top; text-align: left; }
.ptable thead th { font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); padding-bottom: 10px; }
.ptable tbody tr:nth-child(odd) { background: var(--ground); }
.ptable .y { width: 9%; font-weight: 800; font-variant-numeric: tabular-nums; }
.ptable .t { width: 44%; font-weight: 600; }
.ptable .v { width: 27%; color: var(--ink-soft); }
.ptable .a { width: 20%; text-align: right; color: var(--ink-soft); }
.ptable a { text-decoration: none; }
.ptable a:hover { text-decoration: underline; }
.ptable tr.gap td { padding: 6px; background: transparent; }
@media (max-width: 760px) {
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: 100% !important; }
  .ptable thead { display: none; }
  .ptable tr { padding: 14px 12px; }
  .ptable td { padding: 0; text-align: left !important; }
  .ptable .y { font-size: 1.35rem; margin-bottom: 4px; }
  .ptable .v, .ptable .a { display: inline; font-size: .95rem; }
  .ptable .v::after { content: " · "; }
}

/* --- About: portrait as drop cap ----------------------------------------- */
.dropcap { align-items: start; }
.dropcap__facts { grid-column: 1 / span 2; display: grid; gap: 18px; font-size: var(--step-small); }
.dropcap__facts b { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
.dropcap__text { grid-column: 3 / -1; font-size: clamp(1.375rem, 1rem + 1.3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.03em; }
.dropcap__text p + p { margin-top: 1.2em; color: var(--ink-soft); }
.dropcap__mark { float: left; width: 3.6em; height: 3.6em; margin: .12em .5em 0 0; background: var(--teal); display: grid; place-items: center; }
.dropcap__mark span { width: 72%; height: 54%; background: var(--night); -webkit-mask: url(../img/logo-mark-knockout.png) center / contain no-repeat; mask: url(../img/logo-mark-knockout.png) center / contain no-repeat; }
.dropcap__text .who { color: var(--ink); font-weight: 600; }
.dropcap__text .rest { color: var(--ink-soft); }
.dropcap__text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.dropcap__text a:hover { color: var(--teal-ink); }
@media (max-width: 900px) {
  .dropcap__text { grid-column: 1 / -1; font-size: 1.375rem; line-height: 1.25; }
  .dropcap__mark { width: 4.6em; height: 4.6em; }
  .dropcap__facts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr); margin-top: 36px; font-size: 13px; }
}

/* --- CTA: three photographs, then a field -------------------------------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .photo { height: 40svh; min-height: 260px; }
.band { padding-block: clamp(56px, 7vw, 104px); min-height: 44svh; display: flex; align-items: center; }
.band .g12 { width: 100%; align-items: end; }
.band__say { grid-column: 1 / span 7; }
.band__big { font-size: clamp(1.625rem, 1rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; max-width: 26ch; }
.band__big a { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover); }
.band__big a:hover { color: var(--paper); text-decoration-color: var(--paper); }
.band__say p + p { margin-top: 28px; max-width: 46ch; }
.band__aside { grid-column: 9 / -1; justify-self: end; text-align: right; font-weight: 600; }
.band__aside a { display: block; overflow-wrap: anywhere; font-size: var(--step-lead); letter-spacing: -0.02em; text-decoration: none; }
.band__aside a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .photo:first-child { grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 3; }
  .strip .photo:not(:first-child) { height: auto; aspect-ratio: 1 / 1; min-height: 0; }
  .band__say, .band__aside { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .band__aside { margin-top: 32px; }
}

/* --- Interior masthead --------------------------------------------------- */
.mast { padding-bottom: clamp(56px, 6vw, 96px); }
.mast__band { height: clamp(220px, 40svh, 460px); position: relative; overflow: clip; display: grid; grid-template-columns: repeat(4, 1fr); }
.mast__band > * { min-width: 0; }
.mast__band .photo { height: 100%; }
.mast__band .tile { height: 100%; }
.mast__title { margin-top: clamp(40px, 5vw, 72px); }
.mast__title h1 { font-size: var(--step-head); max-width: 16ch; }
.mast__title .lead { margin-top: 24px; max-width: 40ch; }
.mast__crumb { font-size: var(--step-small); font-weight: 600; margin-bottom: 18px; }
.mast__crumb a { text-decoration: none; }
.mast__crumb a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .mast__band { grid-template-columns: 1fr 1fr; height: auto; }
  .mast__band > * { aspect-ratio: 1 / 1; height: auto; }
  .mast__band > :nth-child(n+3) { display: none; }
}

/* --- Generic content parts ----------------------------------------------- */
.nf__text { grid-column: 1 / span 6; }
.nf__pic { grid-column: 8 / -1; }
@media (max-width: 900px) {
  .nf__text, .nf__pic { grid-column: 1 / -1; }
  .nf__pic { margin-top: 32px; }
  .wblock--signal .wblock__vis.mid { aspect-ratio: 16 / 10; margin-top: 32px; }
}
.stack-lg > * + * { margin-top: clamp(72px, 8vw, 128px); }
.lister { display: grid; gap: 0; padding: 0; }
.lister > li { list-style: none; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: var(--gap); padding: 26px clamp(14px, 1.6vw, 24px); }
.lister > li:nth-child(odd) { background: var(--ground); }
.lister h3 { font-size: clamp(1.3rem, 1rem + .9vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; }
.lister p + p { margin-top: .7em; }
.lister .meta { font-size: var(--step-small); color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .lister > li { grid-template-columns: 1fr; gap: 10px; } }
.field-ground .lister > li:nth-child(odd) { background: var(--paper); }

.panel { background: var(--ground); padding: clamp(22px, 2.6vw, 36px); }
.field-ground .panel { background: var(--paper); }
.panel h2, .panel h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.panel :is(h2, h3) + * { margin-top: 12px; }
.panel ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.panel a, .panel p { overflow-wrap: anywhere; }
.panel > * + :is(h2, h3) { margin-top: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: var(--step-small); font-weight: 600; padding: 6px 10px; background: var(--ground-2); color: var(--ink); }
.tag--live { background: var(--teal); color: var(--night); }
.tag--warm { background: var(--saffron); color: var(--night); }
:is(.field-night, .field-navy, .field-deep) .tag { background: rgba(255,255,255,.12); color: var(--on-dark); }

.statrow { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap); }
.stat__n { font-size: clamp(2.25rem, 1.2rem + 2.8vw, 4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat__t { margin-top: 10px; font-size: var(--step-small); max-width: 28ch; }
@media (max-width: 900px) { .statrow { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* Tables (data) */
.tscroll { overflow-x: auto; margin-top: 28px; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.data caption { text-align: left; font-size: var(--step-small); color: var(--ink-soft); padding-bottom: 12px; caption-side: top; }
table.data th, table.data td { padding: 12px 14px; text-align: left; vertical-align: top; }
table.data thead th { font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
table.data tbody tr:nth-child(even) { background: var(--ground); }
.field-ground table.data tbody tr:nth-child(even) { background: var(--paper); }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }

/* Figure frame for charts on text pages */
.figure { margin-top: 36px; }
.figure__title { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }
.figure__sub { font-size: var(--step-small); color: var(--ink-soft); margin-top: 4px; max-width: 66ch; }
.figure details { margin-top: 14px; }
.figure summary { cursor: pointer; font-weight: 600; font-size: var(--step-small); color: var(--navy); }
.figure summary:hover { color: var(--teal-ink); }

/* Bar chart (CSS, data-value against data-max) */
.bars { display: grid; gap: 12px; margin-top: 22px; }
.bars__row { display: grid; grid-template-columns: minmax(130px, 220px) 1fr auto; gap: 14px; align-items: center; }
.bars__label { font-size: .93rem; line-height: 1.25; }
.bars__label span { display: block; font-size: var(--step-small); color: var(--ink-soft); }
.bars__track { height: 26px; background: var(--ground-2); position: relative; }
.bars__fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, var(--navy)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .js .bars__fill { transform: scaleX(0); transition: transform 1200ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .in .bars__fill { transform: none; }
}
.bars__value { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
@media (max-width: 620px) { .bars__row { grid-template-columns: 1fr auto; } .bars__track { grid-column: 1 / -1; } }

/* Callout as a tone step, not a stripe */
.note { background: var(--ground); padding: 22px 24px; }
.note h3 { margin-bottom: 6px; font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.field-ground .note { background: var(--paper); }

/* Sticky split stage (case study map story) */
.story { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); column-gap: clamp(24px, 4vw, 72px); }
.story__stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; align-content: center; padding-block: 24px; }
.story__steps { padding-block: 20svh 30svh; }
.story__step { min-height: 72svh; display: grid; align-content: center; }
.story__step > div { max-width: 44ch; opacity: .35; transition: opacity 500ms var(--ease-out); }
.story__step.is-active > div { opacity: 1; }
.story__step h3 { font-size: clamp(1.6rem, 1rem + 1.7vw, 2.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.story__step p { margin-top: 16px; }
.story__step .stat__n { margin-top: 22px; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__stage { top: var(--header-h); height: auto; z-index: 2; background: var(--night); padding-block: 10px; }
  .story__steps { padding-block: 8svh; }
  .story__step { min-height: 60svh; }
  .story__step > div { opacity: 1; }
}

/* Forms */
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-weight: 600; font-size: .97rem; }
.field .hint { font-size: var(--step-small); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 0;
  background: var(--ground); color: var(--ink); font-size: 1rem;
  border-bottom: 2px solid var(--ink-soft); transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.field input:hover, .field select:hover, .field textarea:hover { background: var(--ground-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teal-ink); background: var(--ground-2); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #C2410C; }
.field textarea { min-height: 170px; resize: vertical; }
.form-status { padding: 20px 22px; background: var(--teal); color: var(--night); font-weight: 600; margin-bottom: 24px; }
.form-status.is-error { background: var(--saffron); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* --- Footer: name first -------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-dark); overflow: clip; padding-top: clamp(56px, 7vw, 120px); }
.site-footer__name { font-size: clamp(2.9rem, 0.4rem + 10.6vw, 11.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: .82; white-space: nowrap; }
.site-footer__name span { display: block; color: var(--teal); }
.fig-legend { width: 100%; margin-top: 18px; padding-inline: var(--m); }
.fig-legend .qimap__legend { margin-top: 0; }
.fig-legend p { margin-top: 8px; font-size: var(--step-small); opacity: .8; }
.site-footer__row { margin-top: 72px; align-items: start; }
.site-footer__places { grid-column: 1 / span 5; display: grid; gap: 6px; }
.site-footer__places a, .site-footer__places p { overflow-wrap: anywhere; font-size: clamp(1.4rem, 1rem + 1.1vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; color: var(--teal); text-decoration: none; line-height: 1.2; }
.site-footer__places p { color: var(--on-dark); }
/* the address is one word: size it to fit rather than break it */
.site-footer__places a[href^="mailto:"], .band__aside a[href^="mailto:"] { overflow-wrap: normal; white-space: nowrap; font-size: clamp(1rem, 0.55rem + 1.15vw, 1.6rem); }
.site-footer__places a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer__cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.site-footer__cols h2 { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--on-dark-soft); margin-bottom: 14px; line-height: 1.4; }
.site-footer__cols ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer__cols a { text-decoration: none; font-size: .97rem; color: var(--on-dark); }
.site-footer__cols a:hover { color: var(--teal); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; margin-top: 96px; padding-block: 28px; font-size: 1rem; color: var(--on-dark-soft); }
.site-footer__legal a { color: var(--on-dark); }
.site-footer__legal p { max-width: 60ch; }
.site-footer__credits { max-width: 72ch; }
@media (max-width: 900px) {
  .site-footer__places, .site-footer__cols { grid-column: 1 / -1; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; margin-top: 48px; }
}

/* --- Reveal: progressive enhancement ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-expo), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].in > * { opacity: 1; transform: none; }
  .js [data-reveal="photo"] > * { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-reveal="photo"].in > * { clip-path: inset(0 0 0 0); }
  .js .marquee__track { animation: marquee 48s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Marquee of commissioning partners */
.partners { padding-block: clamp(48px, 5vw, 80px); }
.partners ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 36px; }
.partners li { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.partners li:nth-child(3n+2) { color: var(--teal); }
.partners p { margin-bottom: 18px; }
.marquee { overflow: clip; padding-block: 28px; }
.marquee__track { display: flex; width: max-content; gap: 56px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 12px; height: 12px; background: var(--teal); display: block; }

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .strip, .marquee, .qimap__bar { display: none !important; }
  body { color: #000; }
  [class*="field-"] { background: #fff !important; color: #000 !important; }
  .chapter { min-height: 0; }
}

/* --- Additions for interior pages ---------------------------------------- */
.h-sub { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.mast__band .tile { min-height: 100%; }
.panel ul li b { font-weight: 600; }
.lister--dark > li:nth-child(odd) { background: rgba(255, 255, 255, .05); }
.lister--dark .meta { color: var(--on-dark-soft); }
.lister .stat__n { color: var(--navy); }
.field-saffron .tag:not([style]) { background: rgba(2, 31, 54, .1); }
.cols-2 .panel { break-inside: avoid; margin-bottom: var(--gap); }
.cols-2 > .panel + .panel { margin-top: 0; }
.field-night .cols-2 h3 { color: var(--on-dark); }
.field-night .cols-2 > div { margin-bottom: 40px; }
.chapter__big .n { white-space: nowrap; }

/* --- Fit fixes ----------------------------------------------------------- */
.axis > *, .g12 > * { min-width: 0; }
.axis__side h2 { font-size: clamp(2rem, 1.1rem + 2.5vw, 3.5rem); }
.axis__side .panel h2 { font-size: 1.15rem; }
.band__big { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem) !important; }
@media (max-width: 900px) {
  .mast__crumb { display: none; }
  .story__stage { position: relative; top: auto; }
}
.wblock__side h2 + .lead { margin-top: 10px; }

.pub-year { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.pub-title { font-size: var(--step-body); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; max-width: 64ch; }
.pub-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.lister .meta { font-size: 1rem; }
@media (max-width: 760px) { .pub-year { font-size: 1.05rem; } }
@media (max-width: 900px) {
  .partners .g12 > * { grid-column: 1 / -1 !important; }
  .partners ul { margin-top: 20px; }
}

/* Figures: rise out of a mask, true value only */
@media (prefers-reduced-motion: no-preference) {
  .roll { display: inline-block; clip-path: inset(100% -0.1em -0.15em -0.1em); transition: clip-path 900ms var(--ease-expo); }
  .roll.rolled { clip-path: inset(-0.1em -0.1em -0.15em -0.1em); }
}

/* --- Orbit: the sources and tools on one turning globe -------------------
   Without script the chips sit as a plain list; with it, site.js pins each
   one to a point on a dotted sphere drawn in the canvas. */
.orbit { overflow: clip; padding-bottom: 0; }
.orbit__in { align-items: start; }
.orbit__text { grid-column: 1 / span 4; padding-bottom: var(--section); }
.orbit__text p { margin-top: 24px; max-width: 40ch; }
.orbit__key, .orbit__chips, .flow__pairs { margin: 0; padding: 0; list-style: none; }
.orbit__key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.orbit__hint { display: none; font-size: var(--step-small); color: var(--ink-soft); }
.orbit__stage { grid-column: 5 / -1; position: relative; }
.orbit__stage canvas { display: none; }
.orbit__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: var(--section); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; background: var(--paper); border: 1px solid rgba(10, 34, 56, .12); font-size: 0.8125rem; font-weight: 500; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--teal); }
.chip--t::before { background: var(--saffron); }

.orbit.is-live .orbit__hint { display: block; margin-top: 16px; }
.orbit__stage.is-live { height: clamp(460px, 46vw, 700px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.orbit__stage.is-live.is-drag { cursor: grabbing; }
.orbit__stage.is-live canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit__stage.is-live .orbit__chips { position: absolute; inset: 0; padding: 0; display: block; pointer-events: none; }
.orbit__stage.is-live .chip { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
@media (max-width: 1020px) {
  .orbit__text { grid-column: 1 / -1; padding-bottom: 0; }
  .orbit__stage { grid-column: 1 / -1; margin-top: 40px; }
  .orbit__stage.is-live { height: clamp(360px, 92vw, 560px); }
  .orbit__stage.is-live .chip { padding: 5px 8px 5px 7px; }
}

/* --- Flow: questions drift into the model and leave as decisions --------
   The resting layout pairs each question with its answer in two columns.
   With motion allowed, they travel through the node instead. */
.flow { overflow: clip; }
.flow__head h2 { grid-column: 1 / span 6; }
.flow__head p { grid-column: 8 / span 5; align-self: end; color: var(--on-dark-soft); }
.flow__stage { position: relative; margin-top: clamp(64px, 7vw, 104px); }
.flow__lines, .flow__lab, .flow__node { display: none; }
.flow__pairs { display: grid; gap: 12px; }
.flow__pairs li { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; }
.flow__pairs li::after { content: "\2192"; grid-column: 2; grid-row: 1; text-align: center; color: var(--teal); }
.flow__pairs .q { grid-column: 1; grid-row: 1; justify-self: end; }
.flow__pairs .a { grid-column: 3; grid-row: 1; justify-self: start; }
.flow .q, .flow .a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap; }
.flow .q { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .24); color: var(--on-dark); }
.flow .a { background: var(--teal); color: var(--night); font-weight: 600; }
.flow .a::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--night); }
@media (max-width: 760px) {
  .flow__head h2, .flow__head p { grid-column: 1 / -1; }
  .flow__head p { margin-top: 20px; }
  .flow__pairs li { grid-template-columns: 1fr; row-gap: 6px; }
  .flow__pairs li::after { display: none; }
  .flow__pairs .q, .flow__pairs .a { grid-column: 1; grid-row: auto; justify-self: start; white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .flow__stage { height: clamp(420px, 36vw, 520px); }
  .flow__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .flow__lines path { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
  .flow__lab { display: block; position: absolute; top: -12px; font-size: var(--step-small); color: var(--on-dark-soft); transform: translateY(-100%); }
  .flow__lab--a { right: 0; }
  .flow__pairs { display: block; position: absolute; inset: 0; }
  .flow__pairs li { display: contents; }
  .flow__pairs li::after { display: none; }
  .flow__pairs .q, .flow__pairs .a { position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-50%, -50%); animation-duration: 12s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: calc(var(--i) * 2s - 12s); }
  .flow__pairs .q { animation-name: flow-q; }
  .flow__pairs .a { animation-name: flow-a; }
  .flow__pairs .a::after { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 200px; background: linear-gradient(to right, transparent, rgba(0, 191, 166, .55) 55%, #8FFFEF); transform-origin: right center; opacity: 0; animation: flow-trail 12s linear infinite; animation-delay: calc(var(--i) * 2s - 12s); pointer-events: none; }
  @keyframes flow-q {
    0% { left: 0%; top: var(--qy); opacity: 0; transform: translate(0, -50%) scale(1); }
    5% { left: 0.5%; top: var(--qy); opacity: 1; transform: translate(0, -50%) scale(1); }
    38% { left: 32%; top: calc(var(--qy) * .45 + 27.5%); opacity: 1; transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
    47% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
    100% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  }
  @keyframes flow-a {
    0%, 47% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
    52% { left: 60%; top: calc(var(--ay) * .5 + 25%); opacity: 1; transform: translate(-50%, -50%) scale(1); }
    62% { left: 70%; top: var(--ay); opacity: 1; transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(.5, .08, .85, .3); }
    70% { left: 100%; top: var(--ay); opacity: 1; transform: translate(-100%, -50%) scale(1); }
    72%, 100% { left: 100%; top: var(--ay); opacity: 0; transform: translate(-100%, -50%) scale(1); }
  }
  @keyframes flow-trail {
    0%, 62% { opacity: 0; transform: scaleX(0); animation-timing-function: cubic-bezier(.5, .08, .85, .3); }
    69% { opacity: .9; transform: scaleX(2); }
    72%, 100% { opacity: 0; transform: scaleX(3); }
  }
  .flow__node { display: grid; place-items: center; position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); perspective: 600px; z-index: 1; }
  .flow__node::before { content: ""; position: absolute; inset: -60%; background: radial-gradient(closest-side, rgba(0, 191, 166, .38), transparent); animation: flow-pulse 2s var(--ease-out) infinite; animation-delay: -0.24s; }
  @keyframes flow-pulse { 0% { opacity: .45; transform: scale(.85); } 18% { opacity: 1; transform: scale(1.1); } 100% { opacity: .45; transform: scale(.85); } }
  .cube { position: relative; width: 64px; height: 64px; transform-style: preserve-3d; animation: flow-spin 16s linear infinite; }
  .cube i { position: absolute; inset: 0; border: 1px solid rgba(143, 255, 239, .85); background: rgba(0, 191, 166, .12); }
  .cube i:nth-child(1) { transform: translateZ(32px); }
  .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(32px); }
  .cube i:nth-child(3) { transform: rotateY(90deg) translateZ(32px); }
  .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); }
  .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(32px); }
  .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); }
  @keyframes flow-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
  .flow__stage:hover *, .flow__stage:hover *::before, .flow__stage:hover *::after,
  .js .flow__stage:not(.is-on) *, .js .flow__stage:not(.is-on) *::before, .js .flow__stage:not(.is-on) *::after { animation-play-state: paused; }

  @media (max-width: 760px) {
    .flow__stage { height: 620px; }
    .flow__lines, .flow__lab { display: none; }
    .flow .q, .flow .a { font-size: 0.8125rem; padding: 7px 10px; white-space: nowrap; }
    .flow__pairs .q { animation-name: flow-qv; }
    .flow__pairs .a { animation-name: flow-av; }
    .flow__pairs .a::after { display: none; }
  }
  @keyframes flow-qv {
    0% { left: 50%; top: -4%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
    6% { left: 50%; top: 4%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    38% { left: 50%; top: 32%; opacity: 1; transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
    47%, 100% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  }
  @keyframes flow-av {
    0%, 47% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
    52% { left: 50%; top: 62%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    66% { left: 50%; top: 78%; opacity: 1; transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(.5, .08, .85, .3); }
    74% { left: 50%; top: 104%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    75%, 100% { left: 50%; top: 104%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
  }
}

/* --- Scale: from one child to a whole city ------------------------------
   The resting layout is two captioned photographs in reading order. With
   motion allowed, site.js pins the stage and shrinks the close view into a
   tile on the aerial, tied to scroll so it reverses cleanly. */
.scale__stage { display: grid; gap: var(--gap); padding: var(--section) var(--m); }
.scale__pic { position: relative; aspect-ratio: 3 / 2; overflow: clip; }
.scale__pic img { width: 100%; height: 100%; object-fit: cover; }
.scale .scale__line { margin-top: 16px; max-width: none; color: var(--on-dark); font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.scale__cap { margin-top: 8px; font-size: var(--step-small); font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--on-dark-soft); }

.scale.is-live { height: 300vh; }
.scale.is-live .scale__stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: clip; }
.scale.is-live figure { position: absolute; inset: 0; }
.scale.is-live .scale__near { pointer-events: none; z-index: 1; }
.scale.is-live .scale__pic { position: absolute; inset: 0; aspect-ratio: auto; will-change: transform; }
.scale.is-live .scale__far .scale__pic { overflow: visible; }
.scale.is-live .scale__near .scale__pic::after { content: ""; position: absolute; inset: 0; border: 14px solid var(--teal); opacity: var(--ring, 0); }
.scale.is-live .scale__line { position: absolute; bottom: var(--m); margin: 0; padding: 18px 22px; width: min(30ch, calc(100vw - 2 * var(--m))); background: var(--night); will-change: opacity, transform; }
.scale.is-live .scale__line--a { left: var(--m); }
.scale.is-live .scale__line--b { right: var(--m); opacity: 0; }
@media (max-width: 760px) {
  .scale.is-live { height: 240vh; }
  .scale.is-live .scale__near .scale__pic::after { border-width: 8px; }
}

/* --- Pinned chapters: site.js wraps each in a track and adds .cine on wide
   screens with motion allowed. A chapter sticks for the length of its track,
   then leaves as the next rises behind a wash of its own colour. */
.chapter-track { display: contents; }
#methods.cine .chapter-track { display: block; position: relative; }
.js #methods.cine .chapter { position: sticky; padding-top: calc(var(--header-h) + 28px); overflow: visible; clip-path: none; transition: none; }
.js #methods.cine .chapter-track:first-child .chapter::before { display: none; }
.js #methods.cine .chapter::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 42vh; background: linear-gradient(to top, var(--field), transparent); pointer-events: none; }
.js #methods.cine .chapter__fig, .js #methods.cine .chapter__big { will-change: transform; }
#methods.cine .chapter__fig .plate { overflow: clip; }
.hero__text, .hero__cards, .hero__stage { will-change: transform; }
@media (max-width: 1020px), (prefers-reduced-motion: reduce) {
  .hero__text, .hero__cards, .hero__stage { will-change: auto; }
}

/* --- Scroll cue: there is more below ---------------------------------------
   A pill fixed to the foot of the first screen that names the next section and
   leaves on the first scroll. Script only, wide screens only; still when motion
   is reduced. */
.cue { display: none; }
.js .cue { display: block; position: fixed; z-index: 5; left: 0; right: 0; width: max-content; margin-inline: auto; bottom: clamp(18px, 3.4vh, 36px); color: var(--on-dark); text-decoration: none; transition: opacity .35s ease, transform .35s ease; }
.js .cue.is-gone { opacity: 0; transform: translateY(14px); pointer-events: none; }
.cue:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 999px; }
.cue__in { display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 20px; background: var(--night); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.cue__next { font-size: .95rem; font-weight: 600; }
.cue__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--night); }
.cue__btn svg { width: 22px; height: 22px; }
.cue:hover .cue__btn { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cue__in { animation: cueIn .7s 1.3s both; }
  .cue__btn svg { animation: cueBob 1.9s 2s ease-in-out infinite; }
  @keyframes cueIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes cueBob { 0%, 100% { transform: none; } 45% { transform: translateY(5px); } 60% { transform: translateY(2px); } }
}
@media (max-width: 1020px) { .js .cue { display: none; } }
@media print { .js .cue { display: none; } }

/* --- Poster: a preview that opens the full PDF ---------------------------- */
.prose a.poster { display: block; max-width: 360px; margin-top: 14px; background: var(--ground); color: var(--ink); text-decoration: none; border: 1px solid var(--ground-2); }
.poster img { display: block; width: 100%; height: auto; }
.poster__bar { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; font-size: var(--step-small); font-weight: 600; }
.poster__meta { grid-column: 1; grid-row: 2; font-weight: 400; color: var(--ink-soft); }
.poster__bar svg { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; }
.prose a.poster:hover { color: var(--teal-ink); border-color: var(--teal-ink); }
.prose a.poster:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
