/* ==========================================================================
   1nsights
   Palette: cream #FFFCF2 · stone #CCC5B9 · charcoal #403D39 · ink #252422 · orange #EB5E28
   ========================================================================== */

:root {
  --cream: #FFFCF2;
  --stone: #CCC5B9;
  --char: #403D39;
  --ink: #252422;
  --orange: #EB5E28;

  --ink-raise: #2D2B28;
  --muted: #A39C90;

  /* Semantic tokens (dark theme by default) */
  --bg: var(--ink);
  --fg: var(--cream);
  --fg-2: var(--stone);
  --fg-3: var(--muted);
  --rule: rgba(204, 197, 185, .14);
  --rule-2: rgba(204, 197, 185, .3);
  --logo-1: var(--cream);
  --logo-2: var(--stone);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.theme-light {
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-2: var(--char);
  --fg-3: #6F695F;
  --rule: rgba(64, 61, 57, .14);
  --rule-2: rgba(64, 61, 57, .32);
  --logo-1: #111110;
  --logo-2: var(--char);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

img, svg, canvas { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: .6em 1em; border-radius: 8px;
  background: var(--orange); color: var(--ink); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--sans); font-size: 1.75rem; line-height: 1; letter-spacing: -.012em;
  text-decoration: none; white-space: nowrap;
}
.logo__one { font-weight: 600; color: var(--logo-1); }
.logo__rest { font-weight: 500; color: var(--logo-2); }
.logo__i { position: relative; display: inline-block; }
.logo__i::after {
  content: ""; position: absolute; left: 50%; top: .115em;
  width: .17em; height: .17em; margin-left: -.085em; border-radius: 50%;
  background: var(--orange);
  transition: transform .4s var(--ease);
}
.logo:hover .logo__i::after { transform: translateY(-.12em) scale(1.15); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.is-solid {
  background: rgba(37, 36, 34, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; text-decoration: none; font-size: .9375rem; color: var(--stone);
  padding: .4em 0; transition: color .25s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--cream); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__links .nav__cta {
  padding: .55em 1.1em; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--cream);
  transition: background .25s, border-color .25s, color .25s;
}
.nav__links .nav__cta:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.45em; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn span { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: #1B1A18; font-weight: 600; }
.btn--primary:hover { background: #F4703C; transform: translateY(-2px); }
.btn--ghost { border-color: var(--rule-2); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); transform: translateY(-2px); }
.btn--lg { font-size: 1.125rem; padding: 1em 1.7em; }

/* ---------- Hero ---------- */
.hero {
  /* Scroll length of the zoom. It was 260vh while the second statement was shown. */
  position: relative; height: 200vh;
  --zoom: 1; --p: 0; --a1: 1; --a2: 0; --dim: 0; --end: 0;
  --fx: 50%; --ox: 26%; --oy: 58%;
}
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate; background: #161514;
}
.hero__img {
  position: absolute; top: 50%; left: 50%; z-index: 0;
  display: block; width: max(100vw, 177.9vh); max-width: none; height: auto;
  transform: translate(calc(var(--fx) * -1), -50%) scale(var(--zoom));
  transform-origin: var(--ox) var(--oy);
  filter: sepia(.3) saturate(.7) contrast(1.06) brightness(.95);
  will-change: transform; user-select: none; -webkit-user-drag: none;
}
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(37, 36, 34, .6) 0%, rgba(37, 36, 34, 0) 24%, rgba(37, 36, 34, 0) 58%, var(--ink) 100%),
    linear-gradient(90deg, rgba(37, 36, 34, .9) 0%, rgba(37, 36, 34, .6) 36%, rgba(37, 36, 34, .08) 72%);
}
.hero__shade::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim); }

/* Cursor lens */
.hero__lens {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: 230px; height: 230px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background-image: url("../img/hero-circuit-city.webp"); background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--orange), 0 0 0 8px rgba(235, 94, 40, .14), 0 24px 60px rgba(0, 0, 0, .55);
  transition: opacity .35s;
  will-change: transform;
}
.hero__lens.is-on { opacity: 1; }
.hero__lens::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit;
  filter: sepia(.3) saturate(.8) contrast(1.14) brightness(1.22);
}
.hero__lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(var(--orange), var(--orange)) 50% 0 / 1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 50% 100% / 1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 50% / 10px 1px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 100% 50% / 10px 1px no-repeat;
}
.hero__lens-label {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
  padding: .25em .7em; border-radius: 999px; background: rgba(37, 36, 34, .7);
}

.hero__content, .hero__second {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(96px, 16vh, 150px);
  pointer-events: none;
}
.hero__content > *, .hero__second > * { pointer-events: auto; }
.hero__content { opacity: var(--a1); transform: translateY(calc((1 - var(--a1)) * -48px)); }
.hero__second { opacity: var(--a2); transform: translateY(calc((1 - var(--a2)) * 36px)); }
.hero__content.is-off, .hero__second.is-off { visibility: hidden; }

.hero__eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--stone); margin-bottom: clamp(18px, 3vh, 32px);
}
.hero__eyebrow i { font-style: normal; color: var(--orange); margin: 0 .35em; }

.hero h1 {
  font-size: min(10.2vw, clamp(2.7rem, 7.4vw, 6.6rem)); line-height: .98; letter-spacing: -.038em; font-weight: 500;
  text-shadow: 0 2px 40px rgba(22, 21, 20, .5);
}
.hero h1 em, .hero__statement em, .page-head h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em;
}
.rise { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rise > span { display: block; }
.js .rise > span { transform: translateY(112%); }
.js .is-ready .rise > span { transform: none; transition: transform 1.15s var(--ease) var(--d, 0s); }

.hero__lede {
  max-width: 30em; margin-top: clamp(20px, 3.4vh, 34px);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--stone);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4.4vh, 44px); }
.js .hero__eyebrow, .js .hero__lede, .js .hero__cta { opacity: 0; transform: translateY(14px); }
.js .is-ready .hero__eyebrow, .js .is-ready .hero__lede, .js .is-ready .hero__cta {
  opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .is-ready .hero__eyebrow { transition-delay: .05s; }
.js .is-ready .hero__lede { transition-delay: .6s; }
.js .is-ready .hero__cta { transition-delay: .75s; }

.hero__statement {
  font-size: min(8.8vw, clamp(2.2rem, 5.6vw, 5rem)); line-height: 1.02; letter-spacing: -.035em; font-weight: 500;
}
.hero__statement-sub {
  max-width: 31em; margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--stone);
}

/* Altitude read-out */
.hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4.4vh, 44px); z-index: 4;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); opacity: calc(1 - var(--end));
}
.hud__scale { display: flex; align-items: center; gap: 12px; }
.hud__label { transition: color .4s; }
.hud__label--macro { color: var(--cream); }
.hero.is-micro .hud__label--macro { color: var(--muted); }
.hero.is-micro .hud__label--micro { color: var(--cream); }
.hud__track { position: relative; width: clamp(80px, 14vw, 190px); height: 1px; background: rgba(204, 197, 185, .4); }
.hud__knob {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px rgba(235, 94, 40, .22);
}
.hud__zoom { min-width: 5ch; margin-left: 6px; color: var(--cream); font-variant-numeric: tabular-nums; }
.hud__cue { display: flex; align-items: center; gap: 12px; opacity: calc(1 - var(--p) * 6); }
.hud__cue-hover::after { content: "·"; margin-left: 12px; color: var(--orange); }
.hud__cue i { width: 1px; height: 34px; background: linear-gradient(var(--cream), rgba(255, 252, 242, 0)); transform-origin: 50% 0; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (hover: none), (pointer: coarse) { .hud__cue-hover { display: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 168px) 0; background: var(--bg); color: var(--fg); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(24px, 5vw, 80px); row-gap: 22px; align-items: end;
  margin-bottom: clamp(44px, 6vw, 88px);
}
.section__head .eyebrow { grid-column: 1 / -1; }
.section__head .lede { color: var(--fg-2); font-size: clamp(1.05rem, 1.35vw, 1.2rem); padding-bottom: .35em; }

.eyebrow {
  display: flex; align-items: center; gap: .75em;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

h2 {
  font-size: clamp(2rem, 4.7vw, 3.9rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 500;
  text-wrap: balance;
}

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Circuit trace divider */
.trace { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; pointer-events: none; }
.trace svg { display: block; width: max(100%, 1100px); height: auto; }
.trace__lines path { stroke: var(--char); stroke-width: 1.5; }
.trace__vias circle { fill: var(--ink); stroke: var(--char); stroke-width: 1.5; }
.trace__pulse { stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: .045 .955; stroke-dashoffset: 1; animation: pulse 7s linear infinite; }
.trace--flip svg { transform: scaleX(-1); }
/* On very wide screens the drawing stays at its natural size, so it does not grow down into the heading.
   The three lines carry on to the right-hand edge as plain rules. */
@media (min-width: 1441px) {
  .trace svg { width: 1440px; }
  .trace::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 1440px; right: 0;
    background: linear-gradient(var(--char), var(--char)) 0 29.25px / 100% 1.5px no-repeat,
                linear-gradient(var(--char), var(--char)) 0 47.25px / 100% 1.5px no-repeat,
                linear-gradient(var(--char), var(--char)) 0 65.25px / 100% 1.5px no-repeat;
  }
}
@keyframes pulse { to { stroke-dashoffset: 0; } }

/* ---------- Approach ---------- */
.section--approach { padding-bottom: clamp(40px, 6vw, 80px); }

/* ---------- Expertise ---------- */
.xp { border-top: 1px solid var(--rule-2); }
.xp__item { border-bottom: 1px solid var(--rule-2); }
.xp__h { margin: 0; font: inherit; }
.xp__head {
  width: 100%; display: grid; grid-template-columns: 4.5rem minmax(0, auto) minmax(0, 1fr) 2.75rem; align-items: baseline; column-gap: clamp(12px, 2vw, 28px);
  padding: clamp(18px, 2.4vw, 30px) 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.xp__num { font-family: var(--mono); font-size: .8125rem; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.xp__title {
  font-size: clamp(1.55rem, 3.3vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; color: var(--stone);
  transition: color .35s, transform .5s var(--ease);
}
.xp__tag { justify-self: end; text-align: right; font-size: 1rem; color: var(--muted); transition: color .3s, opacity .3s; }
.xp__icon { position: relative; align-self: center; justify-self: end; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule-2); border-radius: 50%; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.xp__icon::before, .xp__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: var(--cream); transition: transform .45s var(--ease), background .3s; }
.xp__icon::after { transform: rotate(90deg); }
.xp__head:hover .xp__title, .xp__item.is-open .xp__title { color: var(--cream); }
.xp__head:hover .xp__title { transform: translateX(10px); }
.xp__head:hover .xp__num, .xp__item.is-open .xp__num { color: var(--orange); }
.xp__head:hover .xp__icon { border-color: var(--cream); }
.xp__item.is-open .xp__icon { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.xp__item.is-open .xp__icon::before, .xp__item.is-open .xp__icon::after { background: var(--ink); }
.xp__item.is-open .xp__icon::after { transform: rotate(0deg); }

.xp__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.xp__item.is-open .xp__panel { grid-template-rows: 1fr; }
.xp__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.xp__item.is-open .xp__inner { visibility: visible; transition-delay: 0s; }
.xp__body {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 120px; gap: clamp(20px, 4vw, 64px); align-items: start;
  padding: 4px 0 clamp(28px, 3.4vw, 44px) calc(4.5rem + clamp(12px, 2vw, 28px));
}
.xp__text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--stone); max-width: 32em; }
.xp__list { list-style: none; margin: 0; padding: 0; font-size: .975rem; color: var(--stone); }
.xp__list li { position: relative; padding: .55em 0 .55em 1.5em; border-bottom: 1px solid var(--rule); }
.xp__list li:first-child { padding-top: 0; }
.xp__list li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 8px; height: 1px; background: var(--orange); }
.xp__list li:first-child::before { top: .55em; }

.glyph { width: 120px; height: 120px; fill: none; stroke: var(--stone); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph circle { fill: var(--ink); }
.glyph .glyph__hot { stroke: var(--orange); }
.glyph .glyph__dot { fill: var(--orange); stroke: none; }
.glyph path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.xp__item.is-open .glyph path { animation: draw 1.4s var(--ease) .15s forwards; }
.glyph circle { opacity: 0; }
.xp__item.is-open .glyph circle { animation: pop .5s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Demonstration: growth explorer ---------- */
.section--demo { padding-top: 0; }
.explorer {
  display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 64px);
  padding: clamp(22px, 3.6vw, 48px);
  border: 1px solid var(--rule); border-radius: 20px; background: var(--ink-raise);
}
.explorer__label { display: block; font-size: .9375rem; color: var(--stone); }
.explorer__rate { display: flex; align-items: baseline; gap: .5em; margin: 6px 0 10px; color: var(--muted); }
.explorer__rate output { font-size: clamp(3rem, 5vw, 4rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--cream); }

.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange) var(--fill), var(--char) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--char); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--orange); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--orange); border: 4px solid var(--ink-raise); box-shadow: 0 0 0 1px var(--orange); transition: box-shadow .25s; }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 4px solid var(--ink-raise); box-shadow: 0 0 0 1px var(--orange); transition: box-shadow .25s; }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--orange), 0 0 0 8px rgba(235, 94, 40, .22); }
.range:hover::-moz-range-thumb, .range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--orange), 0 0 0 8px rgba(235, 94, 40, .22); }
.range:focus-visible { outline: none; }
.explorer__scale { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: .6875rem; color: var(--muted); }

.tiles { margin: clamp(24px, 3vw, 36px) 0 0; border-top: 1px solid var(--rule); }
.tile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tile dt { font-size: .9375rem; color: var(--stone); }
.tile dd { margin: 0; text-align: right; }
.tile dd b { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: var(--cream); }
.tile dd small { display: block; font-size: .75rem; color: var(--muted); }

.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 14px; }
.chart__title { font-weight: 500; color: var(--cream); }
.chart__title span { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--stone); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__key { width: 18px; height: 2px; border-radius: 1px; }
.legend__key--sel { background: var(--orange); }
.legend__key--base { background: #8F887C; }

.chart { position: relative; touch-action: pan-y; }
.chart:focus-visible { outline: 2px solid var(--orange); outline-offset: 8px; border-radius: 8px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.c-grid { stroke: rgba(204, 197, 185, .13); stroke-width: 1; }
.c-tick { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.c-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-line--base { stroke: #8F887C; }
.c-line--sel { stroke: var(--orange); }
.c-area { fill: var(--orange); opacity: .1; }
.c-dot { stroke: var(--ink-raise); stroke-width: 2; }
.c-dot--base { fill: #8F887C; }
.c-dot--sel { fill: var(--orange); }
.c-val { fill: var(--cream); font-size: 15px; font-weight: 600; }
.c-sub { fill: var(--muted); font-size: 11px; }
.c-cross { stroke: rgba(204, 197, 185, .55); stroke-width: 1; }

.chart__tip {
  position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
  min-width: 158px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 10px;
  background: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); font-size: .8125rem; white-space: nowrap;
}
.tip__year { margin-bottom: 6px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tip__row { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.tip__key { width: 14px; height: 2px; border-radius: 1px; flex: none; }
.tip__val { font-weight: 600; color: var(--cream); min-width: 2.2em; }
.tip__name { color: var(--muted); }

.chart__sentence { margin-top: 18px; color: var(--stone); max-width: 44em; }
.chart__table { margin-top: 14px; font-size: .875rem; color: var(--stone); }
.chart__table summary { width: fit-content; cursor: pointer; color: var(--muted); transition: color .2s; }
.chart__table summary:hover { color: var(--cream); }
.chart__table table { width: 100%; max-width: 420px; margin-top: 12px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart__table th, .chart__table td { padding: 6px 12px 6px 0; text-align: right; border-bottom: 1px solid var(--rule); }
.chart__table th:first-child, .chart__table td:first-child { text-align: left; }
.chart__table th { font-weight: 500; color: var(--muted); }

/* ---------- Insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: .5em 1.1em; border: 1px solid var(--rule-2); border-radius: 999px; background: transparent;
  font-size: .9375rem; color: var(--fg-2); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 290px;
  padding: 26px; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .6); color: var(--fg); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, background .3s;
  animation: postIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes postIn { from { opacity: 0; transform: translateY(18px); } }
a.post:hover { transform: translateY(-6px); border-color: var(--rule-2); background: #fff; box-shadow: 0 24px 48px rgba(37, 36, 34, .14); }
.post > * { position: relative; }
.post__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-3); }
.post__status { padding: .3em .75em; border: 1px solid var(--rule-2); border-radius: 999px; white-space: nowrap; }
.post__title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.018em; font-weight: 500; text-wrap: balance; }
.post__excerpt { font-size: .975rem; color: var(--fg-2); }
.post__meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; color: var(--fg-3); }
.post__arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-2); border-radius: 50%; font-size: 1rem; color: var(--fg); transition: background .3s, border-color .3s, color .3s, transform .5s var(--ease); }
a.post:hover .post__arrow { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(-45deg); }

.post--featured { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: var(--cream); --fg-2: var(--stone); --fg-3: var(--muted); --rule-2: rgba(204, 197, 185, .34); }
.post--featured::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 42%, rgba(37, 36, 34, .78) 72%, rgba(37, 36, 34, .45) 100%), url("../img/hero-circuit-city.webp") 78% 30% / 150% auto no-repeat;
  filter: sepia(.3) saturate(.7); transition: transform 1.2s var(--ease);
}
.post--featured.post--wide { grid-column: 1 / -1; }
.post--featured.post--single { grid-column: auto; }
a.post--featured:hover { background: var(--ink); border-color: var(--ink); }
a.post--featured:hover::before { transform: scale(1.05); }
.post--featured .post__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 17em; }
.post--featured .post__excerpt { max-width: 34em; }
.post--featured .post__status { border-color: var(--orange); color: var(--cream); }
.post--featured .post__arrow { color: var(--cream); }

.post.is-draft { background: transparent; border-style: dashed; border-color: var(--rule-2); }
.post.is-draft .post__title { color: var(--fg-2); }
.post.is-draft .post__excerpt { color: var(--fg-3); }

.filters[hidden] { display: none; }
.posts__empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--rule-2); border-radius: 18px; color: var(--fg-3); }

/* ---------- Going deep: the same cards on a dark ground ---------- */
.section--deep .chip.is-on { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.section--deep .post { background: var(--ink-raise); }
.section--deep a.post:hover { background: #33312E; border-color: var(--rule-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.section--deep .post--featured, .section--deep a.post--featured:hover { background: var(--ink); border-color: var(--rule-2); }
.section--deep .post.is-draft { background: transparent; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.about__lead { position: sticky; top: calc(var(--nav-h) + 48px); }
.about__lead h2 { margin-top: 22px; font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
.status { display: inline-flex; align-items: center; gap: .75em; margin-top: 34px; padding: .55em 1.1em .55em .9em; border: 1px solid var(--rule-2); border-radius: 999px; font-size: .9rem; color: var(--stone); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(235, 94, 40, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(235, 94, 40, 0); } }
.about__body p { color: var(--stone); }
.about__body p + p { margin-top: 1.2em; }
.about__body .about__intro { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.42; letter-spacing: -.012em; color: var(--cream); }
.principles { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--rule-2); }
.principles li { display: grid; grid-template-columns: 2rem minmax(0, 10.5rem) minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.principles__num { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--orange); }
.principles h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.about__body .principles p { margin: 0; font-size: .9375rem; color: var(--muted); }
.about__body > .principles:first-child { margin-top: 0; }
/* Dated rows, for a career summary */
.principles--dated li { grid-template-columns: 7.5rem minmax(0, 11rem) minmax(0, 1fr); }

/* ---------- About page ---------- */
.page-head { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(64px, 10vw, 132px)) 0 clamp(64px, 9vw, 120px); background: var(--ink); }
.page-head::before {
  content: ""; position: absolute; inset: 0 0 0 40%;
  background: url("../img/hero-circuit-city.webp") 78% 34% / cover no-repeat;
  filter: sepia(.3) saturate(.7); opacity: .4;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 85%);
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(37, 36, 34, .6) 0%, rgba(37, 36, 34, 0) 36%, rgba(37, 36, 34, 0) 60%, var(--ink) 100%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-top: 22px; max-width: 12em; font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: 1; letter-spacing: -.038em; font-weight: 500; text-wrap: balance; }
.page-head__lede { margin-top: clamp(22px, 3vw, 34px); max-width: 31em; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--stone); }
.section--flush { padding-top: clamp(40px, 6vw, 80px); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--rule); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.service__num { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--fg-3); }
.service__num::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .75em; border-radius: 50%; background: var(--orange); }
.service h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.018em; font-weight: 500; text-wrap: balance; }
.service p { font-size: .975rem; color: var(--fg-2); }
.services__note { margin-top: clamp(28px, 4vw, 44px); max-width: 44em; color: var(--fg-2); }
.services__note a { color: var(--fg); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.services__note a:hover { background: rgba(235, 94, 40, .14); }

/* ---------- Contact ---------- */
.section--contact { padding-top: clamp(130px, 15vw, 210px); background: linear-gradient(180deg, var(--ink), #1F1E1C); overflow: hidden; }
.section--contact::before {
  content: ""; position: absolute; inset: 0 0 0 38%;
  background: url("../img/hero-circuit-city.webp") 82% 30% / cover no-repeat;
  filter: sepia(.3) saturate(.7); opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 80%);
}
.section--contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(37, 36, 34, 0) 38%, rgba(31, 30, 28, 0) 62%, #1F1E1C 100%);
}
.section--contact .trace { z-index: 1; }
.contact { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.contact__title { margin-top: 22px; max-width: 14em; font-size: clamp(2.4rem, 6.6vw, 5.6rem); line-height: 1; letter-spacing: -.04em; }
.contact__lede { margin-top: clamp(22px, 3vw, 34px); max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--stone); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--rule); background: #1F1E1C; color: var(--muted); font-size: .875rem; }
.theme-light .footer { background: var(--cream); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.footer .logo { font-size: 1.5rem; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--fg-2); }

/* ---------- Article pages ---------- */
.nav--light.is-solid { background: rgba(255, 252, 242, .86); }
.nav--light .nav__links a { color: var(--char); }
.nav--light .nav__links a:hover { color: var(--ink); }
.nav--light .nav__links .nav__cta { color: var(--ink); }

.article { padding: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) 0 clamp(72px, 10vw, 130px); }
.article__wrap { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.article__back { display: inline-flex; align-items: center; gap: .5em; font-size: .9375rem; color: var(--fg-3); text-decoration: none; transition: color .2s, gap .3s var(--ease); }
.article__back:hover { color: var(--fg); gap: .8em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: clamp(28px, 4vw, 48px); font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.article__meta b { font-weight: 500; color: var(--orange); }
.article h1 { margin-top: 18px; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.034em; font-weight: 500; text-wrap: balance; }
.article__standfirst { margin-top: 22px; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--fg-2); }
.article__figure { margin: clamp(32px, 5vw, 56px) 0; }
.article__figure img { display: block; width: 100%; height: auto; border-radius: 14px; filter: sepia(.25) saturate(.75); }
.article__figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--fg-3); }
.prose { font-size: 1.1875rem; line-height: 1.7; color: #33312E; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.022em; color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: rgba(235, 94, 40, .14); }
.prose blockquote { margin: 2em 0; padding-left: 1.2em; border-left: 2px solid var(--orange); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.55rem; line-height: 1.35; color: var(--ink); }
.article__end { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--rule-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.article__end p { color: var(--fg-2); }

/* Article text built from Word documents */
.article h1 + .prose { margin-top: clamp(28px, 4.4vw, 48px); padding-top: clamp(28px, 4.4vw, 48px); border-top: 1px solid var(--rule-2); }
.prose--lead > p:first-child { font-size: 1.375rem; line-height: 1.55; letter-spacing: -.008em; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.7em; }
.prose li + li { margin-top: .7em; }
.prose ul > li::before { content: ""; position: absolute; left: .15em; top: .78em; width: .7em; height: 2px; background: var(--orange); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: .22em; font-family: var(--mono); font-size: .8em; font-weight: 500; color: var(--orange); }
.prose .chain {
  margin: 1.9em 0; padding: 22px 24px; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
  font-size: 1.125rem; line-height: 1.8; text-align: center; text-wrap: balance;
}
.prose .chain strong { white-space: nowrap; }
.prose .chain i { font-style: normal; color: var(--orange); margin: 0 .3em; }
.prose__table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose td { padding: 10px 14px 10px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }

.article__next {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  margin-top: 28px; padding: clamp(22px, 3.4vw, 32px); border-radius: 18px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.article__next small { grid-column: 1 / -1; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.article__next span { font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; text-wrap: balance; }
.article__next i { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(204, 197, 185, .34); border-radius: 50%; font-style: normal; transition: background .3s, border-color .3s, color .3s, transform .5s var(--ease); }
.article__next:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(37, 36, 34, .18); }
.article__next:hover i { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: rotate(-45deg); }
.theme-light .btn--ghost { color: var(--ink); }
.theme-light .btn--ghost:hover { border-color: var(--ink); }

/* ==========================================================================
   Second pass: intro, side rail, hero labels, manifesto, map, lab, band
   ========================================================================== */

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

/* ---------- Opening curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--ink);
  animation: introOut .9s cubic-bezier(.76, 0, .24, 1) 1.3s both;
}
.no-intro .intro { display: none; }
.intro__logo { font-size: clamp(3.2rem, 10vw, 6.5rem); overflow: hidden; padding: .16em .08em; }
.intro__logo .logo__one, .intro__logo .logo__rest { display: inline-block; animation: introRise .85s var(--ease) both; }
.intro__logo .logo__rest { animation-delay: .08s; }
.intro__logo .logo__i::after { animation: introDot .55s cubic-bezier(.3, 1.7, .5, 1) .62s both; }
.intro__bar { position: absolute; left: 50%; bottom: 24%; width: min(220px, 44vw); height: 1px; transform: translateX(-50%); background: var(--char); overflow: hidden; }
.intro__bar::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; animation: introBar 1.1s cubic-bezier(.6, 0, .2, 1) .15s both; }
@keyframes introRise { from { transform: translateY(118%); } }
@keyframes introDot { from { transform: scale(0); } }
@keyframes introBar { from { transform: scaleX(0); } }
@keyframes introOut { to { transform: translateY(-101%); visibility: hidden; } }

/* ---------- Side rail ---------- */
.rail {
  position: fixed; top: 50%; right: max(12px, calc(var(--gutter) / 2 - 16px)); z-index: 40;
  display: none; flex-direction: column; align-items: flex-end; gap: 4px;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
}
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 30px; height: 22px; color: var(--muted); text-decoration: none; transition: color .3s; }
.rail a::after { content: ""; width: 12px; height: 1px; background: currentColor; transition: width .45s var(--ease), background .3s; }
.rail a span { position: absolute; right: 40px; top: 50%; padding: .3em .7em; border-radius: 999px; background: rgba(37, 36, 34, .9); color: var(--cream); white-space: nowrap; opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.rail:hover a span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail a:hover { color: var(--cream); }
.rail a:hover::after { width: 20px; }
.rail a[aria-current="true"] { color: var(--orange); }
.rail a[aria-current="true"]::after { width: 28px; background: var(--orange); }
.on-light .rail a { color: #8A8478; }
.on-light .rail a:hover { color: var(--ink); }
.on-light .rail a[aria-current="true"] { color: var(--orange); }
@media (min-width: 1100px) { .rail { display: flex; } }

/* ---------- Hero: typed line and image labels ---------- */
.hero__content, .hero__second { z-index: 4; }
.hud { z-index: 5; }
.hero__eyebrow { white-space: nowrap; }
.typer { color: var(--cream); }
.typer__caret { display: inline-block; width: .5em; height: 1.05em; margin-left: .25em; vertical-align: -.18em; background: var(--orange); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__spots {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: max(100vw, 177.9vh); aspect-ratio: 2000 / 1123;
  transform: translate(calc(var(--fx) * -1), -50%) scale(var(--zoom));
  transform-origin: var(--ox) var(--oy);
  pointer-events: none; opacity: calc(1 - var(--end));
}
.spot { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; transform: scale(calc(1 / var(--zoom))); transition: opacity .45s; }
.spot.is-hidden { opacity: 0; }
.js .hero:not(.is-ready) .spot { opacity: 0; }
.spot__dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: ping 2.4s ease-out infinite; }
.spot__label {
  position: absolute; left: 30px; top: 0; transform: translateY(-50%);
  padding: 7px 12px 8px; border: 1px solid var(--rule-2); border-radius: 10px;
  background: rgba(37, 36, 34, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap; line-height: 1.25;
}
.spot__label::before { content: ""; position: absolute; top: 50%; left: -20px; width: 20px; height: 1px; background: var(--orange); }
.spot--left .spot__label { left: auto; right: 30px; }
.spot--left .spot__label::before { left: auto; right: -20px; }
.spot__tag { display: block; font-family: var(--mono); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.spot__name { display: block; font-size: .875rem; font-weight: 500; color: var(--cream); font-variant-ligatures: none; }
.spot.is-micro .spot__tag { color: var(--orange); }
@media (max-aspect-ratio: 1 / 1) { .spot[data-wide] { display: none; } }

/* ---------- Manifesto: words fill in as you scroll ---------- */
.manifesto {
  max-width: 21em; margin: 0;
  font-size: clamp(1.7rem, 3.9vw, 3.4rem); line-height: 1.16; letter-spacing: -.028em; font-weight: 500;
}
.manifesto .w { opacity: .16; transition: opacity .3s linear; }

/* ---------- Lab: tabs and the delay demonstration ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 18px; border: 1px solid var(--rule); border-radius: 999px; background: var(--ink-raise); }
.tab { display: inline-flex; align-items: center; gap: .7em; padding: .62em 1.25em; border: 0; border-radius: 999px; background: transparent; color: var(--stone); font-size: .9375rem; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.tab span { font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.tab:hover { color: var(--cream); }
.tab.is-on { background: var(--orange); color: #1B1A18; font-weight: 600; }
.tab.is-on span { color: #1B1A18; }

.explorer[hidden] { display: none; }
.explorer.is-entering { animation: panelIn .6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.explorer__intro { grid-column: 1 / -1; max-width: 46em; padding-bottom: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--stone); }
.explorer__label--gap { margin-top: 28px; }
.explorer__rate--sm output { font-size: clamp(2rem, 3vw, 2.5rem); }

.tiles--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 18px; }
.tiles--row .tile { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0 0; border-bottom: 0; }
.tiles--row .tile dd { text-align: left; }
.tiles--row .tile dt { font-size: .875rem; }

.loop { margin: 28px 0 0; padding: 18px 12px 14px; border: 1px solid var(--rule); border-radius: 14px; }
.loop svg { display: block; width: 100%; max-width: 330px; height: auto; margin-inline: auto; overflow: visible; }
.loop__links path { fill: none; stroke: var(--stone); stroke-width: 1.25; opacity: .5; }
.loop__flow path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .18 .82; stroke-dashoffset: 1; animation: loopFlow 1.6s linear infinite; }
.loop__flow path:nth-child(2) { animation-delay: .4s; }
.loop__flow path:nth-child(4) { animation-delay: 1.2s; }
.loop__flow .loop__slow { animation-duration: var(--lag-speed, 2.6s); animation-delay: .8s; }
@keyframes loopFlow { to { stroke-dashoffset: 0; } }
.loop__delay path { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; }
.loop__nodes text { fill: var(--cream); font-size: 12px; font-weight: 500; text-anchor: middle; }
.loop__signs text { fill: var(--muted); font-family: var(--mono); font-size: 12px; text-anchor: middle; }
.loop__centre circle { fill: none; stroke: var(--rule-2); }
.loop__centre text { fill: var(--stone); font-family: var(--mono); font-size: 12px; text-anchor: middle; }
.loop__note { fill: var(--orange); font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; }
.loop figcaption { margin-top: 12px; padding: 0 6px; font-size: .8125rem; color: var(--muted); }

.c-guide { stroke: rgba(204, 197, 185, .5); stroke-width: 1; }
.c-guide-label { fill: var(--stone); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.c-mark { fill: var(--cream); font-size: 12px; font-weight: 600; text-anchor: middle; }

/* ---------- Lab: the wage signal ---------- */
.chart__head--sub { margin-top: 32px; }
.c-area--base { fill: #8F887C; opacity: .16; }
.tip__note { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--rule); color: var(--stone); }

/* The headline result, above the controls */
.result { padding-bottom: clamp(20px, 2.4vw, 28px); }
.result__label { font-size: .9375rem; color: var(--stone); }
.result__value { margin: 6px 0 10px; font-size: clamp(3rem, 5vw, 4rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--cream); }
.result__note { font-size: .9375rem; line-height: 1.45; color: var(--stone); }

/* Controls: a slider or a set of choices, with its value alongside the label */
.knobs { padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid var(--rule); }
.knobs + .knobs { margin-top: clamp(20px, 2.4vw, 28px); }
.knobs__title { margin-bottom: 14px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.knob + .knob { margin-top: 20px; }
.knob__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.knob__head label, .seg legend { font-size: .9375rem; line-height: 1.35; color: var(--stone); }
.knob__head output { flex: none; font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--cream); }
.knob__num { display: inline-block; min-width: 1.6em; font-family: var(--mono); font-size: .75rem; color: var(--orange); }
.knob__note { margin-top: 8px; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.knobs__reset { margin-top: 22px; padding: 0; border: 0; background: none; font-size: .8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s; }
.knobs__reset:hover { color: var(--cream); }

.seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { padding: 0; margin-bottom: 8px; }
.seg--sub { margin-top: 12px; }
.seg--sub legend { font-size: .8125rem; color: var(--muted); }
.seg__opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; }
.seg__opts label { position: relative; cursor: pointer; }
.seg__opts span { display: block; padding: .36em .3em; border-radius: 999px; text-align: center; font-size: .8125rem; white-space: nowrap; color: var(--stone); transition: background .25s, color .25s; }
.seg__opts label:hover span { color: var(--cream); }
.seg__opts input:checked + span { background: var(--orange); color: #1B1A18; font-weight: 600; }
.seg__opts input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Bar charts. Grey is what was planned for, stone is what is covered at today's wages, orange is the squeeze. */
.legend__key--box { width: 10px; height: 10px; border-radius: 2px; }
.legend__key--orig, .tip__key--orig { background: #8F887C; }
.legend__key--upd, .tip__key--upd { background: var(--stone); }
.legend__key--wage, .tip__key--wage { background: var(--orange); }
.legend__key--mark, .tip__key--mark { background: var(--cream); }
.legend__key--mark { width: 14px; }
.b-axis { stroke: var(--rule-2); stroke-width: 1; }
.b-hover { fill: rgba(255, 252, 242, .05); }
.b-seg--orig { fill: #8F887C; }
.b-seg--upd { fill: var(--stone); }
.b-seg--wage { fill: var(--orange); }
.b-mark-gap { stroke: var(--ink-raise); stroke-width: 6; }
.b-mark { stroke: var(--cream); stroke-width: 2; }
.chart--bars .tip__key { width: 9px; height: 9px; border-radius: 2px; }
.chart--bars .tip__key--mark { height: 2px; border-radius: 1px; }
.chart--bars .tip__val { min-width: 4.3em; font-variant-numeric: tabular-nums; }
.chart--bars .tip__note { width: 0; min-width: 100%; white-space: normal; line-height: 1.4; }

/* Two short lists of figures between the charts */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(24px, 3.4vw, 48px); margin-top: 32px; }
.tiles--ledger { margin-top: 12px; }
.tiles--ledger .tile { padding: 10px 0; }
.tiles--ledger .tile dt { flex: 1 1 0; min-width: 40%; font-size: .875rem; line-height: 1.35; }
.tiles--ledger .tile dd { flex: 0 1 auto; max-width: 60%; }
.tiles--ledger .tile dd b { font-size: 1.25rem; }
.tiles--ledger .tile--total { box-shadow: 0 -1px 0 var(--rule-2); }
.tiles--ledger .tile--total dt { font-weight: 500; color: var(--cream); }

.explorer > * { min-width: 0; }
.chart__scroll { overflow-x: auto; }
.chart__table--wide table { max-width: none; min-width: 660px; }
.chart__table th { vertical-align: bottom; }
.chart__table tfoot td { font-weight: 600; color: var(--cream); }

.loop--wages { margin-top: 0; }
.loop--wages svg { max-width: 340px; }
.loop--wages .loop__flow path { animation-duration: var(--t, 2.5s); animation-delay: var(--d, 0s); }
.loop--wages .loop__centre text { fill: var(--orange); }
.loop__result { fill: none; stroke: var(--rule-2); }
.loop--wages [data-l] { transition: opacity .35s; }
.loop--wages.no-train [data-l="train"], .loop--wages.no-gain [data-l="gain"] { opacity: .28; }
.loop--wages.no-train [data-l="train"] .loop__flow, .loop--wages.no-gain [data-l="gain"] .loop__flow { display: none; }

.chart__notes .notes { max-width: 44em; margin-top: 12px; }
.chart__notes p { margin: 0 0 .8em; }
.chart__notes table { max-width: none; margin: 4px 0 16px; }
.chart__notes th, .chart__notes td { padding-right: 16px; text-align: left; vertical-align: top; }
.chart__notes .formula { padding-left: 14px; margin-bottom: .5em; border-left: 2px solid var(--orange); font-family: var(--mono); font-size: .8125rem; color: var(--cream); }
.chart__notes .formula + p:not(.formula) { margin-top: 1em; }

@media (min-width: 1021px) {
  .explorer--wages { grid-template-rows: auto auto 1fr; }
  .explorer--wages .explorer__controls { grid-column: 1; grid-row: 2; }
  .explorer--wages .explorer__chart { grid-column: 2; grid-row: 2 / span 2; }
  .explorer--wages .loop { grid-column: 1; grid-row: 3; align-self: start; margin-top: calc(28px - clamp(28px, 4.4vw, 64px)); }
}

/* In a single column the charts are below the controls, so the result stays in view while they are changed */
@media (max-width: 1020px) {
  .explorer--wages .result {
    position: sticky; top: var(--nav-h); z-index: 3;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
    margin: 0 calc(-1 * clamp(22px, 3.6vw, 48px)) 18px; padding: 10px clamp(22px, 3.6vw, 48px) 12px;
    border-bottom: 1px solid var(--rule); background: var(--ink-raise);
  }
  .explorer--wages .result__label { flex-basis: 100%; font-size: .8125rem; }
  .explorer--wages .result__value { margin: 0; font-size: 2rem; }
  .explorer--wages .result__note { flex: 1 1 12em; font-size: .8125rem; }
  .explorer--wages .result + .knobs { padding-top: 0; border-top: 0; }
}

/* ---------- Moving band ---------- */
.band { overflow: hidden; background: var(--ink); padding: 0 0 clamp(52px, 8vw, 110px); }
.band__track {
  display: flex; align-items: center; gap: .32em; width: max-content;
  font-size: clamp(4rem, 13vw, 12.5rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 500; white-space: nowrap;
  transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform;
}
.band__track span { color: transparent; -webkit-text-stroke: 1px rgba(204, 197, 185, .38); }
.band__track .band__alt { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em; color: var(--stone); -webkit-text-stroke: 0; }
.band__track i { flex: none; width: .15em; height: .15em; border-radius: 50%; background: var(--orange); }

/* ---------- Footer wordmark ---------- */
.footer { padding-bottom: 0; overflow: hidden; }
.footer__giant { margin-top: clamp(24px, 4vw, 56px); text-align: center; line-height: 0; }
.footer .logo--giant { font-size: 24vw; line-height: 1; letter-spacing: -.03em; --logo-1: #34322F; --logo-2: #34322F; margin-bottom: -.125em; user-select: none; }
.logo--giant .logo__one, .logo--giant .logo__rest { transition: color 1.2s var(--ease); }
.footer__giant:hover .logo--giant { --logo-1: var(--cream); --logo-2: var(--stone); }

/* ==========================================================================
   Third pass: Key 1nsights ticker, Feature 1nsights, interactive model, short About
   ========================================================================== */

/* ---------- Key 1nsights: a strip of headline figures that moves on its own ---------- */
.ticker { position: relative; padding: clamp(22px, 3vw, 34px) 0 clamp(30px, 3.8vw, 48px); background: var(--ink); border-top: 1px solid var(--rule); }
.ticker__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.ticker__title { line-height: 1.6; font-weight: 400; color: var(--stone); }
.ticker__title::before { animation: ping 2.4s ease-out infinite; }

/* The buttons only do something once the strip is moving, so they stay hidden until then */
.ticker__controls { display: none; align-items: center; gap: 6px; }
.ticker.is-live .ticker__controls { display: flex; }
.ticker__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; height: 34px; padding: 0 1em;
  border: 1px solid var(--rule-2); border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
  transition: background .25s, border-color .25s, color .25s;
}
.ticker__btn:hover { border-color: var(--cream); color: var(--cream); }
.ticker__btn--step { width: 34px; padding: 0; font-family: var(--sans); font-size: .9375rem; letter-spacing: 0; }
.ticker.no-step .ticker__btn--step { display: none; }
.ticker__btn--toggle i { box-sizing: content-box; width: 3px; height: 9px; border: solid currentColor; border-width: 0 2.5px; }
.ticker.is-paused .ticker__btn--toggle i { width: 0; height: 0; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

/* Without the script, or when motion is turned off, this is a row to scroll sideways */
.ticker__viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--char) transparent; }
.ticker.is-live .ticker__viewport {
  overflow: hidden; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--gutter) * .8), #000 calc(100% - var(--gutter) * .8), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--gutter) * .8), #000 calc(100% - var(--gutter) * .8), transparent 100%);
}
.ticker__track { display: flex; width: max-content; margin: 0; padding: 0 var(--gutter) 0 0; list-style: none; }
.ticker.is-live .ticker__track { padding: 0; animation: ticker var(--ticker-time, 40s) linear infinite; will-change: transform; }
.ticker.is-live .ticker__viewport:hover .ticker__track,
.ticker.is-live .ticker__viewport:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* The items are repeated --sets times, so moving the strip by one set brings it back to where it started */
@keyframes ticker { to { transform: translate3d(calc(-100% / var(--sets, 2)), 0, 0); } }

.tick {
  position: relative; flex: none; scroll-snap-align: start;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 2.2vw, 30px); align-items: start;
  width: calc(min(84vw, 600px) + var(--gutter)); padding-left: var(--gutter);
}
.tick::before { content: ""; position: absolute; left: calc(var(--gutter) / 2); top: 4px; bottom: 4px; width: 1px; background: var(--rule-2); }
.tick:first-child::before { display: none; }
.ticker.is-live .tick:first-child::before { display: block; }
.tick__stat {
  display: flex; align-items: center; gap: .16em;
  font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.tick__stat[data-dir]::before { content: ""; flex: none; border: solid transparent; border-width: 0 .2em; }
.tick__stat[data-dir="down"]::before { border-top: .3em solid var(--orange); }
.tick__stat[data-dir="up"]::before { border-bottom: .3em solid var(--orange); }
.tick__title { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.25; letter-spacing: -.014em; font-weight: 500; color: var(--cream); text-wrap: balance; }
.tick__text { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: var(--stone); }
.tick__source { margin-top: 12px; font-family: var(--mono); font-size: .6875rem; line-height: 1.55; letter-spacing: .04em; color: var(--muted); }
.tick__source a { color: var(--stone); text-decoration-color: var(--orange); text-underline-offset: 3px; transition: color .2s; }
.tick__source a:hover { color: var(--cream); }

/* ---------- Feature 1nsights: one article, given the room of a section heading ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 5vw, 80px); row-gap: 26px; align-items: start;
  margin-top: clamp(22px, 3vw, 36px);
}
.feature__side { padding-top: .5em; }
.feature__title { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.feature__title a { text-decoration: none; text-decoration-color: var(--orange); text-decoration-thickness: .06em; text-underline-offset: .14em; }
.feature__title a:hover { text-decoration-line: underline; }
.feature__meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-3);
}
.feature__meta b { font-weight: 500; color: var(--orange); }
.feature__excerpt { margin-top: 14px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--fg-2); }
.feature .btn { margin-top: clamp(20px, 2.6vw, 30px); }
.feature__empty { grid-column: 1 / -1; color: var(--fg-3); }

/* ---------- Interactive model: a framed panel, holding a placeholder for now ---------- */
.model { border: 1px solid var(--rule); border-radius: 20px; background: var(--ink-raise); overflow: hidden; }
.model__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.model__state { display: inline-flex; flex: none; align-items: center; gap: .75em; color: var(--stone); white-space: nowrap; }
.model__state i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ping 2.4s ease-out infinite; }
.model__frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 0; background: #fff; }
.model__placeholder {
  padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 56px) clamp(26px, 4vw, 48px); text-align: center;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 30%, var(--ink-raise) 78%),
    linear-gradient(rgba(204, 197, 185, .06) 1px, transparent 1px) 50% 0 / 32px 32px,
    linear-gradient(90deg, rgba(204, 197, 185, .06) 1px, transparent 1px) 50% 0 / 32px 32px;
}
.model__note { max-width: 36em; margin: clamp(18px, 3vw, 32px) auto 0; color: var(--stone); text-wrap: balance; }
.model__note a { color: var(--cream); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.model__note a:hover { background: rgba(235, 94, 40, .16); }

/* The placeholder drawing: two stocks, the flows between them, and the feedback that steers the flows */
.sfd { display: block; width: 100%; max-width: 820px; height: auto; margin-inline: auto; overflow: visible; }
.sfd__links path { fill: none; stroke: var(--stone); stroke-width: 1.25; opacity: .5; }
.sfd__heads path { fill: var(--stone); opacity: .75; }
.sfd__pipes path { fill: none; stroke: var(--stone); stroke-width: 1.5; }
.sfd__tips path { fill: var(--stone); }
.sfd__flow path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .2 .8; stroke-dashoffset: 1; animation: loopFlow 2.4s linear infinite; }
.sfd__flow path:nth-child(2) { animation-delay: .8s; }
.sfd__flow path:nth-child(3) { animation-delay: 1.6s; }
.sfd__pulse { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: 1; animation: loopFlow 5s linear infinite; }
.sfd__nodes > * { fill: var(--ink-raise); stroke: var(--stone); stroke-width: 1.5; stroke-linejoin: round; }
.sfd__level { fill: var(--orange); opacity: .16; transform-box: fill-box; transform-origin: 50% 100%; animation: level 7s ease-in-out infinite alternate; }
.sfd__level--b { animation-direction: alternate-reverse; }
@keyframes level { from { transform: scaleY(.28); } to { transform: scaleY(.8); } }
.sfd__labels text { fill: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-anchor: middle; }
.sfd__labels .sfd__label--start { text-anchor: start; }

/* ---------- Model 02: spurious correlation. Stone is series A, orange is the series it is compared with. ---------- */
html:not(.js) .drift, html:not(.js) .drift__intro, html:not(.js) .stake, html:not(.js) .model__intro { display: none; }
/* The introduction: what the model shows on the left, how to use it on the right.
   The .model__ names are the same parts in Model 01. */
.drift__intro, .model__intro {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 18px clamp(24px, 4vw, 56px);
  padding: clamp(18px, 2.2vw, 26px) clamp(14px, 2.2vw, 28px); border-bottom: 1px solid var(--rule);
  font-size: .9375rem; line-height: 1.55; color: var(--stone);
}
.drift__label, .model__label { margin-bottom: 8px; font-family: var(--mono); font-size: .6875rem; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drift__steps, .model__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.drift__steps li, .model__steps li { position: relative; padding-left: 2.1em; counter-increment: step; }
.drift__steps li + li, .model__steps li + li { margin-top: .45em; }
.drift__steps li::before, .model__steps li::before { content: counter(step); position: absolute; left: 0; top: .3em; font-family: var(--mono); font-size: .75rem; line-height: 1.6; color: var(--orange); }
.drift__nojs, .model__nojs { max-width: 46em; margin: 0; padding: clamp(20px, 3vw, 32px); color: var(--stone); }
/* The panel lets its contents show past its edge so the bar of view buttons can stay pinned under the menu */
.model[data-drift] { overflow: visible; }
.drift { --pad: clamp(14px, 2.2vw, 28px); position: relative; padding: 0 var(--pad) var(--pad); }
.drift__dock {
  position: sticky; top: var(--nav-h); z-index: 3; margin-inline: calc(-1 * var(--pad)); padding: 14px var(--pad);
  background: var(--ink-raise); border-bottom: 1px solid var(--rule);
}
.drift__view { max-width: min(560px, 100% - 335px); }
.drift__view .seg__opts label { display: grid; }
.drift__view .seg__opts span { display: grid; place-items: center; padding: .62em .7em; font-size: .9375rem; line-height: 1.2; }
.drift.is-fresh .drift__view label:nth-child(2) span { animation: ping 2.4s ease-out 4; }
.drift__actions { position: absolute; z-index: 4; top: 18px; right: var(--pad); display: flex; gap: 10px; }
.drift__btn, .model__btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .62em 1.15em; border: 1px solid var(--rule-2); border-radius: 999px;
  background: none; color: var(--cream); font-size: .9375rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.drift__btn:hover, .model__btn:hover { border-color: var(--cream); background: rgba(255, 252, 242, .05); }
.drift__btn:focus-visible, .model__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.drift__btn svg, .model__btn svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drift__btn svg.is-solid { fill: currentColor; stroke: none; }
/* The short explanation that appears under a button when it is pointed at */
.drift__tip {
  position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none;
  width: max-content; max-width: min(280px, 100% - 16px); padding: 9px 13px; border: 1px solid var(--rule-2); border-radius: 10px;
  background: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); font-size: .8125rem; line-height: 1.45; color: var(--cream); text-wrap: balance;
  animation: tipIn .16s ease-out;
}
.drift__tip::before {
  content: ''; position: absolute; left: var(--at, 50%); top: -5px; width: 8px; height: 8px; margin-left: -4px;
  border: solid var(--rule-2); border-width: 1px 0 0 1px; background: var(--ink); transform: rotate(45deg);
}
@keyframes tipIn { from { opacity: 0; } }

.drift__pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(18px, 2.4vw, 26px); }
.pair { min-width: 0; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--rule); border-radius: 14px; background: var(--ink); }
/* The two cards share their rows, so the charts line up even when one heading runs longer */
@supports (grid-template-rows: subgrid) {
  .pair { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.pair__kicker, .pair__label, .strips__head { font-family: var(--mono); font-size: .6875rem; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pair__title { margin-top: 6px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 600; color: var(--cream); text-wrap: balance; }
.pair__truth { margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--stone); }
.pair__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 18px 0 8px; font-size: .8125rem; color: var(--stone); }
.pair__legend span { display: inline-flex; align-items: center; gap: 7px; }
.pair__key { width: 16px; height: 2px; border-radius: 1px; background: var(--stone); }
.pair__key--p { background: var(--orange); }
.pair__legend .pair__unit { margin-left: auto; color: var(--muted); }
.pair .chart:focus-visible { outline-offset: 4px; }

.pair__read { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); align-items: start; margin-top: 14px; }
.pair__dots svg { height: auto; }
.pair__hint { margin-top: 6px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.pair__verdict { padding-top: 14px; }
.pair__r { margin-top: 2px; font-size: clamp(2.5rem, 4.2vw, 3.4rem); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--cream); transition: color .5s; }
.pair.is-off .pair__r { color: var(--muted); }
.pair__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: .32em .85em .32em .7em; border: 1px solid var(--rule-2); border-radius: 999px;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--cream);
}
.pair__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); }
.pair.is-off .pair__tag { color: var(--stone); }
.pair.is-off .pair__tag::before { background: none; box-shadow: inset 0 0 0 1.5px var(--stone); }
.pair__say { min-height: 6em; margin-top: 12px; font-size: .9375rem; line-height: 1.5; color: var(--stone); }

.d-grid { stroke: rgba(204, 197, 185, .13); stroke-width: 1; }
.d-zero { stroke: rgba(204, 197, 185, .32); stroke-width: 1; }
.d-frame { fill: none; stroke: rgba(204, 197, 185, .2); stroke-width: 1; }
.d-tick { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.d-axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.d-line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-line--a { stroke: var(--stone); }
.d-line--p { stroke: var(--orange); }
.d-cross { stroke: rgba(204, 197, 185, .55); stroke-width: 1; }
.d-dot { stroke: var(--ink); stroke-width: 2; }
.d-dot--a { fill: var(--stone); }
.d-dot--p { fill: var(--orange); }
.d-pt { fill: var(--orange); }
.d-fit { stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; }
.d-ring { fill: none; stroke: var(--cream); stroke-width: 1.5; }
.pair .tip__val { min-width: 3.2em; font-variant-numeric: tabular-nums; }

.strips { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.strips__head { display: flex; justify-content: space-between; gap: 12px; }
.strips__head span:last-child { flex: none; }
.strip, .strips__axis { display: grid; grid-template-columns: 9.6em minmax(0, 1fr) 3.1em; align-items: center; column-gap: 12px; }
.strip__name { white-space: nowrap; }
.strip { margin-top: 9px; font-size: .8125rem; color: var(--muted); transition: color .3s; }
.strip.is-on { color: var(--cream); }
.strip__bar { position: relative; height: 20px; border-radius: 3px; background: rgba(204, 197, 185, .05); transition: box-shadow .3s; }
.strip.is-on .strip__bar { box-shadow: 0 0 0 1px var(--rule-2); }
.strip__bar canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 3px; }
.strip__bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(204, 197, 185, .3); }
.strip__now { position: absolute; z-index: 1; left: 50%; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 0 1.5px var(--ink); transition: left .7s var(--ease); }
.strip__r { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.strips__axis { margin-top: 6px; }
.strips__axis div { grid-column: 2; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.strips__say { min-height: 4.4em; margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--stone); }

.drift__more { margin-top: clamp(14px, 2vw, 22px); }
.drift__more table { max-width: 620px; }
.drift__more table + table { margin-top: 22px; }
.drift__more caption, .stake__more caption { padding-bottom: 4px; text-align: left; font-weight: 500; color: var(--cream); }
.drift__more tbody th, .stake__more tbody th { font-weight: 400; color: var(--stone); }
.drift__more .notes a, .stake__more .notes a { color: var(--cream); text-decoration-color: var(--orange); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .drift__pairs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .drift__intro, .model__intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .drift__view { max-width: 560px; }
  .drift__actions { position: static; margin-top: 14px; }
}
@media (max-width: 560px) {
  .drift__dock { padding-block: 10px; }
  .drift__view { max-width: none; }
  .drift__view .seg__opts { border-radius: 18px; }
  .drift__view .seg__opts span { border-radius: 14px; white-space: normal; padding: .55em .3em; font-size: .8125rem; }
  .drift__btn { flex: 1 1 0; justify-content: center; padding-inline: .6em; }
  .pair__read { grid-template-columns: minmax(0, 1fr); }
  .pair__plot { max-width: 250px; }
  .pair__verdict { padding-top: 0; }
  .pair__say, .strips__say { min-height: 0; }
  .strip, .strips__axis { grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; }
  .strip__name { grid-area: 1 / 1; }
  .strip__r { grid-area: 1 / 2; }
  .strip__bar { grid-area: 2 / 1 / 3 / 3; }
  .strips__axis div { grid-column: 1 / -1; }
}

/* ---------- The two models share one space. A row of buttons under the section label chooses between them. ---------- */
.tabs--models { margin: clamp(18px, 2.2vw, 26px) 0 clamp(30px, 4.4vw, 60px); }
.mpanel.is-entering { animation: panelIn .6s var(--ease) both; }
/* Without the script the buttons cannot work, so both models are shown one after the other */
html:not(.js) .tabs--models { display: none; }
html:not(.js) .mpanel[hidden] { display: block; margin-top: clamp(56px, 8vw, 110px); }
@media (max-width: 640px) {
  .tabs--models { border-radius: 22px; }
  .tabs--models .tab { border-radius: 17px; white-space: normal; line-height: 1.2; text-align: center; }
}

/* ---------- Model 01: stakeholder networks. Stone is where a stakeholder sits on the grid, orange is what its connections add. ---------- */
.stake { --pad: clamp(14px, 2.2vw, 28px); padding: var(--pad); }
.stake__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.stake__view { flex: 1 1 300px; max-width: 400px; }
.stake__view .seg__opts label { display: grid; }
.stake__view .seg__opts span { display: grid; place-items: center; padding: .62em .7em; font-size: .9375rem; line-height: 1.2; }
.stake.is-fresh .stake__view label:nth-child(2) span { animation: ping 2.4s ease-out 4; }

.stake__main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 1.6vw, 22px); align-items: start; margin-top: clamp(16px, 2vw, 22px); }
.stake__side { display: grid; gap: clamp(14px, 1.6vw, 22px); min-width: 0; }
.stake__card { min-width: 0; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--rule); border-radius: 14px; background: var(--ink); }
.stake__kicker { font-family: var(--mono); font-size: .6875rem; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.stake__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-bottom: 12px; font-size: .8125rem; color: var(--stone); }
.stake__legend span { display: inline-flex; align-items: center; gap: 7px; }
.stake__key { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--stone); }
.stake__key--tie { width: 18px; height: 3px; border-radius: 2px; opacity: .6; }
.stake__key--reach { background: none; box-shadow: inset 0 0 0 2px var(--orange); }
.stake__net-only { transition: opacity .4s; }
.stake:not(.is-net) .stake__net-only { opacity: 0; }
.stake__plot { -webkit-user-select: none; user-select: none; }
.stake__hint { margin-top: 10px; font-size: .75rem; line-height: 1.4; color: var(--muted); }

/* The grid: a frame, the two lines that divide it, and the name of each group in its corner */
.s-frame { fill: none; stroke: rgba(204, 197, 185, .2); stroke-width: 1; }
.s-quad { fill: var(--stone); opacity: 0; transition: opacity .3s; }
.s-quad.is-on { opacity: .05; }
.s-mid { stroke: rgba(204, 197, 185, .34); stroke-width: 1; stroke-dasharray: 3 4; }
.s-name { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: fill .3s; }
.s-name.is-on { fill: var(--cream); }
.s-axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }

/* Everything the connections add is in one layer, which fades in. Each line also draws itself from one end to the other. */
.s-net { opacity: 0; pointer-events: none; transition: opacity .45s; }
.stake.is-net .s-net { opacity: 1; }
.s-edge {
  fill: none; stroke: var(--stone); stroke-opacity: .42; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease) calc(var(--i, 0) * 45ms), stroke .25s, stroke-opacity .25s;
}
.stake.is-net .s-edge { stroke-dashoffset: 0; }
.s-edge--1 { stroke-width: 1.25; }
.s-edge--2 { stroke-width: 2.4; }
.s-edge--3 { stroke-width: 4; }
.s-edge.is-mine { stroke: var(--cream); stroke-opacity: .8; }
.s-edge.is-route { stroke: var(--orange); stroke-opacity: 1; }
/* The orange marker: where a stakeholder's power sits once its connections are counted */
.s-reach line { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.s-reach circle { fill: var(--ink); stroke: var(--orange); stroke-width: 2; }
.s-reach text { fill: var(--orange); font-size: 11px; font-weight: 600; text-anchor: middle; }
.s-reach.is-moved circle { fill: var(--orange); }
.s-reach.is-moved text { fill: #1B1A18; }

.s-dot { fill: var(--stone); stroke: var(--ink); stroke-width: 2; transition: fill .25s; }
.s-ring { fill: none; stroke: var(--cream); stroke-width: 1.5; opacity: 0; transition: opacity .25s; }
.s-node text { fill: #1B1A18; font-size: 12px; font-weight: 600; text-anchor: middle; }
.s-node.is-on .s-dot { fill: var(--cream); }
.s-node.is-on .s-ring { opacity: 1; }
/* An unseen circle over each stakeholder takes the pointer and the keyboard, and is larger than the dot so a finger can find it */
.s-hit { fill: transparent; stroke: none; cursor: grab; touch-action: none; outline: none; }
.s-hit:focus-visible { stroke: var(--orange); stroke-width: 2; }
.stake__plot.is-dragging .s-hit { cursor: grabbing; }

/* The stakeholder that is selected */
.who__head { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); margin-top: 10px; }
.who__id { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--cream); color: #1B1A18; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1; font-weight: 600; }
.who__nums { display: flex; flex-wrap: wrap; gap: 8px clamp(14px, 2vw, 24px); margin: 0; }
.who__nums dt { font-size: .75rem; line-height: 1.3; color: var(--muted); }
.who__nums dd { margin: 2px 0 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--cream); }
.who__nums .who__net dd { color: var(--orange); }
.who__calls { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.who__calls div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who__calls dt { font-size: .8125rem; color: var(--stone); }
.who__calls dd { margin: 0; }
.call {
  display: inline-flex; padding: .32em .85em; border: 1px solid var(--rule-2); border-radius: 999px;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--cream);
  transition: background .25s, border-color .25s, color .25s;
}
.call.is-moved { border-color: var(--orange); background: var(--orange); color: #1B1A18; font-weight: 500; }
.who__ties { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.who__say { min-height: 6em; margin-top: 12px; font-size: .9375rem; line-height: 1.5; color: var(--stone); }
.stake:not(.is-net) .who__net { display: none; }

/* All of the stakeholders, sorted into the four groups */
.groups__list { margin: 10px 0 0; padding: 0; list-style: none; }
.groups__list li { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); align-items: center; column-gap: 10px; min-height: 42px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .875rem; line-height: 1.3; color: var(--stone); }
.groups__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-chip {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--stone); color: #1B1A18; cursor: pointer;
  font-family: var(--sans); font-size: .75rem; line-height: 1; font-weight: 600; transition: background .2s, box-shadow .2s;
}
.s-chip:hover { background: var(--cream); }
.s-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.s-chip.is-in { background: var(--orange); }
.s-chip.is-out { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); color: var(--muted); }
.s-chip.is-on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--cream); }
.s-chip.is-out.is-on { box-shadow: inset 0 0 0 1.5px var(--muted), 0 0 0 2px var(--ink), 0 0 0 3.5px var(--cream); }
.groups__say { min-height: 3em; margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--stone); }

.stake__more { margin-top: clamp(14px, 2vw, 22px); }
.stake__more table { min-width: 760px; }
.stake__more .t-l { text-align: left; }

@media (max-width: 900px) {
  .stake__main { grid-template-columns: minmax(0, 1fr); }
  .who__say, .groups__say { min-height: 0; }
}
@media (max-width: 560px) {
  .stake__view { flex-basis: 100%; max-width: none; }
  .stake__view .seg__opts span { font-size: .875rem; }
  .stake__bar .model__btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- About, in brief (home page) ---------- */
.section--bio { padding: clamp(72px, 9vw, 124px) 0; }
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 7vw, 110px); align-items: start; }
.bio h2 { margin-top: 22px; font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
.bio__intro { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.42; letter-spacing: -.012em; color: var(--fg); }
.bio__text { margin-top: 1.1em; color: var(--fg-2); }
.bio__more { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- About page: headline figures ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(56px, 8vw, 110px); border-top: 1px solid var(--rule-2); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 24px clamp(14px, 2vw, 28px) 0 0; }
.fact + .fact { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--rule); }
.fact dd { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.fact dt { max-width: 15em; font-size: .9375rem; line-height: 1.4; color: var(--fg-2); }

/* ---------- About page: dated lists for the career, study and publications ---------- */
.record { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.record > li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.about__body p + .record { margin-top: 2em; }
.record .record__when { margin: 0; font-family: var(--mono); font-size: .6875rem; line-height: 1.7; letter-spacing: .13em; text-transform: uppercase; color: var(--orange); }
.theme-light .record .record__when { color: var(--fg-3); }
.record .record__title { margin: 2px 0 0; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 500; color: var(--fg); text-wrap: pretty; }
.record--dated .record__when { white-space: nowrap; }
.record--dated .record__title { margin-top: 0; }
.record .record__org { margin: 4px 0 0; font-size: .9375rem; color: var(--fg-2); }
.record .record__text { margin: 10px 0 0; font-size: .9375rem; color: var(--fg-3); }
.record--dated > li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 20px; align-items: baseline; padding: 22px 0; }
.records { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.records__title { margin-bottom: 14px; font-family: var(--mono); font-size: .75rem; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--fg-3); }

@media (max-width: 860px) {
  .feature, .bio, .records { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { margin-top: 20px; border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .tick { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .ticker__btn--toggle span { display: none; }
  .ticker__btn--toggle { width: 34px; padding: 0; }
  .sfd__labels { display: none; }
  .record--dated > li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .xp__head { grid-template-columns: 3rem minmax(0, 1fr) 2.75rem; }
  .xp__tag { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; margin-top: .4em; font-size: .9375rem; }
  .xp__icon { grid-column: 3; grid-row: 1 / span 2; }
  .xp__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-left: calc(3rem + clamp(12px, 2vw, 28px)); }
  .xp__body .glyph { display: none; }
  .explorer { grid-template-columns: 1fr; }
  .posts, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav__toggle {
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
    padding: .5em 0 .5em .5em; background: none; border: 0; cursor: pointer;
    font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream);
  }
  .nav__toggle-bars { position: relative; width: 22px; height: 10px; }
  .nav__toggle-bars i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .nav__toggle-bars i:first-child { top: 0; }
  .nav__toggle-bars i:last-child { bottom: 0; }
  .nav.is-open .nav__toggle-bars i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle-bars i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav .logo { position: relative; z-index: 2; }
  .nav__links {
    position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: var(--nav-h) var(--gutter) 40px; background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__links a { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.3; letter-spacing: -.03em; font-weight: 500; color: var(--cream); }
  .nav__links li:last-child { margin-top: 28px; }
  .nav__links .nav__cta { display: inline-block; font-size: 1.125rem; letter-spacing: 0; background: var(--orange); border-color: var(--orange); color: var(--ink); padding: .8em 1.4em; }
  .nav--light .nav__toggle { color: var(--ink); }
  .nav--light .nav__links { background: var(--cream); }
  .nav--light .nav__links a { color: var(--ink); }

  .section__head { grid-template-columns: 1fr; }

  .about { grid-template-columns: 1fr; }
  .about__lead { position: static; }
}

@media (max-width: 640px) {
  .hud__scale .hud__zoom { display: none; }
  .hud__cue-hover, .hud__cue-scroll span { display: none; }
  .xp__body { grid-template-columns: 1fr; padding-left: 0; }
  .posts, .services { grid-template-columns: 1fr; }
  .principles.principles--dated li { grid-template-columns: minmax(0, 1fr); }
  .principles.principles--dated p { grid-column: auto; }
  .post--featured { grid-column: auto; }
  .post { min-height: 0; }
  .tile dd b { font-size: 1.5rem; }
  .principles li { grid-template-columns: 2rem minmax(0, 1fr); row-gap: 4px; }
  .principles p { grid-column: 2; }
}

/* Portrait screens: frame the hero on the tower blocks */
@media (max-aspect-ratio: 1 / 1) {
  .hero { --fx: 74%; --ox: 74%; --oy: 38%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(37, 36, 34, .8) 0%, rgba(37, 36, 34, .5) 22%, rgba(37, 36, 34, .74) 50%, rgba(37, 36, 34, .8) 70%, var(--ink) 100%);
  }
  .hero__eyebrow { font-size: .625rem; letter-spacing: .1em; }
  .hero__eyebrow i { margin: 0 .15em; }
  .hero__lede, .hero__statement-sub { text-shadow: 0 1px 14px rgba(22, 21, 20, .8); }
}

@media (max-width: 640px) {
  .tabs { display: flex; }
  .tab { flex: 1; justify-content: center; padding: .62em .6em; font-size: .875rem; }
  .tab span { display: none; }
  .tiles--row { grid-template-columns: 1fr; }
  .tiles--row .tile { flex-direction: row; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tiles--row .tile dd { text-align: right; }
  .figures { grid-template-columns: 1fr; }
  .manifesto { font-size: clamp(1.55rem, 7vw, 2rem); }
  .prose { font-size: 1.0625rem; }
  .prose--lead > p:first-child { font-size: 1.1875rem; }
  .prose .chain { padding: 18px 8px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .manifesto .w { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .trace__pulse { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
