/* ==========================================================================
   Research at… */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --cyan: #00adef;
  --magenta: #b41d8d;
  --amber: #fdb813;
  --green: #00a14a;
  --red: #ed1c24;
  --navy: #00529b;

  --ink: #0e1113;
  --body: #4a4d52;
  --muted: #73777d;
  --rule: #e3e3e0;
  --rule-soft: #eeece8;
  --paper: #ffffff;
  --wash: #f7f6f3;

  --f-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --f-heavy: "Anton", "Bebas Neue", Impact, sans-serif;
  --f-text: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ui: "Inter Tight", -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1240px;
  --measure: 40rem;
  --gut: clamp(1.25rem, 4.5vw, 4.5rem);
  --sect: clamp(4rem, 8vw, 8rem);

  --bar: 4.35rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* default chapter (front matter) */
  --accent: var(--navy);
  --accent-ink: #00457f;
  --on-accent: #ffffff;
  --tint: #eef3f8;
}

/* per-chapter colour roles: saturated hues carry ink, deep hues carry white */
[data-ch="1"] { --accent: var(--cyan);    --accent-ink: #006f9c; --on-accent: #0e1113; --tint: #e8f6fd; }

[data-ch="2"] { --accent: var(--magenta); --accent-ink: #9c1a7a; --on-accent: #ffffff; --tint: #fbeef7; }

[data-ch="3"] { --accent: var(--amber);   --accent-ink: #8a5e00; --on-accent: #0e1113; --tint: #fdf6e4; }

[data-ch="4"] { --accent: var(--green);   --accent-ink: #006f34; --on-accent: #0e1113; --tint: #e9f6ef; }

[data-ch="5"] { --accent: var(--red);     --accent-ink: #ad131a; --on-accent: #0e1113; --tint: #fdeceb; }

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 1.5rem);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--f-text);
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.1875rem);
  line-height: 1.66;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* on dark surfaces the navy ring disappears — switch to white */
.cover :focus-visible,
.topbar.is-over :focus-visible,
.next :focus-visible { outline-color: #ffffff; }

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.lead {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.48;
  color: #24272b;
  font-weight: 400;
  max-width: 40rem;
  letter-spacing: -0.005em;
}

/* --- 4. Shell ------------------------------------------------------------ */
.wrap {
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
}

.skip {
  position: fixed; top: 0; left: 50%; translate: -50% -120%;
  z-index: 100; background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; font: 600 0.8rem/1 var(--f-ui);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: translate 0.25s var(--ease);
}

.skip:focus { translate: -50% 0; }

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--bar);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--gut);
  background: #fff;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.topbar__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: 0 0 auto; }

/* larger than the old raster lockup: the SVG stays sharp */
.topbar__logo { height: 2.9rem; width: auto; }
@media (max-width: 81rem) { .topbar__logo { height: 2.5rem; } }
@media (max-width: 52rem) { .topbar__logo { height: 2.15rem; } }

.topbar__logo--light { display: none; }

/* report label, not a second wordmark */
.topbar__title {
  font-family: var(--f-ui);
  font-size: 0.9375rem;          /* 15px */
  font-weight: 600;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: #3b4045;                /* softened ink: 9.7:1 on white */
  line-height: 1.18;
  white-space: nowrap;
  padding: 0.42rem 0 0.42rem 1rem;   /* the rule runs a little past the caps */
  margin-left: 0.2rem;
  border-left: 1px solid #d9d9d5;
}

/* the light bar over the cover keeps the same rhythm */
.topbar.is-over .topbar__title,
.topbar.is-over .topbar__title b { color: #fff; }

.topbar__title span { display: block; color: var(--muted); font-weight: 500; letter-spacing: 0.12em; }

.topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }

.topbar__link {
  display: flex; align-items: center; gap: 0.42rem;
  padding: 0.42rem 0.6rem; border-radius: 999px;
  font-family: var(--f-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #5d6167; text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.topbar__link i {
  font-style: normal; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--c, var(--navy)); opacity: 0.45;
  transition: opacity 0.2s, scale 0.2s;
}

.topbar__link:hover { color: var(--ink); background: var(--wash); }

.topbar__link:hover i { opacity: 1; }

.topbar__link[aria-current="page"] { color: var(--ink); }

.topbar__link[aria-current="page"] i { opacity: 1; scale: 1.25; }

.topbar__search {
  display: flex; align-items: center; gap: 0.5rem;
  margin-left: 0.6rem; padding: 0.42rem 0.8rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--f-ui); font-size: 0.74rem; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.topbar__search:hover { border-color: #c9c7c2; color: var(--ink); }

.topbar__contents {
  display: none; align-items: center;
  padding: 0.4rem 0.7rem; border-radius: 999px;
  font-family: var(--f-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #5d6167; text-decoration: none;
}

.topbar__contents:hover { color: var(--ink); background: var(--wash); }
@media (min-width: 78rem) { }

.topbar.is-over .topbar__pdf { color: rgba(255, 255, 255, 0.62); border-color: rgba(255, 255, 255, 0.24); }

.topbar.is-over .topbar__pdf:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* transparent state while the dark cover is in view */
.topbar { transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); }

.topbar.is-over {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}

.topbar.is-over .topbar__logo--dark { display: none; }

.topbar.is-over .topbar__logo--light { display: block; }

.topbar.is-over .topbar__title { color: #fff; border-left-color: rgba(255, 255, 255, 0.22); }

.topbar.is-over .topbar__link { color: rgba(255, 255, 255, 0.62); }

.topbar.is-over .topbar__link:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.topbar.is-over .topbar__contents { color: rgba(255, 255, 255, 0.62); }

.topbar.is-over .topbar__search { color: rgba(255, 255, 255, 0.62); border-color: rgba(255, 255, 255, 0.24); }

.topbar.is-over .topbar__search:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

.topbar.is-over .topbar__search kbd {
  color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.topbar__search kbd {
  font-family: var(--f-ui); font-size: 0.6rem; letter-spacing: 0.04em;
  border: 1px solid var(--rule); border-radius: 4px; padding: 0.12rem 0.3rem;
  color: var(--muted); background: var(--wash); white-space: nowrap;
}

/* reading progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 70;
  width: 100%; scale: 0 1; transform-origin: 0 50%;
  background: var(--accent);
  will-change: scale;
}

/* --- 5. Cover (anniversary black) ---------------------------------------- */
.cover {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: #0a0c0e; color: #fff;
  overflow: clip;
  padding-top: var(--bar);
}

.cover__inner {
  position: relative; z-index: 3;
  display: grid; align-content: center;
  padding-block: clamp(2rem, 7vh, 4.5rem) 6rem;
}

.cover__kicker::after {
  content: "; height: 1px; flex: 0 0 clamp(3rem, 10vw, 9rem);
  background: rgba(255, 255, 255, 0.25);
}

.cover__title {
  font-family: var(--f-ui);
  font-size: clamp(2.6rem, 7.9vw, 8.2rem);
  font-weight: 800; line-height: 0.84;
  letter-spacing: -0.042em; text-transform: uppercase;
  color: #fff;
}

.cover__title .thin { display: block; font-weight: 300; color: rgba(255, 255, 255, 0.94); }

.cover__title strong { display: block; font-weight: 800; margin-left: -0.035em; }

/* a quiet cue that there is more below */
.cover__scroll {
  position: absolute; left: 50%; bottom: 8.4rem; z-index: 6;
  translate: -50% 0; width: 1px; height: 2.4rem;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45));
  opacity: 0;
  animation: cue-in 0.9s var(--ease) 3.5s forwards;
  pointer-events: none;
}

.cover__scroll span {
  position: absolute; left: 50%; bottom: -0.35rem;
  width: 9px; height: 9px; translate: -50% 0;
  border-right: 1.5px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  rotate: 45deg;
  animation: cue-bob 2.4s ease-in-out 4.2s infinite;
}
@keyframes cue-in { to { opacity: 1; } }
@keyframes cue-bob {
  0%, 100% { translate: -50% 0; opacity: 0.55; }
  50% { translate: -50% 6px; opacity: 1; }
}

/* the two ways into the report, side by side on the cover */
.cover__cta {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--f-ui); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), translate 0.25s var(--ease);
}

.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn__arrow { flex: 0 0 auto; transition: translate 0.25s var(--ease); }

.btn:hover { translate: 0 -1px; }

.btn--solid { background: #fff; color: #0a0c0e; border-color: #fff; }

.btn--solid:hover {
  background: #00aeef; border-color: #00aeef; color: #06121a;
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.22);
}

.btn--solid:hover .btn__arrow { translate: 4px 0; }

.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.75);
}
@media (min-width: 64rem) and (max-width: 86rem) {
  .cover__emblem { width: min(26vw, 19rem); right: 2.5vw; }
}
@media (max-width: 40rem) {
  .cover__cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .btn { justify-content: space-between; padding: 1rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cover__cta { animation: none; opacity: 1; }
  .btn, .btn__arrow { transition: none; }
}

/* the 70th-anniversary emblem */
.cover__emblem {
  position: absolute; z-index: 2;
  right: clamp(1.6rem, 3.2vw, 3.75rem); top: 50%; translate: 0 -50%;
  width: min(29vw, 23.5rem);
  animation: emblem-float 9s ease-in-out 3.2s infinite;
}

.cover__emblem .emblem { display: block; width: 100%; height: auto; overflow: visible; }

.cover__emblem { aspect-ratio: 425.2 / 439.7; }

.emblem-canvas {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.cover__emblem.is-3d .emblem-canvas { opacity: 1; }

.cover__emblem.is-3d { animation: none; }

/* hidden once WebGL takes over */
html.use-3d:not(.ready) .cover__inner,
html.use-3d:not(.ready) .cover__stats,
html.use-3d:not(.ready) .cover__emblem { visibility: hidden; }

html.use-3d:not(.ready) .cover *,
html.use-3d:not(.ready) .cover *::before,
html.use-3d:not(.ready) .cover *::after { animation-play-state: paused !important; }

html.use-3d .cover__emblem > svg.emblem { display: none; }

html.use-3d .cover__emblem .bar,
html.use-3d .cover__emblem .ring,
html.use-3d .cover__emblem .book { animation: none; }

.cover__emblem.is-3d > svg.emblem { display: none; }

/* the mark converges: every part flies in from its own direction */
.cover__emblem .bar,
.cover__emblem .ring,
.cover__emblem .book {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: part-in 1.15s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}
@keyframes part-in {
  from {
    transform: translate(var(--dx, 0), var(--dy, 0))
               rotate(var(--rot, 0deg))
               scale(var(--sc, 1));
    opacity: 0;
  }
  12% { opacity: 1; }
  to { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}

.cover__emblem .bar--magenta { --dx: -115px; --dy: -8px;   --rot: -6deg;  animation-delay: 0.30s; }

.cover__emblem .bar--orange  { --dx: -105px; --dy: -70px;  --rot: 7deg;   animation-delay: 0.42s; }

.cover__emblem .bar--cyan    { --dx: 28px;   --dy: -104px; --rot: -9deg;  animation-delay: 0.54s; }

.cover__emblem .bar--red     { --dx: 98px;   --dy: 112px;  --rot: 10deg;  animation-delay: 0.66s; }

.cover__emblem .ring--green  { --dx: 122px;  --dy: -56px;  --rot: 12deg;  animation-delay: 0.36s; }

.cover__emblem .ring--navy   { --dx: -112px; --dy: 72px;   --rot: -10deg; animation-delay: 0.48s; }

.cover__emblem .ring--amber  { --sc: 0.62;   --rot: -14deg;               animation-delay: 0.40s; }

.cover__emblem .book         { --dx: 86px;   --dy: 22px;   --sc: 0.85;    animation-delay: 0.58s; }
@media (prefers-reduced-motion: reduce) {
  .cover__emblem .bar,
  .cover__emblem .ring,
  .cover__emblem .book { animation: none !important; }
}
@keyframes emblem-float {
  0%, 100% { translate: 0 -50%; transform: scale(1); }
  50% { translate: 0 calc(-50% - 7px); transform: scale(1.012); }
}

/* bottom numbers, with a fade so the fan dissolves behind them */
.cover__stats {
  position: relative; z-index: 4;
  background: #0a0c0e;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.4rem 1.6rem;
}

.cover__stats::before {
  content: ""; position: absolute; left: 0; right: 0;
  bottom: 100%; height: 21vh; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 12, 14, 0.9) 55%, #0a0c0e 96%);
}

.cover__stats-inner {
  contain: layout paint;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; align-items: baseline;
}

.cover__stats-inner div { display: flex; align-items: baseline; gap: 0.9rem; }

.cover__stats-inner span { align-self: baseline; }

.cover__stats-inner div:last-child { justify-content: flex-end; }

.cover__stats b.is-armed { opacity: 0; }
.cover__stats b {transition: opacity 0.3s var(--ease); font-family: var(--f-heavy); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 0.8; letter-spacing: -0.01em; color: #fff
}

.cover__stats span {
  font-family: var(--f-ui); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); line-height: 1.35;
}
@media (max-width: 760px) {
  .cover__title { font-size: 9.6vw; }
  /* the mark sits centred under the bar, not pinned into the corner */
  .cover__emblem {
    top: calc(var(--bar) + 1.2rem);
    left: 50%; right: auto;
    translate: -50% 0;
    width: 42vw; max-width: 12.5rem;
    animation: none;
  }
  /* three figures, one per row */
  .cover__stats-inner { grid-template-columns: 1fr; gap: 0.85rem; }
  /* one grid for all three rows: figures in column one, labels in column
     two */
  .cover__stats-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem 0.95rem;
  }
  .cover__stats-inner div { display: contents; }
  .cover__stats b {
    grid-column: 1; text-align: right;
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1;
  }.cover__stats span {
  grid-column: 2;
  font-size: 0.68rem;
  line-height: 1.3;
}

  .cover__inner {
    align-content: start;
    padding-block: calc(42vw + 2.2rem) 3rem;
  }
  /* on a phone the page is short enough that the arrow crowds the buttons */
  .cover__scroll { display: none; }
}

/* black -> navy seam between the cover and the key numbers */
.seam {
  height: 3px;
  background: linear-gradient(90deg,
    var(--cyan) 0 20%, var(--magenta) 20% 40%, var(--amber) 40% 60%,
    var(--green) 60% 80%, var(--red) 80% 100%);
}

/* pointer depth: the mark tilts, the type drifts a hair */
.cover { --px: 0; --py: 0; }
.cover__top {display: grid; translate: calc(var(--px) * -8px) calc(var(--py) * -5px); transition: translate 0.5s ease-out
}

.cover__emblem .emblem-canvas {
  transition: transform 0.5s ease-out;
  transform: perspective(900px)
    rotateY(calc(var(--px) * 7deg))
    rotateX(calc(var(--py) * -7deg));
}

/* cover entrance: a three-second sequence — rule, mark, headline, then the rest */
.cover__title .line { display: block; padding-bottom: 0.06em; }

/* each letter flies in from its own side and settles into the word */
.cover__title .word { display: inline-block; white-space: nowrap; }

.cover__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  animation: ch-in 0.78s cubic-bezier(0.16, 0.84, 0.3, 1) both;
  animation-delay: calc(var(--t0, 1.05s) + var(--i, 0) * 12ms);
}

.cover__title .ch--space { width: 0.3em; }

.cover__title .line:nth-child(2) .ch { --t0: 1.5s; }
@keyframes ch-in {
  from {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  }
  to { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}

.cover__title .line > span.thin,
.cover__title .line > strong { display: block; }
.cover__kicker {display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.2rem, 3vh, 2.2rem); font-family: var(--f-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); opacity: 0; animation: cover-rise 0.85s var(--ease) 1s forwards
}
.cover__sub {margin-top: clamp(1.2rem, 3vh, 2rem); font-size: clamp(1rem, 0.92rem + 0.5vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, 0.8); max-width: 34ch; opacity: 0; animation: cover-rise 0.95s var(--ease) 2.35s forwards
}

.cover__cta { opacity: 0; animation: cover-rise 0.85s var(--ease) 2.5s forwards; will-change: opacity, translate; }

.cover__stats { opacity: 0; animation: cover-fade 0.7s var(--ease) 2.7s forwards; will-change: opacity; }

/* a five-colour rule draws under the headline before anything else arrives */
.cover__stats::after {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg,
    var(--cyan) 0 20%, var(--magenta) 20% 40%, var(--amber) 40% 60%,
    var(--green) 60% 80%, var(--red) 80% 100%);
  animation: rule-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes rule-draw { to { transform: scaleX(1); } }

/* one restrained highlight passes over the headline once the sequence lands */
.cover__title { position: relative; }

.cover__title::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 18%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  filter: blur(12px);
  transform: translateX(-45%);
  animation: title-sweep 1.35s ease-in-out 3.3s 1 both;
}
@keyframes title-sweep {
  0%   { transform: translateX(-45%); opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { transform: translateX(430%); opacity: 0; }
}
@keyframes line-up { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes cover-rise { from { opacity: 0; translate: 0 0.32em; } to { opacity: 1; translate: 0 0; } }
@keyframes cover-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cover-draw { to { stroke-dashoffset: 0; } }

/* --- 6. Chapter hero ----------------------------------------------------- */
.chero {
  position: relative; overflow: clip;
  background: var(--accent); color: var(--on-accent);
  padding-top: var(--bar);
  min-height: min(78svh, 46rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}

.chero__inner {
  position: relative; z-index: 2;
  padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(2.2rem, 6vh, 4rem);
  display: grid; gap: clamp(1rem, 2.2vh, 1.6rem);
  align-content: end;
}

.chero__num {
  font-family: var(--f-heavy);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  opacity: 0.55;
}

.chero__title {
  color: inherit;
  font-size: clamp(2.9rem, 9vw, 8rem);
  line-height: 0.86;
  max-width: 18ch;
  letter-spacing: 0.004em;
}

.chero__sub {
  font-family: var(--f-ui);
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.98rem);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.72; margin-top: -0.3rem;
}

.chero__intro {
  font-size: clamp(1.05rem, 0.96rem + 0.5vw, 1.32rem);
  line-height: 1.5;
  max-width: 44ch;
  opacity: 0.92;
  margin-top: 0.6rem;
}

/* the cover's fan, one tonal layer on the chapter colour */
.chero__arcs {
  position: absolute; z-index: 1;
  right: -6%; bottom: -44%;
  width: clamp(34rem, 60vw, 72rem);
  opacity: 0.26;
  pointer-events: none;
  transform: scaleX(-1);            /* the cover's fan leans out to the left; mirror it into the corner */
  /* the artwork's own left edge would end in a hard line mid-hero */
  /* the layer is mirrored, so the fade has to run the other way */
  -webkit-mask-image: linear-gradient(100deg, #000 62%, transparent 94%);
  mask-image: linear-gradient(100deg, #000 62%, transparent 94%);
  animation: fan-in 2.4s var(--ease) 0.1s both;
}
@keyframes fan-in {
  from { opacity: 0; translate: 1.5% 1.5%; }
  to   { opacity: 0.26; translate: 0 0; }
}

.chero__foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; padding-bottom: 1.6rem;
  font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.66;
}

/* hero to article: the chapter colour settles into the page instead of
   cutting off */
/* the same rule that joins every other pair of blocks */
.chero__seam {
  height: 3px;
  background: linear-gradient(90deg,
    var(--cyan) 0 20%, var(--magenta) 20% 40%, var(--amber) 40% 60%,
    var(--green) 60% 80%, var(--red) 80% 100%);
}

/* --- 7. Long-form article ------------------------------------------------ */
.article { padding-block: clamp(2.5rem, 6vw, 5rem) var(--sect); counter-reset: sec; }

.article__inner { display: block; }

.section > * { grid-column: 2; min-width: 0; }

.section > .figure,
.section > .photo {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(64rem, 100%);
  margin-block: clamp(2.4rem, 5vw, 4rem);
}
/* data plates centre on the page axis; only the wide photography runs off the
   right… */
@media (min-width: 64rem) {
  .section > .figure,
  .section > .stat,
  .section > .quote,
  .section > .photo:not(.photo--wide) {
    grid-column: 1 / -1;
    justify-self: center;
    margin-left: 0;
    width: min(64rem, 100%);
    max-width: none;
  }
  .section > .photo--wide {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: calc(50% - 20rem);
    width: calc(50vw + 20rem);
    max-width: none;
  }
  /* stacked: the quote on top, the signature sits at the bottom right */
  .section > .quote {
    display: block;
    padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.8rem, 3.4vw, 3rem);
  }
  /* the panel is the measure now: let the quote fill it */
  .section > .quote p { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.36; max-width: none; }
  .section > .quote cite {
    margin: clamp(1.3rem, 2.6vw, 1.9rem) 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    text-align: right;
  }
}

.section + .section { border-top: 1px solid var(--rule-soft); }
.section {display: grid; grid-template-columns: 1fr min(40rem, 100%) 1fr; align-items: start; padding-block: clamp(2rem, 4.4vw, 3.6rem); counter-increment: sec
}

/* the opening block has no heading */
.section--opening { counter-increment: none; }

.section__head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); position: relative; }

.section__head::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--f-ui); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--accent-ink);
  margin-bottom: -0.2rem;
}
@media (max-width: 85.99rem) {
  /* the section number replaces the accent dash as the marker */
  .section__head .rule { display: none; }
}
@media (min-width: 86rem) {
  .section__head::before {
    position: absolute; left: -7.5rem; top: -0.12em; margin: 0;
    font-family: var(--f-display); font-size: 3.4rem; font-weight: 400;
    letter-spacing: 0.01em; line-height: 1;
    color: var(--accent); opacity: 0.4;
  }
}

.section__head .rule {
  width: 2.6rem; height: 3px; background: var(--accent);
  border-radius: 2px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  max-width: 30ch;
}

.section h3, .section .subhead {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  margin-top: 2.6rem;
  margin-bottom: 0.7rem;
  /* headings take the column width: a mid-phrase wrap reads as an accident */
  max-width: none;
}

.section .subhead {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.article p { max-width: var(--measure); }

.article p + p { margin-top: 1.1em; }

.article .lead + p { margin-top: 1.6rem; }

/* figure */
.figure {
  margin: 0;
}

.figure__frame {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  padding: clamp(1rem, 2vw, 1.6rem) 0 0;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  container-type: inline-size;
}

.figure__frame::after {
  content: "⤢";
  position: absolute; right: 0.7rem; bottom: 0.6rem;
  font-family: var(--f-ui); font-size: 1.05rem; line-height: 1;
  color: var(--accent-ink); opacity: 0.55;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
  background: color-mix(in srgb, #fff 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff);
  border-radius: 999px; padding: 0.3rem 0.6rem;
  opacity: 0; translate: 0 4px;
  transition: opacity 0.25s, translate 0.25s;
}

.figure__frame:hover { border-color: color-mix(in srgb, var(--accent) 55%, #fff); }
@media (hover: none) {
  .figure__frame::after { opacity: 1; translate: 0 0; }
}

.figure__frame:hover::after { opacity: 1; translate: 0 0; }

.figure img { width: 100%; }

.figure figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.4rem;
  align-items: baseline;
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; line-height: 1.5; color: var(--muted);
}

.figure figcaption b {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
  color: var(--accent);
}

.figure figcaption span { max-width: 64ch; }

/* stat panel */
.stat {
  margin: clamp(2.2rem, 4.6vw, 3.6rem) 0;
  background: var(--accent); color: var(--on-accent);
  padding: clamp(1.8rem, 3.4vw, 2.9rem) clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}

.stat__num {
  font-family: var(--f-heavy);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9; letter-spacing: -0.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--f-ui);
  font-size: clamp(0.85rem, 0.78rem + 0.24vw, 1.02rem);
  font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  line-height: 1.5; max-width: none;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}

/* ranking grid (institutional standings) */
.rankings {
  margin: clamp(2.2rem, 4.6vw, 3.6rem) 0;
  display: grid;
  /* column-major, as printed */
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.rank {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) clamp(0.9rem, 2vw, 1.4rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.rank b {
  font-family: var(--f-heavy); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 0.9;
  color: var(--ink); white-space: nowrap;
}

.rank sup {
  font-size: 0.42em; vertical-align: super; letter-spacing: 0;
  margin-left: 0.05em;
}

.rank span {
  font-family: var(--f-ui); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; line-height: 1.35; color: #4a4d52;
}
@media (max-width: 34rem) {
  .rankings { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* definition table (appendix indicator list) */
.defs {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 1rem;
  border-top: 1px solid var(--rule);
}

.def {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 0.6rem 2.4rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  border-bottom: 1px solid var(--rule);
}

/* mixed case, as the report sets these labels */
.def dt {
  font-family: var(--f-ui); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.005em; color: var(--ink);
  line-height: 1.4;
}

.def dd { margin: 0; }

.def ul { list-style: none; display: grid; gap: 0.85rem; }

.def li {
  position: relative; padding-left: 1.1rem;
  font-size: 0.97rem; line-height: 1.55; color: var(--body);
  max-width: 44rem;
}

.def li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.3rem; height: 0.3rem; border-radius: 50%;
  background: var(--accent);
}

.def li b { color: var(--ink); font-weight: 600; }
@media (max-width: 46rem) {
  .def { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* in-chapter navigation */
.chapter-toc {
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.chapter-toc__list {
  list-style: none; counter-reset: toc;
  margin-top: 0.9rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

.chapter-toc__list li { counter-increment: toc; }

.chapter-toc__list a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; color: var(--body);
  font-family: var(--f-ui); font-size: 0.84rem; font-weight: 500;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.chapter-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.chapter-toc__list a:hover { color: var(--ink); padding-left: 0.35rem; }
@media (max-width: 52rem) {
  .chapter-toc__list { grid-template-columns: 1fr; gap: 0; }
}

/* sticky section rail (wide screens only) */
.rail {
  position: fixed; left: clamp(1rem, 2.2vw, 2.4rem); top: 50%;
  translate: 0 -50%; z-index: 40; width: 13rem;
  display: none;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
}
@media (min-width: 86rem) {
  .rail { display: block; }
  /* the rail runs to x=224; a 64rem panel starts at 208, so trim the panel */
  .section > .quote { width: min(58rem, 100%); }
}

.rail.is-hidden { opacity: 0; translate: -1rem -50%; pointer-events: none; }

.rail__item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.34rem 0; text-decoration: none;
  font-family: var(--f-ui); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3;
  color: #6c7176; transition: color 0.25s;
}

.rail__t {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 12.5rem;
}

.rail__bar {
  flex: 0 0 auto; width: 1rem; height: 1px;
  background: currentColor; opacity: 0.45;
  transition: width 0.25s var(--ease), opacity 0.25s, background-color 0.25s;
}

.rail__item:hover { color: #4a4d52; }
.rail__item.is-active {color: var(--ink); font-weight: 700
}

.rail__item.is-active .rail__bar { width: 2.1rem; height: 2px; opacity: 1; background: var(--accent); }

.rail__top { margin-top: 1.2rem; color: #c3c0ba; }

/* pull quote */
.quote {
  margin: clamp(2.2rem, 4.6vw, 3.6rem) 0;
  padding: clamp(1.6rem, 3.6vw, 2.6rem);
  background: var(--tint);
  border-radius: 3px;
  position: relative;
  max-width: 46rem;
}

.quote::before {
  content: "\201C";
  position: absolute; top: 0.1em; left: 0.6rem;
  font-family: var(--f-heavy); font-size: 5rem; line-height: 1;
  color: var(--accent); opacity: 0.28;
}

.quote p {
  position: relative;
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem);
  line-height: 1.45; font-style: italic; color: #24272b;
  max-width: 42ch;
}

.quote cite {
  display: block; margin-top: 1.2rem; padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-family: var(--f-ui); font-style: normal; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em; color: var(--ink);
}

.quote cite span { display: block; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

/* case study box */
/* case studies sit in the same framed panel as the highlighted passage */
.case {
  margin: clamp(2.2rem, 4.6vw, 3.4rem) 0;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: clamp(1.5rem, 3.2vw, 2.3rem) clamp(1.4rem, 3vw, 2.2rem);
  max-width: 46rem;
  background: var(--tint);
}

.case h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin-bottom: 1rem;
}

.case p { font-size: 0.98rem; line-height: 1.62; }

.note {
  font-size: 0.8rem; color: var(--muted); max-width: 44rem;
  margin-top: 1rem; line-height: 1.5;
}

/* photo */
.photo {
  margin: 0;
}

.photo img { width: 100%; border-radius: 3px; }

.photo figcaption {
  margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted);
  max-width: 48ch;
}

.photo--wide, .section > .photo--wide {
  margin-block: clamp(2.4rem, 5vw, 4rem);
}

.photo--wide img { border-radius: 0; height: clamp(16rem, 52vw, 34rem); object-fit: cover; }

.photo--wide figcaption {
  width: auto; max-width: 46rem; margin: 0.9rem 0 0;
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}

/* --- 8. Key numbers ------------------------------------------------------ */
.numbers {
  background: var(--navy); color: #fff;
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative; overflow: clip;
}

.numbers__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.numbers__head .eyebrow { color: #9dc4e8; }

.numbers__head h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.8rem); }

.numbers__group + .numbers__group { margin-top: clamp(2.2rem, 4vw, 3.4rem); }

.numbers__group-title {
  font-family: var(--f-ui);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #b9d9f2; margin-bottom: 0.9rem;
}

.numbers__grid {
  display: grid; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.kn {
  display: grid;
  grid-template-columns: 3px minmax(6rem, 10rem) 1fr auto;
  align-items: center; gap: 0 1.6rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.kn__bar {
  width: 3px; height: 2.4rem; background: var(--bar, #fff);
  border-radius: 2px; justify-self: start;
}

.kn__num {
  font-family: var(--f-heavy);
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 0.82; letter-spacing: -0.015em;
  color: #fff; font-variant-numeric: tabular-nums;
}

.kn__label {
  font-family: var(--f-ui);
  font-size: clamp(0.76rem, 0.7rem + 0.2vw, 0.88rem);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.4; color: #d7e6f6; max-width: 40ch;
}

.kn__period {
  font-family: var(--f-ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; color: #9dc4e8; white-space: nowrap;
}

.field {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px; padding: clamp(1.2rem, 2.6vw, 1.9rem);
}

.field h3 {
  color: #fff; font-size: 1.5rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}

.field h3::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--dot);
}

.field dl { display: grid; gap: 0.55rem; }

.field div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

.field dt {
  font-family: var(--f-ui); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: #b9d2ec;
}

.field dd {
  font-family: var(--f-heavy); font-size: 1.25rem; color: #fff;
  line-height: 1; letter-spacing: -0.01em;
}

/* --- 9. Contents --------------------------------------------------------- */
.contents { padding-block: var(--sect); background: var(--wash); }

.contents__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contents__head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.contents__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }

.contents__pdf {
  font-family: var(--f-ui); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

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

.contents__pdf--quiet {
  font-weight: 400; color: #7b8085; border-bottom-color: #d9d6d1;
}

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

.toc { display: grid; border-top: 1px solid #d9d6d0; }

.toc__row {
  position: relative;
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1rem, 2.4vw, 1.7rem) 0;
  border-bottom: 1px solid #d9d6d0;
  text-decoration: none;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}

.toc__row::before {
  content: ""; position: absolute; inset: 0 -1.2rem; z-index: -1;
  background: var(--c); opacity: 0; border-radius: 2px;
  transition: opacity 0.35s var(--ease);
}

.toc__row:hover::before { opacity: 0.12; }

.toc__row:hover .toc__go { translate: 0.4rem 0; opacity: 1; }

.toc__n {
  display: grid; place-items: center;
  aspect-ratio: 1; width: 3.1rem;
  background: var(--c); color: var(--on-c);
  font-family: var(--f-heavy); font-size: 1.15rem;
  border-radius: 2px;
}

.toc__t {
  font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  text-transform: uppercase; color: var(--ink); line-height: 1;
  letter-spacing: 0.004em;
}

.toc__go {
  font-family: var(--f-ui); font-size: 1.5rem; line-height: 1; letter-spacing: 0;
  color: var(--muted);
  opacity: 0.6; transition: translate 0.3s var(--ease), opacity 0.3s;
}

.toc__row--sub { grid-template-columns: 3.6rem 1fr auto; }

.toc__row--sub .toc__n {
  background: var(--c); color: var(--on-c, #fff);
  font-family: var(--f-heavy); font-size: 1rem;
}

.toc__row--sub .toc__t { font-family: var(--f-text); font-size: 1.05rem; text-transform: none; letter-spacing: 0; }

/* --- 10. Foreword -------------------------------------------------------- */
.forewords { padding-block: var(--sect); }

.foreword { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }

.foreword + .foreword { margin-top: var(--sect); padding-top: var(--sect); border-top: 1px solid var(--rule); }
@media (min-width: 860px) {
  .foreword { grid-template-columns: 15rem 1fr; align-items: start; }
  .foreword__aside { position: sticky; top: calc(var(--bar) + 2rem); }
}

.foreword__portrait {
  width: 7.5rem; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; filter: grayscale(0.15);
}

.foreword__name {
  margin-top: 1rem;
  font-family: var(--f-ui); font-size: 0.86rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.01em;
}

.foreword__role {
  font-size: 0.82rem; color: var(--muted); line-height: 1.45; margin-top: 0.2rem;
}

.foreword__body { max-width: 40rem; }
.foreword__body p + p { margin-top: 1.05em; }

.foreword__quote {
  font-size: clamp(1.28rem, 1.08rem + 0.7vw, 1.55rem);
  line-height: 1.42; color: #24272b; max-width: 36ch;
  margin-bottom: 1.8rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--accent);
}

/* --- 11. Executive summary ---------------------------------------------- */
.summary { padding-block: var(--sect); border-top: 1px solid var(--rule); }

.summary__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.summary__head h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }

/* the closing statement mirrors the opening one */
.summary__head--tail { margin: clamp(2.8rem, 5.5vw, 4.4rem) 0 0; }

/* both statements read as sentences in the text face, set semi-bold as printed */
.summary__head h2,
.summary__head--tail h2 {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  /* balance would shrink the closing block to keep its line count; let both fill */
  text-wrap: pretty;
  max-width: none;
}

.summary__body { columns: 1; column-gap: 3.5rem; max-width: 72rem; }

.summary__body p { margin-bottom: 1.05em; break-inside: avoid-column; }
@media (min-width: 900px) {
  .summary__body { columns: 2; }
}



/* --- 12. Chapter footer / next ------------------------------------------- */
.next {
  position: relative; overflow: clip;
  background: var(--navy); color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.next--accent { background: var(--next-c, var(--navy)); color: var(--next-on, #fff); }

.next__link {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; margin-top: 1rem; text-decoration: none; flex-wrap: wrap;
}

.next__title {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4.4rem); line-height: 0.9; color: inherit;
  max-width: 22ch;
}

.next__arrow {
  font-family: var(--f-ui); font-size: 1.6rem; line-height: 1; letter-spacing: 0;
  white-space: nowrap; transition: translate 0.3s var(--ease);
}

.next__link:hover .next__arrow { translate: 6px 0; }

/* --- 13. Footer ---------------------------------------------------------- */
.foot {
  background: #0a0c0e; color: #8b9198;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2rem, 4vw, 3rem);
  font-size: 0.84rem;
  border-top: 1px solid #1c2024;
}

.foot__sub {
  font-family: var(--f-ui); font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 400; line-height: 1.45; letter-spacing: 0;
  color: rgba(255, 255, 255, 0.62);
  margin: 1rem 0 clamp(2.6rem, 5vw, 4rem);
}

.foot__title {
  font-family: var(--f-ui); font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.1; letter-spacing: -0.012em;
  color: #fff;
  margin: 0;
}

.foot__col { border-top: 1px solid #22272c; padding-top: 1.2rem; }

.foot__col--index { display: grid; gap: 0.55rem; align-content: start; }

.foot__col--index a {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem;
  color: #cfd4d9; text-decoration: none; border: 0;
  font-size: 0.86rem;
}

.foot__col--index a span {
  font-family: var(--f-display); font-size: 0.95rem; color: #5c646b;
}

.foot__col--index a:hover { color: #fff; }

.foot__col--index a:hover span { color: #fff; }

.foot__link { margin-top: 0.7rem; }

.foot__clarivate { width: 13.9rem !important; height: auto !important; margin-bottom: 0.9rem; opacity: 0.92; }

.foot__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}

.foot img { max-width: 100%; }

.foot h4 {
  color: #fff; font-family: var(--f-ui); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.8rem;
}

.foot p { max-width: 30ch; line-height: 1.55; }

.foot a { color: #cfd4d9; text-decoration: none; border-bottom: 1px solid #33383d; }

.foot a:hover { color: #fff; }

.foot__bar {
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px solid #24282c;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.74rem; color: #8b9198;
}
/* --- 14. Motion ---------------------------------------------------------- */
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .reveal  { opacity: 0; translate: 0 14px; }

.js .reveal.is-in  {
  opacity: 1; translate: 0 0;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

/* figures enter as a whole: the artwork settles a beat before its caption */
.js .figure.reveal  { opacity: 0; translate: 0 20px; scale: 0.985; }

.js .figure.reveal.is-in  {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 0.65s var(--ease), translate 0.75s var(--ease), scale 0.9s var(--ease);
}

.js .figure.reveal figcaption  { opacity: 0; translate: 0 10px; }

.js .figure.reveal.is-in figcaption  {
  opacity: 1; translate: 0 0;
  transition: opacity 0.5s ease 0.18s, translate 0.55s var(--ease) 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
    .cover__emblem { animation: none !important; }
  .cover__emblem .wipe { transform: none; }
  .cover__emblem .ring, .cover__emblem .book { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; translate: none; }
  .js .figure.reveal { scale: none; }
  .js .figure.reveal figcaption { opacity: 1; translate: none; }
}
/* cross-document transitions (progressive) */
@view-transition { navigation: auto; }

/* --- 15. Dialog: search & lightbox -------------------------------------- */
dialog {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100dvh;
}

/* a plain dim: backdrop blur mis-composites on scrolled pages and costs GPU on phones */
dialog::backdrop { background: rgba(10, 12, 14, 0.55); }

.search {
  width: min(46rem, calc(100vw - 2rem));
  margin: 8vh auto auto;
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.search__field {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--rule);
}

.search__field input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: none;
}

.search__field input::placeholder { color: #a6a9ad; }

.search__hint {
  font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 4px; padding: 0.15rem 0.35rem;
}

.search__results { max-height: min(60vh, 32rem); overflow-y: auto; padding: 0.4rem; }

.search__empty { padding: 2rem 1.2rem; color: var(--muted); font-size: 0.9rem; }

.result {
  display: grid; gap: 0.25rem; padding: 0.85rem 0.9rem;
  border-radius: 4px; text-decoration: none; color: inherit;
}

.result:hover, .result:focus-visible { background: var(--wash); outline: none; }

.result__where {
  font-family: var(--f-ui); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.result__text { font-size: 0.92rem; line-height: 1.5; color: #2f3237; }

.result__text mark { background: color-mix(in srgb, var(--amber) 55%, #fff); color: #111; border-radius: 2px; }

.lightbox {
  width: min(96vw, 84rem);
  margin: 3vh auto auto;
  background: #fff; border-radius: 4px; padding: 1rem;
  max-height: 94dvh; overflow: auto;
}

.lightbox img { width: 100%; }

.lightbox__cap {
  margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted);
}

.lightbox__close {
  position: sticky; top: 0; float: right;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--rule);
  display: grid; place-items: center; font-size: 1rem;
  margin: -0.4rem -0.4rem 0 0;
}
/* --- 16. Small screens --------------------------------------------------- */
@media (min-width: 64rem) and (max-width: 90rem) {
  .topbar { gap: 0.45rem; }
  .topbar__link { font-size: 0.6rem; letter-spacing: 0.05em; padding-inline: 0.3rem; }
}
@media (max-width: 81rem) {
  /* drops the HKBU prefix under the logo */
  .topbar__brand {
    flex-direction: column; align-items: flex-start; gap: 0.3rem;
    padding-block: 0.15rem;
  }
  /* the brand stacks here, so the logo has to give the two title lines room */
  .topbar__logo { height: 1.9rem; }
  .topbar__title {
    display: block;
    padding-left: 0; margin-left: 0; border-left: 0;
    font-size: 0.62rem; letter-spacing: 0.1em; line-height: 1.18;
    white-space: nowrap;
  }
  .topbar__link span { display: none; }
  .topbar__link { padding: 0.45rem; }
}
@media (max-width: 52rem) {
  .topbar__link { display: none; }
  .topbar__contents { display: inline-flex; }
  /* the top bar already carries Contents here, and the floating copy sat on the text */
  .toc-fab, .toc-fab.is-visible { display: none !important; }
  .topbar { gap: 0.6rem; }
  .topbar__nav { gap: 0.1rem; }
  .chero__arcs { right: -34%; bottom: -14%; width: 165vw; }
}
@media (max-width: 34rem) {
  .figure figcaption { grid-template-columns: 1fr; gap: 0.25rem; }
  .figure figcaption span { max-width: none; }
}
@media (max-width: 48rem) {
  :root { --bar: 4.6rem; }
  /* rule beside the figure, label stacked under the number */
  .kn {
    grid-template-columns: 3px 1fr;
    gap: 0.32rem 0.85rem;
    align-items: start;
  }
  .kn__bar {
    grid-row: 1 / span 2;
    height: auto; align-self: stretch;
    border-radius: 2px;
  }
  .kn__num, .kn__label { grid-column: 2; }
  .kn__num { font-size: clamp(1.9rem, 7.6vw, 2.4rem); }
  .figure figcaption { grid-template-columns: 1fr; gap: 0.3rem; }
  .figure figcaption span { max-width: none; }
  .figure__frame::after { opacity: 1; translate: 0 0; }
  .toc__go { display: none; }.toc__row {
  grid-template-columns: 2.6rem 1fr;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.55rem;
  background: #fff;
  border: 1px solid #dedbd5;
  border-radius: 0;
  gap: 0.9rem;
}

  .toc__row:active { background: #f6f4f0; }
  .toc__n { width: 2.4rem; font-size: 0.95rem; }
  .figure, .photo { width: 100%; }
  .quote p, .lead { max-width: none; }
}
@media (max-width: 30rem) {
  .topbar__search kbd { display: none; }
}

.stack > * + * { margin-top: 1rem; }
/* cover motion off: everything simply present */
@media (prefers-reduced-motion: reduce) {
  .cover__title .ch,
  .cover__title .line > span,
  .cover__title .line > strong,
  .cover__kicker, .cover__sub, .cover__cta, .cover__stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }
  .cover__stats::after { animation: none !important; transform: scaleX(1) !important; }
  .cover__title::after { display: none !important; }
  .cover__emblem, .cover__emblem .emblem-canvas { animation: none !important; transform: none !important; }
  .cover__scroll { animation: none !important; opacity: 1 !important; }
  .cover__scroll span { animation: none !important; }
  .cover__emblem .bar, .cover__emblem .ring, .cover__emblem .book {
    animation: none !important; transform: none !important; opacity: 1 !important;
  }
}
/* very small phones: the bar only has the mark, contents and search */
@media (max-width: 26rem) {
  .topbar { gap: 0.4rem; padding-inline: 0.9rem; }
  /* the SVG lockup is a little wider than the old raster */
  .topbar__logo { height: 1.7rem; }
  .topbar__contents { font-size: 0.66rem; }
  .topbar__search { padding: 0.34rem 0.62rem; font-size: 0.68rem; }
  .topbar__search kbd { display: none; }
}

/* --- publication band -------------------------------------------------- */
/* a full screen of paper: the book on the left, the chapter list on the right */
.pub {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(120% 120% at 8% 0%, rgba(0, 173, 239, 0.18) 0%, rgba(0, 173, 239, 0) 55%),
    #eaf4fb;
  color: #0a3a5c;
  padding-block: clamp(4rem, 9vh, 7rem);
  overflow: clip;
}

.pub__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.pub__cover {
  margin: 0;
  width: min(100%, 26rem);
  justify-self: center;
  perspective: 1500px;
}

.book { position: relative; transform-style: preserve-3d; --last: 3; }

.book__page {
  display: block; width: 100%; height: auto;
  box-shadow:
    0 3px 6px rgba(6, 43, 71, 0.12),
    0 44px 70px -26px rgba(6, 43, 71, 0.5);
}

.leaf {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  z-index: calc(10 - var(--i));
  /* rotation runs the whole way; the fade only starts once the page is past
     the spine */
  transition: transform 1.05s cubic-bezier(0.46, 0.03, 0.32, 1);
  transition-delay: calc((var(--last) - var(--i)) * 0.38s);
  will-change: transform, opacity;
}

.leaf img { display: block; width: 100%; height: auto; }

.leaf__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 20, 32, 0.55) 0%, rgba(4, 20, 32, 0.12) 45%, rgba(4, 20, 32, 0) 78%);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.leaf--top {
  box-shadow:
    0 3px 6px rgba(6, 43, 71, 0.12),
    0 44px 70px -26px rgba(6, 43, 71, 0.5);
}

.pub__cover.is-open .leaf {
  transform: rotateY(-168deg);
  box-shadow: none;
  transition-delay: calc(var(--i) * 0.38s);
}

.pub__cover.is-open .leaf__shade { opacity: 1; transition-delay: calc(var(--i) * 0.38s); }

.pub__body { display: grid; gap: 1.2rem; justify-items: start; }

.pub__title {
  color: #063a5f;
  font-family: var(--f-ui);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.015em; text-transform: uppercase;
  line-height: 0.98; max-width: 20ch;
}

.pub__text {
  max-width: 34rem; color: #2f5570;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem); line-height: 1.55;
}

/* chapter list: read online, or take the chapter as a PDF */
.pub__toc { display: grid; width: 100%; margin-top: 0.6rem; border-top: 1px solid rgba(10, 58, 92, 0.16); }

.pub__row {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) 2.4rem auto auto;
  align-items: baseline; gap: 0.9rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(10, 58, 92, 0.12);
}

.pub__n {
  font-family: var(--f-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--c);
}

.pub__t {
  font-family: var(--f-ui); font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.05rem);
  font-weight: 600; color: #0a3a5c;
}

.pub__p {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(10, 58, 92, 0.45); justify-self: end;
}

.pub__act {
  font-family: var(--f-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: #06618f; padding: 0.2rem 0.1rem;
  border-bottom: 1px solid rgba(6, 97, 143, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.pub__act:hover { color: #00529b; border-color: #00529b; }

.pub__act--pdf { color: rgba(10, 58, 92, 0.55); border-bottom-color: rgba(10, 58, 92, 0.2); }

.pub__act--pdf:hover { color: #0a3a5c; border-color: #0a3a5c; }

.pub__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.9rem; }

.pub__cta .btn { flex: 0 0 auto; }

.pub .btn--solid { background: var(--cyan); color: #04222e; border-color: var(--cyan); }

.pub .btn--solid:hover {
  background: #00529b; border-color: #00529b; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 82, 155, 0.5);
}

.pub .btn--ghost { color: #0a3a5c; border-color: rgba(10, 58, 92, 0.34); }

.pub .btn--ghost:hover { background: rgba(10, 58, 92, 0.06); border-color: #0a3a5c; }
@media (max-width: 60rem) {
  .pub { min-height: 0; }
  .pub__inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .pub__cover { width: min(72vw, 17rem); justify-self: start; }
  .pub__cta { width: 100%; }
  .pub__cta .btn { flex: 1 1 100%; }
}
@media (max-width: 30rem) {
  .pub__row { grid-template-columns: 1.8rem minmax(0, 1fr) auto auto; }
  .pub__p { display: none; }
}

/* full-bleed photo, caption on the text column */
.photo--bleed {
  position: relative;
  margin: clamp(2rem, 4vw, 3.4rem) 0 clamp(2.4rem, 5vw, 4rem);
}

.photo--bleed .photo__frame { position: relative; }

/* the photo runs under the section rail, so give it a scrim to sit on */
.photo--bleed .photo__frame::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 18rem;
  background: linear-gradient(90deg, rgba(6, 10, 14, 0.72), rgba(6, 10, 14, 0));
  pointer-events: none;
}

.photo--bleed img {
  display: block; width: 100%; height: auto;
}
@media (max-width: 40rem) {
  .photo--bleed .photo__frame::before { width: 9rem; }
}

.photo--bleed figcaption {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding-inline: var(--gut);
  font-family: var(--f-ui);
  font-size: 0.78rem; letter-spacing: 0.02em; line-height: 1.5;
  color: var(--muted);
}

/* --- iPhone safe areas -------------------------------------------------- */
.topbar {
  padding-left: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}

.cover__stats-inner,
.foot .wrap,
.wrap {
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.foot { padding-bottom: env(safe-area-inset-bottom); }

.rbar { padding-left: max(0.8rem, env(safe-area-inset-left)); padding-right: max(0.8rem, env(safe-area-inset-right)); }
/* --- touch targets ------------------------------------------------------ */
@media (pointer: coarse) {
  .topbar__contents,
  .topbar__search,
  .pub__act,
  .rail__item {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
  .pub__act { padding-inline: 0.45rem; margin-inline: -0.25rem; }
  .btn { min-height: 3.25rem; }
  /* a visible press state: there is no hover on a phone */
  .btn:active { background: rgba(255, 255, 255, 0.86); }
  .pub .btn--solid:active { background: #00529b; color: #fff; border-color: #00529b; }
  .pub__act:active { color: #00529b; border-color: #00529b; }
  .toc__row:active { background: var(--wash); }
  .figure:active .figure__frame::after { opacity: 1; }
}
/* on a 320px phone the bar has no room for the report name as well */
@media (max-width: 22rem) {
  .topbar__title { display: none; }
  .topbar { padding-inline: 0.7rem; gap: 0.3rem; }
  .topbar__contents { font-size: 0.62rem; }
}

/* --- 404 ---------------------------------------------------------------- */
.missing {
  min-height: calc(100svh - var(--bar));
  display: grid; align-items: center;
  padding-block: clamp(4rem, 12vh, 9rem);
  background: var(--paper);
}

.missing__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-top: 0.6rem;
}

.missing__text { margin-top: 1rem; color: var(--body); max-width: 30rem; }

.missing__links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

.missing .btn--ghost { color: var(--ink); border-color: rgba(14, 17, 19, 0.3); }

.missing .btn--ghost:hover { background: rgba(14, 17, 19, 0.05); border-color: var(--ink); }

.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--ink:hover { background: var(--cyan); border-color: var(--cyan); color: #06121a; }
/* --- key numbers: two columns on a wide screen --------------------------- */
@media (min-width: 64rem) {
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .kn {
    grid-template-columns: 3px minmax(4.5rem, 7rem) 1fr;
    gap: 0 1.2rem; align-items: start; padding-block: 1.05rem;
  }
  .kn__num { font-size: clamp(1.7rem, 2.3vw, 2.4rem); line-height: 0.9; }
  .kn__bar { height: 1.9rem; }.kn__label {
  padding-top: 0.15rem;
  font-size: clamp(0.72rem, 0.62rem + 0.16vw, 0.82rem);
}

}

/* --- chapter contents button + sheet (small screens) --------------------- */
.toc-fab {
  position: fixed; z-index: 45;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  width: 3rem; height: 3rem; border-radius: 50%;
  display: none; place-items: center; gap: 3px;
  border: 0; cursor: pointer;
  background: rgba(14, 17, 19, 0.92);
  box-shadow: 0 10px 26px -8px rgba(14, 17, 19, 0.6);
  opacity: 0; translate: 0 8px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease);
}

.toc-fab.is-visible { display: grid; opacity: 1; translate: 0 0; }

.toc-fab i { display: block; width: 15px; height: 1.5px; background: #fff; }

.toc-fab:active { background: #00529b; }

.toc-sheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: none; max-height: 68svh;
  margin: 0; padding: 1.1rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom));
  border: 0; border-radius: 1rem 1rem 0 0;
  background: #fff; color: var(--ink);
  box-shadow: 0 -18px 50px -20px rgba(14, 17, 19, 0.45);
}

.toc-sheet::backdrop { background: rgba(10, 12, 14, 0.55); }

.toc-sheet__list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: calc(68svh - 3rem); }

.toc-sheet__list li + li { border-top: 1px solid var(--rule-soft); }

.toc-sheet__list a {
  display: block; padding: 0.95rem 0.2rem;
  font-family: var(--f-ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}

.toc-sheet__list a:active { color: #00529b; }
/* the rail takes over from 86rem up, where there is margin to spare */
@media (min-width: 86rem) {
  .toc-fab { display: none !important; }
}

/* the university mark now sits under its own name */
.foot__hkbu { margin: 0.7rem 0 0; opacity: 0.96; }

/* the third column carries the anniversary mark at its bottom right */
.foot__grid > .foot__col:last-child {
  display: flex; flex-direction: column; align-self: stretch;
}

.foot__mark70 {
  display: block;
  height: 6rem !important; width: auto !important;
  margin: auto 0 0 auto;
}
@media (max-width: 40rem) {
}

/* --- footer contents rows ------------------------------------------------ */
.foot__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.42rem;
  border-bottom: 1px solid #1d2226;
}

.foot__toc {
  display: flex; align-items: baseline; gap: 0.8rem;
  color: rgba(255, 255, 255, 0.86); text-decoration: none;
  font-size: 0.8rem; line-height: 1.3;
}

.foot__toc span {
  font-family: var(--f-ui); font-size: 0.62rem; letter-spacing: 0.12em;
  /* 0.38 was 3.5:1 on the dark footer; 0.58 clears AA for this size */
  color: rgba(255, 255, 255, 0.58);
}

.foot__toc:hover { color: #fff; }

.foot__acts { display: flex; gap: 0.55rem; }

/* the office name and its reversed lockup */
.foot__org {
  color: rgba(255, 255, 255, 0.9); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
}

.foot__org:hover { color: #fff; border-color: #fff; }

/* both lockups share one width */
.foot__hkbu,
.foot__oirp {
  display: block; height: auto; max-width: 100%;
}

/* the marks carry the name, so the link wraps the logo and there is no text */
.foot__mark {
  display: block; width: fit-content;
  text-decoration: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}
/* .foot a draws a 1px rule under links; the logo needs none */
.foot a.foot__mark,
.foot a.foot__mark:hover { border-bottom: 0; }
.foot__mark:hover { opacity: 1; translate: 0 -1px; }
.foot__mark img { display: block; height: auto; }
.foot__mark--office { margin-top: 1.5rem; }
/* the university mark sets the width; the office sits below it, one size down */
.foot__hkbu { width: 13.9rem; }
.foot__oirp { width: 10.6rem; }

.foot__oirp { margin: 0 0 1.1rem; opacity: 0.9; }
@media (max-width: 40rem) {
  .foot__row { gap: 0.4rem; }
  .foot__toc { font-size: 0.76rem; }
  .foot__acts a { padding-block: 0.35rem; }
}

/* keep the office name on one line, and drop the underlines inside the
   contents rows so… */
.foot p.foot p.foot__sub { max-width: none; }

.foot__col--index a,
.foot__col--index a:hover { border-bottom: 0; }
.foot__acts a {font-family: var(--f-ui); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, 0.5); border-bottom: 0; padding-block: 0.15rem
}
.foot__acts a:hover {color: #fff; border-color: #fff
}
/* just above the compact breakpoint the bar is still tight: the label steps
   down a… */
@media (min-width: 81.0625rem) and (max-width: 87.5rem) {
  .topbar { gap: 0.35rem; }
  .topbar__title { font-size: 0.75rem; letter-spacing: 0.1em; }
}

/* --- industry partners in chapter one ------------------------------------ */
.defs--vendors { margin: 1.4rem 0 1.9rem; }

.defs--vendors .def { padding-block: 0.95rem; }

.defs--vendors .def dd { color: var(--body); line-height: 1.55; max-width: 44rem; }
@media (max-width: 40rem) {
  .defs--vendors .def { gap: 0.35rem; }
}

/* the appendix contents list nine topics but the page has only a few numbered
   sections */
[data-ch="0"] .section__head::before { display: none; }

/* --- framed passage (chapter two) ---------------------------------------- */
.feature {
  margin: clamp(2.2rem, 4.6vw, 3.4rem) 0;
  padding: clamp(1.5rem, 3.2vw, 2.3rem) clamp(1.4rem, 3vw, 2.2rem);
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

.feature > p { color: #24272b; }

.feature > p + p { margin-top: 1.05em; }

.section .feature .feature__head {
  border-top: 0; padding-top: 0;
  margin: 0 0 0.9rem;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  max-width: none;
  color: var(--accent-ink);
}
@media (max-width: 40rem) {
  .feature { padding: 1.25rem 1.05rem 1.35rem; }
  .section .feature .feature__head { font-size: 1.02rem; letter-spacing: 0.02em; }
}

/* a note set by its own figure: aligned with the caption's text */
.figure .note {
  margin-top: 0.75rem; font-size: 0.8rem;
  /* the note shares the caption's measure instead of a narrow text column */
  max-width: 46rem;
}
@media (min-width: 86rem) {
  /* line the note up with the caption text, clear of the section rail */
  .figure .note { margin-left: 4.5rem; padding-left: clamp(1.2rem, 3vw, 2.4rem); }
}
/* on a phone the label is squeezed into a 22ch column beside the number:
   stack it */
@media (max-width: 40rem) {
  .stat { grid-template-columns: 1fr; gap: 0.9rem; align-items: start; }
  .stat__num { font-size: 3.15rem; }
  .stat__label { max-width: none; padding-left: 0; border-left: 0; }
}

/* --- footnotes ----------------------------------------------------------- */
.fnref {
  font-size: 0.62em; line-height: 0; vertical-align: super;
}

.fnref a {
  color: var(--accent-ink); text-decoration: none;
  padding: 0 0.12em; font-weight: 600;
}

.fnref a:hover { text-decoration: underline; }

.footnotes {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none; counter-reset: none;
  max-width: 46rem;
}

.footnotes li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem;
  font-size: 0.8rem; line-height: 1.55; color: var(--muted);
}

.footnotes li + li { margin-top: 0.7rem; }

.footnotes li::before {
  content: attr(data-n) ".";
  font-family: var(--f-ui); font-weight: 700; color: var(--accent-ink);
  font-size: 0.74rem;
}

.footnotes p { margin: 0; }

.fnback {
  color: var(--accent-ink); text-decoration: none;
  padding-left: 0.15em; white-space: nowrap;
}

.fnback:hover { text-decoration: underline; }
/* --- comfortable targets on a touch screen ------------------------------ */
@media (pointer: coarse) {
  /* the next-chapter banner: the whole strip should be tappable */
  .next__link { min-height: 3.25rem; align-items: center; }

  /* footer rows: the links were 20px tall */
  .foot__toc { padding-block: 0.45rem; }
  .foot__acts a { padding-block: 0.6rem; padding-inline: 0.5rem; margin-inline: -0.2rem; font-size: 0.64rem; }

  /* footnote markers and their return links */
  .fnref a {
    display: inline-block; line-height: 1.2;
    padding: 0.7em 0.35em; margin: -0.7em -0.15em;
  }
  .fnback { display: inline-block; padding: 0.4em 0.35em; margin: -0.4em -0.2em; }

}

/* --- portrait photograph in the flow ------------------------------------- */
.section > .photo.photo--portrait { width: min(28rem, 100%); margin-inline: auto; }

.section > .photo.photo--landscape { width: min(42rem, 100%); margin-inline: auto; }

.photo--landscape img, .photo--portrait img { width: 100%; height: auto; display: block; }

.photo--landscape figcaption, .photo--portrait figcaption {
  margin-top: 0.9rem; padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem; line-height: 1.55; color: var(--muted); max-width: none;
}

.photo--portrait img { width: 100%; height: auto; display: block; }

.photo--portrait figcaption {
  margin-top: 0.9rem; padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem; line-height: 1.55; color: var(--muted);
  max-width: none;
}

/* caption takes the figure's width */
.figure .figure__frame + figcaption span,
figure figcaption span { max-width: none; }
@media (max-width: 40rem) {
  .case { padding: 1.25rem 1.05rem 1.35rem; }
}

/* --- credits roster: one person a line, the name carrying the weight ------ */
.people {
  margin: 0.45rem 0 0;
  font-size: 0.92rem; line-height: 1.55;
  color: var(--body);
}

.people b { font-weight: 700; color: var(--ink); }

/* chapter colour maps */
.topbar__link[href="research-in-motion.html"] { --c: var(--cyan); }

.topbar__link[href="health.html"]             { --c: var(--magenta); }

.topbar__link[href="humanities.html"]         { --c: var(--amber); }

.topbar__link[href="human-centred-ai.html"]   { --c: var(--green); }

.topbar__link[href="discovery.html"]          { --c: var(--red); }

.topbar__link[href="appendix.html"]           { --c: var(--navy); }

.pub__row[data-ch="research-in-motion"] { --c: var(--cyan); }

.pub__row[data-ch="health"]             { --c: var(--magenta); }

.pub__row[data-ch="humanities"]         { --c: var(--amber); }

.pub__row[data-ch="human-centred-ai"]   { --c: var(--green); }

.pub__row[data-ch="discovery"]          { --c: var(--red); }

.pub__row[data-ch="appendix"]           { --c: var(--navy); }

.kn[data-ch="research-in-motion"] { --bar: var(--cyan); }

.kn[data-ch="health"]             { --bar: var(--magenta); }

.kn[data-ch="humanities"]         { --bar: var(--amber); }

.kn[data-ch="human-centred-ai"]   { --bar: var(--green); }

.kn[data-ch="discovery"]          { --bar: var(--red); }

.kn[data-ch="appendix"]           { --bar: var(--navy); }

.next--to-research-in-motion { --next-c: var(--cyan);    --next-on: #0e1113; }

.next--to-health             { --next-c: var(--magenta); --next-on: #ffffff; }

.next--to-humanities         { --next-c: var(--amber);   --next-on: #0e1113; }

.next--to-human-centred-ai   { --next-c: var(--green);   --next-on: #0e1113; }

.next--to-discovery          { --next-c: var(--red);     --next-on: #0e1113; }

/* --- cover letter scatter (was inline style) --------------------------- */
.cover__title .ch0 { --dx:58px; --dy:0px; --rot:-9deg; --i:0 }

.cover__title .ch1 { --dx:-60px; --dy:25px; --rot:1deg; --i:1 }

.cover__title .ch2 { --dx:5px; --dy:-26px; --rot:-8deg; --i:2 }

.cover__title .ch3 { --dx:49px; --dy:29px; --rot:2deg; --i:3 }

.cover__title .ch4 { --dx:-57px; --dy:-5px; --rot:-7deg; --i:4 }

.cover__title .ch5 { --dx:68px; --dy:-20px; --rot:3deg; --i:5 }

.cover__title .ch6 { --dx:-15px; --dy:25px; --rot:-6deg; --i:6 }

.cover__title .ch7 { --dx:-37px; --dy:-32px; --rot:4deg; --i:7 }

.cover__title .ch8 { --dx:-75px; --dy:14px; --rot:5deg; --i:9 }

.cover__title .ch9 { --dx:25px; --dy:-24px; --rot:-4deg; --i:10 }

.cover__title .ch10 { --dx:-50px; --dy:-13px; --rot:-3deg; --i:12 }

.cover__title .ch11 { --dx:79px; --dy:-8px; --rot:7deg; --i:13 }

.cover__title .ch12 { --dx:-33px; --dy:21px; --rot:-2deg; --i:14 }

.cover__title .ch13 { --dx:58px; --dy:0px; --rot:-9deg; --i:0 }

.cover__title .ch14 { --dx:-60px; --dy:25px; --rot:1deg; --i:1 }

.cover__title .ch15 { --dx:5px; --dy:-26px; --rot:-8deg; --i:2 }

.cover__title .ch16 { --dx:49px; --dy:29px; --rot:2deg; --i:3 }

.cover__title .ch17 { --dx:-57px; --dy:-5px; --rot:-7deg; --i:4 }

.cover__title .ch18 { --dx:68px; --dy:-20px; --rot:3deg; --i:5 }

.cover__title .ch19 { --dx:-15px; --dy:25px; --rot:-6deg; --i:6 }

.cover__title .ch20 { --dx:-37px; --dy:-32px; --rot:4deg; --i:7 }

.cover__title .ch21 { --dx:55px; --dy:9px; --rot:-5deg; --i:8 }

.cover__title .ch22 { --dx:-75px; --dy:14px; --rot:5deg; --i:9 }

.cover__title .ch23 { --dx:25px; --dy:-24px; --rot:-4deg; --i:10 }

.cover__title .ch24 { --dx:24px; --dy:35px; --rot:6deg; --i:11 }

.cover__title .ch25 { --dx:-50px; --dy:-13px; --rot:-3deg; --i:12 }

.stat--navy { --accent: var(--navy); --on-accent: #fff; min-height: auto; }

.section--tight-bottom { padding-bottom: clamp(2rem, 5vh, 3rem); }

/* the book leaves stack by index */
.leaf--i0 { --i: 0; }

.leaf--i1 { --i: 1; }

.leaf--i2 { --i: 2; }

.leaf--i3 { --i: 3; }

/* the ordinal suffix in the topbar label sits as a superscript */
.topbar__title sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
  letter-spacing: 0.02em;
  margin-left: 0.02em;
}

/* footnote markers are tiny glyphs; give them a finger-sized hit area */
.fnref a, .fnback { position: relative; }
.fnref a::after, .fnback::after {
  content: "";
  position: absolute;
  inset: -0.75rem -0.6rem;
}
