/* v5 "Blued steel": chaptered editorial. Tokens first, then chapters in page order. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/archivo-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/archivo-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #EEF0F0;
  --white: #F7F8F8;
  --stone: #E1E5E8;
  --ink: #0F1218;
  --ink-soft: #4A5260;
  --line: #C3C9D0;
  --steel: #2A3BB0;
  --steel-ink: #FFFFFF;
  --night: #0E1117;
  --night-ink: #E8EBEF;
  --night-soft: #A4ACB9;
  --night-line: #2A303B;
  --steel-lite: #9AA6FF;
  --deep: #17246E;
  --deep-soft: #C9D0FF;

  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --section: clamp(80px, 13vw, 176px);
  --top: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 62ch;

  /* Per chapter, restated with color on each ground. */
  --bg: var(--paper); --fg: var(--ink); --soft: var(--ink-soft); --rule: var(--line); --accent: var(--steel); --accent-ink: var(--steel-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--top); }
.ch { scroll-margin-top: var(--top); }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 760px) { body { font-size: 18px; } }
::selection { background: var(--steel); color: var(--steel-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grain: a flat ground bands on real displays. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: fixed; left: var(--s4); top: var(--s4); z-index: 80; padding: var(--s3) var(--s4); background: var(--ink); color: var(--paper); transform: translateY(-200%); transition: transform 160ms var(--ease-out); }
.skip:focus { transform: none; }

/* Placeholders: one style, visible, readable on every ground. */
.ph { font-family: var(--f-mono); font-size: 0.78em; letter-spacing: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-bottom: 1px dashed currentColor; padding: 0 0.2em; overflow-wrap: anywhere; }

.label { font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }

/* ---------- Navigation: sticky top bar (v5-fix4) ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); min-height: var(--top); padding: 0 var(--gutter); font: 500 15px/1.2 var(--f-text); }
.nav a { text-decoration: none; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; font: 800 16px/1 var(--f-text); letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.nav__lang { display: inline-flex; align-items: center; gap: var(--s1); font: 400 13px/1 var(--f-mono); letter-spacing: 0.04em; }
.nav__lang > * { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.nav__lang [aria-current] { font-weight: 500; box-shadow: inset 0 -2px 0 var(--steel); color: var(--steel); }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; min-width: 44px; padding: 0 var(--s3);
  background: none; border: 1px solid var(--ink); border-radius: 0; color: inherit; font: inherit; cursor: pointer;
}
.nav__chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms var(--ease-out); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: translateY(2px) rotate(225deg); }
.nav__links { order: 5; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 var(--s5); padding-bottom: var(--s2); }
.nav__links a { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.nav__links a[aria-current] { color: var(--steel); border-bottom-color: var(--steel); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover, .nav__brand:hover, .nav__lang a:hover { color: var(--steel); } .nav__toggle:hover { background: var(--stone); } }
/* With JS the links fold into a panel under the bar on phones. */
.js .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: var(--s2) var(--gutter) var(--s5); background: var(--paper); border-bottom: 1px solid var(--line); }
.js .nav.is-open .nav__links { display: flex; }
.js .nav__links a { min-height: 56px; font: 500 22px/1.2 var(--f-text); letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.js .nav__links a[aria-current] { border-bottom-color: var(--steel); }
html:not(.js) .nav__toggle { display: none; }
@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; }
  .nav__toggle { display: none; }
  .nav__links, .js .nav__links { display: flex; position: static; flex-basis: auto; flex-direction: row; order: 2; padding: 0; background: none; border: 0; gap: 0 var(--s6); }
  .js .nav__links a { min-height: 44px; font: 500 15px/1.2 var(--f-text); letter-spacing: 0; border-bottom: 2px solid transparent; }
  .js .nav__links a[aria-current] { border-bottom-color: var(--steel); }
  .nav__brand { margin-right: 0; flex: 1 1 0; }
  .nav__lang { order: 3; flex: 1 1 0; justify-content: flex-end; }
}

/* ---------- Chapters ---------- */
main { outline: none; }
.ch:focus { outline: none; }
.ch {
  position: relative; background: var(--bg); color: var(--fg);
  padding: var(--section) var(--gutter);
}
.ch > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.intertitle { display: grid; gap: var(--s4); margin-bottom: clamp(var(--s8), 8vw, var(--s10)); }
.h2 { font: 800 clamp(2.25rem, 7vw, 6rem)/0.98 var(--f-text); letter-spacing: -0.045em; text-wrap: balance; max-width: 15ch; }
.intertitle__line { color: var(--soft); max-width: 48ch; text-wrap: pretty; }
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wd > span { display: inline-block; }

/* ---------- 01 Title page ---------- */
.ch--title {
  --bg: var(--paper);
  min-height: calc(100svh - var(--top)); padding-top: var(--s6); padding-bottom: var(--s8);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s6);
}
.ch--title > * { max-width: none; margin: 0; }
.masthead {
  font: 800 clamp(4.2rem, 21vw, 11rem)/0.8 var(--f-text); letter-spacing: -0.065em; color: var(--ink);
  margin-left: -0.06em; position: relative; z-index: 1; will-change: transform;
}
.masthead__line { display: block; overflow: hidden; padding: 0.04em 0 0.06em; }
.masthead__line > span { display: inline-block; }
.title__copy { display: grid; gap: var(--s5); position: relative; z-index: 3; container-type: inline-size; }
.title__copy .label { margin-bottom: calc(-1 * var(--s2)); }
/* v5-fix H1 fit: same words, two lines. --h1-em is the longest balanced line in em (Archivo 500, -0.03em tracking: EN 15.13, FR 15.46) plus a 6% margin. */
.title__h1 { --h1-em: 16.1; font: 500 clamp(1.25rem, 100cqi / var(--h1-em), 3.25rem)/1.06 var(--f-text); letter-spacing: -0.03em; text-wrap: balance; max-width: none; }
.title__h1:lang(fr) { --h1-em: 16.4; }
.title__line { color: var(--soft); max-width: 40ch; }
.title__actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s5);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap;
  border-radius: 0; transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn__arrow { width: 14px; height: 1.5px; background: currentColor; position: relative; transition: transform 180ms var(--ease-out); }
.btn__arrow::after { content: ""; position: absolute; right: 0.5px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--deep); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}
.btn:active { transform: translateY(1px); }
.btn--quiet { gap: 0.5em; flex-wrap: wrap; background: none; color: var(--fg); padding: 0; min-height: 44px; white-space: normal; cursor: not-allowed; }
.btn--quiet:hover { background: none; }

.plate { position: relative; z-index: 2; width: min(100%, 520px); will-change: transform; }
.plate__pic img { width: 100%; height: auto; aspect-ratio: 1080 / 1441; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(15, 18, 24, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset; }
.plate__cap { margin-top: var(--s3); font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }

@media (min-width: 760px) {
  .ch--title { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: 0; align-content: stretch; }
  .masthead { grid-column: 1 / -1; grid-row: 1; }
  .plate { grid-column: 9 / 13; grid-row: 1 / 3; align-self: start; margin-top: clamp(80px, 12vw, 190px); width: 100%; }
  .title__copy { grid-column: 1 / 8; grid-row: 2; align-self: end; padding-top: var(--s6); }
}
@media (min-width: 1100px) {
  .ch--title { padding-top: var(--s7); }
  .plate { grid-column: 8 / 12; margin-top: clamp(64px, 6.5vw, 104px); }
  .title__copy { grid-column: 1 / 8; }
}

/* ---------- 03 Experience: ledger (v5-fix4) ---------- */
.ch--route { --bg: var(--stone); }
.scope { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--fg); margin-bottom: clamp(var(--s7), 7vw, var(--s9)); }
.scope__cell { padding: var(--s4) var(--s4) var(--s5) 0; border-bottom: 1px solid var(--rule); display: grid; gap: var(--s3); align-content: start; }
.scope dt { font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }
.scope dd { font-weight: 500; font-size: 17px; line-height: 1.35; }
.places { display: flex; flex-wrap: wrap; gap: var(--s2); }
.places li { padding: var(--s1) var(--s3); border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); font-weight: 500; font-size: 15px; line-height: 1.4; }
@media (min-width: 700px) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scope__cell { border-bottom: 0; } }

.ledger { border-top: 1px solid var(--fg); }
.role { display: grid; gap: var(--s3) var(--s5); padding: var(--s6) var(--s4); border-bottom: 1px solid var(--rule); }
.role.is-current { background: var(--white); box-shadow: inset 3px 0 0 var(--accent); }
.role__years { display: flex; align-items: center; gap: var(--s2); font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }
.role__years::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.role.is-current .role__years { color: var(--accent); }
.role.is-current .role__years::before { background: var(--accent); border-color: var(--accent); }
.role__body { display: grid; gap: var(--s2); min-width: 0; }
.role__title { font: 500 clamp(1.4rem, 3vw, 2.1rem)/1.12 var(--f-text); letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; }
.role.is-current .role__title { color: var(--accent); }
.role__employer { font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.02em; color: var(--soft); }
.role__text { max-width: var(--measure); margin-top: var(--s2); text-wrap: pretty; }
@media (min-width: 768px) {
  .role { grid-template-columns: minmax(9rem, 2fr) minmax(0, 7fr); padding: var(--s7) var(--s5); }
  .role__years { align-self: start; padding-top: 0.55em; }
}

/* ---------- 05 Latest articles: dated list (v5-fix5) ---------- */
.ch--articles { --bg: var(--paper); }
.feed { border-top: 1px solid var(--fg); }
.fitem { position: relative; display: grid; gap: var(--s2) var(--s5); padding: var(--s5) var(--s4); border-bottom: 1px solid var(--rule); transition: background-color 160ms var(--ease-out); }
.fitem__date { font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }
.fitem__body { display: grid; gap: var(--s2); min-width: 0; }
.fitem__title { font: 500 clamp(1.25rem, 2.6vw, 1.75rem)/1.2 var(--f-text); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; max-width: 34ch; }
.fitem__link { text-decoration: none; }
/* The title link stretches over the whole row, so the row is one target. */
.fitem__link::after { content: ""; position: absolute; inset: 0; }
.fitem__link:focus-visible { outline: none; }
.fitem__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.fitem:has(.fitem__link:focus-visible) .fitem__link { color: var(--accent); }
.fitem__venue { font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.02em; color: var(--soft); }
.fitem__lang { display: inline-block; margin-left: var(--s2); padding: 0 var(--s1); border: 1px solid currentColor; font-size: 11px; line-height: 1.5; letter-spacing: 0.04em; }
/* External marker: a small arrow drawn in CSS, pointing up and right. */
.ext { display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.3em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; vertical-align: 0.25em; }
.feed__all { margin-top: var(--s5); }
.feed__all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--accent); text-decoration-thickness: 1.5px; }
@media (hover: hover) and (pointer: fine) {
  .fitem:hover { background: var(--white); }
  .fitem:hover .fitem__link { color: var(--accent); }
  .feed__all a:hover { color: var(--deep); }
}
@media (min-width: 768px) {
  .fitem { grid-template-columns: minmax(9rem, 2fr) minmax(0, 7fr); padding: var(--s6) var(--s5); }
  .fitem__date { padding-top: 0.5em; }
}

/* ---------- 02 Approach: the system diagram (night) ---------- */
.ch--approach { overflow-x: clip; --bg: var(--night); --fg: var(--night-ink); --soft: var(--night-soft); --rule: var(--night-line); --accent: var(--steel-lite); color: var(--fg); }
.system { display: grid; gap: var(--s7); }
.rings { position: relative; width: min(100%, 720px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.rings__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seg__band { fill: color-mix(in srgb, var(--steel-lite) 14%, var(--night)); stroke: color-mix(in srgb, var(--steel-lite) 45%, transparent); stroke-width: 0.2; transition: fill 200ms var(--ease-out); }
.seg__label { font-family: var(--f-mono); font-size: 2.7px; letter-spacing: 0.08px; fill: var(--steel-lite); transition: fill 200ms var(--ease-out); }
.seg__chev { fill: none; stroke: var(--steel-lite); stroke-width: 0.45; stroke-linecap: round; stroke-linejoin: round; }
.harness__label { font-family: var(--f-mono); font-size: 2.3px; letter-spacing: 0.25px; fill: var(--night-soft); }
.grp__arc { fill: none; stroke: var(--night-soft); stroke-opacity: 0.7; stroke-width: 0.35; stroke-linecap: round; }
.grp__label { font-family: var(--f-mono); font-size: 2.15px; letter-spacing: 0.12px; fill: var(--night-soft); }
.ring--core { fill: var(--night-ink); }
.rings__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24%; display: grid; gap: 0.35em; justify-items: center; text-align: center; color: var(--night); }
.rings__centre { font: 800 clamp(13px, 4.2cqi, 28px)/1 var(--f-text); letter-spacing: -0.03em; }
.rings__tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1em 0.6em; font: 400 13px/1.2 var(--f-mono); letter-spacing: 0.04em; color: var(--steel); }
.lever {
  position: absolute; transform: translate(-50%, -50%); width: max-content; max-width: 17%;
  text-align: center; font: 500 clamp(13px, 2.3cqi, 15px)/1.1 var(--f-text); letter-spacing: -0.01em;
  background: var(--bg); padding: 0.25em 0.35em; white-space: nowrap;
}

.system__side { display: grid; gap: var(--s4); align-content: start; }
.system__sectors { font: 500 clamp(1.25rem, 2.1vw, 1.65rem)/1.2 var(--f-text); letter-spacing: -0.02em; text-wrap: balance; }
.system__line { color: var(--soft); max-width: 52ch; text-wrap: pretty; margin-bottom: var(--s3); }
.cycle { display: grid; border-top: 1px solid var(--rule); }
.step { display: grid; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); transition: background-color 200ms var(--ease-out); }
.step__body { display: grid; gap: var(--s1); }
.step__title { font: 800 clamp(1.4rem, 2.2vw, 1.75rem)/1.1 var(--f-text); letter-spacing: -0.03em; }
.step__text { color: var(--soft); font-size: 16px; text-wrap: pretty; }
.step__outcome { margin-top: var(--s2); font-size: 16px; font-weight: 500; }
.step__result { font-weight: 400; }

/* Bots: they visit each step, and the step they are working on lights up. */
.bot__head, .bot__tip { fill: var(--steel-lite); }
.bot__eye { fill: var(--night); }
.bot__ant { stroke: var(--steel-lite); stroke-width: 0.35; stroke-linecap: round; }
.bot__beam { stroke: var(--steel-lite); stroke-width: 0.3; stroke-dasharray: 0.8 0.8; opacity: 0; }
.bot__spark { fill: var(--steel-lite); opacity: 0; }
.seg.is-active .seg__band { fill: color-mix(in srgb, var(--steel-lite) 34%, var(--night)); }
.seg.is-active .seg__label { fill: #FFFFFF; }
.step__title { transition: color 240ms var(--ease-out); }
.step.is-active .step__title { color: var(--steel-lite); }

/* A step in the list lights its segment of the band. */
.system:has(.step--1:hover) .seg--1 .seg__band, .system:has(.step--2:hover) .seg--2 .seg__band, .system:has(.step--3:hover) .seg--3 .seg__band,
.system:has(.step--4:hover) .seg--4 .seg__band, .system:has(.step--5:hover) .seg--5 .seg__band { fill: var(--steel-lite); }
.system:has(.step--1:hover) .seg--1 .seg__label, .system:has(.step--2:hover) .seg--2 .seg__label, .system:has(.step--3:hover) .seg--3 .seg__label,
.system:has(.step--4:hover) .seg--4 .seg__label, .system:has(.step--5:hover) .seg--5 .seg__label { fill: var(--night); }

@media (min-width: 1000px) {
  .system { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s7); align-items: start; }
  .system__fig { grid-column: 1 / 8; position: sticky; top: var(--s6); }
  .system__side { grid-column: 8 / 13; }
}

/* v5-fix2: under 600 px the ring is too small for the lever words (Clienteling needs 6.7em in 17% of the ring).
   The levers leave the ring and sit in a list under it, so no word breaks. The disc grows so Audience stays inside it,
   and the arc labels grow to 12 px or more (sizes in user units: 3.6 at 320, 3.0 at 380, 2.5 at 480, times 1.16). */
@media (max-width: 599px) {
  .rings { aspect-ratio: auto; padding-top: 100%; }
  .rings__svg { bottom: auto; height: auto; aspect-ratio: 1; }
  .ring--core { r: 15px; }
  .rings__core { top: 50cqi; width: 30%; gap: 0.2em; }
  .rings__tiers { font-size: 12px; gap: 0 0.5em; letter-spacing: 0; }
  .grp__label { font-size: 2.5px; letter-spacing: 0; transform-box: view-box; transform-origin: 50px 50px; transform: scale(1.16); }
  .rings__levers { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }
  .lever { position: static; transform: none !important; max-width: none; font-size: 15px; padding: 0.35em 0.75em; border: 1px solid var(--rule); }
  .lever--g1 + .lever--g2, .lever--g2 + .lever--g3 { margin-left: var(--s4); }
}
@media (max-width: 479px) { .grp__label { font-size: 3px; } }
@media (max-width: 379px) { .grp__label { font-size: 3.6px; } }

/* ---------- 06 Colophon ---------- */
.ch--colophon { --bg: var(--deep); --fg: #FFFFFF; --soft: var(--deep-soft); --rule: rgba(255, 255, 255, 0.22); --accent: var(--deep-soft); color: var(--fg); padding-bottom: var(--s6); }
.colophon { display: grid; gap: var(--s4); justify-items: start; }
.colophon__face img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s4); }
.colophon__h2 { font: 800 clamp(2.5rem, 8vw, 6.5rem)/0.95 var(--f-text); letter-spacing: -0.05em; }
.colophon__line { max-width: 44ch; color: var(--soft); }
.colophon__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-top: var(--s4); font-weight: 500; }
.colophon__links a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4em; min-height: 44px; }
.colophon__links a[aria-disabled="true"] { text-decoration: none; cursor: not-allowed; }
.colophon__mail { display: inline-flex; align-items: center; min-height: 44px; flex-wrap: wrap; gap: 0.3em; }
.colophon__foot { display: flex; justify-content: space-between; gap: var(--s4); margin-top: var(--section); padding-top: var(--s4); border-top: 1px solid var(--rule); font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.04em; color: var(--soft); }
.colophon__foot a { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; }

/* ---------- Intro: only while html.intro is set (JS on, motion allowed) ---------- */
.intro [data-intro="rise"] { transform: translateY(105%); }
/* v5-fix: portrait, H1, lede and actions are not held by the intro */


/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Bare pages (root, 404) ---------- */
.bare { display: grid; min-height: 100svh; place-items: center; }
.bare__main { text-align: center; display: grid; gap: var(--s4); padding: var(--gutter); }
.bare__name { font: 800 clamp(2.5rem, 10vw, 6rem)/0.9 var(--f-text); letter-spacing: -0.05em; }

/* v5-fix2: 200% zoom on a 390 px phone (195 px viewport). The longest words must fit the column. */
@media (max-width: 299px) {
  .h2, .colophon__h2 { font-size: 1.5rem; }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 0 var(--s2); }
  .nav__brand { font-size: 14px; }
  .role { padding-inline: var(--s3); }
  .step__title, .role__title { overflow-wrap: break-word; }
  /* v5-fix3: at 195 px the disc is 49 px and Audience needs 59 px. Shrinking text would undo the zoom,
     so Audience and its tiers leave the disc and sit as a caption under the ring; the disc stays as a marker. */
  .ring--core { r: 6px; }
  .rings__core { position: static; transform: none; width: auto; margin-top: var(--s4); color: var(--fg); }
  .rings__tiers { color: var(--soft); }
}
